VirtualBox

source: vbox/trunk/src/VBox/Main/include/CloudProviderManagerImpl.h@ 76487

Last change on this file since 76487 was 76487, checked in by vboxsync, 6 years ago

Main/include: Slapped #pragma once on all headers in prep for GCC precompiled headers. Won't catch repeat includes of an already precompiled header otherwise, i.e. killing most of the PCH gain.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/* $Id: CloudProviderManagerImpl.h 76487 2018-12-27 03:31:39Z vboxsync $ */
2/** @file
3 * VirtualBox COM class implementation
4 */
5
6/*
7 * Copyright (C) 2018 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18
19#ifndef ____H_CLOUDPROVIDERMANAGERIMPL
20#define ____H_CLOUDPROVIDERMANAGERIMPL
21#ifndef RT_WITHOUT_PRAGMA_ONCE
22# pragma once
23#endif
24
25#include "CloudProviderManagerWrap.h"
26
27
28class ATL_NO_VTABLE CloudProviderManager
29 : public CloudProviderManagerWrap
30{
31public:
32 DECLARE_EMPTY_CTOR_DTOR(CloudProviderManager)
33
34 HRESULT FinalConstruct();
35 void FinalRelease();
36
37 HRESULT init();
38 void uninit();
39
40#ifdef VBOX_WITH_EXTPACK
41 // Safe helpers, take care of caller and lock themselves.
42 bool i_canRemoveExtPack(IExtPack *aExtPack);
43 void i_addExtPack(IExtPack *aExtPack);
44#endif
45
46private:
47 // wrapped ICloudProviderManager attributes and methods
48 HRESULT getProviders(std::vector<ComPtr<ICloudProvider> > &aProviders);
49 HRESULT getProviderById(const com::Guid &aProviderId,
50 ComPtr<ICloudProvider> &aProvider);
51 HRESULT getProviderByShortName(const com::Utf8Str &aProviderName,
52 ComPtr<ICloudProvider> &aProvider);
53 HRESULT getProviderByName(const com::Utf8Str &aProviderName,
54 ComPtr<ICloudProvider> &aProvider);
55
56private:
57#ifdef VBOX_WITH_EXTPACK
58 typedef std::map<com::Utf8Str, ComPtr<ICloudProviderManager> > ExtPackNameCloudProviderManagerMap;
59 ExtPackNameCloudProviderManagerMap m_mapCloudProviderManagers;
60 typedef std::vector<com::Utf8Str> ExtPackNameVec;
61 ExtPackNameVec m_astrExtPackNames;
62#endif
63
64 typedef std::vector<ComPtr<ICloudProvider> > CloudProviderVec;
65 CloudProviderVec m_apCloudProviders;
66};
67
68#endif // !____H_CLOUDPROVIDERMANAGERIMPL
69
70/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

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