1 | /* $Id: BIOSSettingsImpl.h 30714 2010-07-07 16:20:03Z 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_BIOSSETTINGS
|
---|
21 | #define ____H_BIOSSETTINGS
|
---|
22 |
|
---|
23 | #include "VirtualBoxBase.h"
|
---|
24 |
|
---|
25 | class GuestOSType;
|
---|
26 |
|
---|
27 | namespace settings
|
---|
28 | {
|
---|
29 | struct BIOSSettings;
|
---|
30 | }
|
---|
31 |
|
---|
32 | class ATL_NO_VTABLE BIOSSettings :
|
---|
33 | public VirtualBoxSupportTranslation<BIOSSettings>,
|
---|
34 | public VirtualBoxBase,
|
---|
35 | VBOX_SCRIPTABLE_IMPL(IBIOSSettings)
|
---|
36 | {
|
---|
37 | public:
|
---|
38 | VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(BIOSSettings, IBIOSSettings)
|
---|
39 |
|
---|
40 | DECLARE_NOT_AGGREGATABLE(BIOSSettings)
|
---|
41 |
|
---|
42 | DECLARE_PROTECT_FINAL_CONSTRUCT()
|
---|
43 |
|
---|
44 | BEGIN_COM_MAP(BIOSSettings)
|
---|
45 | COM_INTERFACE_ENTRY(ISupportErrorInfo)
|
---|
46 | COM_INTERFACE_ENTRY(IBIOSSettings)
|
---|
47 | COM_INTERFACE_ENTRY(IDispatch)
|
---|
48 | END_COM_MAP()
|
---|
49 |
|
---|
50 | HRESULT FinalConstruct();
|
---|
51 | void FinalRelease();
|
---|
52 |
|
---|
53 | // public initializer/uninitializer for internal purposes only
|
---|
54 | HRESULT init (Machine *parent);
|
---|
55 | HRESULT init (Machine *parent, BIOSSettings *that);
|
---|
56 | HRESULT initCopy (Machine *parent, BIOSSettings *that);
|
---|
57 | void uninit();
|
---|
58 |
|
---|
59 | STDMETHOD(COMGETTER(LogoFadeIn))(BOOL *enabled);
|
---|
60 | STDMETHOD(COMSETTER(LogoFadeIn))(BOOL enable);
|
---|
61 | STDMETHOD(COMGETTER(LogoFadeOut))(BOOL *enabled);
|
---|
62 | STDMETHOD(COMSETTER(LogoFadeOut))(BOOL enable);
|
---|
63 | STDMETHOD(COMGETTER(LogoDisplayTime))(ULONG *displayTime);
|
---|
64 | STDMETHOD(COMSETTER(LogoDisplayTime))(ULONG displayTime);
|
---|
65 | STDMETHOD(COMGETTER(LogoImagePath))(BSTR *imagePath);
|
---|
66 | STDMETHOD(COMSETTER(LogoImagePath))(IN_BSTR imagePath);
|
---|
67 | STDMETHOD(COMGETTER(BootMenuMode))(BIOSBootMenuMode_T *bootMenuMode);
|
---|
68 | STDMETHOD(COMSETTER(BootMenuMode))(BIOSBootMenuMode_T bootMenuMode);
|
---|
69 | STDMETHOD(COMGETTER(ACPIEnabled))(BOOL *enabled);
|
---|
70 | STDMETHOD(COMSETTER(ACPIEnabled))(BOOL enable);
|
---|
71 | STDMETHOD(COMGETTER(IOAPICEnabled))(BOOL *enabled);
|
---|
72 | STDMETHOD(COMSETTER(IOAPICEnabled))(BOOL enable);
|
---|
73 | STDMETHOD(COMGETTER(PXEDebugEnabled))(BOOL *enabled);
|
---|
74 | STDMETHOD(COMSETTER(PXEDebugEnabled))(BOOL enable);
|
---|
75 | STDMETHOD(COMGETTER)(TimeOffset)(LONG64 *offset);
|
---|
76 | STDMETHOD(COMSETTER)(TimeOffset)(LONG64 offset);
|
---|
77 |
|
---|
78 | // public methods only for internal purposes
|
---|
79 |
|
---|
80 | HRESULT loadSettings(const settings::BIOSSettings &data);
|
---|
81 | HRESULT saveSettings(settings::BIOSSettings &data);
|
---|
82 |
|
---|
83 | void rollback();
|
---|
84 | void commit();
|
---|
85 | void copyFrom (BIOSSettings *aThat);
|
---|
86 | void applyDefaults (GuestOSType *aOsType);
|
---|
87 |
|
---|
88 | private:
|
---|
89 | struct Data;
|
---|
90 | Data *m;
|
---|
91 | };
|
---|
92 |
|
---|
93 | #endif // ____H_BIOSSETTINGS
|
---|
94 |
|
---|
95 | /* vi: set tabstop=4 shiftwidth=4 expandtab: */
|
---|