1 | /* $Id: UIDefs.h 103551 2024-02-23 16:09:47Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - Global definitions.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef FEQT_INCLUDED_SRC_globals_UIDefs_h
|
---|
29 | #define FEQT_INCLUDED_SRC_globals_UIDefs_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* Qt includes: */
|
---|
35 | #include <QStringList>
|
---|
36 |
|
---|
37 | /* GUI includes: */
|
---|
38 | #include "UILibraryDefs.h"
|
---|
39 |
|
---|
40 |
|
---|
41 | /** Global namespace. */
|
---|
42 | namespace UIDefs
|
---|
43 | {
|
---|
44 | /** Default guest additions image name. */
|
---|
45 | SHARED_LIBRARY_STUFF extern const char* GUI_GuestAdditionsName;
|
---|
46 | /** Default extension pack name. */
|
---|
47 | SHARED_LIBRARY_STUFF extern const char* GUI_ExtPackName;
|
---|
48 |
|
---|
49 | /** Allowed VBox file extensions. */
|
---|
50 | SHARED_LIBRARY_STUFF extern QStringList VBoxFileExts;
|
---|
51 | /** Allowed VBox Extension Pack file extensions. */
|
---|
52 | SHARED_LIBRARY_STUFF extern QStringList VBoxExtPackFileExts;
|
---|
53 | /** Allowed OVF file extensions. */
|
---|
54 | SHARED_LIBRARY_STUFF extern QStringList OVFFileExts;
|
---|
55 | }
|
---|
56 | using namespace UIDefs /* if header included */;
|
---|
57 |
|
---|
58 |
|
---|
59 | #ifdef VBOX_WS_MAC
|
---|
60 | /** Known macOS releases. */
|
---|
61 | enum MacOSXRelease
|
---|
62 | {
|
---|
63 | MacOSXRelease_Old,
|
---|
64 | MacOSXRelease_FirstUnknown = 9,
|
---|
65 | MacOSXRelease_SnowLeopard = 10,
|
---|
66 | MacOSXRelease_Lion = 11,
|
---|
67 | MacOSXRelease_MountainLion = 12,
|
---|
68 | MacOSXRelease_Mavericks = 13,
|
---|
69 | MacOSXRelease_Yosemite = 14,
|
---|
70 | MacOSXRelease_ElCapitan = 15,
|
---|
71 | MacOSXRelease_Sierra = 16,
|
---|
72 | MacOSXRelease_HighSierra = 17,
|
---|
73 | MacOSXRelease_Mojave = 18,
|
---|
74 | MacOSXRelease_Catalina = 19,
|
---|
75 | MacOSXRelease_BigSur = 20,
|
---|
76 | MacOSXRelease_Monterey = 21,
|
---|
77 | MacOSXRelease_Ventura = 22,
|
---|
78 | MacOSXRelease_Sonoma = 23,
|
---|
79 | MacOSXRelease_LastUnknown = 24,
|
---|
80 | MacOSXRelease_New,
|
---|
81 | };
|
---|
82 | #endif /* VBOX_WS_MAC */
|
---|
83 |
|
---|
84 |
|
---|
85 | /** UI types. */
|
---|
86 | enum UIType
|
---|
87 | {
|
---|
88 | UIType_ManagerUI,
|
---|
89 | UIType_RuntimeUI
|
---|
90 | };
|
---|
91 |
|
---|
92 |
|
---|
93 | /** VM launch modes. */
|
---|
94 | enum UILaunchMode
|
---|
95 | {
|
---|
96 | UILaunchMode_Invalid,
|
---|
97 | UILaunchMode_Default,
|
---|
98 | UILaunchMode_Headless,
|
---|
99 | UILaunchMode_Separate
|
---|
100 | };
|
---|
101 |
|
---|
102 |
|
---|
103 | #endif /* !FEQT_INCLUDED_SRC_globals_UIDefs_h */
|
---|