Changeset 93540 in vbox for trunk/src/VBox
- Timestamp:
- Feb 2, 2022 7:21:28 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r93409 r93540 832 832 } 833 833 834 void UIWizardNewVM::setDetectedImageNamesAndIndices(const QVector<QString> &names, const QVector<ULONG> &ids) 835 { 836 AssertMsg(names.size() == ids.size(), 837 ("Sizes of the arrays for names and indices of the detected images should be equal.")); 838 m_detectedImageNames = names; 839 m_detectedImageIndices = ids; 840 } 841 842 const QVector<QString> &UIWizardNewVM::detectedImageNames() const 843 { 844 return m_detectedImageNames; 845 } 846 847 const QVector<ULONG> &UIWizardNewVM::detectedImageIndices() const 848 { 849 return m_detectedImageIndices; 850 } 851 834 852 QVector<KMediumVariant> UIWizardNewVM::mediumVariants() const 835 853 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r93409 r93540 171 171 void setEmptyDiskRecommended(bool fEmptyDiskRecommended); 172 172 173 void setDetectedImageNamesAndIndices(const QVector<QString> &names, const QVector<ULONG> &ids); 174 const QVector<QString> &detectedImageNames() const; 175 const QVector<ULONG> &detectedImageIndices() const; 176 173 177 QVector<KMediumVariant> mediumVariants() const; 174 178 /** @} */ … … 224 228 /** Type Id od the OS detected from the ISO file by IUnattended. */ 225 229 QString m_strDetectedOSTypeId; 230 /* Name and index lists of the images detected from an ISO. Currently only for Windows ISOs. */ 231 QVector<QString> m_detectedImageNames; 232 QVector<ULONG> m_detectedImageIndices; 226 233 227 234 /** Holds the VM OS family ID. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.cpp
r93456 r93540 148 148 AssertReturnVoid(pWizard); 149 149 150 UIWizardNewVMNameOSTypeCommon::detectOSType(strISOPath, pWizard); 151 150 UIWizardNewVMNameOSTypeCommon::detectOSAndImagesFromISO(strISOPath, pWizard); 152 151 153 152 if (UIWizardNewVMNameOSTypeCommon::guessOSTypeDetectedOSTypeString(m_pNameAndSystemEditor, pWizard->detectedOSTypeId())) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp
r93456 r93540 311 311 } 312 312 313 void UIWizardNewVMNameOSTypeCommon::detectOS Type(const QString &strISOPath, UIWizardNewVM *pWizard)313 void UIWizardNewVMNameOSTypeCommon::detectOSAndImagesFromISO(const QString &strISOPath, UIWizardNewVM *pWizard) 314 314 { 315 315 if (!pWizard) … … 327 327 comUnatteded.DetectIsoOS(); 328 328 pWizard->setDetectedOSTypeId(comUnatteded.GetDetectedOSTypeId()); 329 330 pWizard->setDetectedImageNamesAndIndices(comUnatteded.GetDetectedImageNames(), 331 comUnatteded.GetDetectedImageIndices()); 329 332 } 330 333 … … 479 482 UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(this->wizard()); 480 483 AssertReturnVoid(pWizard); 481 UIWizardNewVMNameOSTypeCommon::detectOS Type(strPath, pWizard);484 UIWizardNewVMNameOSTypeCommon::detectOSAndImagesFromISO(strPath, pWizard); 482 485 483 486 if (UIWizardNewVMNameOSTypeCommon::guessOSTypeDetectedOSTypeString(m_pNameAndSystemEditor, pWizard->detectedOSTypeId())) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.h
r93455 r93540 43 43 bool cleanupMachineFolder(UIWizardNewVM *pWizard, bool fWizardCancel = false); 44 44 void composeMachineFilePath(UINameAndSystemEditor *pNameAndSystemEditor, UIWizardNewVM *pWizard); 45 void detectOS Type(const QString &strISOPath, UIWizardNewVM *pWizard);45 void detectOSAndImagesFromISO(const QString &strISOPath, UIWizardNewVM *pWizard); 46 46 /** Return false if ISO path is not empty but points to an missing or unreadable file. */ 47 47 bool checkISOFile(UINameAndSystemEditor *pNameAndSystemEditor);
Note:
See TracChangeset
for help on using the changeset viewer.