Changeset 1469 in vbox
- Timestamp:
- Mar 14, 2007 2:54:19 PM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r1381 r1469 338 338 bool startMachine (const QUuid &id); 339 339 340 void addMediaToList (const CUnknown&, VBoxDefs::DiskType);341 342 340 void startEnumeratingMedia(); 343 341 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r1441 r1469 1147 1147 1148 1148 /** 1149 * Appends media_list with passed disk & it's children 1150 */ 1151 void VBoxGlobal::addMediaToList (const CUnknown &aDisk, 1152 VBoxDefs::DiskType aType) 1149 * Appends the disk object and all its children to the media list. 1150 */ 1151 static 1152 void addMediaToList (VBoxMediaList &aList, 1153 const CUnknown &aDisk, 1154 VBoxDefs::DiskType aType) 1153 1155 { 1154 1156 VBoxMedia media (aDisk, aType, VBoxMedia::Unknown); 1155 media_list += media;1156 /* append ingall vdi children */1157 aList += media; 1158 /* append all vdi children */ 1157 1159 if (aType == VBoxDefs::HD) 1158 1160 { … … 1162 1164 { 1163 1165 CHardDisk subHd = enumerator.GetNext(); 1164 addMediaToList ( CUnknown (subHd), VBoxDefs::HD);1166 addMediaToList (aList, CUnknown (subHd), VBoxDefs::HD); 1165 1167 } 1166 1168 } … … 1194 1196 CHardDiskEnumerator enHD = vbox.GetHardDisks().Enumerate(); 1195 1197 while (enHD.HasMore()) 1196 addMediaToList ( CUnknown (enHD.GetNext()), VBoxDefs::HD);1198 addMediaToList (media_list, CUnknown (enHD.GetNext()), VBoxDefs::HD); 1197 1199 1198 1200 CDVDImageEnumerator enCD = vbox.GetDVDImages().Enumerate(); 1199 1201 while (enCD.HasMore()) 1200 addMediaToList ( CUnknown (enCD.GetNext()), VBoxDefs::CD);1202 addMediaToList (media_list, CUnknown (enCD.GetNext()), VBoxDefs::CD); 1201 1203 1202 1204 CFloppyImageEnumerator enFD = vbox.GetFloppyImages().Enumerate(); 1203 1205 while (enFD.HasMore()) 1204 addMediaToList ( CUnknown (enFD.GetNext()), VBoxDefs::FD);1206 addMediaToList (media_list, CUnknown (enFD.GetNext()), VBoxDefs::FD); 1205 1207 } 1206 1208
Note:
See TracChangeset
for help on using the changeset viewer.