VirtualBox

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

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

FE/Qt: bugref:9653: Extend UICloudMachine and UICloudNetworkingStuff to generate actual General and System details.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 KB
Line 
1/* $Id: UICloudNetworkingStuff.h 83160 2020-02-26 12:40:06Z 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. */
33namespace UICloudNetworkingStuff
34{
35 /** Acquires instance list.
36 * @param comCloudClient Brings cloud client object.
37 * @param pWidget Brings parent widget to show messages according to,
38 * if no parent set, progress will be executed in blocking way. */
39 SHARED_LIBRARY_STUFF QList<UICloudMachine> listInstances(const CCloudClient &comCloudClient,
40 QWidget *pParent = 0);
41
42 /** Acquires instance info as a map.
43 * @param comCloudClient Brings cloud client object.
44 * @param strId Brings cloud VM id.
45 * @param pWidget Brings parent widget to show messages according to,
46 * if no parent set, progress will be executed in blocking way. */
47 SHARED_LIBRARY_STUFF QMap<KVirtualSystemDescriptionType, QString> getInstanceInfo(const CCloudClient &comCloudClient,
48 const QString &strId,
49 QWidget *pParent = 0);
50 /** Acquires instance info of certain @a enmType as a string.
51 * @param comCloudClient Brings cloud client object.
52 * @param strId Brings cloud VM id.
53 * @param pWidget Brings parent widget to show messages according to,
54 * if no parent set, progress will be executed in blocking way. */
55 SHARED_LIBRARY_STUFF QString getInstanceInfo(KVirtualSystemDescriptionType enmType,
56 const CCloudClient &comCloudClient,
57 const QString &strId,
58 QWidget *pParent = 0);
59
60 /** Fetches cloud VM OS type from the passed @a info. */
61 SHARED_LIBRARY_STUFF QString fetchOsType(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
62 /** Fetches cloud VM memory size from the passed @a info. */
63 SHARED_LIBRARY_STUFF int fetchMemorySize(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
64 /** Fetches cloud VM CPU count from the passed @a info. */
65 SHARED_LIBRARY_STUFF int fetchCpuCount(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
66 /** Fetches cloud VM state from the passed @a info. */
67 SHARED_LIBRARY_STUFF KMachineState fetchMachineState(const QMap<KVirtualSystemDescriptionType, QString> &infoMap);
68}
69
70/* Using across any module who included us: */
71using namespace UICloudNetworkingStuff;
72
73#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