- Timestamp:
- Nov 2, 2021 9:23:38 AM (3 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
r92171 r92172 471 471 } 472 472 473 bool UICloudNetworkingStuff::cloudMachineAccessible(const CCloudMachine &comCloudMachine,474 bool &fResult,475 QWidget *pParent /* = 0 */)476 {477 const bool fAccessible = comCloudMachine.GetAccessible();478 if (!comCloudMachine.isOk())479 msgCenter().cannotAcquireCloudMachineParameter(comCloudMachine, pParent);480 else481 {482 fResult = fAccessible;483 return true;484 }485 return false;486 }487 488 bool UICloudNetworkingStuff::cloudMachineAccessError(const CCloudMachine &comCloudMachine,489 CVirtualBoxErrorInfo &comResult,490 QWidget *pParent /* = 0 */)491 {492 const CVirtualBoxErrorInfo comAccessError = comCloudMachine.GetAccessError();493 if (!comCloudMachine.isOk())494 msgCenter().cannotAcquireCloudMachineParameter(comCloudMachine, pParent);495 else496 {497 comResult = comAccessError;498 return true;499 }500 return false;501 }502 503 473 bool UICloudNetworkingStuff::cloudMachineName(const CCloudMachine &comCloudMachine, 504 474 QString &strResult, … … 511 481 { 512 482 strResult = strName; 513 return true;514 }515 return false;516 }517 518 bool UICloudNetworkingStuff::cloudMachineOSTypeId(const CCloudMachine &comCloudMachine,519 QString &strResult,520 QWidget *pParent /* = 0 */)521 {522 const QString strOSTypeId = comCloudMachine.GetOSTypeId();523 if (!comCloudMachine.isOk())524 msgCenter().cannotAcquireCloudMachineParameter(comCloudMachine, pParent);525 else526 {527 strResult = strOSTypeId;528 return true;529 }530 return false;531 }532 533 bool UICloudNetworkingStuff::cloudMachineState(const CCloudMachine &comCloudMachine,534 KCloudMachineState &enmResult,535 QWidget *pParent /* = 0 */)536 {537 const KCloudMachineState enmState = comCloudMachine.GetState();538 if (!comCloudMachine.isOk())539 msgCenter().cannotAcquireCloudMachineParameter(comCloudMachine, pParent);540 else541 {542 enmResult = enmState;543 483 return true; 544 484 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.h
r92171 r92172 146 146 QUuid &uResult, 147 147 QWidget *pParent = 0); 148 /** Acquires @a comCloudMachine accessible state as a @a fResult, using @a pParent to show messages according to. */149 SHARED_LIBRARY_STUFF bool cloudMachineAccessible(const CCloudMachine &comCloudMachine,150 bool &fResult,151 QWidget *pParent = 0);152 /** Acquires @a comCloudMachine accessible error as a @a comResult, using @a pParent to show messages according to. */153 SHARED_LIBRARY_STUFF bool cloudMachineAccessError(const CCloudMachine &comCloudMachine,154 CVirtualBoxErrorInfo &comResult,155 QWidget *pParent = 0);156 148 /** Acquires @a comCloudMachine name as a @a strResult, using @a pParent to show messages according to. */ 157 149 SHARED_LIBRARY_STUFF bool cloudMachineName(const CCloudMachine &comCloudMachine, 158 150 QString &strResult, 159 151 QWidget *pParent = 0); 160 /** Acquires @a comCloudMachine OS type ID as a @a strResult, using @a pParent to show messages according to. */161 SHARED_LIBRARY_STUFF bool cloudMachineOSTypeId(const CCloudMachine &comCloudMachine,162 QString &strResult,163 QWidget *pParent = 0);164 /** Acquires @a comCloudMachine state as a @a enmResult, using @a pParent to show messages according to. */165 SHARED_LIBRARY_STUFF bool cloudMachineState(const CCloudMachine &comCloudMachine,166 KCloudMachineState &enmResult,167 QWidget *pParent = 0);168 152 /** Acquires @a comCloudMachine console connection fingerprint as a @a strResult, 169 153 * using @a pParent to show messages according to. */
Note:
See TracChangeset
for help on using the changeset viewer.