Changeset 86787 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 2, 2020 6:21:59 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86786 r86787 913 913 /* Reload cloud tree: */ 914 914 reloadCloudTree(); 915 } 916 917 void UIChooserAbstractModel::createReadCloudMachineListTask(const UICloudEntityKey &guiCloudProfileKey, bool fWithRefresh) 918 { 919 /* Create list cloud machines task: */ 920 UITaskCloudListMachines *pTask = new UITaskCloudListMachines(guiCloudProfileKey.m_strProviderShortName, 921 guiCloudProfileKey.m_strProfileName, 922 fWithRefresh); 923 AssertPtrReturnVoid(pTask); 924 uiCommon().threadPoolCloud()->enqueueTask(pTask); 915 925 } 916 926 … … 1116 1126 1117 1127 /* Create list cloud machines task: */ 1118 UITaskCloudListMachines *pTask = new UITaskCloudListMachines(strProviderShortName, 1119 strProfileName, 1120 true /* with refresh? */); 1121 AssertPtrReturnVoid(pTask); 1122 uiCommon().threadPoolCloud()->enqueueTask(pTask); 1128 createReadCloudMachineListTask(guiCloudProfileKey, true /* with refresh? */); 1123 1129 } 1124 1130 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h
r86783 r86787 222 222 /** @} */ 223 223 224 protected: 225 226 /** @name Children stuff. 227 * @{ */ 228 /** Creates and registers read cloud machine list task with @a guiCloudProfileKey. 229 * @param fWithRefresh Brings whether machines should be refreshed as well. */ 230 void createReadCloudMachineListTask(const UICloudEntityKey &guiCloudProfileKey, bool fWithRefresh); 231 /** @} */ 232 224 233 private slots: 225 234 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86786 r86787 945 945 946 946 /* Create list cloud machines task: */ 947 UITaskCloudListMachines *pTask = new UITaskCloudListMachines(guiCloudProfileKey.m_strProviderShortName, 948 guiCloudProfileKey.m_strProfileName, 949 true /* with refresh? */); 950 AssertPtrReturnVoid(pTask); 951 uiCommon().threadPoolCloud()->enqueueTask(pTask); 947 createReadCloudMachineListTask(guiCloudProfileKey, true /* with refresh? */); 952 948 953 949 break; … … 1368 1364 1369 1365 /* Create a task for particular cloud entity key: */ 1370 UITaskCloudListMachines *pTask = new UITaskCloudListMachines(guiCloudProfileKey.m_strProviderShortName, 1371 guiCloudProfileKey.m_strProfileName, 1372 false /* with refresh? */); 1373 AssertPtrReturnVoid(pTask); 1374 uiCommon().threadPoolCloud()->enqueueTask(pTask); 1366 createReadCloudMachineListTask(guiCloudProfileKey, false /* with refresh? */); 1375 1367 } 1376 1368 } … … 1967 1959 1968 1960 /* Create a task for particular cloud entity key: */ 1969 UITaskCloudListMachines *pTask = new UITaskCloudListMachines(guiCloudProfileKey.m_strProviderShortName, 1970 guiCloudProfileKey.m_strProfileName, 1971 false /* with refresh? */); 1972 AssertPtrReturnVoid(pTask); 1973 uiCommon().threadPoolCloud()->enqueueTask(pTask); 1961 createReadCloudMachineListTask(guiCloudProfileKey, false /* with refresh? */); 1974 1962 } 1975 1963 }
Note:
See TracChangeset
for help on using the changeset viewer.