Changeset 73573 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 8, 2018 4:14:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp
r73349 r73573 42 42 43 43 /* COM includes: */ 44 # include "CCloud UserProfiles.h"44 # include "CCloudProvider.h" 45 45 46 46 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 71 71 /* Init Cloud User-profile Manager: */ 72 72 CVirtualBox comVBox = vboxGlobal().virtualBox(); 73 m_comCloud UserProfileManager = comVBox.CreateCloudUserProfileManager();74 AssertMsg(comVBox.isOk() && m_comCloud UserProfileManager.isNotNull(),75 ("Unable to acquire Cloud User-profileManager"));73 m_comCloudProviderManager = comVBox.CreateCloudProviderManager(); 74 AssertMsg(comVBox.isOk() && m_comCloudProviderManager.isNotNull(), 75 ("Unable to acquire Cloud Provider Manager")); 76 76 } 77 77 … … 118 118 119 119 /* Acquire provider ID list: */ 120 QVector<KCloudProviderId> providerIds = m_comCloudUserProfileManager.GetSupportedProviders(); 120 // QVector<KCloudProviderId> providerIds = m_comCloudProviderManager.GetSupportedProviders(); 121 QVector<QString> providerIds = m_comCloudProviderManager.GetSupportedProviders(); 121 122 /* Make sure at least one provider is supported: */ 122 123 AssertReturnVoid(!providerIds.isEmpty()); 123 124 124 125 /* Iterate through provider types: */ 125 126 127 128 CCloudUserProfiles comProfiles = m_comCloudUserProfileManager.GetProfilesByProvider(enmType);129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 126 // foreach (KCloudProviderId enmType, providerIds) 127 // { 128 // /* Acquire Cloud User-profile List: */ 129 // CCloudUserProfiles comProfiles = m_comCloudProviderManager.GetProfilesByProvider(enmType); 130 // /* Skip if we have nothing to populate (file missing?): */ 131 // if (comProfiles.isNull()) 132 // continue; 133 // 134 // /* Iterate through profile names: */ 135 // foreach (const QString &strProfileName, comProfiles.GetStoredProfilesNames()) 136 // { 137 // m_pAccountComboBox->addItem(QString()); 138 // m_pAccountComboBox->setItemData(m_pAccountComboBox->count() - 1, (int)enmType, ProviderID); 139 // m_pAccountComboBox->setItemData(m_pAccountComboBox->count() - 1, strProfileName, ProfileName); 140 // } 141 // } 142 // 143 // /* Set default: */ 144 // if (m_pAccountComboBox->count() != 0) 145 // setProvider(KCloudProviderId_OCI); 145 146 } 146 147 … … 148 149 { 149 150 /* Acquire Cloud User-profile List: */ 150 m_comCloud UserProfiles = m_comCloudUserProfileManager.GetProfilesByProvider(provider());151 m_comCloudProvider = m_comCloudProviderManager.GetProfilesByProvider(provider()); 151 152 /* Return if we have nothing to populate (file missing?): */ 152 if (m_comCloud UserProfiles.isNull())153 if (m_comCloudProvider.isNull()) 153 154 return; 154 155 … … 159 160 QVector<QString> keys; 160 161 QVector<QString> values; 161 values = m_comCloud UserProfiles.GetProfileProperties(profile(), keys);162 values = m_comCloudProvider.GetProfileProperties(profile(), keys); 162 163 163 164 /* Configure table: */ … … 177 178 178 179 /* Use non-translated description as tool-tip: */ 179 const QString strToolTip = m_comCloud UserProfiles.GetPropertyDescription(keys.at(i));180 const QString strToolTip = m_comCloudProvider.GetPropertyDescription(keys.at(i)); 180 181 pItemK->setData(Qt::UserRole, strToolTip); 181 182 … … 422 423 } 423 424 424 KCloudProviderId UIWizardExportAppPage2::provider() const 425 { 426 const int iIndex = m_pAccountComboBox->currentIndex(); 427 return (KCloudProviderId)m_pAccountComboBox->itemData(iIndex, ProviderID).toInt(); 425 //KCloudProviderId UIWizardExportAppPage2::provider() const 426 //{ 427 // const int iIndex = m_pAccountComboBox->currentIndex(); 428 // return (KCloudProviderId)m_pAccountComboBox->itemData(iIndex, ProviderID).toInt(); 429 //} 430 431 QString UIWizardExportAppPage2::provider() const 432 { 433 return "OCI"; 434 //const int iIndex = m_pAccountComboBox->currentIndex(); 435 //return (KCloudProviderId)m_pAccountComboBox->itemData(iIndex, ProviderID).toInt(); 428 436 } 429 437 … … 434 442 } 435 443 436 CCloud UserProfilesUIWizardExportAppPage2::profiles() const437 { 438 return m_comCloud UserProfiles;444 CCloudProvider UIWizardExportAppPage2::profiles() const 445 { 446 return m_comCloudProvider; 439 447 } 440 448
Note:
See TracChangeset
for help on using the changeset viewer.