Changeset 25203 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Dec 4, 2009 7:30:50 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55684
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ParallelPortImpl.h
r25202 r25203 93 93 94 94 private: 95 96 95 HRESULT checkSetPath(const Utf8Str &str); 97 96 -
trunk/src/VBox/Main/include/SerialPortImpl.h
r24989 r25203 42 42 { 43 43 public: 44 45 struct Data46 {47 Data()48 : mSlot (0)49 , mEnabled (FALSE)50 , mIRQ (4)51 , mIOBase (0x3f8)52 , mHostMode (PortMode_Disconnected)53 , mServer (FALSE)54 {}55 56 bool operator== (const Data &that) const57 {58 return this == &that ||59 (mSlot == that.mSlot &&60 mEnabled == that.mEnabled &&61 mIRQ == that.mIRQ &&62 mIOBase == that.mIOBase &&63 mHostMode == that.mHostMode &&64 mPath == that.mPath &&65 mServer == that.mServer);66 }67 68 ULONG mSlot;69 BOOL mEnabled;70 ULONG mIRQ;71 ULONG mIOBase;72 PortMode_T mHostMode;73 Bstr mPath;74 BOOL mServer;75 };76 77 44 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (SerialPort) 78 45 … … 118 85 HRESULT saveSettings(settings::SerialPort &data); 119 86 120 bool isModified() { AutoWriteLock alock (this); return mData.isBackedUp(); }121 bool isReallyModified() { AutoWriteLock alock (this); return mData.hasActualChanges(); }87 bool isModified(); 88 bool isReallyModified(); 122 89 bool rollback(); 123 90 void commit(); 124 void copyFrom (SerialPort *aThat); 91 void copyFrom(SerialPort *aThat); 92 125 93 void applyDefaults (GuestOSType *aOsType); 126 94 … … 132 100 133 101 private: 102 HRESULT checkSetPath(const Utf8Str &str); 134 103 135 HRESULT checkSetPath (CBSTR aPath); 136 137 const ComObjPtr<Machine, ComWeakRef> mParent; 138 const ComObjPtr<SerialPort> mPeer; 139 140 Backupable<Data> mData; 104 struct Data; 105 Data *m; 141 106 }; 142 107
Note:
See TracChangeset
for help on using the changeset viewer.