VirtualBox

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


Ignore:
Timestamp:
Dec 4, 2009 6:52:36 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55682
Message:

Main: make BIOSSettings instance data private and make it use the XML settings struct for simplicity

File:
1 edited

Legend:

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

    r24989 r25201  
    4242{
    4343public:
    44 
    45     struct Data
    46     {
    47         Data()
    48         {
    49             mLogoFadeIn = true;
    50             mLogoFadeOut = true;
    51             mLogoDisplayTime = 0;
    52             mBootMenuMode = BIOSBootMenuMode_MessageAndMenu;
    53             mACPIEnabled = true;
    54             mIOAPICEnabled = false;
    55             mPXEDebugEnabled = false;
    56             mTimeOffset = 0;
    57         }
    58 
    59         bool operator== (const Data &that) const
    60         {
    61             return this == &that ||
    62                    (mLogoFadeIn         == that.mLogoFadeIn &&
    63                     mLogoFadeOut        == that.mLogoFadeOut &&
    64                     mLogoDisplayTime    == that.mLogoDisplayTime &&
    65                     mLogoImagePath      == that.mLogoImagePath &&
    66                     mBootMenuMode       == that.mBootMenuMode &&
    67                     mACPIEnabled        == that.mACPIEnabled &&
    68                     mIOAPICEnabled      == that.mIOAPICEnabled &&
    69                     mPXEDebugEnabled    == that.mPXEDebugEnabled &&
    70                     mTimeOffset         == that.mTimeOffset);
    71         }
    72 
    73         BOOL                mLogoFadeIn;
    74         BOOL                mLogoFadeOut;
    75         ULONG               mLogoDisplayTime;
    76         Bstr                mLogoImagePath;
    77         BIOSBootMenuMode_T  mBootMenuMode;
    78         BOOL                mACPIEnabled;
    79         BOOL                mIOAPICEnabled;
    80         BOOL                mPXEDebugEnabled;
    81         LONG64              mTimeOffset;
    82     };
    83 
    8444    DECLARE_NOT_AGGREGATABLE(BIOSSettings)
    8545
     
    12585    HRESULT saveSettings(settings::BIOSSettings &data);
    12686
    127     bool isModified() { AutoWriteLock alock (this); return mData.isBackedUp(); }
    128     bool isReallyModified() { AutoWriteLock alock (this); return mData.hasActualChanges(); }
    129     void rollback() { AutoWriteLock alock (this); mData.rollback(); }
     87    bool isModified();
     88    bool isReallyModified();
     89    void rollback();
    13090    void commit();
    13191    void copyFrom (BIOSSettings *aThat);
     
    13696
    13797private:
    138 
    139     ComObjPtr<Machine, ComWeakRef> mParent;
    140     ComObjPtr<BIOSSettings> mPeer;
    141     Backupable<Data> mData;
     98    struct Data;
     99    Data *m;
    142100};
    143101
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