VirtualBox

Ignore:
Timestamp:
Mar 7, 2023 11:20:37 AM (22 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Get rid of remaining UISession usage in UIMachineLogic.

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  
    10511051{
    10521052    uisession()->powerOff(fIncludingDiscard);
     1053}
     1054
     1055void UIMachine::sltInstallGuestAdditionsFrom(const QString &strSource)
     1056{
     1057    uisession()->sltInstallGuestAdditionsFrom(strSource);
     1058}
     1059
     1060void UIMachine::sltMountDVDAdHoc(const QString &strSource)
     1061{
     1062    uisession()->sltMountDVDAdHoc(strSource);
    10531063}
    10541064
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h

    r98841 r98855  
    711711public slots:
    712712
     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
    713723    /** @name Keyboard stuff.
    714724     ** @{ */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r98850 r98855  
    6868#include "UIMouseHandler.h"
    6969#include "UINotificationCenter.h"
    70 #include "UISession.h"
    7170#include "UISettingsDialogSpecific.h"
    7271#include "UISoftKeyboard.h"
     
    258257    sltAdditionsStateChanged();
    259258    sltMouseCapabilityChanged();
    260 }
    261 
    262 UISession *UIMachineLogic::uisession() const
    263 {
    264     return uimachine()->uisession();
    265259}
    266260
     
    592586void UIMachineLogic::sltKeyboardLedsChanged()
    593587{
    594     /* Here we have to update host LED lock states using values provided by UISession:
     588    /* Here we have to update host LED lock states using values provided by UIMachine:
    595589     * [bool] uimachine() -> isNumLock(), isCapsLock(), isScrollLock() can be used for that. */
    596590
     
    23092303    {
    23102304        if (fOnlyMount)
    2311             return uisession()->sltMountDVDAdHoc(strAdditions);
     2305            return uimachine()->sltMountDVDAdHoc(strAdditions);
    23122306        else
    2313             return uisession()->sltInstallGuestAdditionsFrom(strAdditions);
     2307            return uimachine()->sltInstallGuestAdditionsFrom(strAdditions);
    23142308    }
    23152309
     
    23332327                {
    23342328                    if (fOnlyMount)
    2335                         return uisession()->sltMountDVDAdHoc(strPath);
     2329                        return uimachine()->sltMountDVDAdHoc(strPath);
    23362330                    else
    2337                         return uisession()->sltInstallGuestAdditionsFrom(strPath);
     2331                        return uimachine()->sltInstallGuestAdditionsFrom(strPath);
    23382332                }
    23392333            }
     
    23532347        if (fOnlyMount)
    23542348            connect(pNotification, &UINotificationDownloaderGuestAdditions::sigGuestAdditionsDownloaded,
    2355                     uisession(), &UISession::sltMountDVDAdHoc);
     2349                    uimachine(), &UIMachine::sltMountDVDAdHoc);
    23562350        else
    23572351            connect(pNotification, &UINotificationDownloaderGuestAdditions::sigGuestAdditionsDownloaded,
    2358                     uisession(), &UISession::sltInstallGuestAdditionsFrom);
     2352                    uimachine(), &UIMachine::sltInstallGuestAdditionsFrom);
    23592353        /* Append and start notification: */
    23602354        gpNotificationCenter->append(pNotification);
     
    25292523    /* Here we have to store host LED lock states. */
    25302524
    2531     /* Here we have to update host LED lock states using values provided by UISession registry.
    2532      * [bool] uisession() -> 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. */
    25332527
    25342528    if (!uimachine()->isHidLedsSyncEnabled())
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r98849 r98855  
    4141class QActionGroup;
    4242class QIManagerDialog;
    43 class UISession;
    4443class UIActionPool;
    4544class UIKeyboardHandler;
     
    9291    /** Returns machine UI reference.  */
    9392    UIMachine *uimachine() const { return m_pMachine; }
    94     /** Returns session UI reference.  */
    95     UISession *uisession() const;
    9693    /** Returns action-pool reference.  */
    9794    UIActionPool *actionPool() const;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette