VirtualBox

source: vbox/trunk/src/VBox/Main/include/VRDEServerImpl.h@ 64193

Last change on this file since 64193 was 61009, checked in by vboxsync, 9 years ago

Main: big settings cleanup and writing optimization. Moved constructors/equality/default checks into the .cpp file, and write only settings which aren't at the default value. Greatly reduces the effort needed to write everything out, especially when a lot of snapshots have to be dealt with. Move the storage controllers to the hardware settings, where they always belonged. No change to the XML file (yet). Lots of settings related cleanups in the API code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
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
25namespace settings
26{
27 struct VRDESettings;
28}
29
30class ATL_NO_VTABLE VRDEServer :
31 public VRDEServerWrap
32{
33public:
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
53private:
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: */
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