VirtualBox

source: vbox/trunk/src/VBox/Main/include/GraphicsAdapterImpl.h@ 86506

Last change on this file since 86506 was 82968, checked in by vboxsync, 4 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1/* $Id: GraphicsAdapterImpl.h 82968 2020-02-04 10:35:17Z vboxsync $ */
2/** @file
3 * Implementation of IGraphicsAdapter in VBoxSVC - Header.
4 */
5
6/*
7 * Copyright (C) 2006-2020 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef MAIN_INCLUDED_GraphicsAdapterImpl_h
19#define MAIN_INCLUDED_GraphicsAdapterImpl_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#include "GraphicsAdapterWrap.h"
25
26
27namespace settings
28{
29 struct GraphicsAdapter;
30};
31
32
33class ATL_NO_VTABLE GraphicsAdapter :
34 public GraphicsAdapterWrap
35{
36public:
37
38 DECLARE_EMPTY_CTOR_DTOR(GraphicsAdapter)
39
40 HRESULT FinalConstruct();
41 void FinalRelease();
42
43 // public initializer/uninitializer for internal purposes only
44 HRESULT init(Machine *aParent);
45 HRESULT init(Machine *aParent, GraphicsAdapter *aThat);
46 HRESULT initCopy(Machine *aParent, GraphicsAdapter *aThat);
47 void uninit();
48
49
50 // public methods only for internal purposes
51 HRESULT i_loadSettings(const settings::GraphicsAdapter &data);
52 HRESULT i_saveSettings(settings::GraphicsAdapter &data);
53
54 void i_rollback();
55 void i_commit();
56 void i_copyFrom(GraphicsAdapter *aThat);
57
58private:
59
60 // wrapped IGraphicsAdapter properties
61 HRESULT getGraphicsControllerType(GraphicsControllerType_T *aGraphicsControllerType);
62 HRESULT setGraphicsControllerType(GraphicsControllerType_T aGraphicsControllerType);
63 HRESULT getVRAMSize(ULONG *aVRAMSize);
64 HRESULT setVRAMSize(ULONG aVRAMSize);
65 HRESULT getAccelerate3DEnabled(BOOL *aAccelerate3DEnabled);
66 HRESULT setAccelerate3DEnabled(BOOL aAccelerate3DEnabled);
67 HRESULT getAccelerate2DVideoEnabled(BOOL *aAccelerate2DVideoEnabled);
68 HRESULT setAccelerate2DVideoEnabled(BOOL aAccelerate2DVideoEnabled);
69 HRESULT getMonitorCount(ULONG *aMonitorCount);
70 HRESULT setMonitorCount(ULONG aMonitorCount);
71
72 Machine * const mParent;
73 const ComObjPtr<GraphicsAdapter> mPeer;
74 Backupable<settings::GraphicsAdapter> mData;
75};
76
77#endif /* !MAIN_INCLUDED_GraphicsAdapterImpl_h */
78/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use