Changeset 14908 in vbox for trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobal.h
- Timestamp:
- Dec 2, 2008 3:03:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobal.h
r14706 r14908 391 391 392 392 #ifdef VBOX_GUI_WITH_SYSTRAY 393 class VBoxMainWindowCountChangeEvent : public QEvent 394 { 395 public: 396 VBoxMainWindowCountChangeEvent (int aCount) 397 : QEvent ((QEvent::Type) VBoxDefs::MainWindowCountChangeEventType) 398 , mCount (aCount) 399 {} 400 401 const int mCount; 402 }; 403 393 404 class VBoxCanShowTrayIconEvent : public QEvent 394 405 { … … 402 413 }; 403 414 415 class VBoxShowTrayIconEvent : public QEvent 416 { 417 public: 418 VBoxShowTrayIconEvent (bool aShow) 419 : QEvent ((QEvent::Type) VBoxDefs::ShowTrayIconEventType) 420 , mShow (aShow) 421 {} 422 423 const bool mShow; 424 }; 425 404 426 class VBoxChangeTrayIconEvent : public QEvent 405 427 { 406 428 public: 407 VBoxChangeTrayIconEvent (bool a Enabled)408 : QEvent ((QEvent::Type) VBoxDefs:: ChangeTrayIconEventType)409 , m Enabled (aEnabled)429 VBoxChangeTrayIconEvent (bool aChanged) 430 : QEvent ((QEvent::Type) VBoxDefs::TrayIconChangeEventType) 431 , mChanged (aChanged) 410 432 {} 411 433 412 const bool m Enabled;434 const bool mChanged; 413 435 }; 414 436 #endif … … 483 505 bool isVMConsoleProcess() const { return !vmUuid.isNull(); } 484 506 #ifdef VBOX_GUI_WITH_SYSTRAY 485 bool hasTrayIcon() const;486 507 bool isTrayMenu() const; 508 void setTrayMenu(bool aIsTrayMenu); 509 void trayIconShowSelector(); 487 510 bool trayIconInstall(); 488 511 #endif … … 956 979 void snapshotChanged (const VBoxSnapshotEvent &e); 957 980 #ifdef VBOX_GUI_WITH_SYSTRAY 981 void mainWindowCountChanged (const VBoxMainWindowCountChangeEvent &e); 958 982 void trayIconCanShow (const VBoxCanShowTrayIconEvent &e); 983 void trayIconShow (const VBoxShowTrayIconEvent &e); 959 984 void trayIconChanged (const VBoxChangeTrayIconEvent &e); 960 985 #endif … … 1000 1025 1001 1026 #ifdef VBOX_GUI_WITH_SYSTRAY 1002 bool mHasTrayIcon; /* Is current instance responsible for tray icon? */1003 1027 bool mIsTrayMenu; /* Tray icon active/desired? */ 1004 1028 #endif
Note:
See TracChangeset
for help on using the changeset viewer.