/* $Id: CloudProviderManagerImpl.h 74214 2018-09-12 10:04:30Z vboxsync $ */ /** @file * VirtualBox COM class implementation */ /* * Copyright (C) 2018 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. */ #ifndef ____H_CLOUDPROVIDERMANAGERIMPL #define ____H_CLOUDPROVIDERMANAGERIMPL #include "CloudProviderManagerWrap.h" #ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK class ExtPackManager; #endif class ATL_NO_VTABLE CloudProviderManager : public CloudProviderManagerWrap { public: DECLARE_EMPTY_CTOR_DTOR(CloudProviderManager) HRESULT FinalConstruct(); void FinalRelease(); HRESULT init(VirtualBox *aParent); void uninit(); #if defined(VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK) && defined(VBOX_WITH_EXTPACK) // Safe helpers, take care of caller and lock themselves. void i_refreshProviders(); #endif private: // wrapped ICloudProviderManager attributes and methods HRESULT getProviders(std::vector > &aProviders); HRESULT getProviderById(const com::Guid &aProviderId, ComPtr &aProvider); HRESULT getProviderByShortName(const com::Utf8Str &aProviderName, ComPtr &aProvider); HRESULT getProviderByName(const com::Utf8Str &aProviderName, ComPtr &aProvider); private: #ifdef VBOX_WITH_CLOUD_PROVIDERS_IN_EXTPACK ComObjPtr mpExtPackMgr; uint64_t mcExtPackMgrUpdate; std::map > m_mapCloudProviderManagers; #endif std::vector > m_apCloudProviders; }; #endif // !____H_CLOUDPROVIDERMANAGERIMPL /* vi: set tabstop=4 shiftwidth=4 expandtab: */