Changeset 26088 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 28, 2010 4:50:32 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57051
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r26046 r26088 414 414 } 415 415 416 bool AudioAdapter::isModified() 417 { 418 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 419 return mData.isBackedUp(); 420 } 421 422 bool AudioAdapter::isReallyModified() 423 { 424 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 425 return mData.hasActualChanges(); 426 } 427 416 428 /** 417 429 * @note Locks this object for writing. … … 471 483 * represented by @a aThat (locked for reading). 472 484 */ 473 void AudioAdapter::copyFrom 485 void AudioAdapter::copyFrom(AudioAdapter *aThat) 474 486 { 475 487 AssertReturnVoid (aThat != NULL); … … 489 501 490 502 /* this will back up current data */ 491 mData.assignCopy 503 mData.assignCopy(aThat->mData); 492 504 } 493 505 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/MachineImpl.cpp
r26044 r26088 588 588 589 589 /* commit all changes made during loading the settings file */ 590 commit(); 590 commit(); // @todo r=dj why do we need a commit during init?!? this is very expensive 591 591 } 592 592 else … … 9610 9610 * This is copied from registeredInit(), and may or may not be the right 9611 9611 * way to handle this. 9612 * 9613 * @todo r=dj review this, this gets called during machine power-down when 9614 * we have already saved the machine settings, there's no need to do this 9615 * twice. 9612 9616 */ 9613 9617 Assert(mData->mRegistered); -
trunk/src/VBox/Main/SnapshotImpl.cpp
r26051 r26088 1024 1024 if (SUCCEEDED(rc)) 1025 1025 /* commit all changes made during the initialization */ 1026 commit(); 1026 commit(); // @todo r=dj why do we need a commit in init?!? this is very expensive 1027 1027 1028 1028 /* Confirm a successful initialization when it's the case */ -
trunk/src/VBox/Main/include/AudioAdapterImpl.h
r26044 r26088 75 75 76 76 // public initializer/uninitializer for internal purposes only 77 HRESULT init 78 HRESULT init 79 HRESULT initCopy 77 HRESULT init(Machine *aParent); 78 HRESULT init(Machine *aParent, AudioAdapter *aThat); 79 HRESULT initCopy(Machine *aParent, AudioAdapter *aThat); 80 80 void uninit(); 81 81 82 82 STDMETHOD(COMGETTER(Enabled))(BOOL *aEnabled); 83 83 STDMETHOD(COMSETTER(Enabled))(BOOL aEnabled); 84 STDMETHOD(COMGETTER(AudioDriver)) 85 STDMETHOD(COMSETTER(AudioDriver)) 86 STDMETHOD(COMGETTER(AudioController)) 87 STDMETHOD(COMSETTER(AudioController)) 84 STDMETHOD(COMGETTER(AudioDriver))(AudioDriverType_T *aAudioDriverType); 85 STDMETHOD(COMSETTER(AudioDriver))(AudioDriverType_T aAudioDriverType); 86 STDMETHOD(COMGETTER(AudioController))(AudioControllerType_T *aAudioControllerType); 87 STDMETHOD(COMSETTER(AudioController))(AudioControllerType_T aAudioControllerType); 88 88 89 89 // public methods only for internal purposes … … 92 92 HRESULT saveSettings(settings::AudioAdapter &data); 93 93 94 bool isModified() { AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); return mData.isBackedUp(); }95 bool isReallyModified() { AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); return mData.hasActualChanges(); }94 bool isModified(); 95 bool isReallyModified(); 96 96 bool rollback(); 97 97 void commit(); 98 void copyFrom 98 void copyFrom(AudioAdapter *aThat); 99 99 100 100 // for VirtualBoxSupportErrorInfoImpl -
trunk/src/VBox/Main/include/AutoStateDep.h
r26046 r26088 57 57 58 58 AutoStateDependency(Machine *aThat) 59 : mThat(aThat), mRC(S_OK) 60 , mMachineState(MachineState_Null)61 ,mRegistered(FALSE)59 : mThat(aThat), mRC(S_OK), 60 mMachineState(MachineState_Null), 61 mRegistered(FALSE) 62 62 { 63 63 Assert(aThat);
Note:
See TracChangeset
for help on using the changeset viewer.