Changeset 64996 in vbox
- Timestamp:
- Dec 22, 2016 7:41:00 AM (8 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImpl.h
r63584 r64996 40 40 #include "PerformanceImpl.h" 41 41 #include "ThreadTask.h" 42 #include "UnattendedImpl.h" 43 42 44 #endif /* VBOX_WITH_RESOURCE_USAGE_API */ 43 45 … … 772 774 const ComObjPtr<BIOSSettings> mBIOSSettings; 773 775 const ComObjPtr<BandwidthControl> mBandwidthControl; 776 const ComObjPtr<Unattended> mUnattended; 774 777 775 778 typedef std::vector<ComObjPtr<NetworkAdapter> > NetworkAdapterVector; … … 977 980 HRESULT getVMProcessPriority(com::Utf8Str &aVMProcessPriority); 978 981 HRESULT setVMProcessPriority(const com::Utf8Str &aVMProcessPriority); 982 HRESULT getUnattended(ComPtr<IUnattended> &aUnattended); 979 983 980 984 // wrapped IMachine methods -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r63584 r64996 7161 7161 } 7162 7162 7163 HRESULT Machine::getUnattended(ComPtr<IUnattended> &aUnattended) 7164 { 7165 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 7166 7167 aUnattended = mUnattended; 7168 7169 return S_OK; 7170 } 7171 7163 7172 HRESULT Machine::cloneTo(const ComPtr<IMachine> &aTarget, CloneMode_T aMode, const std::vector<CloneOptions_T> &aOptions, 7164 7173 ComPtr<IProgress> &aProgress) … … 8386 8395 mBandwidthControl->init(this); 8387 8396 8397 /* create the unattended object (always present) */ 8398 unconst(mUnattended).createObject(); 8399 mUnattended->init(this); 8400 8388 8401 return S_OK; 8389 8402 } … … 8461 8474 mBIOSSettings->uninit(); 8462 8475 unconst(mBIOSSettings).setNull(); 8476 } 8477 8478 if (mUnattended) 8479 { 8480 mUnattended->uninit(); 8481 unconst(mUnattended).setNull(); 8463 8482 } 8464 8483 … … 12510 12529 mBandwidthControl->init(this, aMachine->mBandwidthControl); 12511 12530 12531 /* create another unattended object that will be mutable */ 12532 unconst(mUnattended).createObject(); 12533 mUnattended->init(this, aMachine->mUnattended); 12534 12512 12535 /* default is to delete saved state on Saved -> PoweredOff transition */ 12513 12536 mRemoveSavedState = true;
Note:
See TracChangeset
for help on using the changeset viewer.