1 | /* $Id: UICloudNetworkingStuff.h 83255 2020-03-11 10:34:49Z 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 "UICloudMachine.h"
|
---|
26 | #include "UILibraryDefs.h"
|
---|
27 |
|
---|
28 | /* COM includes: */
|
---|
29 | #include "COMEnums.h"
|
---|
30 | #include "CCloudClient.h"
|
---|
31 |
|
---|
32 | /** Cloud networking stuff namespace. */
|
---|
33 | namespace UICloudNetworkingStuff
|
---|
34 | {
|
---|
35 | /** Acquires instance list.
|
---|
36 | * @param comCloudClient Brings cloud client object.
|
---|
37 | * @param strErrorMessage Brings error message container.
|
---|
38 | * @param pWidget Brings parent widget to show messages according to,
|
---|
39 | * if no parent set, progress will be executed in blocking way. */
|
---|
40 | SHARED_LIBRARY_STUFF QList<UICloudMachine> listInstances(const CCloudClient &comCloudClient,
|
---|
41 | QString &strErrorMessage,
|
---|
42 | QWidget *pParent = 0);
|
---|
43 |
|
---|
44 | /** Acquires instance info as a map.
|
---|
45 | * @param comCloudClient Brings cloud client object.
|
---|
46 | * @param strId Brings cloud instance id.
|
---|
47 | * @param strErrorMessage Brings error message container.
|
---|
48 | * @param pWidget Brings parent widget to show messages according to,
|
---|
49 | * if no parent set, progress will be executed in blocking way. */
|
---|
50 | SHARED_LIBRARY_STUFF QMap<KVirtualSystemDescriptionType, QString> getInstanceInfo(const CCloudClient &comCloudClient,
|
---|
51 | const QString &strId,
|
---|
52 | QString &strErrorMessage,
|
---|
53 | QWidget *pParent = 0);
|
---|
54 | /** Acquires instance info of certain @a enmType as a string.
|
---|
55 | * @param comCloudClient Brings cloud client object.
|
---|
56 | * @param strId Brings cloud instance id.
|
---|
57 | * @param strErrorMessage Brings error message container.
|
---|
58 | * @param pWidget Brings parent widget to show messages according to,
|
---|
59 | * if no parent set, progress will be executed in blocking way. */
|
---|
60 | SHARED_LIBRARY_STUFF QString getInstanceInfo(KVirtualSystemDescriptionType enmType,
|
---|
61 | const CCloudClient &comCloudClient,
|
---|
62 | const QString &strId,
|
---|
63 | QString &strErrorMessage,
|
---|
64 | QWidget *pParent = 0);
|
---|
65 |
|
---|
66 | /** Acquires image info as a map.
|
---|
67 | * @param comCloudClient Brings cloud client object.
|
---|
68 | * @param strId Brings cloud image id.
|
---|
69 | * @param strErrorMessage Brings error message container.
|
---|
70 | * @param pWidget Brings parent widget to show messages according to,
|
---|
71 | * if no parent set, progress will be executed in blocking way. */
|
---|
72 | SHARED_LIBRARY_STUFF QMap<QString, QString> getImageInfo(const CCloudClient &comCloudClient,
|
---|
73 | const QString &strId,
|
---|
74 | QString &strErrorMessage,
|
---|
75 | QWidget *pParent = 0);
|
---|
76 |
|
---|
77 | /** Fetches cloud instance OS type from the passed @a info. */
|
---|
78 | SHARED_LIBRARY_STUFF QString fetchOsType(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
|
---|
79 | /** Fetches cloud instance memory size from the passed @a info. */
|
---|
80 | SHARED_LIBRARY_STUFF int fetchMemorySize(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
|
---|
81 | /** Fetches cloud instance CPU count from the passed @a info. */
|
---|
82 | SHARED_LIBRARY_STUFF int fetchCpuCount(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
|
---|
83 | /** Fetches cloud instance shape from the passed @a info. */
|
---|
84 | SHARED_LIBRARY_STUFF QString fetchShape(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
|
---|
85 | /** Fetches cloud instance domain from the passed @a info. */
|
---|
86 | SHARED_LIBRARY_STUFF QString fetchDomain(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
|
---|
87 | /** Fetches cloud instance state from the passed @a info. */
|
---|
88 | SHARED_LIBRARY_STUFF KMachineState fetchMachineState(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
|
---|
89 | /** Fetches cloud instance booting firmware from the passed @a info. */
|
---|
90 | SHARED_LIBRARY_STUFF QString fetchBootingFirmware(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
|
---|
91 | /** Fetches cloud instance image id from the passed @a info. */
|
---|
92 | SHARED_LIBRARY_STUFF QString fetchImageId(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
|
---|
93 | }
|
---|
94 |
|
---|
95 | /* Using across any module who included us: */
|
---|
96 | using namespace UICloudNetworkingStuff;
|
---|
97 |
|
---|
98 | #endif /* !FEQT_INCLUDED_SRC_globals_UICloudNetworkingStuff_h */
|
---|