Changeset 16853 in vbox
- Timestamp:
- Feb 17, 2009 3:48:20 PM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r16735 r16853 1353 1353 /* first assume it's a UUID */ 1354 1354 Guid uuid(a->argv[2]); 1355 ComPtr<IDVDImage 2> dvdImage;1355 ComPtr<IDVDImage> dvdImage; 1356 1356 rc = a->virtualBox->GetDVDImage(uuid, dvdImage.asOutParam()); 1357 1357 if (FAILED(rc) || !dvdImage) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r16530 r16853 909 909 else if (strcmp(a->argv[0], "dvd") == 0) 910 910 { 911 ComPtr<IDVDImage 2> dvdImage;911 ComPtr<IDVDImage> dvdImage; 912 912 CHECK_ERROR(a->virtualBox, OpenDVDImage(filepath, Guid(), dvdImage.asOutParam())); 913 913 } … … 950 950 if (strcmp(a->argv[0], "dvd") == 0) 951 951 { 952 ComPtr<IDVDImage 2> dvdImage;952 ComPtr<IDVDImage> dvdImage; 953 953 rc = a->virtualBox->GetDVDImage(uuid, dvdImage.asOutParam()); 954 954 /* not a UUID or not registered? Then it must be a filename */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r16530 r16853 572 572 if (SUCCEEDED(rc) && dvdDrive) 573 573 { 574 ComPtr<IDVDImage 2> dvdImage;574 ComPtr<IDVDImage> dvdImage; 575 575 rc = dvdDrive->GetImage(dvdImage.asOutParam()); 576 576 if (SUCCEEDED(rc) && dvdImage) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r16530 r16853 431 431 if (strcmp(a->argv[0], "dvds") == 0) 432 432 { 433 com::SafeIfaceArray<IDVDImage 2> dvds;433 com::SafeIfaceArray<IDVDImage> dvds; 434 434 CHECK_ERROR(a->virtualBox, COMGETTER(DVDImages)(ComSafeArrayAsOutParam(dvds))); 435 435 for (size_t i = 0; i < dvds.size(); ++ i) 436 436 { 437 ComPtr<IDVDImage 2> dvdImage = dvds[i];437 ComPtr<IDVDImage> dvdImage = dvds[i]; 438 438 Guid uuid; 439 439 dvdImage->COMGETTER(Id)(uuid.asOutParam()); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r16530 r16853 1119 1119 /* first assume it's a UUID */ 1120 1120 Guid uuid(dvd); 1121 ComPtr<IDVDImage 2> dvdImage;1121 ComPtr<IDVDImage> dvdImage; 1122 1122 rc = a->virtualBox->GetDVDImage(uuid, dvdImage.asOutParam()); 1123 1123 if (FAILED(rc) || !dvdImage) -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r16530 r16853 1787 1787 { 1788 1788 /* try to find an existing one */ 1789 ComPtr <IDVDImage 2> image;1789 ComPtr <IDVDImage> image; 1790 1790 rc = virtualBox->FindDVDImage (medium, image.asOutParam()); 1791 1791 if (FAILED (rc)) -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r16637 r16853 147 147 148 148 const CHardDisk2 &hardDisk() const { return mHardDisk; } 149 const CDVDImage 2&dvdImage() const { return mDVDImage; }149 const CDVDImage &dvdImage() const { return mDVDImage; } 150 150 const CFloppyImage2 &floppyImage() const { return mFloppyImage; } 151 151 … … 247 247 248 248 CHardDisk2 mHardDisk; 249 CDVDImage 2mDVDImage;249 CDVDImage mDVDImage; 250 250 CFloppyImage2 mFloppyImage; 251 251 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r16806 r16853 2916 2916 .arg (vbox.GetVersion().remove ("_OSE")); 2917 2917 2918 CDVDImage 2Vector vec = vbox.GetDVDImages();2919 for (CDVDImage 2Vector::ConstIterator it = vec.begin();2918 CDVDImageVector vec = vbox.GetDVDImages(); 2919 for (CDVDImageVector::ConstIterator it = vec.begin(); 2920 2920 it != vec.end(); ++ it) 2921 2921 { … … 2949 2949 QUuid uuid; 2950 2950 2951 CDVDImage 2image = vbox.FindDVDImage (aSource);2951 CDVDImage image = vbox.FindDVDImage (aSource); 2952 2952 if (image.isNull()) 2953 2953 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r16637 r16853 2293 2293 case KDriveState_ImageMounted: 2294 2294 { 2295 CDVDImage 2img = dvd.GetImage();2295 CDVDImage img = dvd.GetImage(); 2296 2296 item = QString (sSectionItemTpl2) 2297 2297 .arg (tr ("Image", "details report (DVD)"), … … 3002 3002 VBoxMediaList::iterator first = mMediaList.end(); 3003 3003 3004 CDVDImage 2Vector vec = mVBox.GetDVDImages();3005 for (CDVDImage 2Vector::ConstIterator it = vec.begin();3004 CDVDImageVector vec = mVBox.GetDVDImages(); 3005 for (CDVDImageVector::ConstIterator it = vec.begin(); 3006 3006 it != vec.end(); ++ it) 3007 3007 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp
r15185 r16853 1127 1127 case VBoxDefs::MediaType_DVD: 1128 1128 { 1129 CDVDImage 2image = item->medium().dvdImage();1129 CDVDImage image = item->medium().dvdImage(); 1130 1130 image.Close(); 1131 1131 result = image; … … 1554 1554 case VBoxDefs::MediaType_DVD: 1555 1555 { 1556 CDVDImage 2image = mVBox.OpenDVDImage (aLocation, uuid);1556 CDVDImage image = mVBox.OpenDVDImage (aLocation, uuid); 1557 1557 if (mVBox.isOk()) 1558 1558 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsCD.cpp
r14039 r16853 109 109 case KDriveState_ImageMounted: 110 110 { 111 CDVDImage 2img = dvd.GetImage();111 CDVDImage img = dvd.GetImage(); 112 112 QString src = img.GetLocation(); 113 113 AssertMsg (!src.isNull(), ("Image file must not be null")); -
trunk/src/VBox/Main/ApplianceImpl.cpp
r16849 r16853 238 238 appliance.createObject(); 239 239 rc = appliance->init(this); 240 // ComAssertComRCThrowRC(rc);241 240 242 241 if (SUCCEEDED(rc)) -
trunk/src/VBox/Main/ConsoleImpl.cpp
r16364 r16853 2551 2551 case DriveState_ImageMounted: 2552 2552 { 2553 ComPtr <IDVDImage 2> ImagePtr;2553 ComPtr <IDVDImage> ImagePtr; 2554 2554 rc = mDVDDrive->GetImage (ImagePtr.asOutParam()); 2555 2555 if (SUCCEEDED (rc)) … … 4410 4410 if (driveState == DriveState_ImageMounted) 4411 4411 { 4412 ComPtr <IDVDImage 2> image;4412 ComPtr <IDVDImage> image; 4413 4413 rc = drive->GetImage (image.asOutParam()); 4414 4414 CheckComRCReturnRC (rc); -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r16745 r16853 1071 1071 rc = CFGMR3InsertInteger(pCfg, "Mountable", 1); RC_CHECK(); 1072 1072 1073 ComPtr<IDVDImage 2> dvdImage;1073 ComPtr<IDVDImage> dvdImage; 1074 1074 hrc = dvdDrive->GetImage(dvdImage.asOutParam()); H(); 1075 1075 if (dvdImage) -
trunk/src/VBox/Main/DVDDriveImpl.cpp
r16560 r16853 266 266 * We also don't lock mParent since its mParent field is const. */ 267 267 268 ComObjPtr <DVDImage2> image;269 rc = mParent->virtualBox()->findDVDImage 2(&imageId, NULL,270 268 ComObjPtr<DVDImage> image; 269 rc = mParent->virtualBox()->findDVDImage(&imageId, NULL, 270 true /* aSetError */, &image); 271 271 272 272 if (SUCCEEDED (rc)) … … 370 370 } 371 371 372 STDMETHODIMP DVDDrive::GetImage (IDVDImage 2**aDVDImage)372 STDMETHODIMP DVDDrive::GetImage (IDVDImage **aDVDImage) 373 373 { 374 374 CheckComArgOutPointerValid(aDVDImage); -
trunk/src/VBox/Main/MediumImpl.cpp
r16560 r16853 1096 1096 1097 1097 //////////////////////////////////////////////////////////////////////////////// 1098 // DVDImage 2class1099 //////////////////////////////////////////////////////////////////////////////// 1100 1101 DEFINE_EMPTY_CTOR_DTOR (DVDImage 2)1098 // DVDImage class 1099 //////////////////////////////////////////////////////////////////////////////// 1100 1101 DEFINE_EMPTY_CTOR_DTOR (DVDImage) 1102 1102 1103 1103 /** … … 1105 1105 * mVirtualBox write lock. 1106 1106 */ 1107 HRESULT DVDImage 2::unregisterWithVirtualBox()1107 HRESULT DVDImage::unregisterWithVirtualBox() 1108 1108 { 1109 1109 return mVirtualBox->unregisterDVDImage (this); -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r16707 r16853 643 643 644 644 STDMETHODIMP 645 VirtualBox::COMGETTER(DVDImages) (ComSafeArrayOut (IDVDImage 2*, aDVDImages))645 VirtualBox::COMGETTER(DVDImages) (ComSafeArrayOut (IDVDImage *, aDVDImages)) 646 646 { 647 647 if (ComSafeArrayOutIsNull (aDVDImages)) … … 653 653 AutoReadLock alock (this); 654 654 655 SafeIfaceArray <IDVDImage 2> images (mData.mDVDImages2);655 SafeIfaceArray <IDVDImage> images (mData.mDVDImages2); 656 656 images.detachTo (ComSafeArrayOutArg (aDVDImages)); 657 657 … … 1166 1166 /** @note Doesn't lock anything. */ 1167 1167 STDMETHODIMP VirtualBox::OpenDVDImage (IN_BSTR aLocation, IN_GUID aId, 1168 IDVDImage 2**aDVDImage)1168 IDVDImage **aDVDImage) 1169 1169 { 1170 1170 CheckComArgStrNotEmptyOrNull(aLocation); … … 1181 1181 id.create(); 1182 1182 1183 ComObjPtr <DVDImage 2> image;1183 ComObjPtr <DVDImage> image; 1184 1184 image.createObject(); 1185 1185 rc = image->init (this, aLocation, id); … … 1196 1196 1197 1197 /** @note Locks objects! */ 1198 STDMETHODIMP VirtualBox::GetDVDImage (IN_GUID aId, IDVDImage 2**aDVDImage)1198 STDMETHODIMP VirtualBox::GetDVDImage (IN_GUID aId, IDVDImage **aDVDImage) 1199 1199 { 1200 1200 CheckComArgOutSafeArrayPointerValid(aDVDImage); … … 1204 1204 1205 1205 Guid id = aId; 1206 ComObjPtr <DVDImage 2> image;1207 HRESULT rc = findDVDImage 2(&id, NULL, true /* setError */, &image);1206 ComObjPtr <DVDImage> image; 1207 HRESULT rc = findDVDImage (&id, NULL, true /* setError */, &image); 1208 1208 1209 1209 /* the below will set *aDVDImage to NULL if image is null */ … … 1214 1214 1215 1215 /** @note Locks objects! */ 1216 STDMETHODIMP VirtualBox::FindDVDImage (IN_BSTR aLocation, IDVDImage 2**aDVDImage)1216 STDMETHODIMP VirtualBox::FindDVDImage (IN_BSTR aLocation, IDVDImage **aDVDImage) 1217 1217 { 1218 1218 CheckComArgNotNull(aLocation); … … 1222 1222 CheckComRCReturnRC (autoCaller.rc()); 1223 1223 1224 ComObjPtr <DVDImage 2> image;1225 HRESULT rc = findDVDImage 2(NULL, aLocation, true /* setError */, &image);1224 ComObjPtr <DVDImage> image; 1225 HRESULT rc = findDVDImage (NULL, aLocation, true /* setError */, &image); 1226 1226 1227 1227 /* the below will set *aDVDImage to NULL if dvd is null */ … … 2696 2696 2697 2697 /** 2698 * Searches for a DVDImage 2object with the given ID or location in the list of2698 * Searches for a DVDImage object with the given ID or location in the list of 2699 2699 * registered DVD images. If both ID and file path are specified, the first 2700 2700 * object that matches either of them (not necessarily both) is returned. … … 2710 2710 * @note Locks this object and image objects for reading. 2711 2711 */ 2712 HRESULT VirtualBox::findDVDImage 2(const Guid *aId, CBSTR aLocation,2713 2714 ComObjPtr <DVDImage2> *aImage /* = NULL */)2712 HRESULT VirtualBox::findDVDImage(const Guid *aId, CBSTR aLocation, 2713 bool aSetError, 2714 ComObjPtr<DVDImage> *aImage /* = NULL */) 2715 2715 { 2716 2716 AssertReturn (aId || aLocation, E_INVALIDARG); … … 2731 2731 bool found = false; 2732 2732 2733 for (DVDImage 2List::const_iterator it = mData.mDVDImages2.begin();2733 for (DVDImageList::const_iterator it = mData.mDVDImages2.begin(); 2734 2734 it != mData.mDVDImages2.end(); 2735 2735 ++ it) … … 2939 2939 2940 2940 { 2941 ComObjPtr <DVDImage2> image;2942 rc = findDVDImage 2(&aId, aLocation, false /* aSetError */, &image);2941 ComObjPtr<DVDImage> image; 2942 rc = findDVDImage (&aId, aLocation, false /* aSetError */, &image); 2943 2943 if (SUCCEEDED (rc)) 2944 2944 { … … 3069 3069 case 1: /* DVDImages */ 3070 3070 { 3071 ComObjPtr <DVDImage2> image;3071 ComObjPtr<DVDImage> image; 3072 3072 image.createObject(); 3073 3073 rc = image->init (this, *it); … … 3182 3182 Key imagesNode = registryNode.createKey ("DVDImages"); 3183 3183 3184 for (DVDImage 2List::const_iterator it =3184 for (DVDImageList::const_iterator it = 3185 3185 mData.mDVDImages2.begin(); 3186 3186 it != mData.mDVDImages2.end(); … … 3423 3423 * @note Locks this object for writing and @a aImage for reading. 3424 3424 */ 3425 HRESULT VirtualBox::registerDVDImage (DVDImage 2*aImage,3425 HRESULT VirtualBox::registerDVDImage (DVDImage *aImage, 3426 3426 bool aSaveRegistry /*= true*/) 3427 3427 { … … 3480 3480 * @note Locks this object for writing and @a aImage for reading. 3481 3481 */ 3482 HRESULT VirtualBox::unregisterDVDImage (DVDImage 2*aImage,3482 HRESULT VirtualBox::unregisterDVDImage (DVDImage *aImage, 3483 3483 bool aSaveRegistry /*= true*/) 3484 3484 { … … 3667 3667 3668 3668 /* check DVD paths */ 3669 for (DVDImage 2List::iterator it = mData.mDVDImages2.begin();3669 for (DVDImageList::iterator it = mData.mDVDImages2.begin(); 3670 3670 it != mData.mDVDImages2.end(); 3671 3671 ++ it) -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r16830 r16853 1395 1395 </attribute> 1396 1396 1397 <attribute name="DVDImages" type="IDVDImage 2" readonly="yes" safearray="yes">1397 <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes"> 1398 1398 <desc> 1399 1399 Array of CD/DVD image objects registered with this VirtualBox instance. … … 1940 1940 </desc> 1941 1941 </param> 1942 <param name="image" type="IDVDImage 2" dir="return">1942 <param name="image" type="IDVDImage" dir="return"> 1943 1943 <desc>Opened CD/DVD image object.</desc> 1944 1944 </param> … … 1961 1961 <desc>UUID of the image to look for.</desc> 1962 1962 </param> 1963 <param name="image" type="IDVDImage 2" dir="return">1963 <param name="image" type="IDVDImage" dir="return"> 1964 1964 <desc>Found CD/DVD image object.</desc> 1965 1965 </param> … … 1996 1996 <desc>CD/DVD image file path to look for.</desc> 1997 1997 </param> 1998 <param name="image" type="IDVDImage 2" dir="return">1998 <param name="image" type="IDVDImage" dir="return"> 1999 1999 <desc>Found CD/DVD image object.</desc> 2000 2000 </param> … … 7723 7723 <ul> 7724 7724 <li>IHardDisk2 (virtual hard disks)</li> 7725 <li>IDVDImage 2(standard CD/DVD ISO image files)</li>7725 <li>IDVDImage (standard CD/DVD ISO image files)</li> 7726 7726 <li>IFloppyImage2 (raw floppy image files)</li> 7727 7727 </ul> … … 7852 7852 For example, states <link to="MediaState_NotCreated"/>, 7853 7853 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>, 7854 <link to="MediaState_Deleting"/> are meaningless for IDVDImage 2and7854 <link to="MediaState_Deleting"/> are meaningless for IDVDImage and 7855 7855 IFloppyImage2 media. 7856 7856 </desc> … … 9277 9277 9278 9278 <!-- 9279 // IDVDImage 29279 // IDVDImage 9280 9280 ///////////////////////////////////////////////////////////////////////// 9281 9281 --> 9282 9282 9283 9283 <interface 9284 name="IDVDImage 2" extends="IMedium"9285 uuid=" 1c5165f1-9543-478d-a117-84a1d2317068"9284 name="IDVDImage" extends="IMedium" 9285 uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763" 9286 9286 wsmap="managed" 9287 9287 > 9288 9288 <desc> 9289 The IDVDImage 2interface represents a medium containing the image9289 The IDVDImage interface represents a medium containing the image 9290 9290 of a CD or DVD disk in the ISO format. 9291 9292 This is a subclass of <link to="IMedium" />; see remarks there. 9291 9293 </desc> 9292 9294 … … 9351 9353 <method name="getImage"> 9352 9354 <desc>Returns the currently mounted CD/DVD image.</desc> 9353 <param name="image" type="IDVDImage 2" dir="return"/>9355 <param name="image" type="IDVDImage" dir="return"/> 9354 9356 </method> 9355 9357 -
trunk/src/VBox/Main/include/DVDDriveImpl.h
r15991 r16853 55 55 } 56 56 57 ComObjPtr <DVDImage2> image;57 ComObjPtr<DVDImage> image; 58 58 ComPtr <IHostDVDDrive> hostDrive; 59 59 DriveState_T state; … … 94 94 STDMETHOD(CaptureHostDrive) (IHostDVDDrive *aHostDVDDrive); 95 95 STDMETHOD(Unmount)(); 96 STDMETHOD(GetImage) (IDVDImage2**aDVDImage);96 STDMETHOD(GetImage)(IDVDImage **aDVDImage); 97 97 STDMETHOD(GetHostDrive) (IHostDVDDrive **aHostDVDDrive); 98 98 -
trunk/src/VBox/Main/include/MediumImpl.h
r15051 r16853 236 236 237 237 /** 238 * The DVDImage 2 component class implements the IDVDImage2interface.239 */ 240 class ATL_NO_VTABLE DVDImage 2241 : public com::SupportErrorInfoDerived <ImageMediumBase, DVDImage2, IDVDImage2>242 , public VirtualBoxSupportTranslation <DVDImage2>243 , public IDVDImage 2238 * The DVDImage component class implements the IDVDImage interface. 239 */ 240 class ATL_NO_VTABLE DVDImage 241 : public com::SupportErrorInfoDerived<ImageMediumBase, DVDImage, IDVDImage> 242 , public VirtualBoxSupportTranslation<DVDImage> 243 , public IDVDImage 244 244 { 245 245 public: … … 247 247 COM_FORWARD_IMedium_TO_BASE (ImageMediumBase) 248 248 249 VIRTUALBOXSUPPORTTRANSLATION_OVERRIDE (DVDImage 2)250 251 DECLARE_NOT_AGGREGATABLE (DVDImage 2)249 VIRTUALBOXSUPPORTTRANSLATION_OVERRIDE (DVDImage) 250 251 DECLARE_NOT_AGGREGATABLE (DVDImage) 252 252 253 253 DECLARE_PROTECT_FINAL_CONSTRUCT() 254 254 255 BEGIN_COM_MAP (DVDImage 2)255 BEGIN_COM_MAP (DVDImage) 256 256 COM_INTERFACE_ENTRY (ISupportErrorInfo) 257 257 COM_INTERFACE_ENTRY2 (IMedium, ImageMediumBase) 258 COM_INTERFACE_ENTRY (IDVDImage 2)258 COM_INTERFACE_ENTRY (IDVDImage) 259 259 END_COM_MAP() 260 260 261 261 NS_DECL_ISUPPORTS 262 262 263 DECLARE_EMPTY_CTOR_DTOR (DVDImage 2)263 DECLARE_EMPTY_CTOR_DTOR (DVDImage) 264 264 265 265 // public initializer/uninitializer for internal purposes only … … 279 279 280 280 /** For com::SupportErrorInfoImpl. */ 281 static const char *ComponentName() { return "DVDImage 2"; }281 static const char *ComponentName() { return "DVDImage"; } 282 282 283 283 private: -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r16707 r16853 44 44 class SessionMachine; 45 45 class HardDisk2; 46 class DVDImage 2;46 class DVDImage; 47 47 class FloppyImage2; 48 48 class MachineCollection; … … 127 127 STDMETHOD(COMGETTER(Machines2)) (ComSafeArrayOut (IMachine *, aMachines)); 128 128 STDMETHOD(COMGETTER(HardDisks2)) (ComSafeArrayOut (IHardDisk2 *, aHardDisks)); 129 STDMETHOD(COMGETTER(DVDImages)) (ComSafeArrayOut (IDVDImage 2*, aDVDImages));129 STDMETHOD(COMGETTER(DVDImages)) (ComSafeArrayOut (IDVDImage *, aDVDImages)); 130 130 STDMETHOD(COMGETTER(FloppyImages)) (ComSafeArrayOut (IFloppyImage2 *, aFloppyImages)); 131 131 STDMETHOD(COMGETTER(ProgressOperations)) (ComSafeArrayOut (IProgress *, aOperations)); … … 154 154 155 155 STDMETHOD(OpenDVDImage) (IN_BSTR aLocation, IN_GUID aId, 156 IDVDImage 2**aDVDImage);157 STDMETHOD(GetDVDImage) (IN_GUID aId, IDVDImage 2**aDVDImage);158 STDMETHOD(FindDVDImage) (IN_BSTR aLocation, IDVDImage 2**aDVDImage);156 IDVDImage **aDVDImage); 157 STDMETHOD(GetDVDImage) (IN_GUID aId, IDVDImage **aDVDImage); 158 STDMETHOD(FindDVDImage) (IN_BSTR aLocation, IDVDImage **aDVDImage); 159 159 160 160 STDMETHOD(OpenFloppyImage) (IN_BSTR aLocation, IN_GUID aId, … … 236 236 HRESULT findHardDisk2 (const Guid *aId, CBSTR aLocation, 237 237 bool aSetError, ComObjPtr <HardDisk2> *aHardDisk = NULL); 238 HRESULT findDVDImage 2(const Guid *aId, CBSTR aLocation,239 bool aSetError, ComObjPtr <DVDImage2> *aImage = NULL);238 HRESULT findDVDImage(const Guid *aId, CBSTR aLocation, 239 bool aSetError, ComObjPtr<DVDImage> *aImage = NULL); 240 240 HRESULT findFloppyImage2 (const Guid *aId, CBSTR aLocation, 241 241 bool aSetError, ComObjPtr <FloppyImage2> *aImage = NULL); … … 259 259 HRESULT unregisterHardDisk2 (HardDisk2 *aHardDisk, bool aSaveRegistry = true); 260 260 261 HRESULT registerDVDImage (DVDImage2*aImage, bool aSaveRegistry = true);262 HRESULT unregisterDVDImage (DVDImage2*aImage, bool aSaveRegistry = true);261 HRESULT registerDVDImage(DVDImage *aImage, bool aSaveRegistry = true); 262 HRESULT unregisterDVDImage(DVDImage *aImage, bool aSaveRegistry = true); 263 263 264 264 HRESULT registerFloppyImage (FloppyImage2 *aImage, bool aSaveRegistry = true); … … 362 362 363 363 typedef std::list <ComObjPtr <HardDisk2> > HardDisk2List; 364 typedef std::list <ComObjPtr <DVDImage 2> > DVDImage2List;364 typedef std::list <ComObjPtr <DVDImage> > DVDImageList; 365 365 typedef std::list <ComObjPtr <FloppyImage2> > FloppyImage2List; 366 366 typedef std::list <ComObjPtr <SharedFolder> > SharedFolderList; … … 429 429 430 430 HardDisk2List mHardDisks2; 431 DVDImage 2List mDVDImages2;431 DVDImageList mDVDImages2; 432 432 FloppyImage2List mFloppyImages2; 433 433 SharedFolderList mSharedFolders; -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r16817 r16853 961 961 } 962 962 { 963 com::SafeIfaceArray <IDVDImage 2> images;963 com::SafeIfaceArray <IDVDImage> images; 964 964 CHECK_ERROR_BREAK (virtualBox, 965 965 COMGETTER(DVDImages) (ComSafeArrayAsOutParam (images))); -
trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp
r14668 r16853 364 364 */ 365 365 nsID uuid = {0}; 366 nsCOMPtr<IDVDImage 2> dvdImage;366 nsCOMPtr<IDVDImage> dvdImage; 367 367 368 368 rc = virtualBox->OpenDVDImage(NS_LITERAL_STRING("/home/achimha/isoimages/winnt4ger.iso").get(), -
trunk/src/VBox/Main/xpcom/server.cpp
r16707 r16853 143 143 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(Snapshot, ISnapshot) 144 144 145 NS_DECL_CLASSINFO(DVDImage 2)146 NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(DVDImage 2,145 NS_DECL_CLASSINFO(DVDImage) 146 NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(DVDImage, 147 147 IMedium, ImageMediumBase, 148 IDVDImage 2, DVDImage2)148 IDVDImage, DVDImage) 149 149 NS_DECL_CLASSINFO(FloppyImage2) 150 150 NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(FloppyImage2,
Note:
See TracChangeset
for help on using the changeset viewer.