VirtualBox

source: vbox/trunk/src/VBox/Main/include/VRDPServerImpl.h@ 32953

Last change on this file since 32953 was 30739, checked in by vboxsync, 14 years ago

Main: remove VirtualBoxSupportTranslation template, add translation support to generic base class, clean up COM headers more, remove SupportErrorInfo.cpp|h

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1/* $Id: VRDPServerImpl.h 30739 2010-07-08 12:27:42Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation
6 */
7
8/*
9 * Copyright (C) 2006-2007 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/VRDPAuth.h>
26
27namespace settings
28{
29 struct VRDPSettings;
30}
31
32class ATL_NO_VTABLE VRDPServer :
33 public VirtualBoxBase,
34 VBOX_SCRIPTABLE_IMPL(IVRDPServer)
35{
36public:
37
38 struct Data
39 {
40 BOOL mEnabled;
41 Bstr mVRDPPorts;
42 Bstr mVRDPAddress;
43 VRDPAuthType_T mAuthType;
44 ULONG mAuthTimeout;
45 BOOL mAllowMultiConnection;
46 BOOL mReuseSingleConnection;
47 BOOL mVideoChannel;
48 ULONG mVideoChannelQuality;
49 };
50
51 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VRDPServer, IVRDPServer)
52
53 DECLARE_NOT_AGGREGATABLE(VRDPServer)
54
55 DECLARE_PROTECT_FINAL_CONSTRUCT()
56
57 BEGIN_COM_MAP(VRDPServer)
58 COM_INTERFACE_ENTRY (ISupportErrorInfo)
59 COM_INTERFACE_ENTRY (IVRDPServer)
60 COM_INTERFACE_ENTRY2 (IDispatch, IVRDPServer)
61 END_COM_MAP()
62
63 DECLARE_EMPTY_CTOR_DTOR (VRDPServer)
64
65 HRESULT FinalConstruct();
66 void FinalRelease();
67
68 // public initializer/uninitializer for internal purposes only
69 HRESULT init(Machine *aParent);
70 HRESULT init(Machine *aParent, VRDPServer *aThat);
71 HRESULT initCopy (Machine *aParent, VRDPServer *aThat);
72 void uninit();
73
74 // IVRDPServer properties
75 STDMETHOD(COMGETTER(Enabled)) (BOOL *aEnabled);
76 STDMETHOD(COMSETTER(Enabled)) (BOOL aEnable);
77 STDMETHOD(COMGETTER(Ports)) (BSTR *aPorts);
78 STDMETHOD(COMSETTER(Ports)) (IN_BSTR aPorts);
79 STDMETHOD(COMGETTER(NetAddress)) (BSTR *aAddress);
80 STDMETHOD(COMSETTER(NetAddress)) (IN_BSTR aAddress);
81 STDMETHOD(COMGETTER(AuthType)) (VRDPAuthType_T *aType);
82 STDMETHOD(COMSETTER(AuthType)) (VRDPAuthType_T aType);
83 STDMETHOD(COMGETTER(AuthTimeout)) (ULONG *aTimeout);
84 STDMETHOD(COMSETTER(AuthTimeout)) (ULONG aTimeout);
85 STDMETHOD(COMGETTER(AllowMultiConnection)) (BOOL *aAllowMultiConnection);
86 STDMETHOD(COMSETTER(AllowMultiConnection)) (BOOL aAllowMultiConnection);
87 STDMETHOD(COMGETTER(ReuseSingleConnection)) (BOOL *aReuseSingleConnection);
88 STDMETHOD(COMSETTER(ReuseSingleConnection)) (BOOL aReuseSingleConnection);
89 STDMETHOD(COMGETTER(VideoChannel)) (BOOL *aVideoChannel);
90 STDMETHOD(COMSETTER(VideoChannel)) (BOOL aVideoChannel);
91 STDMETHOD(COMGETTER(VideoChannelQuality)) (ULONG *aVideoChannelQuality);
92 STDMETHOD(COMSETTER(VideoChannelQuality)) (ULONG aVideoChannelQuality);
93
94 // IVRDPServer methods
95
96 // public methods only for internal purposes
97
98 HRESULT loadSettings(const settings::VRDPSettings &data);
99 HRESULT saveSettings(settings::VRDPSettings &data);
100
101 void rollback();
102 void commit();
103 void copyFrom (VRDPServer *aThat);
104
105private:
106
107 Machine * const mParent;
108 const ComObjPtr<VRDPServer> mPeer;
109
110 Backupable<Data> mData;
111};
112
113#endif // ____H_VRDPSERVER
114/* 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