Changeset 78068 in vbox
- Timestamp:
- Apr 10, 2019 9:38:27 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129924
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/RecordingScreenSettingsImpl.h
r76562 r78068 44 44 45 45 // public initializer/uninitializer for internal purposes only 46 HRESULT init(RecordingSettings *aParent, uint32_t uScreenId, const settings::RecordingScreenSettings& data);47 HRESULT init(RecordingSettings *aParent, RecordingScreenSettings * that);48 HRESULT initCopy(RecordingSettings *aParent, RecordingScreenSettings * that);46 HRESULT init(RecordingSettings *aParent, uint32_t uScreenId, const settings::RecordingScreenSettings& aThat); 47 HRESULT init(RecordingSettings *aParent, RecordingScreenSettings *aThat); 48 HRESULT initCopy(RecordingSettings *aParent, RecordingScreenSettings *aThat); 49 49 void uninit(); 50 51 // public methods only for internal purposes52 HRESULT i_loadSettings(const settings::RecordingScreenSettings &data);53 HRESULT i_saveSettings(settings::RecordingScreenSettings &data);54 55 void i_rollback();56 void i_commit();57 void i_copyFrom(RecordingScreenSettings *aThat);58 void i_applyDefaults();59 50 60 51 private: -
trunk/src/VBox/Main/include/RecordingSettingsImpl.h
r76562 r78068 44 44 // public initializer/uninitializer for internal purposes only 45 45 HRESULT init(Machine *parent); 46 HRESULT init(Machine *parent, RecordingSettings * that);47 HRESULT initCopy(Machine *parent, RecordingSettings * that);46 HRESULT init(Machine *parent, RecordingSettings *aThat); 47 HRESULT initCopy(Machine *parent, RecordingSettings *aThat); 48 48 void uninit(); 49 49 -
trunk/src/VBox/Main/src-server/RecordingScreenSettingsImpl.cpp
r76553 r78068 72 72 73 73 /** 74 * Initializes the audio adapterobject.74 * Initializes the recording screen settings object. 75 75 * 76 76 * @returns COM result indicator 77 77 */ 78 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, uint32_t uScreenId, const settings::RecordingScreenSettings& data) 78 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, uint32_t uScreenId, 79 const settings::RecordingScreenSettings& aThat) 79 80 { 80 81 LogFlowThisFuncEnter(); … … 96 97 m->uScreenId = uScreenId; 97 98 m->bd.allocate(); 98 m->bd->operator=( data);99 m->bd->operator=(aThat); 99 100 100 101 HRESULT rc = S_OK; … … 123 124 * it shares data with is destroyed. 124 125 */ 125 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, RecordingScreenSettings * that)126 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, RecordingScreenSettings *aThat) 126 127 { 127 128 LogFlowThisFuncEnter(); 128 LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));129 130 ComAssertRet(aParent && that, E_INVALIDARG);129 LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat)); 130 131 ComAssertRet(aParent && aThat, E_INVALIDARG); 131 132 132 133 /* Enclose the state transition NotReady->InInit->Ready */ … … 137 138 138 139 unconst(m->pParent) = aParent; 139 m->pPeer = that;140 141 AutoWriteLock thatlock( that COMMA_LOCKVAL_SRC_POS);142 143 m->uScreenId = that->m->uScreenId;144 m->bd.share( that->m->bd);140 m->pPeer = aThat; 141 142 AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS); 143 144 m->uScreenId = aThat->m->uScreenId; 145 m->bd.share(aThat->m->bd); 145 146 146 147 HRESULT rc = S_OK; … … 166 167 * of the original object passed as an argument. 167 168 */ 168 HRESULT RecordingScreenSettings::initCopy(RecordingSettings *aParent, RecordingScreenSettings * that)169 HRESULT RecordingScreenSettings::initCopy(RecordingSettings *aParent, RecordingScreenSettings *aThat) 169 170 { 170 171 LogFlowThisFuncEnter(); 171 LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));172 173 ComAssertRet(aParent && that, E_INVALIDARG);172 LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat)); 173 174 ComAssertRet(aParent && aThat, E_INVALIDARG); 174 175 175 176 /* Enclose the state transition NotReady->InInit->Ready */ … … 182 183 /* mPeer is left null. */ 183 184 184 AutoWriteLock thatlock( that COMMA_LOCKVAL_SRC_POS);185 186 m->uScreenId = that->m->uScreenId;187 m->bd.attachCopy( that->m->bd);185 AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS); 186 187 m->uScreenId = aThat->m->uScreenId; 188 m->bd.attachCopy(aThat->m->bd); 188 189 189 190 HRESULT rc = S_OK; -
trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp
r76553 r78068 65 65 66 66 /** 67 * Initializes the audio adapterobject.67 * Initializes the recording settings object. 68 68 * 69 69 * @returns COM result indicator … … 101 101 * it shares data with is destroyed. 102 102 */ 103 HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings * that)104 { 105 LogFlowThisFuncEnter(); 106 LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));107 108 ComAssertRet(aParent && that, E_INVALIDARG);103 HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings *aThat) 104 { 105 LogFlowThisFuncEnter(); 106 LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat)); 107 108 ComAssertRet(aParent && aThat, E_INVALIDARG); 109 109 110 110 /* Enclose the state transition NotReady->InInit->Ready */ … … 115 115 116 116 unconst(m->pMachine) = aParent; 117 m->pPeer = that;118 119 AutoWriteLock thatlock( that COMMA_LOCKVAL_SRC_POS);120 121 m->bd.share( that->m->bd);122 m->mapScreenObj = that->m->mapScreenObj;117 m->pPeer = aThat; 118 119 AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS); 120 121 m->bd.share(aThat->m->bd); 122 m->mapScreenObj = aThat->m->mapScreenObj; 123 123 124 124 autoInitSpan.setSucceeded(); … … 133 133 * of the original object passed as an argument. 134 134 */ 135 HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings * that)136 { 137 LogFlowThisFuncEnter(); 138 LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));139 140 ComAssertRet(aParent && that, E_INVALIDARG);135 HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings *aThat) 136 { 137 LogFlowThisFuncEnter(); 138 LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat)); 139 140 ComAssertRet(aParent && aThat, E_INVALIDARG); 141 141 142 142 /* Enclose the state transition NotReady->InInit->Ready */ … … 149 149 // mPeer is left null 150 150 151 AutoWriteLock thatlock( that COMMA_LOCKVAL_SRC_POS);152 153 m->bd.attachCopy( that->m->bd);154 m->mapScreenObj = that->m->mapScreenObj;151 AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS); 152 153 m->bd.attachCopy(aThat->m->bd); 154 m->mapScreenObj = aThat->m->mapScreenObj; 155 155 156 156 autoInitSpan.setSucceeded();
Note:
See TracChangeset
for help on using the changeset viewer.