Changeset 98855 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 7, 2023 11:20:37 AM (22 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r98841 r98855 1051 1051 { 1052 1052 uisession()->powerOff(fIncludingDiscard); 1053 } 1054 1055 void UIMachine::sltInstallGuestAdditionsFrom(const QString &strSource) 1056 { 1057 uisession()->sltInstallGuestAdditionsFrom(strSource); 1058 } 1059 1060 void UIMachine::sltMountDVDAdHoc(const QString &strSource) 1061 { 1062 uisession()->sltMountDVDAdHoc(strSource); 1053 1063 } 1054 1064 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r98841 r98855 711 711 public slots: 712 712 713 /** @name Guest additions stuff. 714 ** @{ */ 715 /** Handles request to install guest additions image. 716 * @param strSource Brings the source of image being installed. */ 717 void sltInstallGuestAdditionsFrom(const QString &strSource); 718 /** Mounts DVD adhoc. 719 * @param strSource Brings the source of image being mounted. */ 720 void sltMountDVDAdHoc(const QString &strSource); 721 /** @} */ 722 713 723 /** @name Keyboard stuff. 714 724 ** @{ */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r98850 r98855 68 68 #include "UIMouseHandler.h" 69 69 #include "UINotificationCenter.h" 70 #include "UISession.h"71 70 #include "UISettingsDialogSpecific.h" 72 71 #include "UISoftKeyboard.h" … … 258 257 sltAdditionsStateChanged(); 259 258 sltMouseCapabilityChanged(); 260 }261 262 UISession *UIMachineLogic::uisession() const263 {264 return uimachine()->uisession();265 259 } 266 260 … … 592 586 void UIMachineLogic::sltKeyboardLedsChanged() 593 587 { 594 /* Here we have to update host LED lock states using values provided by UI Session:588 /* Here we have to update host LED lock states using values provided by UIMachine: 595 589 * [bool] uimachine() -> isNumLock(), isCapsLock(), isScrollLock() can be used for that. */ 596 590 … … 2309 2303 { 2310 2304 if (fOnlyMount) 2311 return ui session()->sltMountDVDAdHoc(strAdditions);2305 return uimachine()->sltMountDVDAdHoc(strAdditions); 2312 2306 else 2313 return ui session()->sltInstallGuestAdditionsFrom(strAdditions);2307 return uimachine()->sltInstallGuestAdditionsFrom(strAdditions); 2314 2308 } 2315 2309 … … 2333 2327 { 2334 2328 if (fOnlyMount) 2335 return ui session()->sltMountDVDAdHoc(strPath);2329 return uimachine()->sltMountDVDAdHoc(strPath); 2336 2330 else 2337 return ui session()->sltInstallGuestAdditionsFrom(strPath);2331 return uimachine()->sltInstallGuestAdditionsFrom(strPath); 2338 2332 } 2339 2333 } … … 2353 2347 if (fOnlyMount) 2354 2348 connect(pNotification, &UINotificationDownloaderGuestAdditions::sigGuestAdditionsDownloaded, 2355 ui session(), &UISession::sltMountDVDAdHoc);2349 uimachine(), &UIMachine::sltMountDVDAdHoc); 2356 2350 else 2357 2351 connect(pNotification, &UINotificationDownloaderGuestAdditions::sigGuestAdditionsDownloaded, 2358 ui session(), &UISession::sltInstallGuestAdditionsFrom);2352 uimachine(), &UIMachine::sltInstallGuestAdditionsFrom); 2359 2353 /* Append and start notification: */ 2360 2354 gpNotificationCenter->append(pNotification); … … 2529 2523 /* Here we have to store host LED lock states. */ 2530 2524 2531 /* Here we have to update host LED lock states using values provided by UI Sessionregistry.2532 * [bool] ui session() -> isNumLock(), isCapsLock(), isScrollLock() can be used for that. */2525 /* Here we have to update host LED lock states using values provided by UIMachine registry. 2526 * [bool] uimachine() -> isNumLock(), isCapsLock(), isScrollLock() can be used for that. */ 2533 2527 2534 2528 if (!uimachine()->isHidLedsSyncEnabled()) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r98849 r98855 41 41 class QActionGroup; 42 42 class QIManagerDialog; 43 class UISession;44 43 class UIActionPool; 45 44 class UIKeyboardHandler; … … 92 91 /** Returns machine UI reference. */ 93 92 UIMachine *uimachine() const { return m_pMachine; } 94 /** Returns session UI reference. */95 UISession *uisession() const;96 93 /** Returns action-pool reference. */ 97 94 UIActionPool *actionPool() const;
Note:
See TracChangeset
for help on using the changeset viewer.