VirtualBox

source: vbox/trunk/src/VBox/Main/include/BIOSSettingsImpl.h@ 40685

Last change on this file since 40685 was 35638, checked in by vboxsync, 14 years ago

Main. QT/FE: fix long standing COM issue

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1/* $Id: BIOSSettingsImpl.h 35638 2011-01-19 19:10:49Z 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
25class GuestOSType;
26
27namespace settings
28{
29 struct BIOSSettings;
30}
31
32class ATL_NO_VTABLE BIOSSettings :
33 public VirtualBoxBase,
34 VBOX_SCRIPTABLE_IMPL(IBIOSSettings)
35{
36public:
37 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(BIOSSettings, IBIOSSettings)
38
39 DECLARE_NOT_AGGREGATABLE(BIOSSettings)
40
41 DECLARE_PROTECT_FINAL_CONSTRUCT()
42
43 BEGIN_COM_MAP(BIOSSettings)
44 VBOX_DEFAULT_INTERFACE_ENTRIES(IBIOSSettings)
45 END_COM_MAP()
46
47 HRESULT FinalConstruct();
48 void FinalRelease();
49
50 // public initializer/uninitializer for internal purposes only
51 HRESULT init (Machine *parent);
52 HRESULT init (Machine *parent, BIOSSettings *that);
53 HRESULT initCopy (Machine *parent, BIOSSettings *that);
54 void uninit();
55
56 STDMETHOD(COMGETTER(LogoFadeIn))(BOOL *enabled);
57 STDMETHOD(COMSETTER(LogoFadeIn))(BOOL enable);
58 STDMETHOD(COMGETTER(LogoFadeOut))(BOOL *enabled);
59 STDMETHOD(COMSETTER(LogoFadeOut))(BOOL enable);
60 STDMETHOD(COMGETTER(LogoDisplayTime))(ULONG *displayTime);
61 STDMETHOD(COMSETTER(LogoDisplayTime))(ULONG displayTime);
62 STDMETHOD(COMGETTER(LogoImagePath))(BSTR *imagePath);
63 STDMETHOD(COMSETTER(LogoImagePath))(IN_BSTR imagePath);
64 STDMETHOD(COMGETTER(BootMenuMode))(BIOSBootMenuMode_T *bootMenuMode);
65 STDMETHOD(COMSETTER(BootMenuMode))(BIOSBootMenuMode_T bootMenuMode);
66 STDMETHOD(COMGETTER(ACPIEnabled))(BOOL *enabled);
67 STDMETHOD(COMSETTER(ACPIEnabled))(BOOL enable);
68 STDMETHOD(COMGETTER(IOAPICEnabled))(BOOL *enabled);
69 STDMETHOD(COMSETTER(IOAPICEnabled))(BOOL enable);
70 STDMETHOD(COMGETTER(PXEDebugEnabled))(BOOL *enabled);
71 STDMETHOD(COMSETTER(PXEDebugEnabled))(BOOL enable);
72 STDMETHOD(COMGETTER)(TimeOffset)(LONG64 *offset);
73 STDMETHOD(COMSETTER)(TimeOffset)(LONG64 offset);
74
75 // public methods only for internal purposes
76
77 HRESULT loadSettings(const settings::BIOSSettings &data);
78 HRESULT saveSettings(settings::BIOSSettings &data);
79
80 void rollback();
81 void commit();
82 void copyFrom (BIOSSettings *aThat);
83 void applyDefaults (GuestOSType *aOsType);
84
85private:
86 struct Data;
87 Data *m;
88};
89
90#endif // ____H_BIOSSETTINGS
91
92/* 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