VirtualBox

Changeset 101038 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Sep 7, 2023 9:21:54 AM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158995
Message:

Initial commit (based draft v2 / on patch v5) for implementing platform architecture support for x86 and ARM: Re-applied FirmwareSettings[.h|.cpp] changes. bugref:10384

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/FirmwareSettingsImpl.h

    r101037 r101038  
    33/** @file
    44 *
    5  * VirtualBox COM class implementation - Machine BIOS settings.
     5 * VirtualBox COM class implementation - Machine firmware settings.
    66 */
    77
     
    2828 */
    2929
    30 #ifndef MAIN_INCLUDED_BIOSSettingsImpl_h
    31 #define MAIN_INCLUDED_BIOSSettingsImpl_h
     30#ifndef MAIN_INCLUDED_FirmwareSettingsImpl_h
     31#define MAIN_INCLUDED_FirmwareSettingsImpl_h
    3232#ifndef RT_WITHOUT_PRAGMA_ONCE
    3333# pragma once
    3434#endif
    3535
    36 #include "BIOSSettingsWrap.h"
     36#include "FirmwareSettingsWrap.h"
    3737
    3838class GuestOSType;
     
    4040namespace settings
    4141{
    42     struct BIOSSettings;
     42    struct FirmwareSettings;
    4343}
    4444
    45 class ATL_NO_VTABLE BIOSSettings :
    46     public BIOSSettingsWrap
     45class ATL_NO_VTABLE FirmwareSettings :
     46    public FirmwareSettingsWrap
    4747{
    4848public:
    4949
    50     DECLARE_COMMON_CLASS_METHODS(BIOSSettings)
     50    DECLARE_COMMON_CLASS_METHODS(FirmwareSettings)
    5151
    5252    HRESULT FinalConstruct();
     
    5555    // public initializer/uninitializer for internal purposes only
    5656    HRESULT init(Machine *parent);
    57     HRESULT init(Machine *parent, BIOSSettings *that);
    58     HRESULT initCopy(Machine *parent, BIOSSettings *that);
     57    HRESULT init(Machine *parent, FirmwareSettings *that);
     58    HRESULT initCopy(Machine *parent, FirmwareSettings *that);
    5959    void uninit();
    6060
    6161    // public methods for internal purposes only
    62     HRESULT i_loadSettings(const settings::BIOSSettings &data);
    63     HRESULT i_saveSettings(settings::BIOSSettings &data);
     62    HRESULT i_loadSettings(const settings::FirmwareSettings &data);
     63    HRESULT i_saveSettings(settings::FirmwareSettings &data);
     64    FirmwareType_T i_getFirmwareType() const;
    6465
    6566    void i_rollback();
    6667    void i_commit();
    67     void i_copyFrom(BIOSSettings *aThat);
     68    void i_copyFrom(FirmwareSettings *aThat);
    6869    void i_applyDefaults(GuestOSType *aOsType);
    6970
    7071private:
    7172
    72     // wrapped IBIOSettings properties
     73    // wrapped IFirmwareSettings properties
     74    HRESULT getFirmwareType(FirmwareType_T *aType);
     75    HRESULT setFirmwareType(FirmwareType_T aType);
    7376    HRESULT getLogoFadeIn(BOOL *enabled);
    7477    HRESULT setLogoFadeIn(BOOL enable);
     
    7982    HRESULT getLogoImagePath(com::Utf8Str &imagePath);
    8083    HRESULT setLogoImagePath(const com::Utf8Str &imagePath);
    81     HRESULT getBootMenuMode(BIOSBootMenuMode_T *bootMenuMode);
    82     HRESULT setBootMenuMode(BIOSBootMenuMode_T bootMenuMode);
     84    HRESULT getBootMenuMode(FirmwareBootMenuMode_T *bootMenuMode);
     85    HRESULT setBootMenuMode(FirmwareBootMenuMode_T bootMenuMode);
    8386    HRESULT getACPIEnabled(BOOL *enabled);
    8487    HRESULT setACPIEnabled(BOOL enable);
     
    97100    Data *m;
    98101};
     102#endif /* !MAIN_INCLUDED_FirmwareSettingsImpl_h */
    99103
    100 #endif /* !MAIN_INCLUDED_BIOSSettingsImpl_h */
    101 
    102 /* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracChangeset for help on using the changeset viewer.

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