Changeset 65254 in vbox
- Timestamp:
- Jan 12, 2017 10:57:44 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r63567 r65254 60 60 61 61 62 63 62 /** QIStateStatusBarIndicator extension for Runtime UI. */ 64 63 class UISessionStateStatusBarIndicator : public QIWithRetranslateUI<QIStateStatusBarIndicator> … … 69 68 70 69 /** Constructor which remembers passed @a session object. */ 71 UISessionStateStatusBarIndicator(UISession *pSession) : m_pSession(pSession) {} 70 UISessionStateStatusBarIndicator(IndicatorType enmType, UISession *pSession) 71 : m_enmType(enmType) 72 , m_pSession(pSession) 73 {} 74 75 /** Returns the indicator type. */ 76 IndicatorType type() const { return m_enmType; } 72 77 73 78 /** Abstract update routine. */ … … 75 80 76 81 protected: 82 83 /** Holds the indicator type. */ 84 const IndicatorType m_enmType; 77 85 78 86 /** Holds the session UI reference. */ … … 89 97 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 90 98 UIIndicatorHardDrive(UISession *pSession) 91 : UISessionStateStatusBarIndicator( pSession)99 : UISessionStateStatusBarIndicator(IndicatorType_HardDisks, pSession) 92 100 { 93 101 /* Assign state-icons: */ … … 162 170 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 163 171 UIIndicatorOpticalDisks(UISession *pSession) 164 : UISessionStateStatusBarIndicator( pSession)172 : UISessionStateStatusBarIndicator(IndicatorType_OpticalDisks, pSession) 165 173 { 166 174 /* Assign state-icons: */ … … 239 247 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 240 248 UIIndicatorFloppyDisks(UISession *pSession) 241 : UISessionStateStatusBarIndicator( pSession)249 : UISessionStateStatusBarIndicator(IndicatorType_FloppyDisks, pSession) 242 250 { 243 251 /* Assign state-icons: */ … … 316 324 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 317 325 UIIndicatorNetwork(UISession *pSession) 318 : UISessionStateStatusBarIndicator( pSession)326 : UISessionStateStatusBarIndicator(IndicatorType_Network, pSession) 319 327 , m_pTimerAutoUpdate(0) 320 328 , m_cMaxNetworkAdapters(0) … … 466 474 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 467 475 UIIndicatorUSB(UISession *pSession) 468 : UISessionStateStatusBarIndicator( pSession)476 : UISessionStateStatusBarIndicator(IndicatorType_USB, pSession) 469 477 { 470 478 /* Assign state-icons: */ … … 532 540 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 533 541 UIIndicatorSharedFolders(UISession *pSession) 534 : UISessionStateStatusBarIndicator( pSession)542 : UISessionStateStatusBarIndicator(IndicatorType_SharedFolders, pSession) 535 543 { 536 544 /* Assign state-icons: */ … … 603 611 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 604 612 UIIndicatorDisplay(UISession *pSession) 605 : UISessionStateStatusBarIndicator( pSession)613 : UISessionStateStatusBarIndicator(IndicatorType_Display, pSession) 606 614 { 607 615 /* Assign state-icons: */ … … 685 693 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 686 694 UIIndicatorVideoCapture(UISession *pSession) 687 : UISessionStateStatusBarIndicator( pSession)695 : UISessionStateStatusBarIndicator(IndicatorType_VideoCapture, pSession) 688 696 , m_pAnimation(0) 689 697 , m_dRotationAngle(0) … … 807 815 /** Constructor, passes @a pSession to the UISessionStateStatusBarIndicator constructor. */ 808 816 UIIndicatorFeatures(UISession *pSession) 809 : UISessionStateStatusBarIndicator( pSession)817 : UISessionStateStatusBarIndicator(IndicatorType_Features, pSession) 810 818 { 811 819 /* Assign state-icons: */ … … 892 900 /** Constructor, using @a pSession for state-update routine. */ 893 901 UIIndicatorMouse(UISession *pSession) 894 : UISessionStateStatusBarIndicator( pSession)902 : UISessionStateStatusBarIndicator(IndicatorType_Mouse, pSession) 895 903 { 896 904 /* Assign state-icons: */ … … 952 960 /** Constructor, using @a pSession for state-update routine. */ 953 961 UIIndicatorKeyboard(UISession *pSession) 954 : UISessionStateStatusBarIndicator( pSession)962 : UISessionStateStatusBarIndicator(IndicatorType_Keyboard, pSession) 955 963 { 956 964 /* Assign state-icons: */
Note:
See TracChangeset
for help on using the changeset viewer.