VirtualBox

Changeset 91894 in vbox for trunk


Ignore:
Timestamp:
Oct 20, 2021 1:27:20 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: UIWizardExportApp: Move field setters to public slots zone; This way fields can be assigned by notifications finished.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp

    r91893 r91894  
    5858    setPixmapName(":/wizard_ovf_export_bg.png");
    5959#endif
    60 }
    61 
    62 QStringList UIWizardExportApp::machineNames() const
    63 {
    64     return m_machineNames;
    65 }
    66 
    67 void UIWizardExportApp::setMachineNames(const QStringList &names)
    68 {
    69     m_machineNames = names;
    70 }
    71 
    72 QList<QUuid> UIWizardExportApp::machineIDs() const
    73 {
    74     return m_machineIDs;
    75 }
    76 
    77 void UIWizardExportApp::setMachineIDs(const QList<QUuid> &ids)
    78 {
    79     m_machineIDs = ids;
    80 }
    81 
    82 QString UIWizardExportApp::format() const
    83 {
    84     return m_strFormat;
    85 }
    86 
    87 void UIWizardExportApp::setFormat(const QString &strFormat)
    88 {
    89     m_strFormat = strFormat;
    90 }
    91 
    92 bool UIWizardExportApp::isFormatCloudOne() const
    93 {
    94     return m_fFormatCloudOne;
    95 }
    96 
    97 void UIWizardExportApp::setFormatCloudOne(bool fCloudOne)
    98 {
    99     m_fFormatCloudOne = fCloudOne;
    100 }
    101 
    102 QString UIWizardExportApp::path() const
    103 {
    104     return m_strPath;
    105 }
    106 
    107 void UIWizardExportApp::setPath(const QString &strPath)
    108 {
    109     m_strPath = strPath;
    110 }
    111 
    112 MACAddressExportPolicy UIWizardExportApp::macAddressExportPolicy() const
    113 {
    114     return m_enmMACAddressExportPolicy;
    115 }
    116 
    117 void UIWizardExportApp::setMACAddressExportPolicy(MACAddressExportPolicy enmPolicy)
    118 {
    119     m_enmMACAddressExportPolicy = enmPolicy;
    120 }
    121 
    122 bool UIWizardExportApp::isManifestSelected() const
    123 {
    124     return m_fManifestSelected;
    125 }
    126 
    127 void UIWizardExportApp::setManifestSelected(bool fSelected)
    128 {
    129     m_fManifestSelected = fSelected;
    130 }
    131 
    132 bool UIWizardExportApp::isIncludeISOsSelected() const
    133 {
    134     return m_fIncludeISOsSelected;
    135 }
    136 
    137 void UIWizardExportApp::setIncludeISOsSelected(bool fSelected)
    138 {
    139     m_fIncludeISOsSelected = fSelected;
    140 }
    141 
    142 CAppliance UIWizardExportApp::localAppliance()
    143 {
    144     return m_comLocalAppliance;
    145 }
    146 
    147 void UIWizardExportApp::setLocalAppliance(const CAppliance &comAppliance)
    148 {
    149     m_comLocalAppliance = comAppliance;
    150 }
    151 
    152 QString UIWizardExportApp::profileName() const
    153 {
    154     return m_strProfileName;
    155 }
    156 
    157 void UIWizardExportApp::setProfileName(const QString &strName)
    158 {
    159     m_strProfileName = strName;
    160 }
    161 
    162 CAppliance UIWizardExportApp::cloudAppliance()
    163 {
    164     return m_comCloudAppliance;
    165 }
    166 
    167 void UIWizardExportApp::setCloudAppliance(const CAppliance &comAppliance)
    168 {
    169     m_comCloudAppliance = comAppliance;
    170 }
    171 
    172 CCloudClient UIWizardExportApp::cloudClient()
    173 {
    174     return m_comCloudClient;
    175 }
    176 
    177 void UIWizardExportApp::setCloudClient(const CCloudClient &comClient)
    178 {
    179     m_comCloudClient = comClient;
    180 }
    181 
    182 CVirtualSystemDescription UIWizardExportApp::vsd()
    183 {
    184     return m_comVsd;
    185 }
    186 
    187 void UIWizardExportApp::setVsd(const CVirtualSystemDescription &comDescription)
    188 {
    189     m_comVsd = comDescription;
    190 }
    191 
    192 CVirtualSystemDescriptionForm UIWizardExportApp::vsdExportForm()
    193 {
    194     return m_comVsdExportForm;
    195 }
    196 
    197 void UIWizardExportApp::setVsdExportForm(const CVirtualSystemDescriptionForm &comForm)
    198 {
    199     m_comVsdExportForm = comForm;
    200 }
    201 
    202 CVirtualSystemDescriptionForm UIWizardExportApp::vsdLaunchForm()
    203 {
    204     return m_comVsdLaunchForm;
    205 }
    206 
    207 void UIWizardExportApp::setVsdLaunchForm(const CVirtualSystemDescriptionForm &comForm)
    208 {
    209     m_comVsdLaunchForm = comForm;
    210 }
    211 
    212 CloudExportMode UIWizardExportApp::cloudExportMode() const
    213 {
    214     return m_enmCloudExportMode;
    215 }
    216 
    217 void UIWizardExportApp::setCloudExportMode(const CloudExportMode &enmMode)
    218 {
    219     m_enmCloudExportMode = enmMode;
    22060}
    22161
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.h

    r91893 r91894  
    6969      * @{ */
    7070        /** Returns a list of machine names. */
    71         QStringList machineNames() const;
    72         /** Defines a list of machine @a names. */
    73         void setMachineNames(const QStringList &names);
     71        QStringList machineNames() const { return m_machineNames; }
    7472        /** Returns a list of machine IDs. */
    75         QList<QUuid> machineIDs() const;
    76         /** Defines a list of machine @a ids. */
    77         void setMachineIDs(const QList<QUuid> &ids);
     73        QList<QUuid> machineIDs() const { return m_machineIDs; }
    7874
    7975        /** Returns format. */
    80         QString format() const;
    81         /** Defines @a strFormat. */
    82         void setFormat(const QString &strFormat);
     76        QString format() const { return m_strFormat; }
    8377
    8478        /** Returns whether format is cloud one. */
    85         bool isFormatCloudOne() const;
    86         /** Defines whether format is @a fCloudOne. */
    87         void setFormatCloudOne(bool fCloudOne);
     79        bool isFormatCloudOne() const { return m_fFormatCloudOne; }
    8880    /** @} */
    8981
     
    9183      * @{ */
    9284        /** Returns path. */
    93         QString path() const;
    94         /** Defines @a strPath. */
    95         void setPath(const QString &strPath);
     85        QString path() const { return m_strPath; }
    9686
    9787        /** Returns MAC address export policy. */
    98         MACAddressExportPolicy macAddressExportPolicy() const;
    99         /** Defines MAC address export @a enmPolicy. */
    100         void setMACAddressExportPolicy(MACAddressExportPolicy enmPolicy);
     88        MACAddressExportPolicy macAddressExportPolicy() const { return m_enmMACAddressExportPolicy; }
    10189
    10290        /** Returns whether manifest is selected. */
    103         bool isManifestSelected() const;
    104         /** Defines whether manifest is @a fSelected. */
    105         void setManifestSelected(bool fSelected);
     91        bool isManifestSelected() const { return m_fManifestSelected; }
    10692
    10793        /** Returns whether include ISOs is selected. */
    108         bool isIncludeISOsSelected() const;
    109         /** Defines whether include ISOs is @a fSelected. */
    110         void setIncludeISOsSelected(bool fSelected);
     94        bool isIncludeISOsSelected() const { return m_fIncludeISOsSelected; }
    11195
    11296        /** Returns local appliance object. */
    113         CAppliance localAppliance();
    114         /** Defines local @a comAppliance object. */
    115         void setLocalAppliance(const CAppliance &comAppliance);
     97        CAppliance localAppliance() const { return m_comLocalAppliance; }
    11698    /** @} */
    11799
     
    119101      * @{ */
    120102        /** Returns profile name. */
    121         QString profileName() const;
    122         /** Defines profile @a strName. */
    123         void setProfileName(const QString &strName);
     103        QString profileName() const { return m_strProfileName; }
    124104
    125105        /** Returns cloud appliance object. */
    126         CAppliance cloudAppliance();
    127         /** Defines cloud @a comAppliance object. */
    128         void setCloudAppliance(const CAppliance &comAppliance);
     106        CAppliance cloudAppliance() const { return m_comCloudAppliance; }
    129107
    130108        /** Returns cloud client object. */
    131         CCloudClient cloudClient();
    132         /** Defines cloud @a comClient object. */
    133         void setCloudClient(const CCloudClient &comClient);
     109        CCloudClient cloudClient() const { return m_comCloudClient; }
    134110
    135111        /** Returns virtual system description object. */
    136         CVirtualSystemDescription vsd();
    137         /** Defines virtual system @a comDescription object. */
    138         void setVsd(const CVirtualSystemDescription &comDescription);
     112        CVirtualSystemDescription vsd() const { return m_comVsd; }
    139113
    140114        /** Returns virtual system description export form object. */
    141         CVirtualSystemDescriptionForm vsdExportForm();
    142         /** Defines virtual system description export @a comForm object. */
    143         void setVsdExportForm(const CVirtualSystemDescriptionForm &comForm);
     115        CVirtualSystemDescriptionForm vsdExportForm() const { return m_comVsdExportForm; }
    144116
    145117        /** Returns virtual system description launch form object. */
    146         CVirtualSystemDescriptionForm vsdLaunchForm();
    147         /** Defines virtual system description launch @a comForm object. */
    148         void setVsdLaunchForm(const CVirtualSystemDescriptionForm &comForm);
     118        CVirtualSystemDescriptionForm vsdLaunchForm() const { return m_comVsdLaunchForm; }
    149119
    150120        /** Returns cloud export mode. */
    151         CloudExportMode cloudExportMode() const;
    152         /** Defines cloud export @a enmMode. */
    153         void setCloudExportMode(const CloudExportMode &enmMode);
     121        CloudExportMode cloudExportMode() const { return m_enmCloudExportMode; }
    154122    /** @} */
    155123
     
    174142        /** Creates New Cloud VM. */
    175143        bool createCloudVM();
     144    /** @} */
     145
     146public slots:
     147
     148    /** @name Common fields.
     149      * @{ */
     150        /** Defines a list of machine @a names. */
     151        void setMachineNames(const QStringList &names) { m_machineNames = names; }
     152        /** Defines a list of machine @a ids. */
     153        void setMachineIDs(const QList<QUuid> &ids) { m_machineIDs = ids; }
     154
     155        /** Defines @a strFormat. */
     156        void setFormat(const QString &strFormat) { m_strFormat = strFormat; }
     157
     158        /** Defines whether format is @a fCloudOne. */
     159        void setFormatCloudOne(bool fCloudOne) { m_fFormatCloudOne = fCloudOne; }
     160    /** @} */
     161
     162    /** @name Local export fields.
     163      * @{ */
     164        /** Defines @a strPath. */
     165        void setPath(const QString &strPath) { m_strPath = strPath; }
     166
     167        /** Defines MAC address export @a enmPolicy. */
     168        void setMACAddressExportPolicy(MACAddressExportPolicy enmPolicy) { m_enmMACAddressExportPolicy = enmPolicy; }
     169
     170        /** Defines whether manifest is @a fSelected. */
     171        void setManifestSelected(bool fSelected) { m_fManifestSelected = fSelected; }
     172
     173        /** Defines whether include ISOs is @a fSelected. */
     174        void setIncludeISOsSelected(bool fSelected) { m_fIncludeISOsSelected = fSelected; }
     175
     176        /** Defines local @a comAppliance object. */
     177        void setLocalAppliance(const CAppliance &comAppliance) { m_comLocalAppliance = comAppliance; }
     178    /** @} */
     179
     180    /** @name Cloud export fields.
     181      * @{ */
     182        /** Defines profile @a strName. */
     183        void setProfileName(const QString &strName) { m_strProfileName = strName; }
     184
     185        /** Defines cloud @a comAppliance object. */
     186        void setCloudAppliance(const CAppliance &comAppliance) { m_comCloudAppliance = comAppliance; }
     187
     188        /** Defines cloud @a comClient object. */
     189        void setCloudClient(const CCloudClient &comClient) { m_comCloudClient = comClient; }
     190
     191        /** Defines virtual system @a comDescription object. */
     192        void setVsd(const CVirtualSystemDescription &comDescription) { m_comVsd = comDescription; }
     193
     194        /** Defines virtual system description export @a comForm object. */
     195        void setVsdExportForm(const CVirtualSystemDescriptionForm &comForm) { m_comVsdExportForm = comForm; }
     196
     197        /** Defines virtual system description launch @a comForm object. */
     198        void setVsdLaunchForm(const CVirtualSystemDescriptionForm &comForm) { m_comVsdLaunchForm = comForm; }
     199
     200        /** Defines cloud export @a enmMode. */
     201        void setCloudExportMode(const CloudExportMode &enmMode) { m_enmCloudExportMode = enmMode; }
    176202    /** @} */
    177203
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