Changeset 14578 in vbox for trunk/src/VBox/Frontends/VirtualBox4/include
- Timestamp:
- Nov 25, 2008 3:30:32 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 39877
- Location:
- trunk/src/VBox/Frontends/VirtualBox4/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxDefs.h
r14540 r14578 119 119 ChangeGUILanguageEventType, 120 120 #if defined (VBOX_GUI_WITH_SYSTRAY) 121 ChangeGUITrayIconEventType, 121 CanShowTrayIconEventType, 122 ChangeTrayIconEventType, 122 123 #endif 123 124 AddVDMUrlsEventType … … 152 153 static const char* GUI_LastVMSelected; 153 154 static const char* GUI_InfoDlgState; 155 #ifdef VBOX_GUI_WITH_SYSTRAY 156 static const char* GUI_TrayIconWinID; 157 #endif 154 158 }; 155 159 -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobal.h
r14540 r14578 391 391 392 392 #ifdef VBOX_GUI_WITH_SYSTRAY 393 class VBoxChangeGUITrayIconEvent : public QEvent 394 { 395 public: 396 VBoxChangeGUITrayIconEvent (bool aEnabled) 397 : QEvent ((QEvent::Type) VBoxDefs::ChangeGUITrayIconEventType) 393 class VBoxCanShowTrayIconEvent : public QEvent 394 { 395 public: 396 VBoxCanShowTrayIconEvent (bool aCanShow) 397 : QEvent ((QEvent::Type) VBoxDefs::CanShowTrayIconEventType) 398 , mCanShow (aCanShow) 399 {} 400 401 const bool mCanShow; 402 }; 403 404 class VBoxChangeTrayIconEvent : public QEvent 405 { 406 public: 407 VBoxChangeTrayIconEvent (bool aEnabled) 408 : QEvent ((QEvent::Type) VBoxDefs::ChangeTrayIconEventType) 398 409 , mEnabled (aEnabled) 399 410 {} … … 470 481 QWidget *mainWindow() const { return mMainWindow; } 471 482 472 473 483 bool isVMConsoleProcess() const { return !vmUuid.isNull(); } 484 #ifdef VBOX_GUI_WITH_SYSTRAY 485 bool isTrayIcon() const; 486 bool trayIconInstall(); 487 #endif 474 488 QUuid managedVMUuid() const { return vmUuid; } 475 489 … … 938 952 void snapshotChanged (const VBoxSnapshotEvent &e); 939 953 #ifdef VBOX_GUI_WITH_SYSTRAY 940 void systrayIconChanged (const VBoxChangeGUITrayIconEvent &e); 954 void trayIconCanShow (const VBoxCanShowTrayIconEvent &e); 955 void trayIconChanged (const VBoxChangeTrayIconEvent &e); 941 956 #endif 942 957 … … 980 995 QUuid vmUuid; 981 996 997 #ifdef VBOX_GUI_WITH_SYSTRAY 998 bool mIsTrayIcon; /* Is current instance responsible for tray icon? */ 999 #endif 982 1000 QThread *mMediaEnumThread; 983 1001 VBoxMediaList mMediaList; -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSelectorWnd.h
r14509 r14578 133 133 void snapshotChanged (const VBoxSnapshotEvent &e); 134 134 #ifdef VBOX_GUI_WITH_SYSTRAY 135 void systrayIconChanged (const VBoxChangeGUITrayIconEvent &e); 135 void trayIconCanShow (const VBoxCanShowTrayIconEvent &e); 136 void trayIconChanged (const VBoxChangeTrayIconEvent &e); 136 137 #endif 137 138
Note:
See TracChangeset
for help on using the changeset viewer.