VirtualBox

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

最後變更 在這個檔案從45674是 45674,由 vboxsync 提交於 12 年 前

Main/Machine+Console+Display+VRDEServer,VBoxManage: allow VMs without graphics controller, eliminate annoying spurious error messages about Console not yet powered up when taking screenshots, getting/setting guest properties and updating metrics, make as many parameters to modifyvm as possible case insensitive

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.3 KB
 
1/* $Id: VRDEServerImpl.h 45674 2013-04-23 08:45:54Z 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.alldomusa.eu.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(CheckPrerequisites))(BOOL *aCheckPrerequisites);
69 STDMETHOD(COMGETTER(Enabled))(BOOL *aEnabled);
70 STDMETHOD(COMSETTER(Enabled))(BOOL aEnable);
71 STDMETHOD(COMGETTER(AuthType))(AuthType_T *aType);
72 STDMETHOD(COMSETTER(AuthType))(AuthType_T aType);
73 STDMETHOD(COMGETTER(AuthTimeout))(ULONG *aTimeout);
74 STDMETHOD(COMSETTER(AuthTimeout))(ULONG aTimeout);
75 STDMETHOD(COMGETTER(AllowMultiConnection))(BOOL *aAllowMultiConnection);
76 STDMETHOD(COMSETTER(AllowMultiConnection))(BOOL aAllowMultiConnection);
77 STDMETHOD(COMGETTER(ReuseSingleConnection))(BOOL *aReuseSingleConnection);
78 STDMETHOD(COMSETTER(ReuseSingleConnection))(BOOL aReuseSingleConnection);
79 STDMETHOD(COMGETTER(VRDEExtPack))(BSTR *aExtPack);
80 STDMETHOD(COMSETTER(VRDEExtPack))(IN_BSTR aExtPack);
81 STDMETHOD(COMGETTER(AuthLibrary))(BSTR *aValue);
82 STDMETHOD(COMSETTER(AuthLibrary))(IN_BSTR aValue);
83 STDMETHOD(COMGETTER(VRDEProperties))(ComSafeArrayOut(BSTR, aProperties));
84
85 // IVRDEServer methods
86 STDMETHOD(SetVRDEProperty)(IN_BSTR aKey, IN_BSTR aValue);
87 STDMETHOD(GetVRDEProperty)(IN_BSTR aKey, BSTR *aValue);
88
89 // public methods only for internal purposes
90
91 HRESULT loadSettings(const settings::VRDESettings &data);
92 HRESULT saveSettings(settings::VRDESettings &data);
93
94 void rollback();
95 void commit();
96 void copyFrom(VRDEServer *aThat);
97
98private:
99
100 Machine * const mParent;
101 const ComObjPtr<VRDEServer> mPeer;
102
103 Backupable<Data> mData;
104};
105
106#endif // ____H_VRDPSERVER
107/* vi: set tabstop=4 shiftwidth=4 expandtab: */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette