Changeset 86606 in vbox
- Timestamp:
- Oct 16, 2020 1:55:09 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 4 edited
-
UIChooserAbstractModel.cpp (modified) (5 diffs)
-
UIChooserAbstractModel.h (modified) (1 diff)
-
UIChooserModel.cpp (modified) (2 diffs)
-
UIChooserModel.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86605 r86606 691 691 } 692 692 693 void UIChooserAbstractModel::sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName, 694 const CCloudMachine &comMachine, bool fSelect) 693 void UIChooserAbstractModel::sltCloudMachineRegistered(const QString &strProviderShortName, 694 const QString &strProfileName, 695 const CCloudMachine &comMachine, 696 bool fSelect) 695 697 { 696 698 /* Search for profile node: */ … … 698 700 QList<UIChooserNode*> profileNodes; 699 701 invisibleRoot()->searchForNodes(strProfileNodeName, UIChooserItemSearchFlag_CloudProfile | UIChooserItemSearchFlag_ExactId, profileNodes); 700 AssertReturnVoid(!profileNodes.isEmpty());701 UIChooserNode *pProfileNode = profileNodes.first();702 AssertPtrReturnVoid(pProfileNode);702 UIChooserNode *pProfileNode = profileNodes.value(0); 703 if (!pProfileNode) 704 return; 703 705 704 706 /* Add new machine-item: */ … … 712 714 } 713 715 714 void UIChooserAbstractModel::sltCloudMachineRegistrationChanged(const QString &strProviderShortName, const QString &strProfileName, 715 const QUuid &uMachineId, const bool fRegistered) 716 void UIChooserAbstractModel::sltCloudMachineRegistrationChanged(const QString &strProviderShortName, 717 const QString &strProfileName, 718 const QUuid &uMachineId, 719 const bool fRegistered) 716 720 { 717 721 /* Search for profile node: */ … … 719 723 QList<UIChooserNode*> profileNodes; 720 724 invisibleRoot()->searchForNodes(strProfileNodeName, UIChooserItemSearchFlag_CloudProfile | UIChooserItemSearchFlag_ExactId, profileNodes); 721 AssertReturnVoid(!profileNodes.isEmpty());722 UIChooserNode *pProfileNode = profileNodes.first();723 AssertPtrReturnVoid(pProfileNode);725 UIChooserNode *pProfileNode = profileNodes.value(0); 726 if (!pProfileNode) 727 return; 724 728 725 729 /* Existing VM unregistered? */ … … 759 763 if (pTask->type() != UITask::Type_CloudListMachines) 760 764 return; 761 762 /* Cast task to corresponding sub-class: */763 765 UITaskCloudListMachines *pAcquiringTask = qobject_cast<UITaskCloudListMachines*>(pTask); 764 766 AssertPtrReturnVoid(pAcquiringTask); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r86605 r86606 168 168 * @param strProfileName Brings profile name. 169 169 * @param fSelect Brings whether registered machine should be selected. */ 170 virtual void sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName, 171 const CCloudMachine &comMachine, bool fSelect); 170 virtual void sltCloudMachineRegistered(const QString &strProviderShortName, 171 const QString &strProfileName, 172 const CCloudMachine &comMachine, 173 bool fSelect); 172 174 /** Handles cloud machine registering/unregistering for machine with certain @a uMachineId. 173 175 * @param strProviderShortName Brings provider short name. 174 176 * @param strProfileName Brings profile name. */ 175 virtual void sltCloudMachineRegistrationChanged(const QString &strProviderShortName, const QString &strProfileName, 176 const QUuid &uMachineId, const bool fRegistered); 177 virtual void sltCloudMachineRegistrationChanged(const QString &strProviderShortName, 178 const QString &strProfileName, 179 const QUuid &uMachineId, 180 const bool fRegistered); 177 181 178 182 /** Handles list cloud machines task complete signal. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86605 r86606 1154 1154 } 1155 1155 1156 void UIChooserModel::sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName, 1157 const CCloudMachine &comMachine, bool fSelect) 1156 void UIChooserModel::sltCloudMachineRegistered(const QString &strProviderShortName, 1157 const QString &strProfileName, 1158 const CCloudMachine &comMachine, 1159 bool fSelect) 1158 1160 { 1159 1161 /* Call to base-class: */ … … 1174 1176 } 1175 1177 1176 void UIChooserModel::sltCloudMachineRegistrationChanged(const QString &strProviderShortName, const QString &strProfileName, 1177 const QUuid &uMachineId, const bool fRegistered) 1178 void UIChooserModel::sltCloudMachineRegistrationChanged(const QString &strProviderShortName, 1179 const QString &strProfileName, 1180 const QUuid &uMachineId, 1181 const bool fRegistered) 1178 1182 { 1179 1183 /* Existing VM unregistered => make sure no item with passed uMachineId is selected: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h
r86605 r86606 280 280 * @param strProfileName Brings profile name. 281 281 * @param fSelect Brings whether registered machine should be selected. */ 282 virtual void sltCloudMachineRegistered(const QString &strProviderShortName, const QString &strProfileName, 283 const CCloudMachine &comMachine, bool fSelect); 282 virtual void sltCloudMachineRegistered(const QString &strProviderShortName, 283 const QString &strProfileName, 284 const CCloudMachine &comMachine, 285 bool fSelect) /* override */; 284 286 /** Handles cloud machine registering/unregistering for machine with certain @a uMachineId. 285 287 * @param strProviderShortName Brings provider short name. 286 288 * @param strProfileName Brings profile name. */ 287 virtual void sltCloudMachineRegistrationChanged(const QString &strProviderShortName, const QString &strProfileName, 288 const QUuid &uMachineId, const bool fRegistered) /* override */; 289 virtual void sltCloudMachineRegistrationChanged(const QString &strProviderShortName, 290 const QString &strProfileName, 291 const QUuid &uMachineId, 292 const bool fRegistered) /* override */; 289 293 290 294 /** Handles list cloud machines task complete signal. */
Note:
See TracChangeset
for help on using the changeset viewer.

