Changeset 78113 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 11, 2019 4:03:18 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129980
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
r78094 r78113 37 37 #include "UIWizardImportAppPageBasic1.h" 38 38 #include "UIWizardImportAppPageBasic2.h" 39 40 /* COM includes: */41 #include "CCloudClient.h"42 39 43 40 … … 268 265 /* Clear list initially: */ 269 266 m_pAccountInstanceList->clear(); 267 /* Clear Cloud Client: */ 268 m_comCloudClient = CCloudClient(); 270 269 271 270 /* If profile chosen: */ 272 271 if (!m_comCloudProfile.isNull()) 273 272 { 274 /* Create Cloud Client: */275 CCloudClientcomCloudClient = m_comCloudProfile.CreateCloudClient();273 /* Acquire Cloud Client: */ 274 m_comCloudClient = m_comCloudProfile.CreateCloudClient(); 276 275 /* Show error message if necessary: */ 277 276 if (!m_comCloudProfile.isOk()) … … 282 281 QVector<QString> vmNames; 283 282 /*const QVector<QString> vmIDs =*/ 284 comCloudClient.ListInstances(KCloudMachineState_Running, vmNames);283 m_comCloudClient.ListInstances(KCloudMachineState_Running, vmNames); 285 284 /* Show error message if necessary: */ 286 if (! comCloudClient.isOk())287 msgCenter().cannotAcquireCloudClientParameter( comCloudClient);285 if (!m_comCloudClient.isOk()) 286 msgCenter().cannotAcquireCloudClientParameter(m_comCloudClient); 288 287 else 289 288 { … … 385 384 { 386 385 return m_comCloudProfile; 386 } 387 388 CCloudClient UIWizardImportAppPage1::client() const 389 { 390 return m_comCloudClient; 387 391 } 388 392 … … 615 619 registerField("isSourceCloudOne", this, "isSourceCloudOne"); 616 620 registerField("profile", this, "profile"); 621 registerField("client", this, "client"); 617 622 } 618 623 … … 709 714 && QFile::exists(m_pFileSelector->path())) 710 715 || ( fCSP 711 && !m_comCloudProfile.isNull()); 716 && !m_comCloudProfile.isNull() 717 && !m_comCloudClient.isNull()); 712 718 } 713 719 … … 753 759 populateAccountProperties(); 754 760 populateAccountInstances(); 761 emit completeChanged(); 755 762 } 756 763 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.h
r78094 r78113 28 28 /* COM includes: */ 29 29 #include "COMEnums.h" 30 #include "CCloudClient.h" 30 31 #include "CCloudProfile.h" 31 32 #include "CCloudProvider.h" … … 97 98 /** Returns Cloud Profile object. */ 98 99 CCloudProfile profile() const; 100 /** Returns Cloud Client object. */ 101 CCloudClient client() const; 99 102 100 103 /** Holds whether default source should be Import from OCI. */ … … 107 110 /** Holds the Cloud Profile object reference. */ 108 111 CCloudProfile m_comCloudProfile; 112 /** Holds the Cloud Client object reference. */ 113 CCloudClient m_comCloudClient; 109 114 110 115 /** Holds the source layout instance. */ … … 144 149 Q_PROPERTY(bool isSourceCloudOne READ isSourceCloudOne); 145 150 Q_PROPERTY(CCloudProfile profile READ profile); 151 Q_PROPERTY(CCloudClient client READ client); 146 152 147 153 public:
Note:
See TracChangeset
for help on using the changeset viewer.