1 | /* $Id: CloudNetworkImpl.h 85360 2020-07-16 09:18:27Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * ICloudNetwork implementation header, lives in VBoxSVC.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2019-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 MAIN_INCLUDED_CloudNetworkImpl_h
|
---|
19 | #define MAIN_INCLUDED_CloudNetworkImpl_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #include "CloudNetworkWrap.h"
|
---|
25 |
|
---|
26 | namespace settings
|
---|
27 | {
|
---|
28 | struct CloudNetwork;
|
---|
29 | }
|
---|
30 |
|
---|
31 | class ATL_NO_VTABLE CloudNetwork :
|
---|
32 | public CloudNetworkWrap
|
---|
33 | {
|
---|
34 | public:
|
---|
35 |
|
---|
36 | DECLARE_EMPTY_CTOR_DTOR(CloudNetwork)
|
---|
37 |
|
---|
38 | HRESULT FinalConstruct();
|
---|
39 | void FinalRelease();
|
---|
40 |
|
---|
41 | HRESULT init(VirtualBox *aVirtualBox, com::Utf8Str aName);
|
---|
42 | HRESULT i_loadSettings(const settings::CloudNetwork &data);
|
---|
43 | void uninit();
|
---|
44 | HRESULT i_saveSettings(settings::CloudNetwork &data);
|
---|
45 |
|
---|
46 | // Internal methods
|
---|
47 | Utf8Str i_getNetworkName();
|
---|
48 | Utf8Str i_getProvider();
|
---|
49 | Utf8Str i_getProfile();
|
---|
50 | Utf8Str i_getNetworkId();
|
---|
51 | private:
|
---|
52 |
|
---|
53 | // Wrapped ICloudNetwork properties
|
---|
54 | HRESULT getNetworkName(com::Utf8Str &aNetworkName);
|
---|
55 | HRESULT setNetworkName(const com::Utf8Str &aNetworkName);
|
---|
56 | HRESULT getEnabled(BOOL *aEnabled);
|
---|
57 | HRESULT setEnabled(BOOL aEnabled);
|
---|
58 | HRESULT getProvider(com::Utf8Str &aProvider);
|
---|
59 | HRESULT setProvider(const com::Utf8Str &aProvider);
|
---|
60 | HRESULT getProfile(com::Utf8Str &aProfile);
|
---|
61 | HRESULT setProfile(const com::Utf8Str &aProfile);
|
---|
62 | HRESULT getNetworkId(com::Utf8Str &aNetworkId);
|
---|
63 | HRESULT setNetworkId(const com::Utf8Str &aNetworkId);
|
---|
64 |
|
---|
65 | struct Data;
|
---|
66 | Data *m;
|
---|
67 | };
|
---|
68 |
|
---|
69 | #endif /* !MAIN_INCLUDED_CloudNetworkImpl_h */
|
---|