VirtualBox

Changeset 73571 in vbox


Ignore:
Timestamp:
Aug 8, 2018 4:10:30 PM (6 years ago)
Author:
vboxsync
Message:

bugref:9152. Renamed ICloudUserProfiles to ICloudProvider, ICloudUserProfileManager to ICloudProviderManager. Commented out some code in the frontend. Sergey will rewrite it according to actual realization.

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/log.h

    r73337 r73571  
    362362    /** Main group, ICloudClient. */
    363363    LOG_GROUP_MAIN_CLOUDCLIENT,
    364     /** Main group, ICloudUserProfileManager. */
    365     LOG_GROUP_MAIN_CLOUDUSERPROFILEMANAGER,
    366     /** Main group, ICloudUserProfiles. */
    367     LOG_GROUP_MAIN_CLOUDUSERPROFILES,
     364    /** Main group, ICloudProvider. */
     365    LOG_GROUP_MAIN_CLOUDPROVIDER,
     366    /** Main group, ICloudProviderManager. */
     367    LOG_GROUP_MAIN_CLOUDPROVIDERMANAGER,
    368368    /** Main group, IConsole. */
    369369    LOG_GROUP_MAIN_CONSOLE,
     
    998998    "MAIN_CLIPBOARDMODECHANGEDEVENT", \
    999999    "MAIN_CLOUDCLIENT", \
    1000     "MAIN_CLOUDUSERPROFILEMANAGER", \
    1001     "MAIN_CLOUDUSERPROFILES", \
     1000    "MAIN_CLOUDPROVIDER", \
     1001    "MAIN_CLOUDPROVIDERMANAGER", \
    10021002    "MAIN_CONSOLE", \
    10031003    "MAIN_CPUCHANGEDEVENT", \
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h

    r73349 r73571  
    2727/* COM includes: */
    2828#include "COMEnums.h"
    29 #include "CCloudUserProfiles.h"
    30 #include "CCloudUserProfileManager.h"
     29#include "CCloudProvider.h"
     30#include "CCloudProviderManager.h"
    3131
    3232/* Forward declarations: */
     
    128128    void setProvider(KCloudProviderId enmProvider);
    129129    /** Returns provider. */
    130     KCloudProviderId provider() const;
     130//  KCloudProviderId provider() const;
     131    QString provider() const;
    131132    /** Returns profile. */
    132133    QString profile() const;
    133134    /** Returns Cloud User-profile object. */
    134     CCloudUserProfiles profiles() const;
     135    CCloudProvider profiles() const;
    135136
    136137    /** Holds the Cloud User-profile Manager reference. */
    137     CCloudUserProfileManager  m_comCloudUserProfileManager;
     138    CCloudProviderManager  m_comCloudProviderManager;
    138139    /** Holds the Cloud User-profile object reference. */
    139     CCloudUserProfiles     m_comCloudUserProfiles;
     140    CCloudProvider     m_comCloudProvider;
    140141
    141142    /** Holds the default appliance name. */
     
    197198    Q_PROPERTY(bool manifestSelected READ isManifestSelected WRITE setManifestSelected);
    198199    Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected);
    199     Q_PROPERTY(CCloudUserProfiles profiles READ profiles);
     200    Q_PROPERTY(CCloudProvider profiles READ profiles);
    200201    Q_PROPERTY(QString profile READ profile);
    201202
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp

    r73349 r73571  
    3838# include "CAppliance.h"
    3939# include "CCloudClient.h"
    40 # include "CCloudUserProfiles.h"
     40# include "CCloudProvider.h"
    4141# include "CMachine.h"
    4242
     
    5858
    5959    /* Acquire Cloud User-profiles: */
    60     CCloudUserProfiles comCloudUserProfiles = fieldImp("profiles").value<CCloudUserProfiles>();
    61     AssertMsgReturnVoid(comCloudUserProfiles.isNotNull(),
    62                         ("Cloud User-profiles object is undefined!"));
     60    CCloudProvider comCloudProvider = fieldImp("profiles").value<CCloudProvider>();
     61    AssertMsgReturnVoid(comCloudProvider.isNotNull(),
     62                        ("Cloud provider object is undefined!"));
    6363
    6464    /* Create Cloud Client: */
    65     CCloudClient comCloudClient = comCloudUserProfiles.CreateCloudClient(fieldImp("profile").toString());
    66     AssertMsgReturnVoid(comCloudUserProfiles.isOk() && comCloudClient.isNotNull(),
     65    CCloudClient comCloudClient = comCloudProvider.CreateCloudClient(fieldImp("profile").toString());
     66    AssertMsgReturnVoid(comCloudProvider.isOk() && comCloudClient.isNotNull(),
    6767                        ("Can't create Cloud Client object!"));
    6868
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h

    r73349 r73571  
    4141    Q_PROPERTY(bool manifestSelected READ isManifestSelected WRITE setManifestSelected);
    4242    Q_PROPERTY(bool includeISOsSelected READ isIncludeISOsSelected WRITE setIncludeISOsSelected);
    43     Q_PROPERTY(CCloudUserProfiles profiles READ profiles);
     43    Q_PROPERTY(CCloudProvider profiles READ profiles);
    4444    Q_PROPERTY(QString profile READ profile);
    4545    Q_PROPERTY(ExportAppliancePointer applianceWidget READ applianceWidget);
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r73535 r73571  
    24512451    </method>
    24522452
    2453     <method name="createCloudUserProfileManager">
    2454       <desc>
    2455         Creates a new cloud user profile manager object
    2456       </desc>
    2457       <param name="manager" type="ICloudUserProfileManager" 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">
    24582458        <desc>New cloud user profile manager</desc>
    24592459      </param>
     
    2510725107
    2510825108  <!--
    25109   // ICloudUserProfiles
     25109  // ICloudProvider
    2511025110  //////////////////////////////////////////////////////////////////////////
    2511125111  -->
    2511225112
    2511325113  <interface
    25114     name="ICloudUserProfiles" extends="$unknown"
     25114    name="ICloudProvider" extends="$unknown"
    2511525115    uuid="cfadfecb-ef89-41a9-abbd-9772d41baddb"
    2511625116    wsmap="managed" reservedMethods="4" reservedAttributes="4"
    2511725117    >
    25118     <desc>
    25119         Cloud user profiles description
    25120     </desc>
    25121 
    2512225118    <method name="getProvider">
    2512325119      <desc>
     
    2522525221
    2522625222  <!--
    25227   // ICloudUserProfileManager
     25223  // ICloudProviderManager
    2522825224  //////////////////////////////////////////////////////////////////////////
    2522925225  -->
    2523025226  <interface
    25231     name="ICloudUserProfileManager" extends="$unknown"
     25227    name="ICloudProviderManager" extends="$unknown"
    2523225228    uuid="64e276a7-cfd1-48ed-aad3-19368197f3b2"
    2523325229    wsmap="managed" reservedMethods="4" reservedAttributes="4"
    2523425230    >
    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">
    2524025233      <desc>Returns a predefined list of all supported cloud providers.</desc>
    2524125234    </attribute>
     
    2524325236    <method name="getAllProfiles" const="yes">
    2524425237      <desc>
    25245         Returns the list of the ICloudUserProfiles in one call.
    25246       </desc>
    25247       <param name="profileList" type="ICloudUserProfiles" safearray="yes" dir="return">
    25248         <desc>Returns the list of ICloudUserProfiles.</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>
    2524925242      </param>
    2525025243    </method>
     
    2525225245    <method name="getProfilesByProvider" const="yes">
    2525325246      <desc>
    25254         Returns the ICloudUserProfiles for the particular provider.
    25255       </desc>
    25256       <param name="providerId" type="CloudProviderId" dir="in">
    25257       </param>
    25258       <param name="profile" type="ICloudUserProfiles" dir="return">
    25259         <desc>Returns the ICloudUserProfiles.</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>
    2526025253      </param>
    2526125254    </method>
  • trunk/src/VBox/Main/include/CloudUserProfileManagerImpl.h

    r73551 r73571  
    2121
    2222/* VBox includes */
    23 #include "CloudUserProfileManagerWrap.h"
     23#include "CloudProviderManagerWrap.h"
    2424#include "CloudUserProfilesImpl.h"
    2525
    2626/* VBox forward declarations */
    2727
    28 class ATL_NO_VTABLE CloudUserProfileManager
    29     : public CloudUserProfileManagerWrap
     28class ATL_NO_VTABLE CloudProviderManager
     29    : public CloudProviderManagerWrap
    3030{
    3131public:
    3232
    33     DECLARE_EMPTY_CTOR_DTOR(CloudUserProfileManager)
     33    DECLARE_EMPTY_CTOR_DTOR(CloudProviderManager)
    3434
    3535    HRESULT FinalConstruct();
     
    4242    ComPtr<VirtualBox> const mParent;       /**< Strong reference to the parent object (VirtualBox/IMachine). */
    4343#ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK
    44     std::vector<ComPtr<ICloudUserProfileManager>> mUserProfileManagers;
     44    std::vector<ComPtr<ICloudProviderManager>> mUserProfileManagers;
    4545#else
    46     std::vector<CloudProviderId_T> mSupportedProviders;
     46    std::vector<Utf8Str> mSupportedProviders;
    4747#endif
    4848
    49     HRESULT getSupportedProviders(std::vector<CloudProviderId_T> &aProviderTypes);
    50     HRESULT getAllProfiles(std::vector< ComPtr<ICloudUserProfiles> > &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);
    5252};
    5353
  • trunk/src/VBox/Main/include/CloudUserProfilesImpl.h

    r73337 r73571  
    2525/* VBox includes */
    2626#include "CloudClientImpl.h"
    27 #include "CloudUserProfilesWrap.h"
     27#include "CloudProviderWrap.h"
    2828#include "UnattendedScript.h"
    2929
     
    3131class SimpleConfigFile;
    3232
    33 class CloudUserProfiles : public CloudUserProfilesWrap
     33class CloudProvider : public CloudProviderWrap
    3434{
    3535public:
    36     CloudUserProfiles();
    37     virtual ~CloudUserProfiles();
     36    CloudProvider();
     37    virtual ~CloudProvider();
    3838    HRESULT FinalConstruct();
    3939    void FinalRelease();
     
    6868
    6969class OCIUserProfiles :
    70     public CloudUserProfiles
     70    public CloudProvider
    7171{
    7272public:
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r73155 r73571  
    313313    HRESULT createAppliance(ComPtr<IAppliance> &aAppliance);
    314314    HRESULT createUnattendedInstaller(ComPtr<IUnattended> &aUnattended);
    315     HRESULT createCloudUserProfileManager(ComPtr<ICloudUserProfileManager> &aManager);
     315    HRESULT createCloudProviderManager(ComPtr<ICloudProviderManager> &aManager);
    316316    HRESULT createMedium(const com::Utf8Str &aFormat,
    317317                         const com::Utf8Str &aLocation,
  • trunk/src/VBox/Main/src-server/CloudUserProfileManagerImpl.cpp

    r73554 r73571  
    11/* $Id$ */
    22/** @file
    3  * ICloudUserProfileManager  COM class implementations.
     3 * ICloudProviderManager  COM class implementations.
    44 */
    55
     
    3636////////////////////////////////////////////////////////////////////////////////
    3737//
    38 // CloudUserProfileManager constructor / destructor
     38// CloudProviderManager constructor / destructor
    3939//
    4040// ////////////////////////////////////////////////////////////////////////////////
    41 CloudUserProfileManager::CloudUserProfileManager()
     41CloudProviderManager::CloudProviderManager()
    4242    : mParent(NULL)
    4343{
    4444}
    4545
    46 CloudUserProfileManager::~CloudUserProfileManager()
    47 {
    48 }
    49 
    50 
    51 HRESULT CloudUserProfileManager::FinalConstruct()
     46CloudProviderManager::~CloudProviderManager()
     47{
     48}
     49
     50
     51HRESULT CloudProviderManager::FinalConstruct()
    5252{
    5353    return BaseFinalConstruct();
    5454}
    5555
    56 void CloudUserProfileManager::FinalRelease()
     56void CloudProviderManager::FinalRelease()
    5757{
    5858    uninit();
     
    6161}
    6262
    63 HRESULT CloudUserProfileManager::init(VirtualBox *aParent)
     63HRESULT CloudProviderManager::init(VirtualBox *aParent)
    6464{
    6565    /* Enclose the state transition NotReady->InInit->Ready */
     
    7575    ExtPackManager *pExtPackMgr = aParent->i_getExtPackManager();
    7676    std::vector<ComPtr<IUnknown> > Objects;
    77     com::Guid idObj(COM_IIDOF(ICloudUserProfileManager));
     77    com::Guid idObj(COM_IIDOF(ICloudProviderManager));
    7878    pExtPackMgr->i_queryObjects(idObj.toString(), Objects);
    7979    for (unsigned i = 0; i < Objects.size(); i++)
    8080    {
    81         ComPtr<ICloudUserProfileManager> ptrTmp;
     81        ComPtr<ICloudProviderManager> ptrTmp;
    8282        HRESULT hrc = Objects[i].queryInterfaceTo(ptrTmp.asOutParam());
    8383        if (SUCCEEDED(hrc))
     
    8787
    8888    mSupportedProviders.clear();
    89     mSupportedProviders.push_back(CloudProviderId_OCI);
     89    mSupportedProviders.push_back("OCI");
     90
    9091#endif
    9192
     
    9495}
    9596
    96 void CloudUserProfileManager::uninit()
     97void CloudProviderManager::uninit()
    9798{
    9899    /* Enclose the state transition Ready->InUninit->NotReady */
     
    104105}
    105106
    106 HRESULT CloudUserProfileManager::getSupportedProviders(std::vector<CloudProviderId_T> &aSupportedProviders)
     107HRESULT CloudProviderManager::getSupportedProviders(std::vector<Utf8Str> &aSupportedProviders)
    107108{
    108109#ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK
     
    113114    for (unsigned i = 0; i < mUserProfileManagers.size(); i++)
    114115    {
    115         SafeArray<CloudProviderId_T> FromCurrent;
     116        SafeArray<Utf8Str> FromCurrent;
    116117        HRESULT hrc2 = mUserProfileManagers[i]->COMGETTER(SupportedProviders)(ComSafeArrayAsOutParam(FromCurrent));
    117118        if (SUCCEEDED(hrc2))
     
    130131}
    131132
    132 HRESULT CloudUserProfileManager::getAllProfiles(std::vector<ComPtr<ICloudUserProfiles> > &aProfilesList)
     133HRESULT CloudProviderManager::getAllProfiles(std::vector<ComPtr<ICloudProvider> > &aProfilesList)
    133134{
    134135#ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK
     
    139140    for (unsigned i = 0; i < mUserProfileManagers.size(); i++)
    140141    {
    141         SafeIfaceArray<ICloudUserProfiles> FromCurrent;
     142        SafeIfaceArray<ICloudProvider> FromCurrent;
    142143        HRESULT hrc2 = mUserProfileManagers[i]->GetAllProfiles(ComSafeArrayAsOutParam(FromCurrent));
    143144        if (SUCCEEDED(hrc2))
     
    153154#else
    154155    HRESULT hrc = S_OK;
    155     std::vector<ComPtr<ICloudUserProfiles> > lProfilesList;
     156    std::vector<ComPtr<ICloudProvider> > lProfilesList;
    156157    for (size_t i=0;i<mSupportedProviders.size();++i)
    157158    {
    158         ComPtr<ICloudUserProfiles> lProfiles;
     159        ComPtr<ICloudProvider> lProfiles;
    159160        hrc = getProfilesByProvider(mSupportedProviders.at(i), lProfiles);
    160161        if (FAILED(hrc))
     
    171172}
    172173
    173 HRESULT CloudUserProfileManager::getProfilesByProvider(CloudProviderId_T aProviderType,
    174                                                        ComPtr<ICloudUserProfiles> &aProfiles)
     174HRESULT CloudProviderManager::getProfilesByProvider(const com::Utf8Str &aProviderName,
     175                                                    ComPtr<ICloudProvider> &aProfiles)
    175176{
    176177#ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK
     
    189190#else
    190191
    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);
    199203            if (SUCCEEDED(hrc))
    200204            {
    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))
    205210                {
    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))
    211213                    {
    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));
    224217                        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());
    227222                    }
    228223                    else
    229                         hrc = setErrorVrc(vrc);
     224                        hrc = setErrorBoth(E_FAIL, VERR_FILE_NOT_FOUND, tr("Could not locate the config file '%s'"),
     225                                           szOciConfigPath);
    230226                }
     227                else
     228                    hrc = setErrorVrc(vrc);
    231229            }
    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  
    11/* $Id$ */
    22/** @file
    3  * ICloudUserProfiles COM class implementations.
     3 * ICloudProvider COM class implementations.
    44 */
    55
     
    210210////////////////////////////////////////////////////////////////////////////////
    211211//
    212 // ICloudUserProfiles implementation
     212// ICloudProvider implementation
    213213//
    214214////////////////////////////////////////////////////////////////////////////////
    215 CloudUserProfiles::CloudUserProfiles()
     215CloudProvider::CloudProvider()
    216216    : mParent(NULL)
    217217{
    218218}
    219219
    220 CloudUserProfiles::~CloudUserProfiles()
    221 {
    222     LogRel(("CloudUserProfilesImpl::~CloudUserProfilesImpl()\n"));
     220CloudProvider::~CloudProvider()
     221{
     222    LogRel(("CloudProvider::~CloudProvider()\n"));
    223223    unconst(mParent) = NULL;
    224224}
    225225
    226 HRESULT CloudUserProfiles::FinalConstruct()
     226HRESULT CloudProvider::FinalConstruct()
    227227{
    228228    return BaseFinalConstruct();
    229229}
    230230
    231 void CloudUserProfiles::FinalRelease()
     231void CloudProvider::FinalRelease()
    232232{
    233233    uninit();
     
    236236}
    237237
    238 void CloudUserProfiles::uninit()
     238void CloudProvider::uninit()
    239239{
    240240    /* Enclose the state transition Ready->InUninit->NotReady */
     
    246246}
    247247
    248 HRESULT CloudUserProfiles::init(VirtualBox *aParent)
     248HRESULT CloudProvider::init(VirtualBox *aParent)
    249249{
    250250    /* Enclose the state transition NotReady->InInit->Ready */
     
    259259
    260260
    261 HRESULT CloudUserProfiles::getSupportedPropertiesNames(std::vector<com::Utf8Str> &aPropertiesNames)
    262 {
    263     LogRel(("CloudUserProfiles::getSupportedPropertiesNames:\n"));
     261HRESULT CloudProvider::getSupportedPropertiesNames(std::vector<com::Utf8Str> &aPropertiesNames)
     262{
     263    LogRel(("CloudProvider::getSupportedPropertiesNames:\n"));
    264264    aPropertiesNames.clear();
    265265    return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented"));
    266266}
    267267
    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)
     268HRESULT 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
     274HRESULT CloudProvider::getProvider(CloudProviderId_T *aProvider)
    275275{
    276276    *aProvider = CloudProviderId_Unknown;
    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,
     277    LogRel(("CloudProvider::getProvider: %d\n", *aProvider));
     278    return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented"));
     279}
     280
     281HRESULT CloudProvider::createProfile(const com::Utf8Str &aProfileName,
    282282                                            const std::vector<com::Utf8Str> &aNames,
    283283                                            const std::vector<com::Utf8Str> &aValues)
    284284{
    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,
     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
     289HRESULT CloudProvider::updateProfile(const com::Utf8Str &aProfileName,
    290290                                            const std::vector<com::Utf8Str> &aNames,
    291291                                            const std::vector<com::Utf8Str> &aValues)
    292292{
    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"));
     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
     297HRESULT CloudProvider::getStoredProfilesNames(std::vector<com::Utf8Str> &aProfilesNames)
     298{
     299
     300    LogRel(("CloudProvider::getStoredProfilesNames:\n"));
    301301    aProfilesNames.clear();
    302302    return setErrorBoth(E_FAIL, VERR_NOT_IMPLEMENTED, tr("Not implemented"));
    303303}
    304304
    305 HRESULT CloudUserProfiles::getProfileProperties(const com::Utf8Str &aProfileName,
     305HRESULT CloudProvider::getProfileProperties(const com::Utf8Str &aProfileName,
    306306                                              std::vector<com::Utf8Str> &aReturnNames,
    307307                                              std::vector<com::Utf8Str> &aReturnValues)
    308308{
    309     LogRel(("CloudUserProfiles::getProfileProperties: %s\n", aProfileName.c_str()));
     309    LogRel(("CloudProvider::getProfileProperties: %s\n", aProfileName.c_str()));
    310310    aReturnNames.clear();
    311311    aReturnValues.clear();
     
    313313}
    314314
    315 HRESULT CloudUserProfiles::getPropertyDescription(const com::Utf8Str &aName,
     315HRESULT CloudProvider::getPropertyDescription(const com::Utf8Str &aName,
    316316                                                     com::Utf8Str &aDescription)
    317317{
    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,
     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
     322HRESULT CloudProvider::createCloudClient(const com::Utf8Str &aProfileName,
    323323                                                ComPtr<ICloudClient> &aCloudClient)
    324324{
    325     LogRel(("CloudUserProfiles::createCloudClient: %s\n", aProfileName.c_str()));
     325    LogRel(("CloudProvider::createCloudClient: %s\n", aProfileName.c_str()));
    326326
    327327    if (aCloudClient.isNull())
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r73155 r73571  
    18201820}
    18211821
    1822 HRESULT VirtualBox::createCloudUserProfileManager(ComPtr<ICloudUserProfileManager> &aManager)
    1823 {
    1824     ComObjPtr<CloudUserProfileManager> ptrCloudUserProfileManager;
    1825     HRESULT hrc = ptrCloudUserProfileManager.createObject();
     1822HRESULT VirtualBox::createCloudProviderManager(ComPtr<ICloudProviderManager> &aManager)
     1823{
     1824    ComObjPtr<CloudProviderManager> ptrCloudProviderManager;
     1825    HRESULT hrc = ptrCloudProviderManager.createObject();
    18261826    if (SUCCEEDED(hrc))
    18271827    {
    18281828        AutoReadLock wlock(this COMMA_LOCKVAL_SRC_POS);
    1829         hrc = ptrCloudUserProfileManager->init(this);
     1829        hrc = ptrCloudProviderManager->init(this);
    18301830        if (SUCCEEDED(hrc))
    1831             hrc = ptrCloudUserProfileManager.queryInterfaceTo(aManager.asOutParam());
     1831            hrc = ptrCloudProviderManager.queryInterfaceTo(aManager.asOutParam());
    18321832    }
    18331833    return hrc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette