VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVM.h@ 104158

Last change on this file since 104158 was 103982, checked in by vboxsync, 10 months ago

FE/Qt: bugref:10624. Replacing override and final keywords with RT_OVERRIDE and RT_FINAL defines.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1/* $Id: UIWizardNewCloudVM.h 103982 2024-03-21 11:43:53Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardNewCloudVM class declaration.
4 */
5
6/*
7 * Copyright (C) 2009-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVM_h
29#define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVM_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* GUI includes: */
35#include "UINativeWizard.h"
36
37/* COM includes: */
38#include "CCloudClient.h"
39#include "CVirtualSystemDescription.h"
40#include "CVirtualSystemDescriptionForm.h"
41
42/** New Cloud VM wizard. */
43class UIWizardNewCloudVM : public UINativeWizard
44{
45 Q_OBJECT;
46
47public:
48
49 /** Constructs New Cloud VM wizard passing @a pParent & @a enmMode to the base-class.
50 * @param strFullGroupName Brings full group name (/provider/profile) to create VM in. */
51 UIWizardNewCloudVM(QWidget *pParent, const QString &strFullGroupName);
52
53 /** Returns provider short name. */
54 QString providerShortName() const { return m_strProviderShortName; }
55 /** Returns profile name. */
56 QString profileName() const { return m_strProfileName; }
57 /** Returns Cloud Client object. */
58 CCloudClient client() const { return m_comClient; }
59 /** Returns Virtual System Description object. */
60 CVirtualSystemDescription vsd() const { return m_comVSD; }
61 /** Returns Virtual System Description Form object. */
62 CVirtualSystemDescriptionForm vsdForm() const { return m_comVSDForm; }
63
64 /** Creates VSD Form. */
65 void createVSDForm();
66
67 /** Creates New Cloud VM. */
68 bool createCloudVM();
69
70public slots:
71
72 /** Defines @a strProviderShortName. */
73 void setProviderShortName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
74 /** Defines @a strProfileName. */
75 void setProfileName(const QString &strProfileName) { m_strProfileName = strProfileName; }
76 /** Defines Cloud @a comClient object. */
77 void setClient(const CCloudClient &comClient) { m_comClient = comClient; }
78 /** Defines Virtual System @a comVSD object. */
79 void setVSD(const CVirtualSystemDescription &comVSD) { m_comVSD = comVSD; }
80 /** Defines Virtual System Description @a comForm object. */
81 void setVSDForm(const CVirtualSystemDescriptionForm &comForm) { m_comVSDForm = comForm; }
82
83protected:
84
85 /** Populates pages. */
86 virtual void populatePages() RT_OVERRIDE RT_FINAL;
87
88private slots:
89
90 /** Handles translation event. */
91 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
92
93private:
94
95 /** Holds the short provider name. */
96 QString m_strProviderShortName;
97 /** Holds the profile name. */
98 QString m_strProfileName;
99 /** Holds the Cloud Client object reference. */
100 CCloudClient m_comClient;
101 /** Holds the Virtual System Description object reference. */
102 CVirtualSystemDescription m_comVSD;
103 /** Holds the Virtual System Description Form object reference. */
104 CVirtualSystemDescriptionForm m_comVSDForm;
105};
106
107/** Safe pointer to new cloud vm wizard. */
108typedef QPointer<UIWizardNewCloudVM> UISafePointerWizardNewCloudVM;
109
110#endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVM_h */
Note: See TracBrowser for help on using the repository browser.

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