Changeset 25202 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Dec 4, 2009 7:13:21 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55683
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ParallelPortImpl.h
r24989 r25202 40 40 { 41 41 public: 42 43 struct Data44 {45 Data()46 : mSlot (0)47 , mEnabled (FALSE)48 , mIRQ (4)49 , mIOBase (0x378)50 {}51 52 bool operator== (const Data &that) const53 {54 return this == &that ||55 (mSlot == that.mSlot &&56 mEnabled == that.mEnabled &&57 mIRQ == that.mIRQ &&58 mIOBase == that.mIOBase &&59 mPath == that.mPath);60 }61 62 ULONG mSlot;63 BOOL mEnabled;64 ULONG mIRQ;65 ULONG mIOBase;66 Bstr mPath;67 };68 69 42 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (ParallelPort) 70 43 … … 79 52 END_COM_MAP() 80 53 81 DECLARE_EMPTY_CTOR_DTOR (ParallelPort) 54 ParallelPort() {} 55 ~ParallelPort() {} 82 56 83 57 HRESULT FinalConstruct(); … … 106 80 HRESULT saveSettings(settings::ParallelPort &data); 107 81 108 bool isModified() { AutoWriteLock alock (this); return mData.isBackedUp(); }109 bool isReallyModified() { AutoWriteLock alock (this); return mData.hasActualChanges(); }82 bool isModified(); 83 bool isReallyModified(); 110 84 bool rollback(); 111 85 void commit(); 112 void copyFrom 86 void copyFrom(ParallelPort *aThat); 113 87 114 88 // public methods for internal purposes only … … 120 94 private: 121 95 122 HRESULT checkSetPath (CBSTR aPath);96 HRESULT checkSetPath(const Utf8Str &str); 123 97 124 const ComObjPtr<Machine, ComWeakRef> mParent; 125 const ComObjPtr<ParallelPort> mPeer; 126 127 Backupable<Data> mData; 98 struct Data; 99 Data *m; 128 100 }; 129 101
Note:
See TracChangeset
for help on using the changeset viewer.