1 | /* $Id: UIWizardAddCloudVM.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - UIWizardAddCloudVM 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_addcloudvm_UIWizardAddCloudVM_h
|
---|
29 | #define FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVM_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 |
|
---|
41 | /** Add Cloud VM wizard. */
|
---|
42 | class UIWizardAddCloudVM : public UINativeWizard
|
---|
43 | {
|
---|
44 | Q_OBJECT;
|
---|
45 |
|
---|
46 | public:
|
---|
47 |
|
---|
48 | /** Constructs Add Cloud VM wizard passing @a pParent to the base-class.
|
---|
49 | * @param strFullGroupName Brings full group name (/provider/profile) to add VM to. */
|
---|
50 | UIWizardAddCloudVM(QWidget *pParent, const QString &strFullGroupName = QString());
|
---|
51 |
|
---|
52 | /** Defines @a strProviderShortName. */
|
---|
53 | void setProviderShortName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
|
---|
54 | /** Returns provider short name. */
|
---|
55 | QString providerShortName() const { return m_strProviderShortName; }
|
---|
56 |
|
---|
57 | /** Defines @a strProfileName. */
|
---|
58 | void setProfileName(const QString &strProfileName) { m_strProfileName = strProfileName; }
|
---|
59 | /** Returns profile name. */
|
---|
60 | QString profileName() const { return m_strProfileName; }
|
---|
61 |
|
---|
62 | /** Defines @a instanceIds. */
|
---|
63 | void setInstanceIds(const QStringList &instanceIds) { m_instanceIds = instanceIds; }
|
---|
64 | /** Returns instance IDs. */
|
---|
65 | QStringList instanceIds() const { return m_instanceIds; }
|
---|
66 |
|
---|
67 | /** Defines Cloud @a comClient object wrapper. */
|
---|
68 | void setClient(const CCloudClient &comClient) { m_comClient = comClient; }
|
---|
69 | /** Returns Cloud Client object wrapper. */
|
---|
70 | CCloudClient client() const { return m_comClient; }
|
---|
71 |
|
---|
72 | /** Adds cloud VMs. */
|
---|
73 | bool addCloudVMs();
|
---|
74 |
|
---|
75 | protected:
|
---|
76 |
|
---|
77 | /** Populates pages. */
|
---|
78 | virtual void populatePages() /* override final */;
|
---|
79 |
|
---|
80 | /** Handles translation event. */
|
---|
81 | virtual void retranslateUi() /* override final */;
|
---|
82 |
|
---|
83 | private:
|
---|
84 |
|
---|
85 | /** Holds the short provider name. */
|
---|
86 | QString m_strProviderShortName;
|
---|
87 | /** Holds the profile name. */
|
---|
88 | QString m_strProfileName;
|
---|
89 | /** Holds the instance ids. */
|
---|
90 | QStringList m_instanceIds;
|
---|
91 | /** Holds the Cloud Client object wrapper. */
|
---|
92 | CCloudClient m_comClient;
|
---|
93 | };
|
---|
94 |
|
---|
95 | /** Safe pointer to add cloud vm wizard. */
|
---|
96 | typedef QPointer<UIWizardAddCloudVM> UISafePointerWizardAddCloudVM;
|
---|
97 |
|
---|
98 | #endif /* !FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVM_h */
|
---|