VirtualBox

Changeset 84162 in vbox


Ignore:
Timestamp:
May 6, 2020 2:09:02 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137765
Message:

FE/Qt: bugref:9653: New Cloud VM wizard: Use new CCloudClient::CreateCloudMachine API to make sure newly added cloud VM being added to VirtualBox Manager VM list instantly.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVM.cpp

    r82968 r84162  
    2020
    2121/* GUI includes: */
     22#include "UICommon.h"
    2223#include "UIMessageCenter.h"
    2324#include "UIWizardNewCloudVM.h"
     
    2728
    2829/* COM includes: */
     30#include "CCloudMachine.h"
    2931#include "CProgress.h"
    3032
     
    140142
    141143        /* Initiate cloud VM creation procedure: */
    142         CProgress comProgress = comClient.LaunchVM(comDescription);
     144        CCloudMachine comMachine;
     145        CProgress comProgress = comClient.CreateCloudMachine(comDescription, comMachine);
    143146        if (!comClient.isOk())
    144147        {
     
    157160            break;
    158161        }
     162
     163        /* Check whether VM really added: */
     164        if (comMachine.isNotNull())
     165            uiCommon().notifyCloudMachineRegistered(field("destination").toString(),
     166                                                    field("profileName").toString(),
     167                                                    comMachine.GetId(),
     168                                                    true /* registered */);
    159169
    160170        /* Finally, success: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp

    r82968 r84162  
    676676    connect(m_pAccountImageList, &QListWidget::currentRowChanged,
    677677            this, &UIWizardNewCloudVMPageBasic1::completeChanged);
     678
     679    /* Register fields: */
     680    registerField("destination", this, "destination");
     681    registerField("profileName", this, "profileName");
    678682}
    679683
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.h

    r82968 r84162  
    147147{
    148148    Q_OBJECT;
     149    Q_PROPERTY(QString destination READ destination);
     150    Q_PROPERTY(QString profileName READ profileName);
    149151
    150152public:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r82968 r84162  
    185185    connect(m_pAccountImageList, &QListWidget::currentRowChanged,
    186186            this, &UIWizardNewCloudVMPageExpert::sltHandleInstanceListChange);
     187
     188    /* Register fields: */
     189    registerField("destination", this, "destination");
     190    registerField("profileName", this, "profileName");
    187191}
    188192
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h

    r82968 r84162  
    3535{
    3636    Q_OBJECT;
     37    Q_PROPERTY(QString destination READ destination);
     38    Q_PROPERTY(QString profileName READ profileName);
    3739
    3840public:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette