- Timestamp:
- Feb 1, 2022 12:23:58 PM (3 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r93524 r93529 5006 5006 </attribute> 5007 5007 5008 <attribute name="detectedImageNames" type="wstring" readonly="yes" safearray="yes"> 5009 <desc> 5010 A list of names of the images detected from install.wim file of a Windows ISO. 5011 </desc> 5012 </attribute> 5013 5008 5014 <method name="detectIsoOS"> 5009 5015 <desc> -
trunk/src/VBox/Main/include/UnattendedImpl.h
r93525 r93529 222 222 HRESULT getDetectedOSFlavor(com::Utf8Str &aDetectedOSFlavor); 223 223 HRESULT getDetectedOSHints(com::Utf8Str &aDetectedOSHints); 224 HRESULT getDetectedImageNames(std::vector<com::Utf8Str> &aDetectedImageNames); 224 225 //internal functions 225 226 -
trunk/src/VBox/Main/src-server/UnattendedImpl.cpp
r93527 r93529 3064 3064 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 3065 3065 AssertReturn(mpInstaller == NULL, setErrorBoth(E_FAIL, VERR_WRONG_ORDER, tr("Cannot change after prepare() has been called"))); 3066 AssertReturn(index >= mDetectedImages.size(), setErrorBoth(E_FAIL, VERR_OUT_OF_RANGE, tr("Image index is larger than the number of detected images"))); 3066 3067 midxImage = index; 3067 3068 return S_OK; … … 3210 3211 } 3211 3212 3213 HRESULT Unattended::getDetectedImageNames(std::vector<com::Utf8Str> &aDetectedImageNames) 3214 { 3215 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 3216 aDetectedImageNames.clear(); 3217 for (size_t i = 0; i < mDetectedImages.size(); ++i) 3218 aDetectedImageNames.push_back(mDetectedImages[i].getNameAndVersion()); 3219 return S_OK; 3220 } 3221 3212 3222 /* 3213 3223 * Getters that the installer and script classes can use.
Note:
See TracChangeset
for help on using the changeset viewer.