Changeset 73571 in vbox
- Timestamp:
- Aug 8, 2018 4:10:30 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
include/VBox/log.h (modified) (2 diffs)
-
src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h (modified) (3 diffs)
-
src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h (modified) (1 diff)
-
src/VBox/Main/idl/VirtualBox.xidl (modified) (5 diffs)
-
src/VBox/Main/include/CloudUserProfileManagerImpl.h (modified) (2 diffs)
-
src/VBox/Main/include/CloudUserProfilesImpl.h (modified) (3 diffs)
-
src/VBox/Main/include/VirtualBoxImpl.h (modified) (1 diff)
-
src/VBox/Main/src-server/CloudUserProfileManagerImpl.cpp (modified) (13 diffs)
-
src/VBox/Main/src-server/CloudUserProfilesImpl.cpp (modified) (6 diffs)
-
src/VBox/Main/src-server/VirtualBoxImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/log.h
r73337 r73571 362 362 /** Main group, ICloudClient. */ 363 363 LOG_GROUP_MAIN_CLOUDCLIENT, 364 /** Main group, ICloud UserProfileManager. */365 LOG_GROUP_MAIN_CLOUD USERPROFILEMANAGER,366 /** Main group, ICloud UserProfiles. */367 LOG_GROUP_MAIN_CLOUD USERPROFILES,364 /** Main group, ICloudProvider. */ 365 LOG_GROUP_MAIN_CLOUDPROVIDER, 366 /** Main group, ICloudProviderManager. */ 367 LOG_GROUP_MAIN_CLOUDPROVIDERMANAGER, 368 368 /** Main group, IConsole. */ 369 369 LOG_GROUP_MAIN_CONSOLE, … … 998 998 "MAIN_CLIPBOARDMODECHANGEDEVENT", \ 999 999 "MAIN_CLOUDCLIENT", \ 1000 "MAIN_CLOUD USERPROFILEMANAGER", \1001 "MAIN_CLOUD USERPROFILES", \1000 "MAIN_CLOUDPROVIDER", \ 1001 "MAIN_CLOUDPROVIDERMANAGER", \ 1002 1002 "MAIN_CONSOLE", \ 1003 1003 "MAIN_CPUCHANGEDEVENT", \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h
r73349 r73571 27 27 /* COM includes: */ 28 28 #include "COMEnums.h" 29 #include "CCloud UserProfiles.h"30 #include "CCloud UserProfileManager.h"29 #include "CCloudProvider.h" 30 #include "CCloudProviderManager.h" 31 31 32 32 /* Forward declarations: */ … … 128 128 void setProvider(KCloudProviderId enmProvider); 129 129 /** Returns provider. */ 130 KCloudProviderId provider() const; 130 // KCloudProviderId provider() const; 131 QString provider() const; 131 132 /** Returns profile. */ 132 133 QString profile() const; 133 134 /** Returns Cloud User-profile object. */ 134 CCloud UserProfilesprofiles() const;135 CCloudProvider profiles() const; 135 136 136 137 /** Holds the Cloud User-profile Manager reference. */ 137 CCloud UserProfileManager m_comCloudUserProfileManager;138 CCloudProviderManager m_comCloudProviderManager; 138 139 /** Holds the Cloud User-profile object reference. */ 139 CCloud UserProfiles m_comCloudUserProfiles;140 CCloudProvider m_comCloudProvider; 140 141 141 142 /** Holds the default appliance name. */ … … 197 198 Q_PROPERTY(bool manifestSelected READ isManifestSelected WRITE setManifestSelected); 198 199 Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected); 199 Q_PROPERTY(CCloud UserProfilesprofiles READ profiles);200 Q_PROPERTY(CCloudProvider profiles READ profiles); 200 201 Q_PROPERTY(QString profile READ profile); 201 202 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r73349 r73571 38 38 # include "CAppliance.h" 39 39 # include "CCloudClient.h" 40 # include "CCloud UserProfiles.h"40 # include "CCloudProvider.h" 41 41 # include "CMachine.h" 42 42 … … 58 58 59 59 /* Acquire Cloud User-profiles: */ 60 CCloud UserProfiles comCloudUserProfiles = fieldImp("profiles").value<CCloudUserProfiles>();61 AssertMsgReturnVoid(comCloud UserProfiles.isNotNull(),62 ("Cloud User-profilesobject is undefined!"));60 CCloudProvider comCloudProvider = fieldImp("profiles").value<CCloudProvider>(); 61 AssertMsgReturnVoid(comCloudProvider.isNotNull(), 62 ("Cloud provider object is undefined!")); 63 63 64 64 /* Create Cloud Client: */ 65 CCloudClient comCloudClient = comCloud UserProfiles.CreateCloudClient(fieldImp("profile").toString());66 AssertMsgReturnVoid(comCloud UserProfiles.isOk() && comCloudClient.isNotNull(),65 CCloudClient comCloudClient = comCloudProvider.CreateCloudClient(fieldImp("profile").toString()); 66 AssertMsgReturnVoid(comCloudProvider.isOk() && comCloudClient.isNotNull(), 67 67 ("Can't create Cloud Client object!")); 68 68 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h
r73349 r73571 41 41 Q_PROPERTY(bool manifestSelected READ isManifestSelected WRITE setManifestSelected); 42 42 Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected); 43 Q_PROPERTY(CCloud UserProfilesprofiles READ profiles);43 Q_PROPERTY(CCloudProvider profiles READ profiles); 44 44 Q_PROPERTY(QString profile READ profile); 45 45 Q_PROPERTY(ExportAppliancePointer applianceWidget READ applianceWidget); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r73535 r73571 2451 2451 </method> 2452 2452 2453 <method name="createCloud UserProfileManager">2454 <desc> 2455 Creates a new cloud user profilemanager object2456 </desc> 2457 <param name="manager" type="ICloud UserProfileManager" dir="return">2453 <method name="createCloudProviderManager"> 2454 <desc> 2455 Creates a new cloud provider manager object 2456 </desc> 2457 <param name="manager" type="ICloudProviderManager" dir="return"> 2458 2458 <desc>New cloud user profile manager</desc> 2459 2459 </param> … … 25107 25107 25108 25108 <!-- 25109 // ICloud UserProfiles25109 // ICloudProvider 25110 25110 ////////////////////////////////////////////////////////////////////////// 25111 25111 --> 25112 25112 25113 25113 <interface 25114 name="ICloud UserProfiles" extends="$unknown"25114 name="ICloudProvider" extends="$unknown" 25115 25115 uuid="cfadfecb-ef89-41a9-abbd-9772d41baddb" 25116 25116 wsmap="managed" reservedMethods="4" reservedAttributes="4" 25117 25117 > 25118 <desc>25119 Cloud user profiles description25120 </desc>25121 25122 25118 <method name="getProvider"> 25123 25119 <desc> … … 25225 25221 25226 25222 <!-- 25227 // ICloud UserProfileManager25223 // ICloudProviderManager 25228 25224 ////////////////////////////////////////////////////////////////////////// 25229 25225 --> 25230 25226 <interface 25231 name="ICloud UserProfileManager" extends="$unknown"25227 name="ICloudProviderManager" extends="$unknown" 25232 25228 uuid="64e276a7-cfd1-48ed-aad3-19368197f3b2" 25233 25229 wsmap="managed" reservedMethods="4" reservedAttributes="4" 25234 25230 > 25235 <desc> 25236 Cloud User Profile Manager description 25237 </desc> 25238 25239 <attribute name="supportedProviders" type="CloudProviderId" readonly="yes" safearray="yes"> 25231 25232 <attribute name="supportedProviders" type="wstring" readonly="yes" safearray="yes"> 25240 25233 <desc>Returns a predefined list of all supported cloud providers.</desc> 25241 25234 </attribute> … … 25243 25236 <method name="getAllProfiles" const="yes"> 25244 25237 <desc> 25245 Returns the list of the ICloud UserProfilesin one call.25246 </desc> 25247 <param name="profileList" type="ICloud UserProfiles" safearray="yes" dir="return">25248 <desc>Returns the list of ICloud UserProfiles.</desc>25238 Returns the list of the ICloudProvider in one call. 25239 </desc> 25240 <param name="profileList" type="ICloudProvider" safearray="yes" dir="return"> 25241 <desc>Returns the list of ICloudProvider.</desc> 25249 25242 </param> 25250 25243 </method> … … 25252 25245 <method name="getProfilesByProvider" const="yes"> 25253 25246 <desc> 25254 Returns the ICloud UserProfilesfor the particular provider.25255 </desc> 25256 <param name="provider Id" type="CloudProviderId" dir="in">25257 </param> 25258 <param name="profile" type="ICloud UserProfiles" dir="return">25259 <desc>Returns the ICloud UserProfiles.</desc>25247 Returns the ICloudProvider for the particular provider. 25248 </desc> 25249 <param name="providerName" type="wstring" dir="in"> 25250 </param> 25251 <param name="profile" type="ICloudProvider" dir="return"> 25252 <desc>Returns the ICloudProvider.</desc> 25260 25253 </param> 25261 25254 </method> -
trunk/src/VBox/Main/include/CloudUserProfileManagerImpl.h
r73551 r73571 21 21 22 22 /* VBox includes */ 23 #include "Cloud UserProfileManagerWrap.h"23 #include "CloudProviderManagerWrap.h" 24 24 #include "CloudUserProfilesImpl.h" 25 25 26 26 /* VBox forward declarations */ 27 27 28 class ATL_NO_VTABLE Cloud UserProfileManager29 : public Cloud UserProfileManagerWrap28 class ATL_NO_VTABLE CloudProviderManager 29 : public CloudProviderManagerWrap 30 30 { 31 31 public: 32 32 33 DECLARE_EMPTY_CTOR_DTOR(Cloud UserProfileManager)33 DECLARE_EMPTY_CTOR_DTOR(CloudProviderManager) 34 34 35 35 HRESULT FinalConstruct(); … … 42 42 ComPtr<VirtualBox> const mParent; /**< Strong reference to the parent object (VirtualBox/IMachine). */ 43 43 #ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK 44 std::vector<ComPtr<ICloud UserProfileManager>> mUserProfileManagers;44 std::vector<ComPtr<ICloudProviderManager>> mUserProfileManagers; 45 45 #else 46 std::vector< CloudProviderId_T> mSupportedProviders;46 std::vector<Utf8Str> mSupportedProviders; 47 47 #endif 48 48 49 HRESULT getSupportedProviders(std::vector< CloudProviderId_T> &aProviderTypes);50 HRESULT getAllProfiles(std::vector< ComPtr<ICloud UserProfiles> > &aProfilesList);51 HRESULT getProfilesByProvider( CloudProviderId_T aProviderType, ComPtr<ICloudUserProfiles> &aProfiles);49 HRESULT getSupportedProviders(std::vector<Utf8Str> &aProviderTypes); 50 HRESULT getAllProfiles(std::vector< ComPtr<ICloudProvider> > &aProfilesList); 51 HRESULT getProfilesByProvider(const com::Utf8Str &aProviderName, ComPtr<ICloudProvider> &aProfiles); 52 52 }; 53 53 -
trunk/src/VBox/Main/include/CloudUserProfilesImpl.h
r73337 r73571 25 25 /* VBox includes */ 26 26 #include "CloudClientImpl.h" 27 #include "Cloud UserProfilesWrap.h"27 #include "CloudProviderWrap.h" 28 28 #include "UnattendedScript.h" 29 29 … … 31 31 class SimpleConfigFile; 32 32 33 class Cloud UserProfiles : public CloudUserProfilesWrap33 class CloudProvider : public CloudProviderWrap 34 34 { 35 35 public: 36 Cloud UserProfiles();37 virtual ~Cloud UserProfiles();36 CloudProvider(); 37 virtual ~CloudProvider(); 38 38 HRESULT FinalConstruct(); 39 39 void FinalRelease(); … … 68 68 69 69 class OCIUserProfiles : 70 public Cloud UserProfiles70 public CloudProvider 71 71 { 72 72 public: -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r73155 r73571 313 313 HRESULT createAppliance(ComPtr<IAppliance> &aAppliance); 314 314 HRESULT createUnattendedInstaller(ComPtr<IUnattended> &aUnattended); 315 HRESULT createCloud UserProfileManager(ComPtr<ICloudUserProfileManager> &aManager);315 HRESULT createCloudProviderManager(ComPtr<ICloudProviderManager> &aManager); 316 316 HRESULT createMedium(const com::Utf8Str &aFormat, 317 317 const com::Utf8Str &aLocation, -
trunk/src/VBox/Main/src-server/CloudUserProfileManagerImpl.cpp
r73554 r73571 1 1 /* $Id$ */ 2 2 /** @file 3 * ICloud UserProfileManager COM class implementations.3 * ICloudProviderManager COM class implementations. 4 4 */ 5 5 … … 36 36 //////////////////////////////////////////////////////////////////////////////// 37 37 // 38 // Cloud UserProfileManager constructor / destructor38 // CloudProviderManager constructor / destructor 39 39 // 40 40 // //////////////////////////////////////////////////////////////////////////////// 41 Cloud UserProfileManager::CloudUserProfileManager()41 CloudProviderManager::CloudProviderManager() 42 42 : mParent(NULL) 43 43 { 44 44 } 45 45 46 Cloud UserProfileManager::~CloudUserProfileManager()47 { 48 } 49 50 51 HRESULT Cloud UserProfileManager::FinalConstruct()46 CloudProviderManager::~CloudProviderManager() 47 { 48 } 49 50 51 HRESULT CloudProviderManager::FinalConstruct() 52 52 { 53 53 return BaseFinalConstruct(); 54 54 } 55 55 56 void Cloud UserProfileManager::FinalRelease()56 void CloudProviderManager::FinalRelease() 57 57 { 58 58 uninit(); … … 61 61 } 62 62 63 HRESULT Cloud UserProfileManager::init(VirtualBox *aParent)63 HRESULT CloudProviderManager::init(VirtualBox *aParent) 64 64 { 65 65 /* Enclose the state transition NotReady->InInit->Ready */ … … 75 75 ExtPackManager *pExtPackMgr = aParent->i_getExtPackManager(); 76 76 std::vector<ComPtr<IUnknown> > Objects; 77 com::Guid idObj(COM_IIDOF(ICloud UserProfileManager));77 com::Guid idObj(COM_IIDOF(ICloudProviderManager)); 78 78 pExtPackMgr->i_queryObjects(idObj.toString(), Objects); 79 79 for (unsigned i = 0; i < Objects.size(); i++) 80 80 { 81 ComPtr<ICloud UserProfileManager> ptrTmp;81 ComPtr<ICloudProviderManager> ptrTmp; 82 82 HRESULT hrc = Objects[i].queryInterfaceTo(ptrTmp.asOutParam()); 83 83 if (SUCCEEDED(hrc)) … … 87 87 88 88 mSupportedProviders.clear(); 89 mSupportedProviders.push_back(CloudProviderId_OCI); 89 mSupportedProviders.push_back("OCI"); 90 90 91 #endif 91 92 … … 94 95 } 95 96 96 void Cloud UserProfileManager::uninit()97 void CloudProviderManager::uninit() 97 98 { 98 99 /* Enclose the state transition Ready->InUninit->NotReady */ … … 104 105 } 105 106 106 HRESULT Cloud UserProfileManager::getSupportedProviders(std::vector<CloudProviderId_T> &aSupportedProviders)107 HRESULT CloudProviderManager::getSupportedProviders(std::vector<Utf8Str> &aSupportedProviders) 107 108 { 108 109 #ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK … … 113 114 for (unsigned i = 0; i < mUserProfileManagers.size(); i++) 114 115 { 115 SafeArray< CloudProviderId_T> FromCurrent;116 SafeArray<Utf8Str> FromCurrent; 116 117 HRESULT hrc2 = mUserProfileManagers[i]->COMGETTER(SupportedProviders)(ComSafeArrayAsOutParam(FromCurrent)); 117 118 if (SUCCEEDED(hrc2)) … … 130 131 } 131 132 132 HRESULT Cloud UserProfileManager::getAllProfiles(std::vector<ComPtr<ICloudUserProfiles> > &aProfilesList)133 HRESULT CloudProviderManager::getAllProfiles(std::vector<ComPtr<ICloudProvider> > &aProfilesList) 133 134 { 134 135 #ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK … … 139 140 for (unsigned i = 0; i < mUserProfileManagers.size(); i++) 140 141 { 141 SafeIfaceArray<ICloud UserProfiles> FromCurrent;142 SafeIfaceArray<ICloudProvider> FromCurrent; 142 143 HRESULT hrc2 = mUserProfileManagers[i]->GetAllProfiles(ComSafeArrayAsOutParam(FromCurrent)); 143 144 if (SUCCEEDED(hrc2)) … … 153 154 #else 154 155 HRESULT hrc = S_OK; 155 std::vector<ComPtr<ICloud UserProfiles> > lProfilesList;156 std::vector<ComPtr<ICloudProvider> > lProfilesList; 156 157 for (size_t i=0;i<mSupportedProviders.size();++i) 157 158 { 158 ComPtr<ICloud UserProfiles> lProfiles;159 ComPtr<ICloudProvider> lProfiles; 159 160 hrc = getProfilesByProvider(mSupportedProviders.at(i), lProfiles); 160 161 if (FAILED(hrc)) … … 171 172 } 172 173 173 HRESULT Cloud UserProfileManager::getProfilesByProvider(CloudProviderId_T aProviderType,174 ComPtr<ICloudUserProfiles> &aProfiles)174 HRESULT CloudProviderManager::getProfilesByProvider(const com::Utf8Str &aProviderName, 175 ComPtr<ICloudProvider> &aProfiles) 175 176 { 176 177 #ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK … … 189 190 #else 190 191 191 ComObjPtr<CloudUserProfiles> ptrCloudUserProfiles; 192 HRESULT hrc = ptrCloudUserProfiles.createObject(); 193 switch(aProviderType) 194 { 195 case CloudProviderId_OCI: 196 default: 197 ComObjPtr<OCIUserProfiles> ptrOCIUserProfiles; 198 hrc = ptrOCIUserProfiles.createObject(); 192 ComObjPtr<CloudProvider> ptrCloudProvider; 193 HRESULT hrc = ptrCloudProvider.createObject(); 194 if (aProviderName.equals("OCI")) 195 { 196 ComObjPtr<OCIUserProfiles> ptrOCIUserProfiles; 197 hrc = ptrOCIUserProfiles.createObject(); 198 if (SUCCEEDED(hrc)) 199 { 200 AutoReadLock wlock(this COMMA_LOCKVAL_SRC_POS); 201 202 hrc = ptrOCIUserProfiles->init(mParent); 199 203 if (SUCCEEDED(hrc)) 200 204 { 201 AutoReadLock wlock(this COMMA_LOCKVAL_SRC_POS); 202 203 hrc = ptrOCIUserProfiles->init(mParent); 204 if (SUCCEEDED(hrc)) 205 char szOciConfigPath[RTPATH_MAX]; 206 int vrc = RTPathUserHome(szOciConfigPath, sizeof(szOciConfigPath)); 207 if (RT_SUCCESS(vrc)) 208 vrc = RTPathAppend(szOciConfigPath, sizeof(szOciConfigPath), ".oci" RTPATH_SLASH_STR "config"); 209 if (RT_SUCCESS(vrc)) 205 210 { 206 char szOciConfigPath[RTPATH_MAX]; 207 int vrc = RTPathUserHome(szOciConfigPath, sizeof(szOciConfigPath)); 208 if (RT_SUCCESS(vrc)) 209 vrc = RTPathAppend(szOciConfigPath, sizeof(szOciConfigPath), ".oci" RTPATH_SLASH_STR "config"); 210 if (RT_SUCCESS(vrc)) 211 LogRel(("config = %s\n", szOciConfigPath)); 212 if (RTFileExists(szOciConfigPath)) 211 213 { 212 LogRel(("config = %s\n", szOciConfigPath)); 213 if (RTFileExists(szOciConfigPath)) 214 { 215 hrc = ptrOCIUserProfiles->readProfiles(szOciConfigPath); 216 if (SUCCEEDED(hrc)) 217 LogRel(("Reading profiles from %s has been done\n", szOciConfigPath)); 218 else 219 LogRel(("Reading profiles from %s hasn't been done\n", szOciConfigPath)); 220 221 ptrCloudUserProfiles = ptrOCIUserProfiles; 222 hrc = ptrCloudUserProfiles.queryInterfaceTo(aProfiles.asOutParam()); 223 } 214 hrc = ptrOCIUserProfiles->readProfiles(szOciConfigPath); 215 if (SUCCEEDED(hrc)) 216 LogRel(("Reading profiles from %s has been done\n", szOciConfigPath)); 224 217 else 225 hrc = setErrorBoth(E_FAIL, VERR_FILE_NOT_FOUND, tr("Could not locate the config file '%s'"), 226 szOciConfigPath); 218 LogRel(("Reading profiles from %s hasn't been done\n", szOciConfigPath)); 219 220 ptrCloudProvider = ptrOCIUserProfiles; 221 hrc = ptrCloudProvider.queryInterfaceTo(aProfiles.asOutParam()); 227 222 } 228 223 else 229 hrc = setErrorVrc(vrc); 224 hrc = setErrorBoth(E_FAIL, VERR_FILE_NOT_FOUND, tr("Could not locate the config file '%s'"), 225 szOciConfigPath); 230 226 } 227 else 228 hrc = setErrorVrc(vrc); 231 229 } 232 break;233 } 234 235 return hrc; 236 #endif 237 } 238 230 } 231 } 232 233 return hrc; 234 #endif 235 } 236 -
trunk/src/VBox/Main/src-server/CloudUserProfilesImpl.cpp
r73337 r73571 1 1 /* $Id$ */ 2 2 /** @file 3 * ICloud UserProfilesCOM class implementations.3 * ICloudProvider COM class implementations. 4 4 */ 5 5 … … 210 210 //////////////////////////////////////////////////////////////////////////////// 211 211 // 212 // ICloud UserProfilesimplementation212 // ICloudProvider implementation 213 213 // 214 214 //////////////////////////////////////////////////////////////////////////////// 215 Cloud UserProfiles::CloudUserProfiles()215 CloudProvider::CloudProvider() 216 216 : mParent(NULL) 217 217 { 218 218 } 219 219 220 Cloud UserProfiles::~CloudUserProfiles()221 { 222 LogRel(("Cloud UserProfilesImpl::~CloudUserProfilesImpl()\n"));220 CloudProvider::~CloudProvider() 221 { 222 LogRel(("CloudProvider::~CloudProvider()\n")); 223 223 unconst(mParent) = NULL; 224 224 } 225 225 226 HRESULT Cloud UserProfiles::FinalConstruct()226 HRESULT CloudProvider::FinalConstruct() 227 227 { 228 228 return BaseFinalConstruct(); 229 229 } 230 230 231 void Cloud UserProfiles::FinalRelease()231 void CloudProvider::FinalRelease() 232 232 { 233 233 uninit(); … … 236 236 } 237 237 238 void Cloud UserProfiles::uninit()238 void CloudProvider::uninit() 239 239 { 240 240 /* Enclose the state transition Ready->InUninit->NotReady */ … … 246 246 } 247 247 248 HRESULT Cloud UserProfiles::init(VirtualBox *aParent)248 HRESULT CloudProvider::init(VirtualBox *aParent) 249 249 { 250 250 /* Enclose the state transition NotReady->InInit->Ready */ … … 259 259 260 260 261 HRESULT Cloud UserProfiles::getSupportedPropertiesNames(std::vector<com::Utf8Str> &aPropertiesNames)262 { 263 LogRel(("Cloud UserProfiles::getSupportedPropertiesNames:\n"));261 HRESULT CloudProvider::getSupportedPropertiesNames(std::vector<com::Utf8Str> &aPropertiesNames) 262 { 263 LogRel(("CloudProvider::getSupportedPropertiesNames:\n")); 264 264 aPropertiesNames.clear(); 265 265 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 266 266 } 267 267 268 HRESULT Cloud UserProfiles::readProfiles(const Utf8Str &strConfigPath)269 { 270 LogRel(("Cloud UserProfiles::readProfiles: %s\n", strConfigPath.c_str()));271 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 272 } 273 274 HRESULT Cloud UserProfiles::getProvider(CloudProviderId_T *aProvider)268 HRESULT CloudProvider::readProfiles(const Utf8Str &strConfigPath) 269 { 270 LogRel(("CloudProvider::readProfiles: %s\n", strConfigPath.c_str())); 271 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 272 } 273 274 HRESULT CloudProvider::getProvider(CloudProviderId_T *aProvider) 275 275 { 276 276 *aProvider = CloudProviderId_Unknown; 277 LogRel(("Cloud UserProfiles::getProvider: %d\n", *aProvider));278 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 279 } 280 281 HRESULT Cloud UserProfiles::createProfile(const com::Utf8Str &aProfileName,277 LogRel(("CloudProvider::getProvider: %d\n", *aProvider)); 278 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 279 } 280 281 HRESULT CloudProvider::createProfile(const com::Utf8Str &aProfileName, 282 282 const std::vector<com::Utf8Str> &aNames, 283 283 const std::vector<com::Utf8Str> &aValues) 284 284 { 285 LogRel(("Cloud UserProfiles::createProfile: %s, %d, %d\n", aProfileName.c_str(), aNames.size(), aValues.size()));286 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 287 } 288 289 HRESULT Cloud UserProfiles::updateProfile(const com::Utf8Str &aProfileName,285 LogRel(("CloudProvider::createProfile: %s, %d, %d\n", aProfileName.c_str(), aNames.size(), aValues.size())); 286 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 287 } 288 289 HRESULT CloudProvider::updateProfile(const com::Utf8Str &aProfileName, 290 290 const std::vector<com::Utf8Str> &aNames, 291 291 const std::vector<com::Utf8Str> &aValues) 292 292 { 293 LogRel(("Cloud UserProfiles::updateProfile: %s, %d, %d\n", aProfileName.c_str(), aNames.size(), aValues.size()));294 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 295 } 296 297 HRESULT Cloud UserProfiles::getStoredProfilesNames(std::vector<com::Utf8Str> &aProfilesNames)298 { 299 300 LogRel(("Cloud UserProfiles::getStoredProfilesNames:\n"));293 LogRel(("CloudProvider::updateProfile: %s, %d, %d\n", aProfileName.c_str(), aNames.size(), aValues.size())); 294 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 295 } 296 297 HRESULT CloudProvider::getStoredProfilesNames(std::vector<com::Utf8Str> &aProfilesNames) 298 { 299 300 LogRel(("CloudProvider::getStoredProfilesNames:\n")); 301 301 aProfilesNames.clear(); 302 302 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 303 303 } 304 304 305 HRESULT Cloud UserProfiles::getProfileProperties(const com::Utf8Str &aProfileName,305 HRESULT CloudProvider::getProfileProperties(const com::Utf8Str &aProfileName, 306 306 std::vector<com::Utf8Str> &aReturnNames, 307 307 std::vector<com::Utf8Str> &aReturnValues) 308 308 { 309 LogRel(("Cloud UserProfiles::getProfileProperties: %s\n", aProfileName.c_str()));309 LogRel(("CloudProvider::getProfileProperties: %s\n", aProfileName.c_str())); 310 310 aReturnNames.clear(); 311 311 aReturnValues.clear(); … … 313 313 } 314 314 315 HRESULT Cloud UserProfiles::getPropertyDescription(const com::Utf8Str &aName,315 HRESULT CloudProvider::getPropertyDescription(const com::Utf8Str &aName, 316 316 com::Utf8Str &aDescription) 317 317 { 318 LogRel(("Cloud UserProfiles::getPropertyDescription: %s, %s\n", aName.c_str(), aDescription.c_str()));319 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 320 } 321 322 HRESULT Cloud UserProfiles::createCloudClient(const com::Utf8Str &aProfileName,318 LogRel(("CloudProvider::getPropertyDescription: %s, %s\n", aName.c_str(), aDescription.c_str())); 319 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 320 } 321 322 HRESULT CloudProvider::createCloudClient(const com::Utf8Str &aProfileName, 323 323 ComPtr<ICloudClient> &aCloudClient) 324 324 { 325 LogRel(("Cloud UserProfiles::createCloudClient: %s\n", aProfileName.c_str()));325 LogRel(("CloudProvider::createCloudClient: %s\n", aProfileName.c_str())); 326 326 327 327 if (aCloudClient.isNull()) -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r73155 r73571 1820 1820 } 1821 1821 1822 HRESULT VirtualBox::createCloud UserProfileManager(ComPtr<ICloudUserProfileManager> &aManager)1823 { 1824 ComObjPtr<Cloud UserProfileManager> ptrCloudUserProfileManager;1825 HRESULT hrc = ptrCloud UserProfileManager.createObject();1822 HRESULT VirtualBox::createCloudProviderManager(ComPtr<ICloudProviderManager> &aManager) 1823 { 1824 ComObjPtr<CloudProviderManager> ptrCloudProviderManager; 1825 HRESULT hrc = ptrCloudProviderManager.createObject(); 1826 1826 if (SUCCEEDED(hrc)) 1827 1827 { 1828 1828 AutoReadLock wlock(this COMMA_LOCKVAL_SRC_POS); 1829 hrc = ptrCloud UserProfileManager->init(this);1829 hrc = ptrCloudProviderManager->init(this); 1830 1830 if (SUCCEEDED(hrc)) 1831 hrc = ptrCloud UserProfileManager.queryInterfaceTo(aManager.asOutParam());1831 hrc = ptrCloudProviderManager.queryInterfaceTo(aManager.asOutParam()); 1832 1832 } 1833 1833 return hrc;
Note:
See TracChangeset
for help on using the changeset viewer.

