VirtualBox

Changeset 86569 in vbox for trunk/src/VBox


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

FE/Qt: bugref:9653: VirtualBox Manager: Small cleanup for Chooser pane VM 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

    r86545 r86569  
    637637
    638638void UIChooserAbstractModel::sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName,
    639                                                        const QUuid &uMachineId, const bool fRegistered)
     639                                                       const QUuid &uId, const bool fRegistered)
    640640{
    641641    /* Search for profile node: */
     
    651651    {
    652652        /* Remove machine-items with passed id: */
    653         pProfileNode->removeAllNodes(uMachineId);
     653        pProfileNode->removeAllNodes(uId);
    654654
    655655        /* If there are no items left: */
     
    666666    {
    667667        /* Add new machine-item: */
    668         const CCloudMachine comMachine = cloudMachineById(strProviderShortName, strProfileName, uMachineId);
     668        const CCloudMachine comMachine = cloudMachineById(strProviderShortName, strProfileName, uId);
    669669        addCloudMachineIntoTheTree(strProfileNodeName, comMachine, true /* make it visible */);
    670670
     
    735735{
    736736    /* Skip unrelated tasks: */
    737     if (!pTask || pTask->type() != UITask::Type_CloudListMachines)
     737    AssertPtrReturnVoid(pTask);
     738    if (pTask->type() != UITask::Type_CloudListMachines)
    738739        return;
    739740
    740741    /* Cast task to corresponding sub-class: */
    741     UITaskCloudListMachines *pAcquiringTask = static_cast<UITaskCloudListMachines*>(pTask);
     742    UITaskCloudListMachines *pAcquiringTask = qobject_cast<UITaskCloudListMachines*>(pTask);
     743    AssertPtrReturnVoid(pAcquiringTask);
    742744
    743745    /* Search for profile node: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r86544 r86569  
    149149          * @param  strProfileName        Brings profile name. */
    150150        virtual void sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName,
    151                                                const QUuid &uMachineId, const bool fRegistered);
     151                                               const QUuid &uId, 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

    r86544 r86569  
    11101110}
    11111111
    1112 void UIChooserModel::sltCloudMachineRegistered(const QString &strProviderName, const QString &strProfileName,
     1112void UIChooserModel::sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName,
    11131113                                               const QUuid &uId, const bool fRegistered)
    11141114{
     
    11181118
    11191119    /* Call to base-class: */
    1120     UIChooserAbstractModel::sltCloudMachineRegistered(strProviderName, strProfileName, uId, fRegistered);
     1120    UIChooserAbstractModel::sltCloudMachineRegistered(strProviderShortName, strProfileName, uId, fRegistered);
    11211121
    11221122    /* Existing VM unregistered? */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h

    r86544 r86569  
    264264        virtual void sltLocalMachineRegistered(const QUuid &uId, const bool fRegistered) /* override */;
    265265        /** Handles cloud machine registering/unregistering for machine with certain @a uId.
    266           * @param  strProviderName  Brings provider short name.
    267           * @param  strProfileName   Brings profile name. */
    268         virtual void sltCloudMachineRegistered(const QString &strProviderName, const QString &strProfileName,
     266          * @param  strProviderShortName  Brings provider short name.
     267          * @param  strProfileName        Brings profile name. */
     268        virtual void sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName,
    269269                                               const QUuid &uId, const bool fRegistered);
    270270        /** Handles event about cloud provider with @a uId being uninstalled. */
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