Changeset 66126 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Mar 16, 2017 2:06:27 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114027
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImpl.h
r65158 r66126 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 235 235 * 236 236 * SessionMachine instances can alter this data and discard changes. 237 * 238 * @todo r=klaus move all "pointer" objects out of this struct, as they 239 * need non-obvious handling when creating a new session or when taking 240 * a snapshot. Better do this right straight away, not relying on the 241 * template magic which doesn't work right in this case. 237 242 */ 238 243 struct HWData … … 327 332 }; 328 333 329 /** 330 * Hard disk and other media data. 331 * 332 * The usage policy is the same as for HWData, but a separate structure 333 * is necessary because hard disk data requires different procedures when 334 * taking or deleting snapshots, etc. 335 * 336 * The data variable is |mMediaData|. 337 */ 338 struct MediaData 339 { 340 MediaData(); 341 ~MediaData(); 342 343 typedef std::list<ComObjPtr<MediumAttachment> > AttachmentList; 344 AttachmentList mAttachments; 345 }; 334 typedef std::list<ComObjPtr<MediumAttachment> > MediumAttachmentList; 346 335 347 336 DECLARE_EMPTY_CTOR_DTOR(Machine) … … 601 590 602 591 HRESULT i_getMediumAttachmentsOfController(const Utf8Str &aName, 603 Medi aData::AttachmentList &aAttachments);592 MediumAttachmentList &aAttachments); 604 593 605 594 HRESULT i_getUSBControllerByName(const Utf8Str &aName, … … 694 683 HRESULT i_deleteImplicitDiffs(bool aOnline); 695 684 696 MediumAttachment* i_findAttachment(const Medi aData::AttachmentList &ll,685 MediumAttachment* i_findAttachment(const MediumAttachmentList &ll, 697 686 const Utf8Str &aControllerName, 698 687 LONG aControllerPort, 699 688 LONG aDevice); 700 MediumAttachment* i_findAttachment(const Medi aData::AttachmentList &ll,689 MediumAttachment* i_findAttachment(const MediumAttachmentList &ll, 701 690 ComObjPtr<Medium> pMedium); 702 MediumAttachment* i_findAttachment(const Medi aData::AttachmentList &ll,691 MediumAttachment* i_findAttachment(const MediumAttachmentList &ll, 703 692 Guid &id); 704 693 … … 762 751 Backupable<UserData> mUserData; 763 752 Backupable<HWData> mHWData; 764 Backupable<MediaData> mMediaData; 753 754 /** 755 * Hard disk and other media data. 756 * 757 * The usage policy is the same as for mHWData, but a separate field 758 * is necessary because hard disk data requires different procedures when 759 * taking or deleting snapshots, etc. 760 * 761 * @todo r=klaus change this to a regular list and use the normal way to 762 * handle the settings when creating a session or taking a snapshot. 763 * Same thing applies to mStorageControllers and mUSBControllers. 764 */ 765 Backupable<MediumAttachmentList> mMediumAttachments; 765 766 766 767 // the following fields need special backup/rollback/commit handling,
Note:
See TracChangeset
for help on using the changeset viewer.