Changeset 73337 in vbox
- Timestamp:
- Jul 23, 2018 10:05:26 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/log.h
r73154 r73337 362 362 /** Main group, ICloudClient. */ 363 363 LOG_GROUP_MAIN_CLOUDCLIENT, 364 /** Main group, ICloudUserProfileList. */365 LOG_GROUP_MAIN_CLOUDUSERPROFILELIST,366 364 /** Main group, ICloudUserProfileManager. */ 367 365 LOG_GROUP_MAIN_CLOUDUSERPROFILEMANAGER, 366 /** Main group, ICloudUserProfiles. */ 367 LOG_GROUP_MAIN_CLOUDUSERPROFILES, 368 368 /** Main group, IConsole. */ 369 369 LOG_GROUP_MAIN_CONSOLE, … … 998 998 "MAIN_CLIPBOARDMODECHANGEDEVENT", \ 999 999 "MAIN_CLOUDCLIENT", \ 1000 "MAIN_CLOUDUSERPROFILELIST", \1001 1000 "MAIN_CLOUDUSERPROFILEMANAGER", \ 1001 "MAIN_CLOUDUSERPROFILES", \ 1002 1002 "MAIN_CONSOLE", \ 1003 1003 "MAIN_CPUCHANGEDEVENT", \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r73329 r73337 40 40 # include "UIWizardExportAppDefs.h" 41 41 # include "UIWizardExportAppPageBasic3.h" 42 43 /* COM includes: */ 44 # include "CCloudUserProfiles.h" 42 45 43 46 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 123 126 { 124 127 /* Acquire Cloud User-profile List: */ 125 CCloudUserProfile ListcomProfiles = m_comCloudUserProfileManager.GetProfilesByProvider(enmType);128 CCloudUserProfiles comProfiles = m_comCloudUserProfileManager.GetProfilesByProvider(enmType); 126 129 /* Skip if we have nothing to populate (file missing?): */ 127 130 if (comProfiles.isNull()) … … 431 434 } 432 435 433 CCloudUserProfile ListUIWizardExportAppPage3::profiles() const436 CCloudUserProfiles UIWizardExportAppPage3::profiles() const 434 437 { 435 438 return m_comCloudUserProfiles; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.h
r73316 r73337 27 27 /* COM includes: */ 28 28 #include "COMEnums.h" 29 #include "CCloudUserProfile List.h"29 #include "CCloudUserProfiles.h" 30 30 #include "CCloudUserProfileManager.h" 31 31 … … 132 132 QString profile() const; 133 133 /** Returns Cloud User-profile object. */ 134 CCloudUserProfile Listprofiles() const;134 CCloudUserProfiles profiles() const; 135 135 136 136 /** Holds the Cloud User-profile Manager reference. */ 137 137 CCloudUserProfileManager m_comCloudUserProfileManager; 138 138 /** Holds the Cloud User-profile object reference. */ 139 CCloudUserProfile Listm_comCloudUserProfiles;139 CCloudUserProfiles m_comCloudUserProfiles; 140 140 141 141 /** Holds the default appliance name. */ … … 197 197 Q_PROPERTY(bool manifestSelected READ isManifestSelected WRITE setManifestSelected); 198 198 Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected); 199 Q_PROPERTY(CCloudUserProfile Listprofiles READ profiles);199 Q_PROPERTY(CCloudUserProfiles profiles READ profiles); 200 200 Q_PROPERTY(QString profile READ profile); 201 201 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp
r73326 r73337 38 38 # include "CAppliance.h" 39 39 # include "CCloudClient.h" 40 # include "CCloudUserProfile List.h"40 # include "CCloudUserProfiles.h" 41 41 # include "CMachine.h" 42 42 … … 58 58 59 59 /* Acquire Cloud User-profiles: */ 60 CCloudUserProfile List comCloudUserProfiles = fieldImp("profiles").value<CCloudUserProfileList>();60 CCloudUserProfiles comCloudUserProfiles = fieldImp("profiles").value<CCloudUserProfiles>(); 61 61 AssertMsgReturnVoid(comCloudUserProfiles.isNotNull(), 62 62 ("Cloud User-profiles object is undefined!")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h
r73317 r73337 46 46 Q_PROPERTY(bool manifestSelected READ isManifestSelected WRITE setManifestSelected); 47 47 Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected); 48 Q_PROPERTY(CCloudUserProfile Listprofiles READ profiles);48 Q_PROPERTY(CCloudUserProfiles profiles READ profiles); 49 49 Q_PROPERTY(QString profile READ profile); 50 50 Q_PROPERTY(ExportAppliancePointer applianceWidget READ applianceWidget); -
trunk/src/VBox/Main/Makefile.kmk
r73154 r73337 456 456 src-server/ClientToken.cpp \ 457 457 src-server/CloudClientImpl.cpp \ 458 src-server/CloudUserProfile ListImpl.cpp \458 src-server/CloudUserProfilesImpl.cpp \ 459 459 src-server/CloudUserProfileManagerImpl.cpp \ 460 460 src-server/DHCPServerImpl.cpp \ -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r73216 r73337 25045 25045 25046 25046 <!-- 25047 // ICloudUserProfile List25047 // ICloudUserProfiles 25048 25048 ////////////////////////////////////////////////////////////////////////// 25049 25049 --> 25050 25050 25051 25051 <interface 25052 name="ICloudUserProfile List" extends="$unknown"25052 name="ICloudUserProfiles" extends="$unknown" 25053 25053 uuid="cfadfecb-ef89-41a9-abbd-9772d41baddb" 25054 25054 wsmap="managed" reservedMethods="4" reservedAttributes="4" … … 25181 25181 <method name="getAllProfiles" const="yes"> 25182 25182 <desc> 25183 Returns the list of the ICloudUserProfile Listin one call.25184 </desc> 25185 <param name="profileList" type="ICloudUserProfile List" safearray="yes" dir="return">25186 <desc>Returns the list of ICloudUserProfile List.</desc>25183 Returns the list of the ICloudUserProfiles in one call. 25184 </desc> 25185 <param name="profileList" type="ICloudUserProfiles" safearray="yes" dir="return"> 25186 <desc>Returns the list of ICloudUserProfiles.</desc> 25187 25187 </param> 25188 25188 </method> … … 25190 25190 <method name="getProfilesByProvider" const="yes"> 25191 25191 <desc> 25192 Returns the ICloudUserProfile Listfor the particular provider.25192 Returns the ICloudUserProfiles for the particular provider. 25193 25193 </desc> 25194 25194 <param name="providerId" type="CloudProviderId" dir="in"> 25195 25195 </param> 25196 <param name="profile" type="ICloudUserProfile List" dir="return">25197 <desc>Returns the ICloudUserProfile List.</desc>25196 <param name="profile" type="ICloudUserProfiles" dir="return"> 25197 <desc>Returns the ICloudUserProfiles.</desc> 25198 25198 </param> 25199 25199 </method> -
trunk/src/VBox/Main/include/CloudClientImpl.h
r73216 r73337 25 25 26 26 /* VBox forward declarations */ 27 class CloudUserProfile List;27 class CloudUserProfiles; 28 28 29 29 class CloudClient : … … 38 38 39 39 HRESULT init(VirtualBox *aVirtualBox); 40 HRESULT initCloudClient(CloudUserProfile List*aProfiles,40 HRESULT initCloudClient(CloudUserProfiles *aProfiles, 41 41 VirtualBox *aParent, 42 42 CloudProviderId_T aCloudProvider, … … 77 77 DECLARE_EMPTY_CTOR_DTOR(CloudClientOCI) 78 78 79 HRESULT initCloudClient(CloudUserProfile List*aProfiles,79 HRESULT initCloudClient(CloudUserProfiles *aProfiles, 80 80 VirtualBox *aParent, 81 81 CloudProviderId_T aCloudProvider, -
trunk/src/VBox/Main/include/CloudUserProfileManagerImpl.h
r73164 r73337 22 22 /* VBox includes */ 23 23 #include "CloudUserProfileManagerWrap.h" 24 #include "CloudUserProfile ListImpl.h"24 #include "CloudUserProfilesImpl.h" 25 25 26 26 /* VBox forward declarations */ … … 44 44 45 45 HRESULT getSupportedProviders(std::vector<CloudProviderId_T> &aProviderTypes); 46 HRESULT getAllProfiles(std::vector< ComPtr<ICloudUserProfile List> > &aProfilesList);47 HRESULT getProfilesByProvider(CloudProviderId_T aProviderType, ComPtr<ICloudUserProfile List> &aProfiles);46 HRESULT getAllProfiles(std::vector< ComPtr<ICloudUserProfiles> > &aProfilesList); 47 HRESULT getProfilesByProvider(CloudProviderId_T aProviderType, ComPtr<ICloudUserProfiles> &aProfiles); 48 48 }; 49 49 -
trunk/src/VBox/Main/include/CloudUserProfilesImpl.h
r73336 r73337 17 17 18 18 19 #ifndef ____H_CLOUDUSERPROFILE LISTIMPL20 #define ____H_CLOUDUSERPROFILE LISTIMPL19 #ifndef ____H_CLOUDUSERPROFILESIMPL 20 #define ____H_CLOUDUSERPROFILESIMPL 21 21 22 22 //#include <map> … … 25 25 /* VBox includes */ 26 26 #include "CloudClientImpl.h" 27 #include "CloudUserProfile ListWrap.h"27 #include "CloudUserProfilesWrap.h" 28 28 #include "UnattendedScript.h" 29 29 … … 31 31 class SimpleConfigFile; 32 32 33 class CloudUserProfile List : public CloudUserProfileListWrap33 class CloudUserProfiles : public CloudUserProfilesWrap 34 34 { 35 35 public: 36 CloudUserProfile List();37 virtual ~CloudUserProfile List();36 CloudUserProfiles(); 37 virtual ~CloudUserProfiles(); 38 38 HRESULT FinalConstruct(); 39 39 void FinalRelease(); … … 67 67 68 68 69 class OCIUserProfile List:70 public CloudUserProfile List69 class OCIUserProfiles : 70 public CloudUserProfiles 71 71 { 72 72 public: 73 OCIUserProfile List();74 ~OCIUserProfile List();73 OCIUserProfiles(); 74 ~OCIUserProfiles(); 75 75 76 76 HRESULT getProvider(CloudProviderId_T *aProvider) … … 136 136 //////////////////New functions////////////////////////////// 137 137 }; 138 #endif // !____H_CLOUDUSERPROFILE LISTIMPL138 #endif // !____H_CLOUDUSERPROFILESIMPL 139 139 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ 140 140 -
trunk/src/VBox/Main/src-server/CloudClientImpl.cpp
r73321 r73337 24 24 #include "CloudClientImpl.h" 25 25 #include "CloudUserProfileManagerImpl.h" 26 #include "CloudUserProfile ListImpl.h"26 #include "CloudUserProfilesImpl.h" 27 27 #include "VirtualBoxImpl.h" 28 28 #include "Global.h" … … 97 97 } 98 98 99 HRESULT CloudClient::initCloudClient(CloudUserProfile List*aProfiles,99 HRESULT CloudClient::initCloudClient(CloudUserProfiles *aProfiles, 100 100 VirtualBox *aParent, 101 101 CloudProviderId_T aCloudProvider, … … 117 117 mCloudProvider = aCloudProvider; 118 118 LogRel(("CloudProvider = %d\n", mCloudProvider)); 119 CloudUserProfile List*lProfiles = aProfiles;119 CloudUserProfiles*lProfiles = aProfiles; 120 120 std::vector<com::Utf8Str> lNames; 121 121 std::vector<com::Utf8Str> lValues; … … 252 252 } 253 253 254 HRESULT CloudClientOCI::initCloudClient(CloudUserProfile List*aProfiles,254 HRESULT CloudClientOCI::initCloudClient(CloudUserProfiles *aProfiles, 255 255 VirtualBox *aParent, 256 256 CloudProviderId_T aCloudProvider, … … 272 272 mCloudProvider = aCloudProvider; 273 273 LogRel(("CloudClientOCI = %d\n", mCloudProvider)); 274 CloudUserProfile List*lProfiles = aProfiles;274 CloudUserProfiles *lProfiles = aProfiles; 275 275 std::vector<com::Utf8Str> lNames; 276 276 std::vector<com::Utf8Str> lValues; … … 386 386 "\t""\t""\"type\": 29,\n" 387 387 "\t""\t""\"min\": 10,\n" 388 "\t""\t""\"max\": 50,\n"388 "\t""\t""\"max\": 300,\n" 389 389 "\t""\t""\"unit\": \"GB\"\n" 390 390 "\t""},\n" -
trunk/src/VBox/Main/src-server/CloudUserProfileManagerImpl.cpp
r73221 r73337 23 23 24 24 #include "CloudUserProfileManagerImpl.h" 25 #include "CloudUserProfile ListImpl.h"25 #include "CloudUserProfilesImpl.h" 26 26 #include "VirtualBoxImpl.h" 27 27 #include "Global.h" … … 90 90 } 91 91 92 HRESULT CloudUserProfileManager::getAllProfiles(std::vector<ComPtr<ICloudUserProfile List> > &aProfilesList)92 HRESULT CloudUserProfileManager::getAllProfiles(std::vector<ComPtr<ICloudUserProfiles> > &aProfilesList) 93 93 { 94 94 HRESULT hrc = S_OK; 95 std::vector<ComPtr<ICloudUserProfile List> > lProfilesList;95 std::vector<ComPtr<ICloudUserProfiles> > lProfilesList; 96 96 for (size_t i=0;i<mSupportedProviders.size();++i) 97 97 { 98 ComPtr<ICloudUserProfile List> lProfiles;98 ComPtr<ICloudUserProfiles> lProfiles; 99 99 hrc = getProfilesByProvider(mSupportedProviders.at(i), lProfiles); 100 100 if (FAILED(hrc)) … … 111 111 112 112 HRESULT CloudUserProfileManager::getProfilesByProvider(CloudProviderId_T aProviderType, 113 ComPtr<ICloudUserProfile List> &aProfiles)113 ComPtr<ICloudUserProfiles> &aProfiles) 114 114 { 115 ComObjPtr<CloudUserProfile List> ptrCloudUserProfileList;116 HRESULT hrc = ptrCloudUserProfile List.createObject();115 ComObjPtr<CloudUserProfiles> ptrCloudUserProfiles; 116 HRESULT hrc = ptrCloudUserProfiles.createObject(); 117 117 switch(aProviderType) 118 118 { 119 119 case CloudProviderId_OCI: 120 120 default: 121 ComObjPtr<OCIUserProfile List> ptrOCIUserProfileList;122 hrc = ptrOCIUserProfile List.createObject();121 ComObjPtr<OCIUserProfiles> ptrOCIUserProfiles; 122 hrc = ptrOCIUserProfiles.createObject(); 123 123 if (SUCCEEDED(hrc)) 124 124 { 125 125 AutoReadLock wlock(this COMMA_LOCKVAL_SRC_POS); 126 126 127 hrc = ptrOCIUserProfile List->init(mParent);127 hrc = ptrOCIUserProfiles->init(mParent); 128 128 if (SUCCEEDED(hrc)) 129 129 { … … 137 137 if (RTFileExists(szOciConfigPath)) 138 138 { 139 hrc = ptrOCIUserProfile List->readProfiles(szOciConfigPath);139 hrc = ptrOCIUserProfiles->readProfiles(szOciConfigPath); 140 140 if (SUCCEEDED(hrc)) 141 141 LogRel(("Reading profiles from %s has been done\n", szOciConfigPath)); … … 143 143 LogRel(("Reading profiles from %s hasn't been done\n", szOciConfigPath)); 144 144 145 ptrCloudUserProfile List = ptrOCIUserProfileList;146 hrc = ptrCloudUserProfile List.queryInterfaceTo(aProfiles.asOutParam());145 ptrCloudUserProfiles = ptrOCIUserProfiles; 146 hrc = ptrCloudUserProfiles.queryInterfaceTo(aProfiles.asOutParam()); 147 147 } 148 148 else -
trunk/src/VBox/Main/src-server/CloudUserProfilesImpl.cpp
r73336 r73337 1 1 /* $Id$ */ 2 2 /** @file 3 * ICloudUserProfile ListCOM class implementations.3 * ICloudUserProfiles COM class implementations. 4 4 */ 5 5 … … 21 21 #include <VBox/com/array.h> 22 22 23 #include "CloudUserProfile ListImpl.h"23 #include "CloudUserProfilesImpl.h" 24 24 #include "VirtualBoxImpl.h" 25 25 #include "Global.h" … … 210 210 //////////////////////////////////////////////////////////////////////////////// 211 211 // 212 // ICloudUserProfile Listimplementation212 // ICloudUserProfiles implementation 213 213 // 214 214 //////////////////////////////////////////////////////////////////////////////// 215 CloudUserProfile List::CloudUserProfileList()215 CloudUserProfiles::CloudUserProfiles() 216 216 : mParent(NULL) 217 217 { 218 218 } 219 219 220 CloudUserProfile List::~CloudUserProfileList()221 { 222 LogRel(("CloudUserProfile ListImpl::~CloudUserProfileListImpl()\n"));220 CloudUserProfiles::~CloudUserProfiles() 221 { 222 LogRel(("CloudUserProfilesImpl::~CloudUserProfilesImpl()\n")); 223 223 unconst(mParent) = NULL; 224 224 } 225 225 226 HRESULT CloudUserProfile List::FinalConstruct()226 HRESULT CloudUserProfiles::FinalConstruct() 227 227 { 228 228 return BaseFinalConstruct(); 229 229 } 230 230 231 void CloudUserProfile List::FinalRelease()231 void CloudUserProfiles::FinalRelease() 232 232 { 233 233 uninit(); … … 236 236 } 237 237 238 void CloudUserProfile List::uninit()238 void CloudUserProfiles::uninit() 239 239 { 240 240 /* Enclose the state transition Ready->InUninit->NotReady */ … … 246 246 } 247 247 248 HRESULT CloudUserProfile List::init(VirtualBox *aParent)248 HRESULT CloudUserProfiles::init(VirtualBox *aParent) 249 249 { 250 250 /* Enclose the state transition NotReady->InInit->Ready */ … … 259 259 260 260 261 HRESULT CloudUserProfile List::getSupportedPropertiesNames(std::vector<com::Utf8Str> &aPropertiesNames)262 { 263 LogRel(("CloudUserProfile List::getSupportedPropertiesNames:\n"));261 HRESULT CloudUserProfiles::getSupportedPropertiesNames(std::vector<com::Utf8Str> &aPropertiesNames) 262 { 263 LogRel(("CloudUserProfiles::getSupportedPropertiesNames:\n")); 264 264 aPropertiesNames.clear(); 265 265 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 266 266 } 267 267 268 HRESULT CloudUserProfile List::readProfiles(const Utf8Str &strConfigPath)269 { 270 LogRel(("CloudUserProfile List::readProfiles: %s\n", strConfigPath.c_str()));271 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 272 } 273 274 HRESULT CloudUserProfile List::getProvider(CloudProviderId_T *aProvider)268 HRESULT CloudUserProfiles::readProfiles(const Utf8Str &strConfigPath) 269 { 270 LogRel(("CloudUserProfiles::readProfiles: %s\n", strConfigPath.c_str())); 271 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 272 } 273 274 HRESULT CloudUserProfiles::getProvider(CloudProviderId_T *aProvider) 275 275 { 276 276 *aProvider = CloudProviderId_Unknown; 277 LogRel(("CloudUserProfile List::getProvider: %d\n", *aProvider));278 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 279 } 280 281 HRESULT CloudUserProfile List::createProfile(const com::Utf8Str &aProfileName,277 LogRel(("CloudUserProfiles::getProvider: %d\n", *aProvider)); 278 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 279 } 280 281 HRESULT CloudUserProfiles::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(("CloudUserProfile List::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 CloudUserProfile List::updateProfile(const com::Utf8Str &aProfileName,285 LogRel(("CloudUserProfiles::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 CloudUserProfiles::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(("CloudUserProfile List::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 CloudUserProfile List::getStoredProfilesNames(std::vector<com::Utf8Str> &aProfilesNames)298 { 299 300 LogRel(("CloudUserProfile List::getStoredProfilesNames:\n"));293 LogRel(("CloudUserProfiles::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 CloudUserProfiles::getStoredProfilesNames(std::vector<com::Utf8Str> &aProfilesNames) 298 { 299 300 LogRel(("CloudUserProfiles::getStoredProfilesNames:\n")); 301 301 aProfilesNames.clear(); 302 302 return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented")); 303 303 } 304 304 305 HRESULT CloudUserProfile List::getProfileProperties(const com::Utf8Str &aProfileName,305 HRESULT CloudUserProfiles::getProfileProperties(const com::Utf8Str &aProfileName, 306 306 std::vector<com::Utf8Str> &aReturnNames, 307 307 std::vector<com::Utf8Str> &aReturnValues) 308 308 { 309 LogRel(("CloudUserProfile List::getProfileProperties: %s\n", aProfileName.c_str()));309 LogRel(("CloudUserProfiles::getProfileProperties: %s\n", aProfileName.c_str())); 310 310 aReturnNames.clear(); 311 311 aReturnValues.clear(); … … 313 313 } 314 314 315 HRESULT CloudUserProfile List::getPropertyDescription(const com::Utf8Str &aName,315 HRESULT CloudUserProfiles::getPropertyDescription(const com::Utf8Str &aName, 316 316 com::Utf8Str &aDescription) 317 317 { 318 LogRel(("CloudUserProfile List::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 CloudUserProfile List::createCloudClient(const com::Utf8Str &aProfileName,318 LogRel(("CloudUserProfiles::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 CloudUserProfiles::createCloudClient(const com::Utf8Str &aProfileName, 323 323 ComPtr<ICloudClient> &aCloudClient) 324 324 { 325 LogRel(("CloudUserProfile List::createCloudClient: %s\n", aProfileName.c_str()));325 LogRel(("CloudUserProfiles::createCloudClient: %s\n", aProfileName.c_str())); 326 326 327 327 if (aCloudClient.isNull()) … … 355 355 356 356 357 OCIUserProfile List::OCIUserProfileList()358 { 359 LogRel(("OCIUserProfile List::OCIUserProfileList()\n"));357 OCIUserProfiles::OCIUserProfiles() 358 { 359 LogRel(("OCIUserProfiles::OCIUserProfiles()\n")); 360 360 mpProfiles = new SimpleConfigFile(mParent); 361 361 LogRel(("Succeeded create SimpleConfigFile\n")); 362 362 } 363 363 364 OCIUserProfile List::~OCIUserProfileList()365 { 366 LogRel(("OCIUserProfile List::~OCIUserProfileList()\n"));364 OCIUserProfiles::~OCIUserProfiles() 365 { 366 LogRel(("OCIUserProfiles::~OCIUserProfiles()\n")); 367 367 if (mpProfiles) 368 368 delete mpProfiles; 369 369 } 370 370 371 HRESULT OCIUserProfile List::createCloudClient(const com::Utf8Str &aProfileName,371 HRESULT OCIUserProfiles::createCloudClient(const com::Utf8Str &aProfileName, 372 372 ComPtr<ICloudClient> &aCloudClient) 373 373 { … … 394 394 } 395 395 396 HRESULT OCIUserProfile List::readProfiles(const Utf8Str &strConfigPath)396 HRESULT OCIUserProfiles::readProfiles(const Utf8Str &strConfigPath) 397 397 { 398 398 LogRel(("Reading profiles from %s\n", strConfigPath.c_str())); … … 422 422 } 423 423 424 HRESULT OCIUserProfile List::createProfile(const com::Utf8Str &aProfileName,424 HRESULT OCIUserProfiles::createProfile(const com::Utf8Str &aProfileName, 425 425 const std::vector<com::Utf8Str> &aNames, 426 426 const std::vector<com::Utf8Str> &aValues) … … 446 446 } 447 447 448 HRESULT OCIUserProfile List::updateProfile(const com::Utf8Str &aProfileName,448 HRESULT OCIUserProfiles::updateProfile(const com::Utf8Str &aProfileName, 449 449 const std::vector<com::Utf8Str> &aNames, 450 450 const std::vector<com::Utf8Str> &aValues) … … 469 469 } 470 470 471 HRESULT OCIUserProfile List::getStoredProfilesNames(std::vector<com::Utf8Str> &aProfilesNames)471 HRESULT OCIUserProfiles::getStoredProfilesNames(std::vector<com::Utf8Str> &aProfilesNames) 472 472 { 473 473 HRESULT hrc = S_OK; … … 479 479 } 480 480 481 HRESULT OCIUserProfile List::getProfileProperties(const com::Utf8Str &aProfileName,481 HRESULT OCIUserProfiles::getProfileProperties(const com::Utf8Str &aProfileName, 482 482 std::vector<com::Utf8Str> &aReturnNames, 483 483 std::vector<com::Utf8Str> &aReturnValues) … … 508 508 } 509 509 510 HRESULT OCIUserProfile List::getSupportedPropertiesNames(std::vector<com::Utf8Str> &aPropertiesNames)510 HRESULT OCIUserProfiles::getSupportedPropertiesNames(std::vector<com::Utf8Str> &aPropertiesNames) 511 511 { 512 512 HRESULT hrc = S_OK; … … 516 516 } 517 517 518 HRESULT OCIUserProfile List::getPropertyDescription(const com::Utf8Str &aName, com::Utf8Str &aDescription)518 HRESULT OCIUserProfiles::getPropertyDescription(const com::Utf8Str &aName, com::Utf8Str &aDescription) 519 519 { 520 520 HRESULT hrc = S_OK; … … 528 528 529 529 530 HRESULT OCIUserProfile List::i_createProfile(const com::Utf8Str &aProfileName,530 HRESULT OCIUserProfiles::i_createProfile(const com::Utf8Str &aProfileName, 531 531 const std::map <Utf8Str, Utf8Str> &aProfile) 532 532 { … … 538 538 } 539 539 540 HRESULT OCIUserProfile List::i_updateProfile(const com::Utf8Str &aProfileName,540 HRESULT OCIUserProfiles::i_updateProfile(const com::Utf8Str &aProfileName, 541 541 const std::map <Utf8Str, Utf8Str> &aProfile) 542 542 { … … 551 551 } 552 552 553 HRESULT OCIUserProfile List::i_getProfileProperties(const com::Utf8Str &aProfileName,553 HRESULT OCIUserProfiles::i_getProfileProperties(const com::Utf8Str &aProfileName, 554 554 std::map <Utf8Str, Utf8Str> &aProfile) 555 555 {
Note:
See TracChangeset
for help on using the changeset viewer.