VirtualBox

Ignore:
Timestamp:
Jul 2, 2021 11:34:16 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145476
Message:

FE/Qt: bugref:9996: Moving Add Cloud VM wizard to new UINativeWizard API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVM.h

    r86345 r89999  
    55
    66/*
    7  * Copyright (C) 2009-2020 Oracle Corporation
     7 * Copyright (C) 2009-2021 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2323
    2424/* GUI includes: */
    25 #include "UIWizard.h"
     25#include "UINativeWizard.h"
    2626
    2727/* COM includes: */
    2828#include "COMEnums.h"
    2929#include "CCloudClient.h"
    30 #include "CCloudMachine.h"
    3130
    3231/** Add Cloud VM wizard. */
    33 class UIWizardAddCloudVM : public UIWizard
     32class UIWizardAddCloudVM : public UINativeWizard
    3433{
    3534    Q_OBJECT;
    3635
    3736public:
    38 
    39     /** Basic page IDs. */
    40     enum
    41     {
    42         Page1
    43     };
    44 
    45     /** Expert page IDs. */
    46     enum
    47     {
    48         PageExpert
    49     };
    5037
    5138    /** Constructs Add Cloud VM wizard passing @a pParent & @a enmMode to the base-class.
     
    5542                       WizardMode enmMode = WizardMode_Auto);
    5643
    57     /** Prepares all. */
    58     virtual void prepare() /* override */;
    59 
    6044    /** Returns full group name. */
    6145    QString fullGroupName() const { return m_strFullGroupName; }
     46
     47    /** Defines @a strShortProviderName. */
     48    void setShortProviderName(const QString &strShortProviderName) { m_strShortProviderName = strShortProviderName; }
     49    /** Returns short provider name. */
     50    QString shortProviderName() const { return m_strShortProviderName; }
     51
     52    /** Defines @a strProfileName. */
     53    void setProfileName(const QString &strProfileName) { m_strProfileName = strProfileName; }
     54    /** Returns profile name. */
     55    QString profileName() const { return m_strProfileName; }
     56
     57    /** Defines @a instanceIds. */
     58    void setInstanceIds(const QStringList &instanceIds) { m_instanceIds = instanceIds; }
     59    /** Returns instance IDs. */
     60    QStringList instanceIds() const { return m_instanceIds; }
    6261
    6362    /** Defines Cloud @a comClient object wrapper. */
     
    7170protected:
    7271
     72    /** Populates pages. */
     73    virtual void populatePages() /* override final */;
     74
    7375    /** Handles translation event. */
    74     virtual void retranslateUi() /* override */;
     76    virtual void retranslateUi() /* override final */;
    7577
    7678private:
    7779
    7880    /** Holds the full group name (/provider/profile) to add VM to. */
    79     QString  m_strFullGroupName;
    80 
     81    QString       m_strFullGroupName;
     82    /** Holds the short provider name. */
     83    QString       m_strShortProviderName;
     84    /** Holds the profile name. */
     85    QString       m_strProfileName;
     86    /** Holds the instance ids. */
     87    QStringList   m_instanceIds;
    8188    /** Holds the Cloud Client object wrapper. */
    8289    CCloudClient  m_comClient;
Note: See TracChangeset for help on using the changeset viewer.

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