Changeset 37695 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Jun 29, 2011 6:53:37 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72555
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r37687 r37695 11691 11691 11692 11692 pAttach->updateMedium(NULL); 11693 pAttach->updateEjected(); 11693 11694 11694 11695 pAttach.queryInterfaceTo(aNewAttachment); -
trunk/src/VBox/Main/src-server/MediumAttachmentImpl.cpp
r36181 r37695 5 5 6 6 /* 7 * Copyright (C) 2006-20 09Oracle Corporation7 * Copyright (C) 2006-2011 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 62 62 { 63 63 Data() 64 : pMachine(NULL) 64 : pMachine(NULL), 65 fIsEjected(false) 65 66 { } 66 67 … … 68 69 Machine * const pMachine; 69 70 /* later: const ComObjPtr<MediumAttachment> mPeer; */ 71 72 bool fIsEjected; 70 73 71 74 Backupable<BackupableMediumAttachmentData> bd; … … 279 282 } 280 283 284 STDMETHODIMP MediumAttachment::COMGETTER(IsEjected)(BOOL *aEjected) 285 { 286 LogFlowThisFuncEnter(); 287 288 CheckComArgOutPointerValid(aEjected); 289 290 AutoCaller autoCaller(this); 291 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 292 293 AutoReadLock lock(this COMMA_LOCKVAL_SRC_POS); 294 295 *aEjected = m->fIsEjected; 296 297 LogFlowThisFuncLeave(); 298 return S_OK; 299 } 300 281 301 STDMETHODIMP MediumAttachment::COMGETTER(BandwidthGroup) (IBandwidthGroup **aBwGroup) 282 302 { … … 406 426 m->bd->pMedium = aMedium; 407 427 m->bd->fImplicit = false; 428 m->fIsEjected = false; 408 429 } 409 430 … … 417 438 } 418 439 440 /** Must be called from under this object's write lock. */ 441 void MediumAttachment::updateEjected() 442 { 443 Assert(isWriteLockOnCurrentThread()); 444 445 m->fIsEjected = true; 446 } 447 419 448 void MediumAttachment::updateBandwidthGroup(const Utf8Str &aBandwidthGroup) 420 449 {
Note:
See TracChangeset
for help on using the changeset viewer.