Changeset 75920 in vbox for trunk/src/VBox/Main
- Timestamp:
- Dec 3, 2018 6:17:11 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127126
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r75919 r75920 3646 3646 <const name="CloudOCIVCN" value="31" /> 3647 3647 <const name="CloudOCIPublicIP" value="32" /> 3648 <const name="CloudOCIProfile Path" value="33" />3648 <const name="CloudOCIProfileName" value="33" /> 3649 3649 <const name="CloudOCISubnet" value="34" /> 3650 3650 <const name="CloudOCIKeepObject" value="35" /> … … 3852 3852 </method> 3853 3853 3854 <method name="removeDescriptionByType"> 3855 <desc>Delete all records which are equal to the passed type from the list</desc> 3856 3857 <param name="type" type="VirtualSystemDescriptionType" dir="in"> 3858 <desc></desc> 3859 </param> 3860 </method> 3861 3854 3862 <method name="getValuesByType"> 3855 3863 <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which -
trunk/src/VBox/Main/include/ApplianceImpl.h
r75766 r75920 320 320 const com::Utf8Str &aVBoxValue, 321 321 const com::Utf8Str &aExtraConfigValue); 322 HRESULT removeDescriptionByType(VirtualSystemDescriptionType_T aType); 322 323 void i_removeByType(VirtualSystemDescriptionType_T aType); 323 324 -
trunk/src/VBox/Main/include/ApplianceImplPrivate.h
r75766 r75920 54 54 : storageType(VFSType_File) {} 55 55 VFSType_T storageType; /* Which type of storage should be handled */ 56 Utf8Str strProvider; /* cloud provider name in case of export/import to Cloud */ 56 57 Utf8Str strPath; /* File path for the import/export */ 57 58 Utf8Str strHostname; /* Hostname on remote storage locations (could be empty) */ … … 230 231 /** Number of passwords provided. */ 231 232 uint32_t m_cPwProvided; 232 233 struct CloudExportData_T {234 Utf8Str strDisplayMachineName;235 Utf8Str strProfileFilePath;236 Utf8Str strProfileName;237 Utf8Str strInstanceShapeId;238 Utf8Str strDomainName;239 Utf8Str strBootDiskSize;240 Utf8Str strBucketId;241 Utf8Str strSubnet;242 bool fPublicIP;243 Utf8Str strUserId;244 Utf8Str strBootImageName;245 };246 247 CloudExportData_T m_CloudExportData;248 233 }; 249 234 -
trunk/src/VBox/Main/src-server/ApplianceImpl.cpp
r75766 r75920 1336 1336 { 1337 1337 locInfo.storageType = VFSType_Cloud; 1338 locInfo.strProvider = "OCI"; 1338 1339 strUri = strUri.substr(sizeof("OCI://") - 1); 1339 1340 } … … 1628 1629 } 1629 1630 1631 HRESULT VirtualSystemDescription::removeDescriptionByType(VirtualSystemDescriptionType_T aType) 1632 { 1633 std::vector<VirtualSystemDescriptionEntry>::iterator it = m->maDescriptions.begin(); 1634 while (it != m->maDescriptions.end()) 1635 { 1636 if (it->type == aType) 1637 it = m->maDescriptions.erase(it); 1638 else 1639 ++it; 1640 } 1641 1642 return S_OK; 1643 } 1644 1630 1645 /* Private method; delete all records from the list 1631 1646 * m->llDescriptions that match the given type.
Note:
See TracChangeset
for help on using the changeset viewer.