1 | /* $Id: Global.h 9361 2008-06-03 17:12:36Z vboxsync $ */
|
---|
2 |
|
---|
3 | /** @file
|
---|
4 | *
|
---|
5 | * VirtualBox COM global declarations
|
---|
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_GLOBAL
|
---|
25 | #define ____H_GLOBAL
|
---|
26 |
|
---|
27 | /* generated header */
|
---|
28 | #include "SchemaDefs.h"
|
---|
29 |
|
---|
30 | #include <VBox/ostypes.h>
|
---|
31 |
|
---|
32 | #include <iprt/types.h>
|
---|
33 |
|
---|
34 | /**
|
---|
35 | * Contains global static definitions that can be referenced by all COM classes
|
---|
36 | * regardless of the apartment.
|
---|
37 | */
|
---|
38 | class Global
|
---|
39 | {
|
---|
40 | public:
|
---|
41 |
|
---|
42 | /** Represents OS Type <-> string mappings. */
|
---|
43 | struct OSType
|
---|
44 | {
|
---|
45 | const char *id; /* utf-8 */
|
---|
46 | const char *description; /* utf-8 */
|
---|
47 | const VBOXOSTYPE osType;
|
---|
48 | const uint32_t recommendedRAM;
|
---|
49 | const uint32_t recommendedVRAM;
|
---|
50 | const uint32_t recommendedHDD;
|
---|
51 | };
|
---|
52 |
|
---|
53 | static const OSType sOSTypes [SchemaDefs::OSTypeId_COUNT];
|
---|
54 |
|
---|
55 | static const char *OSTypeId (VBOXOSTYPE aOSType);
|
---|
56 | };
|
---|
57 |
|
---|
58 | #endif /* ____H_GLOBAL */
|
---|