Changeset 98903 in vbox
- Timestamp:
- Mar 10, 2023 3:17:47 PM (21 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp
r98309 r98903 514 514 } 515 515 516 void UINotificationCenter::sltDetachCOM() 517 { 518 cleanup(); 519 } 520 516 521 void UINotificationCenter::prepare() 517 522 { … … 537 542 prepareStateMachineSliding(); 538 543 prepareOpenTimer(); 544 545 /* COM related connections: */ 546 connect(&uiCommon(), &UICommon::sigAskToDetachCOM, 547 this, &UINotificationCenter::sltDetachCOM); 539 548 540 549 /* Apply language settings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.h
r98309 r98903 140 140 * @note Breaks blocking handleNow() call. */ 141 141 void sltHandleProgressFinished(); 142 143 /** Handles request to detach COM. */ 144 void sltDetachCOM(); 142 145 143 146 private: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r98902 r98903 1466 1466 1467 1467 /* Prepare stuff: */ 1468 prepareNotificationCenter(); 1468 1469 prepareBranding(); 1469 1470 prepareSessionConnections(); … … 1489 1490 /* True by default: */ 1490 1491 return true; 1492 } 1493 1494 void UIMachine::prepareNotificationCenter() 1495 { 1496 UINotificationCenter::create(); 1491 1497 } 1492 1498 … … 1821 1827 } 1822 1828 1829 void UIMachine::cleanupNotificationCenter() 1830 { 1831 UINotificationCenter::destroy(); 1832 } 1833 1823 1834 void UIMachine::cleanup() 1824 1835 { … … 1831 1842 cleanupActions(); 1832 1843 cleanupBranding(); 1844 cleanupNotificationCenter(); 1833 1845 1834 1846 /* Cleanup session UI: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r98882 r98903 838 838 /** Prepare routine. */ 839 839 bool prepare(); 840 /** Prepares notification-center. */ 841 void prepareNotificationCenter(); 840 842 /** Prepare routine: Branding. */ 841 843 void prepareBranding(); … … 863 865 /** Cleanup routine: Session stuff. */ 864 866 void cleanupSession(); 867 /** Cleanups notification-center. */ 868 void cleanupNotificationCenter(); 865 869 /** Cleanup routine. */ 866 870 void cleanup(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98902 r98903 128 128 { 129 129 /* Prepare COM stuff: */ 130 if (!prepare Session())130 if (!prepareCOMStuff()) 131 131 return false; 132 132 … … 136 136 137 137 /* Prepare GUI stuff: */ 138 prepareNotificationCenter();139 138 prepareConsoleEventHandlers(); 140 139 prepareFramebuffers(); … … 2238 2237 cleanupFramebuffers(); 2239 2238 cleanupConsoleEventHandlers(); 2240 cleanupNotificationCenter();2241 2239 cleanupCOMStuff(); 2242 2240 } … … 2331 2329 } 2332 2330 2333 bool UISession::prepare Session()2331 bool UISession::prepareCOMStuff() 2334 2332 { 2335 2333 /* Open session: */ … … 2385 2383 /* True by default: */ 2386 2384 return true; 2387 }2388 2389 void UISession::prepareNotificationCenter()2390 {2391 UINotificationCenter::create();2392 2385 } 2393 2386 … … 2504 2497 } 2505 2498 2506 void UISession::cleanupNotificationCenter()2507 {2508 UINotificationCenter::destroy();2509 }2510 2511 2499 void UISession::cleanupCOMStuff() 2512 2500 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r98902 r98903 648 648 /** @name Prepare/cleanup cascade. 649 649 ** @{ */ 650 /** Prepares COM session. */ 651 bool prepareSession(); 652 /** Prepares notification-center. */ 653 void prepareNotificationCenter(); 650 /** Prepares COM stuff. */ 651 bool prepareCOMStuff(); 654 652 /** Prepares console event-handler. */ 655 653 void prepareConsoleEventHandlers(); … … 665 663 /** Cleanups console event-handler. */ 666 664 void cleanupConsoleEventHandlers(); 667 /** Cleanups notification-center. */668 void cleanupNotificationCenter();669 665 /** Cleanups COM stuff. */ 670 666 void cleanupCOMStuff();
Note:
See TracChangeset
for help on using the changeset viewer.