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