VirtualBox

source: vbox/trunk/src/VBox/Main/include/HardDiskFormatImpl.h@ 13837

Last change on this file since 13837 was 13676, checked in by vboxsync, 16 years ago

Main: ConfigNames -> PropertyNames

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1/* $Id: HardDiskFormatImpl.h 13676 2008-10-30 13:34:41Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation
6 */
7
8/*
9 * Copyright (C) 2008 Sun Microsystems, Inc.
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 *
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
20 * Clara, CA 95054 USA or visit http://www.sun.com if you need
21 * additional information or have any questions.
22 */
23
24#ifndef ____H_HARDDISKFORMAT
25#define ____H_HARDDISKFORMAT
26
27#include "VirtualBoxBase.h"
28
29#include <VBox/com/array.h>
30
31#include <list>
32
33struct VDBACKENDINFO;
34
35class ATL_NO_VTABLE HardDiskFormat :
36 public VirtualBoxBaseNEXT,
37 public VirtualBoxSupportErrorInfoImpl <HardDiskFormat, IHardDiskFormat>,
38 public VirtualBoxSupportTranslation <HardDiskFormat>,
39 public IHardDiskFormat
40{
41public:
42
43 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (HardDiskFormat)
44
45 DECLARE_NOT_AGGREGATABLE (HardDiskFormat)
46
47 DECLARE_PROTECT_FINAL_CONSTRUCT()
48
49 BEGIN_COM_MAP(HardDiskFormat)
50 COM_INTERFACE_ENTRY (ISupportErrorInfo)
51 COM_INTERFACE_ENTRY (IHardDiskFormat)
52 END_COM_MAP()
53
54 NS_DECL_ISUPPORTS
55
56 DECLARE_EMPTY_CTOR_DTOR (HardDiskFormat)
57
58 HRESULT FinalConstruct();
59 void FinalRelease();
60
61 // public initializer/uninitializer for internal purposes only
62 HRESULT init (const VDBACKENDINFO *aVDInfo);
63 void uninit();
64
65 // IHardDiskFormat properties
66 STDMETHOD(COMGETTER(Id)) (BSTR *aId);
67 STDMETHOD(COMGETTER(Name)) (BSTR *aName);
68 STDMETHOD(COMGETTER(FileExtensions)) (ComSafeArrayOut (BSTR, aFileExtensions));
69
70 STDMETHOD(COMGETTER(Capabilities)) (ULONG *aCaps);
71 STDMETHOD(COMGETTER(PropertyNames)) (ComSafeArrayOut (BSTR, aPropertyNames));
72
73 // public methods only for internal purposes
74
75 // public methods for internal purposes only
76 // (ensure there is a caller and a read lock before calling them!)
77
78 // for VirtualBoxSupportErrorInfoImpl
79 static const wchar_t *getComponentName() { return L"HardDiskFormat"; }
80
81private:
82
83 typedef std::list <Bstr> BstrList;
84
85 struct Data
86 {
87 Data() : capabilities (0) {}
88
89 const Bstr id;
90 const Bstr name;
91 const BstrList fileExtensions;
92 const uint64_t capabilities;
93 const BstrList propertyNames;
94 };
95
96 Data mData;
97};
98
99#endif // ____H_HARDDISKFORMAT
100
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