Changeset 86569 in vbox for trunk/src/VBox
- Timestamp:
- Oct 14, 2020 11:09:31 AM (4 years ago)
- 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 637 637 638 638 void UIChooserAbstractModel::sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName, 639 const QUuid &u MachineId, const bool fRegistered)639 const QUuid &uId, const bool fRegistered) 640 640 { 641 641 /* Search for profile node: */ … … 651 651 { 652 652 /* Remove machine-items with passed id: */ 653 pProfileNode->removeAllNodes(u MachineId);653 pProfileNode->removeAllNodes(uId); 654 654 655 655 /* If there are no items left: */ … … 666 666 { 667 667 /* Add new machine-item: */ 668 const CCloudMachine comMachine = cloudMachineById(strProviderShortName, strProfileName, u MachineId);668 const CCloudMachine comMachine = cloudMachineById(strProviderShortName, strProfileName, uId); 669 669 addCloudMachineIntoTheTree(strProfileNodeName, comMachine, true /* make it visible */); 670 670 … … 735 735 { 736 736 /* Skip unrelated tasks: */ 737 if (!pTask || pTask->type() != UITask::Type_CloudListMachines) 737 AssertPtrReturnVoid(pTask); 738 if (pTask->type() != UITask::Type_CloudListMachines) 738 739 return; 739 740 740 741 /* Cast task to corresponding sub-class: */ 741 UITaskCloudListMachines *pAcquiringTask = static_cast<UITaskCloudListMachines*>(pTask); 742 UITaskCloudListMachines *pAcquiringTask = qobject_cast<UITaskCloudListMachines*>(pTask); 743 AssertPtrReturnVoid(pAcquiringTask); 742 744 743 745 /* Search for profile node: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r86544 r86569 149 149 * @param strProfileName Brings profile name. */ 150 150 virtual void sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName, 151 const QUuid &u MachineId, const bool fRegistered);151 const QUuid &uId, const bool fRegistered); 152 152 /** Handles session @a enmState change for machine with certain @a uMachineId. */ 153 153 virtual void sltSessionStateChanged(const QUuid &uMachineId, const KSessionState enmState); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86544 r86569 1110 1110 } 1111 1111 1112 void UIChooserModel::sltCloudMachineRegistered(const QString &strProvider Name, const QString &strProfileName,1112 void UIChooserModel::sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName, 1113 1113 const QUuid &uId, const bool fRegistered) 1114 1114 { … … 1118 1118 1119 1119 /* Call to base-class: */ 1120 UIChooserAbstractModel::sltCloudMachineRegistered(strProvider Name, strProfileName, uId, fRegistered);1120 UIChooserAbstractModel::sltCloudMachineRegistered(strProviderShortName, strProfileName, uId, fRegistered); 1121 1121 1122 1122 /* Existing VM unregistered? */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r86544 r86569 264 264 virtual void sltLocalMachineRegistered(const QUuid &uId, const bool fRegistered) /* override */; 265 265 /** Handles cloud machine registering/unregistering for machine with certain @a uId. 266 * @param strProvider Name Brings provider short name.267 * @param strProfileName Brings profile name. */268 virtual void sltCloudMachineRegistered(const QString &strProvider Name, 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, 269 269 const QUuid &uId, const bool fRegistered); 270 270 /** Handles event about cloud provider with @a uId being uninstalled. */
Note:
See TracChangeset
for help on using the changeset viewer.