Changeset 78077 in vbox
- Timestamp:
- Apr 10, 2019 11:24:12 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp
r78074 r78077 735 735 } 736 736 737 CCloudProfile UIWizardExportAppPage2::profile() const738 {739 return m_comCloudProfile;740 }741 742 737 AbstractVSDParameterList UIWizardExportAppPage2::cloudClientParameters() const 743 738 { … … 1033 1028 registerField("includeISOsSelected", this, "includeISOsSelected"); 1034 1029 registerField("providerShortName", this, "providerShortName"); 1035 registerField("profileName", this, "profileName");1036 registerField("profile", this, "profile");1037 1030 registerField("cloudClientParameters", this, "cloudClientParameters"); 1038 1031 } … … 1177 1170 const bool fCSP = field("isFormatCloudOne").toBool(); 1178 1171 1179 const QString &strFile = field("path").toString().toLower();1180 const QString &strAccount = field("profileName").toString();1181 1182 1172 fResult = ( fOVF 1183 && VBoxGlobal::hasAllowedExtension( strFile, OVFFileExts))1173 && VBoxGlobal::hasAllowedExtension(path().toLower(), OVFFileExts)) 1184 1174 || ( fCSP 1185 && ! strAccount.isNull());1175 && !m_comCloudProfile.isNull()); 1186 1176 } 1187 1177 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h
r78074 r78077 162 162 /** Returns profile name. */ 163 163 QString profileName() const; 164 /** Returns Cloud Profile object. */165 CCloudProfile profile() const;166 164 /** Returns Cloud Client parameters. */ 167 165 AbstractVSDParameterList cloudClientParameters() const; … … 241 239 Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected); 242 240 Q_PROPERTY(QString providerShortName READ providerShortName); 243 Q_PROPERTY(QString profileName READ profileName);244 Q_PROPERTY(CCloudProfile profile READ profile);245 241 Q_PROPERTY(AbstractVSDParameterList cloudClientParameters READ cloudClientParameters); 246 242 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r78074 r78077 381 381 registerField("includeISOsSelected", this, "includeISOsSelected"); 382 382 registerField("providerShortName", this, "providerShortName"); 383 registerField("profileName", this, "profileName");384 registerField("profile", this, "profile");385 383 registerField("cloudClientParameters", this, "cloudClientParameters"); 386 384 registerField("applianceWidget", this, "applianceWidget"); … … 526 524 const bool fCSP = field("isFormatCloudOne").toBool(); 527 525 528 const QString &strFile = field("path").toString().toLower();529 const QString &strAccount = field("profileName").toString();530 const AbstractVSDParameterList ¶meters = field("cloudClientParameters").value<AbstractVSDParameterList>();531 532 526 fResult = ( fOVF 533 && VBoxGlobal::hasAllowedExtension( strFile, OVFFileExts))527 && VBoxGlobal::hasAllowedExtension(path().toLower(), OVFFileExts)) 534 528 || ( fCSP 535 && ! strAccount.isNull()536 && ! parameters.isEmpty());529 && !m_comCloudProfile.isNull() 530 && !m_cloudClientParameters.isEmpty()); 537 531 } 538 532 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h
r78037 r78077 46 46 Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected); 47 47 Q_PROPERTY(QString providerShortName READ providerShortName); 48 Q_PROPERTY(QString profileName READ profileName);49 Q_PROPERTY(CCloudProfile profile READ profile);50 48 Q_PROPERTY(AbstractVSDParameterList cloudClientParameters READ cloudClientParameters); 51 49 Q_PROPERTY(ExportAppliancePointer applianceWidget READ applianceWidget);
Note:
See TracChangeset
for help on using the changeset viewer.