VirtualBox

Changeset 86572 in vbox for trunk/src


Ignore:
Timestamp:
Oct 14, 2020 11:29:29 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: A bit of refactoring for Chooser pane machine registration stuff.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r86570 r86572  
    613613}
    614614
    615 void UIChooserAbstractModel::sltLocalMachineRegistered(const QUuid &uMachineId, const bool fRegistered)
     615void UIChooserAbstractModel::sltLocalMachineRegistrationChanged(const QUuid &uMachineId, const bool fRegistered)
    616616{
    617617    /* Existing VM unregistered? */
     
    636636}
    637637
    638 void UIChooserAbstractModel::sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName,
    639                                                        const QUuid &uMachineId, const bool fRegistered)
     638void UIChooserAbstractModel::sltCloudMachineRegistrationChanged(const QString &strProviderShortName, const QString &strProfileName,
     639                                                                const QUuid &uMachineId, const bool fRegistered)
    640640{
    641641    /* Search for profile node: */
     
    800800     * this is to be replaced by corresponding Main API event later. */
    801801    connect(&uiCommon(), &UICommon::sigCloudMachineRegistered,
    802             this, &UIChooserAbstractModel::sltCloudMachineRegistered);
     802            this, &UIChooserAbstractModel::sltCloudMachineRegistrationChanged);
    803803
    804804    /* Setup global connections: */
     
    808808            this, &UIChooserAbstractModel::sltLocalMachineDataChanged);
    809809    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigMachineRegistered,
    810             this, &UIChooserAbstractModel::sltLocalMachineRegistered);
     810            this, &UIChooserAbstractModel::sltLocalMachineRegistrationChanged);
    811811    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSessionStateChange,
    812812            this, &UIChooserAbstractModel::sltSessionStateChanged);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r86570 r86572  
    144144        virtual void sltLocalMachineDataChanged(const QUuid &uMachineId);
    145145        /** Handles local machine registering/unregistering for machine with certain @a uMachineId. */
    146         virtual void sltLocalMachineRegistered(const QUuid &uMachineId, const bool fRegistered);
     146        virtual void sltLocalMachineRegistrationChanged(const QUuid &uMachineId, const bool fRegistered);
    147147        /** Handles cloud machine registering/unregistering for machine with certain @a uMachineId.
    148148          * @param  strProviderShortName  Brings provider short name.
    149149          * @param  strProfileName        Brings profile name. */
    150         virtual void sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName,
    151                                                const QUuid &uMachineId, const bool fRegistered);
     150        virtual void sltCloudMachineRegistrationChanged(const QString &strProviderShortName, const QString &strProfileName,
     151                                                        const QUuid &uMachineId, const bool fRegistered);
    152152        /** Handles session @a enmState change for machine with certain @a uMachineId. */
    153153        virtual void sltSessionStateChanged(const QUuid &uMachineId, const KSessionState enmState);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r86570 r86572  
    10791079}
    10801080
    1081 void UIChooserModel::sltLocalMachineRegistered(const QUuid &uMachineId, const bool fRegistered)
     1081void UIChooserModel::sltLocalMachineRegistrationChanged(const QUuid &uMachineId, const bool fRegistered)
    10821082{
    10831083    /* Existing VM unregistered => make sure no item with passed uMachineId is selected: */
     
    10861086
    10871087    /* Call to base-class: */
    1088     UIChooserAbstractModel::sltLocalMachineRegistered(uMachineId, fRegistered);
     1088    UIChooserAbstractModel::sltLocalMachineRegistrationChanged(uMachineId, fRegistered);
    10891089
    10901090    /* Existing VM unregistered? */
     
    11101110}
    11111111
    1112 void UIChooserModel::sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName,
    1113                                                const QUuid &uMachineId, const bool fRegistered)
     1112void UIChooserModel::sltCloudMachineRegistrationChanged(const QString &strProviderShortName, const QString &strProfileName,
     1113                                                        const QUuid &uMachineId, const bool fRegistered)
    11141114{
    11151115    /* Existing VM unregistered => make sure no item with passed uMachineId is selected: */
     
    11181118
    11191119    /* Call to base-class: */
    1120     UIChooserAbstractModel::sltCloudMachineRegistered(strProviderShortName, strProfileName, uMachineId, fRegistered);
     1120    UIChooserAbstractModel::sltCloudMachineRegistrationChanged(strProviderShortName, strProfileName, uMachineId, fRegistered);
    11211121
    11221122    /* Existing VM unregistered? */
     
    17821782        const QString strProviderShortName = pItem->parentItem()->parentItem()->name();
    17831783        const QString strProfileName = pItem->parentItem()->name();
    1784         sltCloudMachineRegistered(strProviderShortName,
    1785                                   strProfileName,
    1786                                   uId /* machine ID */,
    1787                                   false /* registered? */);
     1784        sltCloudMachineRegistrationChanged(strProviderShortName,
     1785                                           strProfileName,
     1786                                           uId /* machine ID */,
     1787                                           false /* registered? */);
    17881788    }
    17891789}
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h

    r86570 r86572  
    262262      * @{ */
    263263        /** Handles local machine registering/unregistering for machine with certain @a uMachineId. */
    264         virtual void sltLocalMachineRegistered(const QUuid &uMachineId, const bool fRegistered) /* override */;
     264        virtual void sltLocalMachineRegistrationChanged(const QUuid &uMachineId, const bool fRegistered) /* override */;
    265265        /** Handles cloud machine registering/unregistering for machine with certain @a uMachineId.
    266266          * @param  strProviderShortName  Brings provider short name.
    267267          * @param  strProfileName        Brings profile name. */
    268         virtual void sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName,
    269                                                const QUuid &uMachineId, const bool fRegistered);
     268        virtual void sltCloudMachineRegistrationChanged(const QString &strProviderShortName, const QString &strProfileName,
     269                                                        const QUuid &uMachineId, const bool fRegistered) /* override */;
    270270        /** Handles event about cloud provider with @a uProviderId being uninstalled. */
    271         virtual void sltHandleCloudProviderUninstall(const QUuid &uProviderId);
     271        virtual void sltHandleCloudProviderUninstall(const QUuid &uProviderId) /* override */;
    272272    /** @} */
    273273
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