Changeset 78850 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 29, 2019 1:38:42 PM (6 years ago)
- 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
r78849 r78850 39 39 40 40 /* COM includes: */ 41 #include "CAppliance.h"42 41 #include "CStringArray.h" 43 42 … … 329 328 void UIWizardImportAppPage1::populateFormProperties() 330 329 { 330 /* Clear appliance: */ 331 m_comAppliance = CAppliance(); 331 332 /* Clear form properties: */ 332 333 m_comVSDForm = CVirtualSystemDescriptionForm(); … … 348 349 } 349 350 351 /* Remember appliance: */ 352 m_comAppliance = comAppliance; 353 350 354 /* Read cloud instance info: */ 351 CProgress comReadProgress = comAppliance.Read(QString("OCI://%1/%2").arg(profileName(), machineId()));352 if (! comAppliance.isOk())353 { 354 msgCenter().cannotImportAppliance( comAppliance);355 CProgress comReadProgress = m_comAppliance.Read(QString("OCI://%1/%2").arg(profileName(), machineId())); 356 if (!m_comAppliance.isOk()) 357 { 358 msgCenter().cannotImportAppliance(m_comAppliance); 355 359 break; 356 360 } … … 361 365 if (!comReadProgress.isOk() || comReadProgress.GetResultCode() != 0) 362 366 { 363 msgCenter().cannotImportAppliance(comReadProgress, comAppliance.GetPath());367 msgCenter().cannotImportAppliance(comReadProgress, m_comAppliance.GetPath()); 364 368 break; 365 369 } 366 370 367 371 /* Interpret cloud instance info: */ 368 comAppliance.Interpret();369 if (! comAppliance.isOk())370 { 371 msgCenter().cannotImportAppliance( comAppliance);372 m_comAppliance.Interpret(); 373 if (!m_comAppliance.isOk()) 374 { 375 msgCenter().cannotImportAppliance(m_comAppliance); 372 376 break; 373 377 } 374 378 375 379 /* Create virtual system description: */ 376 comAppliance.CreateVirtualSystemDescriptions(1);377 if (! comAppliance.isOk())378 { 379 msgCenter().cannotCreateVirtualSystemDescription( comAppliance);380 m_comAppliance.CreateVirtualSystemDescriptions(1); 381 if (!m_comAppliance.isOk()) 382 { 383 msgCenter().cannotCreateVirtualSystemDescription(m_comAppliance); 380 384 break; 381 385 } 382 386 383 387 /* Acquire virtual system description: */ 384 QVector<CVirtualSystemDescription> descriptions = comAppliance.GetVirtualSystemDescriptions();385 if (! comAppliance.isOk())386 { 387 msgCenter().cannotAcquireVirtualSystemDescription( comAppliance);388 QVector<CVirtualSystemDescription> descriptions = m_comAppliance.GetVirtualSystemDescriptions(); 389 if (!m_comAppliance.isOk()) 390 { 391 msgCenter().cannotAcquireVirtualSystemDescription(m_comAppliance); 388 392 break; 389 393 } … … 522 526 { 523 527 return m_comCloudProfile; 528 } 529 530 CAppliance UIWizardImportAppPage1::appliance() const 531 { 532 return m_comAppliance; 524 533 } 525 534 … … 772 781 registerField("isSourceCloudOne", this, "isSourceCloudOne"); 773 782 registerField("profile", this, "profile"); 783 registerField("appliance", this, "appliance"); 774 784 registerField("vsdForm", this, "vsdForm"); 775 785 registerField("machineId", this, "machineId"); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.h
r78273 r78850 28 28 /* COM includes: */ 29 29 #include "COMEnums.h" 30 #include "CAppliance.h" 30 31 #include "CCloudClient.h" 31 32 #include "CCloudProfile.h" … … 103 104 /** Returns Cloud Profile object. */ 104 105 CCloudProfile profile() const; 106 /** Returns Appliance object. */ 107 CAppliance appliance() const; 105 108 /** Returns Virtual System Description Form object. */ 106 109 CVirtualSystemDescriptionForm vsdForm() const; … … 117 120 /** Holds the Cloud Client object reference. */ 118 121 CCloudClient m_comCloudClient; 122 /** Holds the Appliance object reference. */ 123 CAppliance m_comAppliance; 119 124 /** Holds the Virtual System Description Form object reference. */ 120 125 CVirtualSystemDescriptionForm m_comVSDForm; … … 160 165 Q_PROPERTY(bool isSourceCloudOne READ isSourceCloudOne); 161 166 Q_PROPERTY(CCloudProfile profile READ profile); 167 Q_PROPERTY(CAppliance appliance READ appliance); 162 168 Q_PROPERTY(CVirtualSystemDescriptionForm vsdForm READ vsdForm); 163 169 Q_PROPERTY(QString machineId READ machineId);
Note:
See TracChangeset
for help on using the changeset viewer.