VirtualBox

Ignore:
Timestamp:
Nov 25, 2008 3:30:32 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39877
Message:

Fe/Qt4: Systray: First implementation for IPC handling.

Location:
trunk/src/VBox/Frontends/VirtualBox4/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxDefs.h

    r14540 r14578  
    119119        ChangeGUILanguageEventType,
    120120#if defined (VBOX_GUI_WITH_SYSTRAY)
    121         ChangeGUITrayIconEventType,
     121        CanShowTrayIconEventType,
     122        ChangeTrayIconEventType,
    122123#endif
    123124        AddVDMUrlsEventType
     
    152153    static const char* GUI_LastVMSelected;
    153154    static const char* GUI_InfoDlgState;
     155#ifdef VBOX_GUI_WITH_SYSTRAY
     156    static const char* GUI_TrayIconWinID;
     157#endif
    154158};
    155159
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobal.h

    r14540 r14578  
    391391
    392392#ifdef VBOX_GUI_WITH_SYSTRAY
    393 class VBoxChangeGUITrayIconEvent : public QEvent
    394 {
    395 public:
    396     VBoxChangeGUITrayIconEvent (bool aEnabled)
    397         : QEvent ((QEvent::Type) VBoxDefs::ChangeGUITrayIconEventType)
     393class VBoxCanShowTrayIconEvent : public QEvent
     394{
     395public:
     396    VBoxCanShowTrayIconEvent (bool aCanShow)
     397        : QEvent ((QEvent::Type) VBoxDefs::CanShowTrayIconEventType)
     398        , mCanShow (aCanShow)
     399        {}
     400
     401    const bool mCanShow;
     402};
     403
     404class VBoxChangeTrayIconEvent : public QEvent
     405{
     406public:
     407    VBoxChangeTrayIconEvent (bool aEnabled)
     408        : QEvent ((QEvent::Type) VBoxDefs::ChangeTrayIconEventType)
    398409        , mEnabled (aEnabled)
    399410        {}
     
    470481    QWidget *mainWindow() const { return mMainWindow; }
    471482
    472 
    473483    bool isVMConsoleProcess() const { return !vmUuid.isNull(); }
     484#ifdef VBOX_GUI_WITH_SYSTRAY
     485    bool isTrayIcon() const;
     486    bool trayIconInstall();
     487#endif
    474488    QUuid managedVMUuid() const { return vmUuid; }
    475489
     
    938952    void snapshotChanged (const VBoxSnapshotEvent &e);
    939953#ifdef VBOX_GUI_WITH_SYSTRAY
    940     void systrayIconChanged (const VBoxChangeGUITrayIconEvent &e);
     954    void trayIconCanShow (const VBoxCanShowTrayIconEvent &e);
     955    void trayIconChanged (const VBoxChangeTrayIconEvent &e);
    941956#endif
    942957
     
    980995    QUuid vmUuid;
    981996
     997#ifdef VBOX_GUI_WITH_SYSTRAY
     998    bool mIsTrayIcon;           /* Is current instance responsible for tray icon? */
     999#endif
    9821000    QThread *mMediaEnumThread;
    9831001    VBoxMediaList mMediaList;
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSelectorWnd.h

    r14509 r14578  
    133133    void snapshotChanged (const VBoxSnapshotEvent &e);
    134134#ifdef VBOX_GUI_WITH_SYSTRAY
    135     void systrayIconChanged (const VBoxChangeGUITrayIconEvent &e);
     135    void trayIconCanShow (const VBoxCanShowTrayIconEvent &e);
     136    void trayIconChanged (const VBoxChangeTrayIconEvent &e);
    136137#endif
    137138
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette