VirtualBox

Ignore:
Timestamp:
Nov 24, 2008 10:49:09 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39797
Message:

Fe/Qt4: Global callback for tray icon code.

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

Legend:

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

    r14056 r14509  
    118118#endif
    119119        ChangeGUILanguageEventType,
     120#if defined (VBOX_GUI_WITH_SYSTRAY)
     121        ChangeGUITrayIconEventType,
     122#endif
    120123        AddVDMUrlsEventType
    121124    };
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobal.h

    r14442 r14509  
    390390};
    391391
     392#ifdef VBOX_GUI_WITH_SYSTRAY
     393class VBoxChangeGUITrayIconEvent : public QEvent
     394{
     395public:
     396    VBoxChangeGUITrayIconEvent (bool aEnabled)
     397        : QEvent ((QEvent::Type) VBoxDefs::ChangeGUITrayIconEventType)
     398        , mEnabled (aEnabled)
     399        {}
     400
     401    const bool mEnabled;
     402};
     403#endif
     404
    392405class Process : public QProcess
    393406{
     
    915928
    916929    /* signals emitted when the VirtualBox callback is called by the server
    917      * (not that currently these signals are emitted only when the application
     930     * (note that currently these signals are emitted only when the application
    918931     * is the in the VM selector mode) */
    919932
     
    923936    void sessionStateChanged (const VBoxSessionStateChangeEvent &e);
    924937    void snapshotChanged (const VBoxSnapshotEvent &e);
     938    void systrayIconChanged (const VBoxChangeGUITrayIconEvent& e);
    925939
    926940    void canShowRegDlg (bool aCanShow);
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSelectorWnd.h

    r14478 r14509  
    132132    void sessionStateChanged (const VBoxSessionStateChangeEvent &e);
    133133    void snapshotChanged (const VBoxSnapshotEvent &e);
     134#ifdef VBOX_GUI_WITH_SYSTRAY
     135    void systrayIconChanged (const VBoxChangeGUITrayIconEvent &e);
     136#endif
    134137
    135138private:
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