Changeset 49103 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Oct 15, 2013 6:20:39 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89937
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImpl.cpp
r49039 r49103 1559 1559 1560 1560 /** 1561 * Private method; delete all records from the list 1562 * m->llDescriptions that match the given type. 1563 * @param aType 1564 * @return 1565 */ 1566 void VirtualSystemDescription::removeByType(VirtualSystemDescriptionType_T aType) 1567 { 1568 std::list<VirtualSystemDescriptionEntry*> vsd; 1569 1570 list<VirtualSystemDescriptionEntry>::iterator it = m->llDescriptions.begin(); 1571 while (it != m->llDescriptions.end()) 1572 { 1573 if (it->type == aType) 1574 it = m->llDescriptions.erase(it); 1575 else 1576 ++it; 1577 } 1578 } 1579 1580 /** 1561 1581 * Private method; looks thru the member hardware items for the IDE, SATA, or SCSI controller with 1562 1582 * the given reference ID. Useful when needing the controller for a particular -
trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp
r49047 r49103 597 597 m->optListExport = com::SafeArray<ExportOptions_T>(ComSafeArrayInArg(options)).toList(); 598 598 599 AssertReturn(!(m->optListExport.contains(ExportOptions_CreateManifest) && m->optListExport.contains(ExportOptions_ExportDVDImages)), E_INVALIDARG); 599 // AssertReturn(!(m->optListExport.contains(ExportOptions_CreateManifest) && m->optListExport.contains(ExportOptions_ExportDVDImages)), E_INVALIDARG); 600 601 m->fExportISOImages = m->optListExport.contains(ExportOptions_ExportDVDImages); 602 603 if (!m->fExportISOImages)/* remove all ISO images from VirtualSystemDescription */ 604 { 605 list< ComObjPtr<VirtualSystemDescription> >::const_iterator it; 606 for (it = m->virtualSystemDescriptions.begin(); 607 it != m->virtualSystemDescriptions.end(); 608 ++it) 609 { 610 ComObjPtr<VirtualSystemDescription> vsdescThis = (*it); 611 vsdescThis->removeByType(VirtualSystemDescriptionType_CDROM); 612 } 613 } 600 614 601 615 // do not allow entering this method if the appliance is busy reading or writing
Note:
See TracChangeset
for help on using the changeset viewer.