VirtualBox

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

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

Main: separate internal machine data structs into MachineImplPrivate.h to significantly speed up compilation and for better interface separation; remove obsolete ConsoleEvents.h file

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.9 KB
 
1/* $Id: BIOSSettingsImpl.h 30760 2010-07-09 13:12:04Z 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.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_BIOSSETTINGS
21#define ____H_BIOSSETTINGS
22
23#include "VirtualBoxBase.h"
24
25namespace settings
26{
27 struct BIOSSettings;
28}
29
30class ATL_NO_VTABLE BIOSSettings :
31 public VirtualBoxBase,
32 VBOX_SCRIPTABLE_IMPL(IBIOSSettings)
33{
34public:
35 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(BIOSSettings, IBIOSSettings)
36
37 DECLARE_NOT_AGGREGATABLE(BIOSSettings)
38
39 DECLARE_PROTECT_FINAL_CONSTRUCT()
40
41 BEGIN_COM_MAP(BIOSSettings)
42 COM_INTERFACE_ENTRY(ISupportErrorInfo)
43 COM_INTERFACE_ENTRY(IBIOSSettings)
44 COM_INTERFACE_ENTRY(IDispatch)
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: */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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