Changeset 15991 in vbox for trunk/src/VBox/Main/include/FloppyDriveImpl.h
- Timestamp:
- Jan 16, 2009 2:02:20 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41663
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/FloppyDriveImpl.h
r15334 r15991 43 43 Data() 44 44 { 45 mEnabled= true;46 mState = DriveState_NotMounted;45 enabled = true; 46 state = DriveState_NotMounted; 47 47 } 48 48 … … 50 50 { 51 51 return this == &that || 52 ( mState == that.mState &&53 mImage.equalsTo (that.mImage) &&54 mHostDrive.equalsTo (that.mHostDrive));52 (state == that.state && 53 image.equalsTo (that.image) && 54 hostDrive.equalsTo (that.hostDrive)); 55 55 } 56 56 57 BOOL mEnabled;58 ComObjPtr <FloppyImage2> mImage;59 ComPtr <IHostFloppyDrive> mHostDrive;60 DriveState_T mState;57 BOOL enabled; 58 ComObjPtr <FloppyImage2> image; 59 ComPtr <IHostFloppyDrive> hostDrive; 60 DriveState_T state; 61 61 }; 62 62 … … 102 102 HRESULT saveSettings (settings::Key &aMachineNode); 103 103 104 bool isModified() { AutoWriteLock alock (this); return m Data.isBackedUp(); }105 bool isReallyModified() { AutoWriteLock alock (this); return m Data.hasActualChanges(); }104 bool isModified() { AutoWriteLock alock (this); return m.isBackedUp(); } 105 bool isReallyModified() { AutoWriteLock alock (this); return m.hasActualChanges(); } 106 106 bool rollback(); 107 107 void commit(); … … 113 113 // (ensure there is a caller and a read lock before calling them!) 114 114 115 Backupable <Data> &data() { return m Data; }115 Backupable <Data> &data() { return m; } 116 116 117 117 // for VirtualBoxSupportErrorInfoImpl … … 123 123 const ComObjPtr <FloppyDrive> mPeer; 124 124 125 Backupable <Data> m Data;125 Backupable <Data> m; 126 126 }; 127 127
Note:
See TracChangeset
for help on using the changeset viewer.