VirtualBox

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

Last change on this file since 103551 was 98103, checked in by vboxsync, 2 years ago

Copyright year updates by scm.

  • 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 98103 2023-01-17 14:15:46Z 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 "COMEnums.h"
39#include "CCloudClient.h"
40#include "CVirtualSystemDescription.h"
41#include "CVirtualSystemDescriptionForm.h"
42
43/** New Cloud VM wizard. */
44class UIWizardNewCloudVM : public UINativeWizard
45{
46 Q_OBJECT;
47
48public:
49
50 /** Constructs New Cloud VM wizard passing @a pParent & @a enmMode to the base-class.
51 * @param strFullGroupName Brings full group name (/provider/profile) to create VM in. */
52 UIWizardNewCloudVM(QWidget *pParent, const QString &strFullGroupName);
53
54 /** Returns provider short name. */
55 QString providerShortName() const { return m_strProviderShortName; }
56 /** Returns profile name. */
57 QString profileName() const { return m_strProfileName; }
58 /** Returns Cloud Client object. */
59 CCloudClient client() const { return m_comClient; }
60 /** Returns Virtual System Description object. */
61 CVirtualSystemDescription vsd() const { return m_comVSD; }
62 /** Returns Virtual System Description Form object. */
63 CVirtualSystemDescriptionForm vsdForm() const { return m_comVSDForm; }
64
65 /** Creates VSD Form. */
66 void createVSDForm();
67
68 /** Creates New Cloud VM. */
69 bool createCloudVM();
70
71public slots:
72
73 /** Defines @a strProviderShortName. */
74 void setProviderShortName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
75 /** Defines @a strProfileName. */
76 void setProfileName(const QString &strProfileName) { m_strProfileName = strProfileName; }
77 /** Defines Cloud @a comClient object. */
78 void setClient(const CCloudClient &comClient) { m_comClient = comClient; }
79 /** Defines Virtual System @a comVSD object. */
80 void setVSD(const CVirtualSystemDescription &comVSD) { m_comVSD = comVSD; }
81 /** Defines Virtual System Description @a comForm object. */
82 void setVSDForm(const CVirtualSystemDescriptionForm &comForm) { m_comVSDForm = comForm; }
83
84protected:
85
86 /** Populates pages. */
87 virtual void populatePages() /* override final */;
88
89 /** Handles translation event. */
90 virtual void retranslateUi() /* override final */;
91
92private:
93
94 /** Holds the short provider name. */
95 QString m_strProviderShortName;
96 /** Holds the profile name. */
97 QString m_strProfileName;
98 /** Holds the Cloud Client object reference. */
99 CCloudClient m_comClient;
100 /** Holds the Virtual System Description object reference. */
101 CVirtualSystemDescription m_comVSD;
102 /** Holds the Virtual System Description Form object reference. */
103 CVirtualSystemDescriptionForm m_comVSDForm;
104};
105
106/** Safe pointer to new cloud vm wizard. */
107typedef QPointer<UIWizardNewCloudVM> UISafePointerWizardNewCloudVM;
108
109#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