Changeset 86695 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 23, 2020 5:28:55 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.cpp
r86609 r86695 282 282 } 283 283 284 bool UICloudNetworkingStuff::cloudProviderName(const CCloudProvider &comCloudProvider, 285 QString &strResult, 286 QWidget *pParent /* = 0 */) 287 { 288 const QString strName = comCloudProvider.GetName(); 289 if (!comCloudProvider.isOk()) 290 msgCenter().cannotAcquireCloudProviderParameter(comCloudProvider, pParent); 291 else 292 { 293 strResult = strName; 294 return true; 295 } 296 return false; 297 } 298 284 299 QVector<CCloudProfile> UICloudNetworkingStuff::listCloudProfiles(CCloudProvider comCloudProvider, 285 300 QWidget *pParent /* = 0 */) … … 326 341 { 327 342 strResult = strName; 343 return true; 344 } 345 return false; 346 } 347 348 bool UICloudNetworkingStuff::cloudProfileProperties(const CCloudProfile &comCloudProfile, 349 QVector<QString> &keys, 350 QVector<QString> &values, 351 QWidget *pParent /* = 0 */) 352 { 353 QVector<QString> aKeys; 354 QVector<QString> aValues; 355 aValues = comCloudProfile.GetProperties(QString(), aKeys); 356 if (!comCloudProfile.isOk()) 357 msgCenter().cannotAcquireCloudProfileParameter(comCloudProfile, pParent); 358 else 359 { 360 aValues.resize(aKeys.size()); 361 keys = aKeys; 362 values = aValues; 328 363 return true; 329 364 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.h
r86609 r86695 97 97 QString &strResult, 98 98 QWidget *pParent = 0); 99 /** Acquires @a comCloudProvider name as a @a strResult, using @a pParent to show messages according to. */ 100 SHARED_LIBRARY_STUFF bool cloudProviderName(const CCloudProvider &comCloudProvider, 101 QString &strResult, 102 QWidget *pParent = 0); 99 103 100 104 /** Acquires cloud profiles of certain @a comCloudProvider, using @a pParent to show messages according to. */ … … 109 113 QString &strResult, 110 114 QWidget *pParent = 0); 115 /** Acquires @a comCloudProfile properties as a @a keys/values using @a pParent to show messages according to. */ 116 SHARED_LIBRARY_STUFF bool cloudProfileProperties(const CCloudProfile &comCloudProfile, 117 QVector<QString> &keys, 118 QVector<QString> &values, 119 QWidget *pParent = 0); 111 120 112 121 /** Acquires cloud machines of certain @a comCloudClient, using @a pParent to show messages according to. */
Note:
See TracChangeset
for help on using the changeset viewer.