Changeset 29028 in vbox
- Timestamp:
- May 4, 2010 2:33:45 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r28888 r29028 989 989 m->devType = aDeviceType; 990 990 991 LogFlowThisFunc(("m-> locationFull='%s', m->format=%s, m->id={%RTuuid}\n",991 LogFlowThisFunc(("m->strLocationFull='%s', m->strFormat=%s, m->id={%RTuuid}\n", 992 992 m->strLocationFull.raw(), m->strFormat.raw(), m->id.raw())); 993 993 … … 1346 1346 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1347 1347 1348 /* no need to lock, m-> format is const */1348 /* no need to lock, m->strFormat is const */ 1349 1349 m->strFormat.cloneTo(aFormat); 1350 1351 return S_OK; 1352 } 1353 1354 STDMETHODIMP Medium::COMGETTER(MediumFormat)(IMediumFormat **aMediumFormat) 1355 { 1356 CheckComArgOutPointerValid(aMediumFormat); 1357 1358 AutoCaller autoCaller(this); 1359 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1360 1361 /* no need to lock, m->formatObj is const */ 1362 m->formatObj.queryInterfaceTo(aMediumFormat); 1350 1363 1351 1364 return S_OK; … … 2578 2591 2579 2592 /** 2580 * Internal method to return the medium's format . Must have caller + locking!2593 * Internal method to return the medium's format string. Must have caller + locking! 2581 2594 * @return 2582 2595 */ … … 2584 2597 { 2585 2598 return m->strFormat; 2599 } 2600 2601 /** 2602 * Internal method to return the medium's format object. Must have caller + locking! 2603 * @return 2604 */ 2605 const ComObjPtr<MediumFormat> & Medium::getMediumFormat() const 2606 { 2607 return m->formatObj; 2586 2608 } 2587 2609 … … 3159 3181 AssertComRCReturn(autoCaller.rc(), strFormat); 3160 3182 3161 /* m-> format is const, no need to lock */3183 /* m->strFormat is const, no need to lock */ 3162 3184 strFormat = m->strFormat; 3163 3185 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r28959 r29028 9358 9358 <interface 9359 9359 name="IMedium" extends="$unknown" 9360 uuid=" d709160c-303f-4ead-b7ef-53ffa26aa861"9360 uuid="1d578f43-5ef1-4415-b556-7592d3ccdc8f" 9361 9361 wsmap="managed" 9362 9362 > … … 9820 9820 installation can be obtained using 9821 9821 <link to="ISystemProperties::mediumFormats"/>. 9822 </desc> 9823 </attribute> 9824 9825 <attribute name="mediumFormat" type="IMediumFormat" readonly="yes"> 9826 <desc> 9827 Storage medium format object corresponding to this medium. 9828 9829 The value of this attribute is a reference to the medium format object 9830 that specifies the backend properties used to store medium data. The 9831 storage format is defined when you create a new medium or automatically 9832 detected when you open an existing medium, and cannot be changed later. 9833 9834 <note>@c null is returned if there is no associated medium format 9835 object. This can e.g. happen for medium objects representing host 9836 drives and other special medium objects.</note> 9822 9837 </desc> 9823 9838 </attribute> -
trunk/src/VBox/Main/include/MediumImpl.h
r28872 r29028 25 25 26 26 class Progress; 27 class MediumFormat; 27 28 28 29 namespace settings … … 105 106 STDMETHOD(COMGETTER(Size))(ULONG64 *aSize); 106 107 STDMETHOD(COMGETTER(Format))(BSTR *aFormat); 108 STDMETHOD(COMGETTER(MediumFormat))(IMediumFormat **aMediumFormat); 107 109 STDMETHOD(COMGETTER(Type))(MediumType_T *aType); 108 110 STDMETHOD(COMSETTER(Type))(MediumType_T aType); … … 158 160 const Utf8Str& getLocationFull() const; 159 161 const Utf8Str& getFormat() const; 162 const ComObjPtr<MediumFormat> & getMediumFormat() const; 160 163 uint64_t getSize() const; 161 164 MediumType_T getType() const;
Note:
See TracChangeset
for help on using the changeset viewer.