VirtualBox

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

Last change on this file since 48112 was 45680, checked in by vboxsync, 12 years ago

Main/VRDEServer: Back out code to disable VRDE server if no graphics controller is present. Would be inconsistent behavior, as it blocks other input/output channels which still exist.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1/* $Id: VRDEServerImpl.h 45680 2013-04-23 13:00:08Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation
6 */
7
8/*
9 * Copyright (C) 2006-2013 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 "VirtualBoxBase.h"
24
25#include <VBox/VBoxAuth.h>
26#include <VBox/settings.h>
27
28class ATL_NO_VTABLE VRDEServer :
29 public VirtualBoxBase,
30 VBOX_SCRIPTABLE_IMPL(IVRDEServer)
31{
32public:
33
34 struct Data
35 {
36 BOOL mEnabled;
37 Bstr mAuthLibrary;
38 AuthType_T mAuthType;
39 ULONG mAuthTimeout;
40 BOOL mAllowMultiConnection;
41 BOOL mReuseSingleConnection;
42 Utf8Str mVrdeExtPack;
43 settings::StringsMap mProperties;
44 };
45
46 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VRDEServer, IVRDEServer)
47
48 DECLARE_NOT_AGGREGATABLE(VRDEServer)
49
50 DECLARE_PROTECT_FINAL_CONSTRUCT()
51
52 BEGIN_COM_MAP(VRDEServer)
53 VBOX_DEFAULT_INTERFACE_ENTRIES(IVRDEServer)
54 END_COM_MAP()
55
56 DECLARE_EMPTY_CTOR_DTOR(VRDEServer)
57
58 HRESULT FinalConstruct();
59 void FinalRelease();
60
61 // public initializer/uninitializer for internal purposes only
62 HRESULT init(Machine *aParent);
63 HRESULT init(Machine *aParent, VRDEServer *aThat);
64 HRESULT initCopy(Machine *aParent, VRDEServer *aThat);
65 void uninit();
66
67 // IVRDEServer properties
68 STDMETHOD(COMGETTER(Enabled))(BOOL *aEnabled);
69 STDMETHOD(COMSETTER(Enabled))(BOOL aEnable);
70 STDMETHOD(COMGETTER(AuthType))(AuthType_T *aType);
71 STDMETHOD(COMSETTER(AuthType))(AuthType_T aType);
72 STDMETHOD(COMGETTER(AuthTimeout))(ULONG *aTimeout);
73 STDMETHOD(COMSETTER(AuthTimeout))(ULONG aTimeout);
74 STDMETHOD(COMGETTER(AllowMultiConnection))(BOOL *aAllowMultiConnection);
75 STDMETHOD(COMSETTER(AllowMultiConnection))(BOOL aAllowMultiConnection);
76 STDMETHOD(COMGETTER(ReuseSingleConnection))(BOOL *aReuseSingleConnection);
77 STDMETHOD(COMSETTER(ReuseSingleConnection))(BOOL aReuseSingleConnection);
78 STDMETHOD(COMGETTER(VRDEExtPack))(BSTR *aExtPack);
79 STDMETHOD(COMSETTER(VRDEExtPack))(IN_BSTR aExtPack);
80 STDMETHOD(COMGETTER(AuthLibrary))(BSTR *aValue);
81 STDMETHOD(COMSETTER(AuthLibrary))(IN_BSTR aValue);
82 STDMETHOD(COMGETTER(VRDEProperties))(ComSafeArrayOut(BSTR, aProperties));
83
84 // IVRDEServer methods
85 STDMETHOD(SetVRDEProperty)(IN_BSTR aKey, IN_BSTR aValue);
86 STDMETHOD(GetVRDEProperty)(IN_BSTR aKey, BSTR *aValue);
87
88 // public methods only for internal purposes
89
90 HRESULT loadSettings(const settings::VRDESettings &data);
91 HRESULT saveSettings(settings::VRDESettings &data);
92
93 void rollback();
94 void commit();
95 void copyFrom(VRDEServer *aThat);
96
97private:
98
99 Machine * const mParent;
100 const ComObjPtr<VRDEServer> mPeer;
101
102 Backupable<Data> mData;
103};
104
105#endif // ____H_VRDPSERVER
106/* 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