VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.h@ 84099

Last change on this file since 84099 was 84099, checked in by vboxsync, 5 years ago

FE/Qt: bugref:9653: UICloudNetworkingStuff: Handle progress canceling for few known cases.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 14.1 KB
Line 
1/* $Id: UICloudNetworkingStuff.h 84099 2020-04-30 10:50:00Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UICloudNetworkingStuff namespace declaration.
4 */
5
6/*
7 * Copyright (C) 2020 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef FEQT_INCLUDED_SRC_globals_UICloudNetworkingStuff_h
19#define FEQT_INCLUDED_SRC_globals_UICloudNetworkingStuff_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* GUI includes: */
25#include "UILibraryDefs.h"
26
27/* COM includes: */
28#include "COMEnums.h"
29#include "CCloudClient.h"
30#include "CCloudMachine.h"
31#include "CCloudProfile.h"
32#include "CCloudProvider.h"
33#include "CCloudProviderManager.h"
34#include "CForm.h"
35
36/** Cloud networking stuff namespace. */
37namespace UICloudNetworkingStuff
38{
39 /** Acquires cloud provider manager,
40 * using @a pParent to show messages according to. */
41 SHARED_LIBRARY_STUFF CCloudProviderManager cloudProviderManager(QWidget *pParent = 0);
42 /** Acquires cloud provider manager,
43 * using @a strErrorMessage to store messages to. */
44 SHARED_LIBRARY_STUFF CCloudProviderManager cloudProviderManager(QString &strErrorMessage);
45 /** Acquires cloud provider specified by @a strProviderShortName,
46 * using @a pParent to show messages according to. */
47 SHARED_LIBRARY_STUFF CCloudProvider cloudProviderByShortName(const QString &strProviderShortName,
48 QWidget *pParent = 0);
49 /** Acquires cloud provider specified by @a strProviderShortName,
50 * using @a strErrorMessage to store messages to. */
51 SHARED_LIBRARY_STUFF CCloudProvider cloudProviderByShortName(const QString &strProviderShortName,
52 QString &strErrorMessage);
53 /** Acquires cloud profile specified by @a strProviderShortName and @a strProfileName,
54 * using @a pParent to show messages according to. */
55 SHARED_LIBRARY_STUFF CCloudProfile cloudProfileByName(const QString &strProviderShortName,
56 const QString &strProfileName,
57 QWidget *pParent = 0);
58 /** Acquires cloud profile specified by @a strProviderShortName and @a strProfileName,
59 * using @a strErrorMessage to store messages to. */
60 SHARED_LIBRARY_STUFF CCloudProfile cloudProfileByName(const QString &strProviderShortName,
61 const QString &strProfileName,
62 QString &strErrorMessage);
63 /** Acquires cloud client specified by @a strProviderShortName and @a strProfileName,
64 * using @a pParent to show messages according to. */
65 SHARED_LIBRARY_STUFF CCloudClient cloudClientByName(const QString &strProviderShortName,
66 const QString &strProfileName,
67 QWidget *pParent = 0);
68 /** Acquires cloud client specified by @a strProviderShortName and @a strProfileName,
69 * using @a strErrorMessage to store messages to. */
70 SHARED_LIBRARY_STUFF CCloudClient cloudClientByName(const QString &strProviderShortName,
71 const QString &strProfileName,
72 QString &strErrorMessage);
73 /** Acquires cloud machine specified by @a strProviderShortName, @a strProfileName and @a uMachineId,
74 * using @a pParent to show messages according to. */
75 SHARED_LIBRARY_STUFF CCloudMachine cloudMachineById(const QString &strProviderShortName,
76 const QString &strProfileName,
77 const QUuid &uMachineId,
78 QWidget *pParent = 0);
79 /** Acquires cloud machine specified by @a strProviderShortName, @a strProfileName and @a uMachineId,
80 * using @a strErrorMessage to store messages to. */
81 SHARED_LIBRARY_STUFF CCloudMachine cloudMachineById(const QString &strProviderShortName,
82 const QString &strProfileName,
83 const QUuid &uMachineId,
84 QString &strErrorMessage);
85
86 /** Acquires cloud providers, using @a pParent to show messages according to. */
87 SHARED_LIBRARY_STUFF QVector<CCloudProvider> listCloudProviders(QWidget *pParent = 0);
88 /** Acquires cloud providers, using @a strErrorMessage to store messages to. */
89 SHARED_LIBRARY_STUFF QVector<CCloudProvider> listCloudProviders(QString &strErrorMessage);
90
91 /** Acquires @a comCloudProvider short name as a @a strResult, using @a pParent to show messages according to. */
92 SHARED_LIBRARY_STUFF bool cloudProviderShortName(const CCloudProvider &comCloudProvider,
93 QString &strResult,
94 QWidget *pParent = 0);
95
96 /** Acquires cloud profiles of certain @a comCloudProvider, using @a pParent to show messages according to. */
97 SHARED_LIBRARY_STUFF QVector<CCloudProfile> listCloudProfiles(CCloudProvider comCloudProvider,
98 QWidget *pParent = 0);
99 /** Acquires cloud profiles of certain @a comCloudProvider, using @a strErrorMessage to store messages to. */
100 SHARED_LIBRARY_STUFF QVector<CCloudProfile> listCloudProfiles(CCloudProvider comCloudProvider,
101 QString &strErrorMessage);
102
103 /** Acquires @a comCloudProfile name as a @a strResult, using @a pParent to show messages according to. */
104 SHARED_LIBRARY_STUFF bool cloudProfileName(const CCloudProfile &comCloudProfile,
105 QString &strResult,
106 QWidget *pParent = 0);
107
108 /** Acquires cloud machines of certain @a comCloudClient, using @a pParent to show messages according to. */
109 SHARED_LIBRARY_STUFF QVector<CCloudMachine> listCloudMachines(CCloudClient comCloudClient,
110 QWidget *pParent = 0);
111 /** Acquires cloud machines of certain @a comCloudClient, using @a strErrorMessage to store messages to. */
112 SHARED_LIBRARY_STUFF QVector<CCloudMachine> listCloudMachines(CCloudClient comCloudClient,
113 QString &strErrorMessage);
114
115 /** Acquires @a comCloudMachine ID as a @a uResult, using @a pParent to show messages according to. */
116 SHARED_LIBRARY_STUFF bool cloudMachineId(const CCloudMachine &comCloudMachine,
117 QUuid &uResult,
118 QWidget *pParent = 0);
119 /** Acquires @a comCloudMachine accessible state as a @a fResult, using @a pParent to show messages according to. */
120 SHARED_LIBRARY_STUFF bool cloudMachineAccessible(const CCloudMachine &comCloudMachine,
121 bool &fResult,
122 QWidget *pParent = 0);
123 /** Acquires @a comCloudMachine accessible error as a @a comResult, using @a pParent to show messages according to. */
124 SHARED_LIBRARY_STUFF bool cloudMachineAccessError(const CCloudMachine &comCloudMachine,
125 CVirtualBoxErrorInfo &comResult,
126 QWidget *pParent = 0);
127 /** Acquires @a comCloudMachine name as a @a strResult, using @a pParent to show messages according to. */
128 SHARED_LIBRARY_STUFF bool cloudMachineName(const CCloudMachine &comCloudMachine,
129 QString &strResult,
130 QWidget *pParent = 0);
131 /** Acquires @a comCloudMachine OS type ID as a @a strResult, using @a pParent to show messages according to. */
132 SHARED_LIBRARY_STUFF bool cloudMachineOSTypeId(const CCloudMachine &comCloudMachine,
133 QString &strResult,
134 QWidget *pParent = 0);
135 /** Acquires @a comCloudMachine state as a @a enmResult, using @a pParent to show messages according to. */
136 SHARED_LIBRARY_STUFF bool cloudMachineState(const CCloudMachine &comCloudMachine,
137 KMachineState &enmResult,
138 QWidget *pParent = 0);
139
140 /** Refreshes @a comCloudMachine information, using @a pParent to show messages according to.
141 * @note Be aware, this is a blocking function, corresponding progress dialog will be executed. */
142 SHARED_LIBRARY_STUFF bool refreshCloudMachineInfo(CCloudMachine comCloudMachine,
143 QWidget *pParent = 0);
144 /** Refreshes @a comCloudMachine information, using @a pParent to show messages according to.
145 * @note Be aware, this is a blocking function, it will hang for a time of progress being executed. */
146 SHARED_LIBRARY_STUFF bool refreshCloudMachineInfo(CCloudMachine comCloudMachine,
147 QString &strErrorMessage);
148 /** Acquires @a comCloudMachine settings form as a @a comResult, using @a pParent to show messages according to.
149 * @note Be aware, this is a blocking function, corresponding progress dialog will be executed. */
150 SHARED_LIBRARY_STUFF bool cloudMachineSettingsForm(CCloudMachine comCloudMachine,
151 CForm &comResult,
152 QWidget *pParent = 0);
153 /** Acquires @a comCloudMachine settings form as a @a comResult, using @a strErrorMessage to store messages to.
154 * @note Be aware, this is a blocking function, it will hang for a time of progress being executed. */
155 SHARED_LIBRARY_STUFF bool cloudMachineSettingsForm(CCloudMachine comCloudMachine,
156 CForm &comResult,
157 QString &strErrorMessage);
158
159 /** Applies @a comCloudMachine @a comForm settings, using @a pParent to show messages according to.
160 * @note Be aware, this is a blocking function, corresponding progress dialog will be executed. */
161 SHARED_LIBRARY_STUFF bool applyCloudMachineSettingsForm(CCloudMachine comCloudMachine,
162 CForm comForm,
163 QWidget *pParent = 0);
164
165 /** Acquires instance map.
166 * @param comCloudClient Brings cloud client object.
167 * @param strErrorMessage Brings error message container.
168 * @param pWidget Brings parent widget to show messages according to,
169 * if no parent set, progress will be executed in blocking way. */
170 SHARED_LIBRARY_STUFF QMap<QString, QString> listInstances(const CCloudClient &comCloudClient,
171 QString &strErrorMessage,
172 QWidget *pParent = 0);
173 /** Acquires instance info as a map.
174 * @param comCloudClient Brings cloud client object.
175 * @param strId Brings cloud instance id.
176 * @param strErrorMessage Brings error message container.
177 * @param pWidget Brings parent widget to show messages according to,
178 * if no parent set, progress will be executed in blocking way. */
179 SHARED_LIBRARY_STUFF QMap<KVirtualSystemDescriptionType, QString> getInstanceInfo(const CCloudClient &comCloudClient,
180 const QString &strId,
181 QString &strErrorMessage,
182 QWidget *pParent = 0);
183 /** Acquires instance info of certain @a enmType as a string.
184 * @param comCloudClient Brings cloud client object.
185 * @param strId Brings cloud instance id.
186 * @param strErrorMessage Brings error message container.
187 * @param pWidget Brings parent widget to show messages according to,
188 * if no parent set, progress will be executed in blocking way. */
189 SHARED_LIBRARY_STUFF QString getInstanceInfo(KVirtualSystemDescriptionType enmType,
190 const CCloudClient &comCloudClient,
191 const QString &strId,
192 QString &strErrorMessage,
193 QWidget *pParent = 0);
194 /** Acquires image info as a map.
195 * @param comCloudClient Brings cloud client object.
196 * @param strId Brings cloud image id.
197 * @param strErrorMessage Brings error message container.
198 * @param pWidget Brings parent widget to show messages according to,
199 * if no parent set, progress will be executed in blocking way. */
200 SHARED_LIBRARY_STUFF QMap<QString, QString> getImageInfo(const CCloudClient &comCloudClient,
201 const QString &strId,
202 QString &strErrorMessage,
203 QWidget *pParent = 0);
204}
205
206/* Using across any module who included us: */
207using namespace UICloudNetworkingStuff;
208
209#endif /* !FEQT_INCLUDED_SRC_globals_UICloudNetworkingStuff_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