VirtualBox

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

Last change on this file since 105127 was 105127, checked in by vboxsync, 5 months ago

Certificate repair function fix - bugref:10310

  • 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 105127 2024-07-03 22:18:33Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation
6 */
7
8/*
9 * Copyright (C) 2006-2023 Oracle and/or its affiliates.
10 *
11 * This file is part of VirtualBox base platform packages, as
12 * available from https://www.virtualbox.org.
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation, in version 3 of the
17 * License.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see <https://www.gnu.org/licenses>.
26 *
27 * SPDX-License-Identifier: GPL-3.0-only
28 */
29
30#ifndef MAIN_INCLUDED_VRDEServerImpl_h
31#define MAIN_INCLUDED_VRDEServerImpl_h
32#ifndef RT_WITHOUT_PRAGMA_ONCE
33# pragma once
34#endif
35
36#include "VRDEServerWrap.h"
37
38namespace settings
39{
40 struct VRDESettings;
41}
42
43class ATL_NO_VTABLE VRDEServer :
44 public VRDEServerWrap
45{
46public:
47
48 DECLARE_COMMON_CLASS_METHODS(VRDEServer)
49
50 HRESULT FinalConstruct();
51 void FinalRelease();
52
53 // public initializer/uninitializer for internal purposes only
54 HRESULT init(Machine *aParent);
55 HRESULT init(Machine *aParent, VRDEServer *aThat);
56 HRESULT initCopy(Machine *aParent, VRDEServer *aThat);
57 void uninit();
58
59 // public methods only for internal purposes
60 HRESULT i_loadSettings(const settings::VRDESettings &data);
61 HRESULT i_saveSettings(settings::VRDESettings &data);
62 int i_generateServerCertificate();
63 HRESULT i_certificateRepair(BOOL &certificateGenerated);
64 void i_rollback();
65 void i_commit();
66 void i_copyFrom(VRDEServer *aThat);
67
68private:
69
70 // wrapped IVRDEServer properties
71 HRESULT getEnabled(BOOL *aEnabled);
72 HRESULT setEnabled(BOOL aEnabled);
73 HRESULT getAuthType(AuthType_T *aAuthType);
74 HRESULT setAuthType(AuthType_T aAuthType);
75 HRESULT getAuthTimeout(ULONG *aAuthTimeout);
76 HRESULT setAuthTimeout(ULONG aAuthTimeout);
77 HRESULT getAllowMultiConnection(BOOL *aAllowMultiConnection);
78 HRESULT setAllowMultiConnection(BOOL aAllowMultiConnection);
79 HRESULT getReuseSingleConnection(BOOL *aReuseSingleConnection);
80 HRESULT setReuseSingleConnection(BOOL aReuseSingleConnection);
81 HRESULT getVRDEExtPack(com::Utf8Str &aVRDEExtPack);
82 HRESULT setVRDEExtPack(const com::Utf8Str &aVRDEExtPack);
83 HRESULT getAuthLibrary(com::Utf8Str &aAuthLibrary);
84 HRESULT setAuthLibrary(const com::Utf8Str &aAuthLibrary);
85 HRESULT getVRDEProperties(std::vector<com::Utf8Str> &aVRDEProperties);
86
87 // wrapped IVRDEServer methods
88 HRESULT setVRDEProperty(const com::Utf8Str &aKey,
89 const com::Utf8Str &aValue);
90 HRESULT getVRDEProperty(const com::Utf8Str &aKey,
91 com::Utf8Str &aValue);
92
93 Machine * const mParent;
94 const ComObjPtr<VRDEServer> mPeer;
95
96 Backupable<settings::VRDESettings> mData;
97};
98
99#endif /* !MAIN_INCLUDED_VRDEServerImpl_h */
100/* 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