VirtualBox

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


Ignore:
Timestamp:
Feb 2, 2010 8:37:36 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57185
Message:

Main: get rid of Backupable<>::hasActualChanges and the operator== in all the machine data structures which it required; nuke obsolete Shareable.h

Location:
trunk/src/VBox/Main/include
Files:
1 deleted
10 edited

Legend:

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

    r26167 r26171  
    4444        Data();
    4545
    46         bool operator== (const Data &that) const
    47         {
    48             return this == &that ||
    49                    (mEnabled == that.mEnabled &&
    50                     mAudioDriver == that.mAudioDriver &&
    51                     mAudioController == that.mAudioController);
    52         }
    53 
    5446        BOOL mEnabled;
    5547        AudioDriverType_T mAudioDriver;
     
    9284    HRESULT saveSettings(settings::AudioAdapter &data);
    9385
    94     bool rollback();
     86    void rollback();
    9587    void commit();
    9688    void copyFrom(AudioAdapter *aThat);
  • trunk/src/VBox/Main/include/MachineImpl.h

    r26167 r26171  
    225225        ~UserData();
    226226
    227         bool operator==(const UserData &that) const
    228         {
    229             return this == &that
    230                 || (   mName                 == that.mName
    231                     && mNameSync             == that.mNameSync
    232                     && mDescription          == that.mDescription
    233                     && mOSTypeId             == that.mOSTypeId
    234                     && mSnapshotFolderFull   == that.mSnapshotFolderFull
    235                     && mTeleporterEnabled    == that.mTeleporterEnabled
    236                     && mTeleporterPort       == that.mTeleporterPort
    237                     && mTeleporterAddress    == that.mTeleporterAddress
    238                     && mTeleporterPassword   == that.mTeleporterPassword
    239                     && mRTCUseUTC            == that.mRTCUseUTC);
    240         }
    241 
    242227        Bstr    mName;
    243228        BOOL    mNameSync;
     
    279264        HWData();
    280265        ~HWData();
    281 
    282         bool operator==(const HWData &that) const;
    283266
    284267        Bstr           mHWVersion;
     
    333316        MediaData();
    334317        ~MediaData();
    335 
    336         bool operator==(const MediaData &that) const;
    337318
    338319        typedef std::list< ComObjPtr<MediumAttachment> > AttachmentList;
  • trunk/src/VBox/Main/include/MediumAttachmentImpl.h

    r26044 r26171  
    6868
    6969    // public internal methods
    70     bool rollback();
     70    void rollback();
    7171    void commit();
    7272
  • trunk/src/VBox/Main/include/NetworkAdapterImpl.h

    r26167 r26171  
    5050                 mNATNetwork("") /* cannot be null */
    5151        {}
    52 
    53         bool operator== (const Data &that) const
    54         {
    55             return this == &that ||
    56                    (mSlot == that.mSlot &&
    57                     mEnabled == that.mEnabled &&
    58                     mMACAddress == that.mMACAddress &&
    59                     mAttachmentType == that.mAttachmentType &&
    60                     mCableConnected == that.mCableConnected &&
    61                     mLineSpeed == that.mLineSpeed &&
    62                     mTraceEnabled == that.mTraceEnabled &&
    63                     mHostInterface == that.mHostInterface &&
    64                     mInternalNetwork == that.mInternalNetwork &&
    65                     mNATNetwork == that.mNATNetwork);
    66         }
    6752
    6853        NetworkAdapterType_T mAdapterType;
     
    139124    HRESULT saveSettings(settings::NetworkAdapter &data);
    140125
    141     bool rollback();
     126    bool isModified();
     127    void rollback();
    142128    void commit();
    143129    void copyFrom (NetworkAdapter *aThat);
  • trunk/src/VBox/Main/include/ParallelPortImpl.h

    r26167 r26171  
    7878    HRESULT saveSettings(settings::ParallelPort &data);
    7979
    80     bool rollback();
     80    bool isModified();
     81    void rollback();
    8182    void commit();
    8283    void copyFrom(ParallelPort *aThat);
  • trunk/src/VBox/Main/include/SerialPortImpl.h

    r26167 r26171  
    8484    HRESULT saveSettings(settings::SerialPort &data);
    8585
    86     bool rollback();
     86    bool isModified();
     87    void rollback();
    8788    void commit();
    8889    void copyFrom(SerialPort *aThat);
  • trunk/src/VBox/Main/include/StorageControllerImpl.h

    r26167 r26171  
    8989    ULONG getInstance() const;
    9090
    91     bool rollback();
     91    void rollback();
    9292    void commit();
    9393
  • trunk/src/VBox/Main/include/USBControllerImpl.h

    r26167 r26171  
    8383    HRESULT saveSettings(settings::USBController &data);
    8484
    85     bool rollback();
     85    void rollback();
    8686    void commit();
    8787    void copyFrom (USBController *aThat);
  • trunk/src/VBox/Main/include/VRDPServerImpl.h

    r26167 r26171  
    4444    struct Data
    4545    {
    46         bool operator== (const Data &that) const
    47         {
    48             return this == &that ||
    49                    (mEnabled == that.mEnabled &&
    50                     mVRDPPorts == that.mVRDPPorts &&
    51                     mVRDPAddress == that.mVRDPAddress &&
    52                     mAuthType == that.mAuthType &&
    53                     mAuthTimeout == that.mAuthTimeout &&
    54                     mAllowMultiConnection == that.mAllowMultiConnection &&
    55                     mReuseSingleConnection == that.mReuseSingleConnection);
    56         }
    57 
    5846        BOOL mEnabled;
    5947        Bstr mVRDPPorts;
     
    11199    HRESULT saveSettings(settings::VRDPSettings &data);
    112100
    113     bool rollback();
     101    void rollback();
    114102    void commit();
    115103    void copyFrom (VRDPServer *aThat);
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r26044 r26171  
    16801680    }
    16811681
    1682     bool hasActualChanges() const
    1683     {
    1684         AssertMsg(this->mData, ("data must not be NULL"));
    1685         return this->mData != NULL && mBackupData != NULL &&
    1686                !(*this->mData == *mBackupData);
    1687     }
    1688 
    16891682    D *backedUpData() const
    16901683    {
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