1 | /* $Id: VRDEServerImpl.h 61009 2016-05-17 17:18:29Z vboxsync $ */
|
---|
2 |
|
---|
3 | /** @file
|
---|
4 | *
|
---|
5 | * VirtualBox COM class implementation
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * Copyright (C) 2006-2016 Oracle Corporation
|
---|
10 | *
|
---|
11 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | * available from http://www.virtualbox.org. This file is free software;
|
---|
13 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | * General Public License (GPL) as published by the Free Software
|
---|
15 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
16 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
17 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 | */
|
---|
19 |
|
---|
20 | #ifndef ____H_VRDPSERVER
|
---|
21 | #define ____H_VRDPSERVER
|
---|
22 |
|
---|
23 | #include "VRDEServerWrap.h"
|
---|
24 |
|
---|
25 | namespace settings
|
---|
26 | {
|
---|
27 | struct VRDESettings;
|
---|
28 | }
|
---|
29 |
|
---|
30 | class ATL_NO_VTABLE VRDEServer :
|
---|
31 | public VRDEServerWrap
|
---|
32 | {
|
---|
33 | public:
|
---|
34 |
|
---|
35 | DECLARE_EMPTY_CTOR_DTOR(VRDEServer)
|
---|
36 |
|
---|
37 | HRESULT FinalConstruct();
|
---|
38 | void FinalRelease();
|
---|
39 |
|
---|
40 | // public initializer/uninitializer for internal purposes only
|
---|
41 | HRESULT init(Machine *aParent);
|
---|
42 | HRESULT init(Machine *aParent, VRDEServer *aThat);
|
---|
43 | HRESULT initCopy(Machine *aParent, VRDEServer *aThat);
|
---|
44 | void uninit();
|
---|
45 |
|
---|
46 | // public methods only for internal purposes
|
---|
47 | HRESULT i_loadSettings(const settings::VRDESettings &data);
|
---|
48 | HRESULT i_saveSettings(settings::VRDESettings &data);
|
---|
49 | void i_rollback();
|
---|
50 | void i_commit();
|
---|
51 | void i_copyFrom(VRDEServer *aThat);
|
---|
52 |
|
---|
53 | private:
|
---|
54 |
|
---|
55 | // wrapped IVRDEServer properties
|
---|
56 | HRESULT getEnabled(BOOL *aEnabled);
|
---|
57 | HRESULT setEnabled(BOOL aEnabled);
|
---|
58 | HRESULT getAuthType(AuthType_T *aAuthType);
|
---|
59 | HRESULT setAuthType(AuthType_T aAuthType);
|
---|
60 | HRESULT getAuthTimeout(ULONG *aAuthTimeout);
|
---|
61 | HRESULT setAuthTimeout(ULONG aAuthTimeout);
|
---|
62 | HRESULT getAllowMultiConnection(BOOL *aAllowMultiConnection);
|
---|
63 | HRESULT setAllowMultiConnection(BOOL aAllowMultiConnection);
|
---|
64 | HRESULT getReuseSingleConnection(BOOL *aReuseSingleConnection);
|
---|
65 | HRESULT setReuseSingleConnection(BOOL aReuseSingleConnection);
|
---|
66 | HRESULT getVRDEExtPack(com::Utf8Str &aVRDEExtPack);
|
---|
67 | HRESULT setVRDEExtPack(const com::Utf8Str &aVRDEExtPack);
|
---|
68 | HRESULT getAuthLibrary(com::Utf8Str &aAuthLibrary);
|
---|
69 | HRESULT setAuthLibrary(const com::Utf8Str &aAuthLibrary);
|
---|
70 | HRESULT getVRDEProperties(std::vector<com::Utf8Str> &aVRDEProperties);
|
---|
71 |
|
---|
72 | // wrapped IVRDEServer methods
|
---|
73 | HRESULT setVRDEProperty(const com::Utf8Str &aKey,
|
---|
74 | const com::Utf8Str &aValue);
|
---|
75 | HRESULT getVRDEProperty(const com::Utf8Str &aKey,
|
---|
76 | com::Utf8Str &aValue);
|
---|
77 |
|
---|
78 | Machine * const mParent;
|
---|
79 | const ComObjPtr<VRDEServer> mPeer;
|
---|
80 |
|
---|
81 | Backupable<settings::VRDESettings> mData;
|
---|
82 | };
|
---|
83 |
|
---|
84 | #endif // ____H_VRDPSERVER
|
---|
85 | /* vi: set tabstop=4 shiftwidth=4 expandtab: */
|
---|