1 | /* $Id: UIMachineDefs.h 103339 2024-02-13 16:49:47Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox Qt GUI - Defines for Virtual Machine classes.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2010-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_runtime_UIMachineDefs_h
|
---|
29 | #define FEQT_INCLUDED_SRC_runtime_UIMachineDefs_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* Qt includes: */
|
---|
35 | #include <QIcon>
|
---|
36 | #include <QString>
|
---|
37 | #include <QUuid>
|
---|
38 |
|
---|
39 | /* GUI includes: */
|
---|
40 | #include "UIMediumDefs.h" // for StorageSlot
|
---|
41 |
|
---|
42 | /* Other VBox includes: */
|
---|
43 | #include <iprt/cdefs.h> // for RT_BIT stuff
|
---|
44 |
|
---|
45 | /** Machine window visual element types. */
|
---|
46 | enum UIVisualElement
|
---|
47 | {
|
---|
48 | UIVisualElement_WindowTitle = RT_BIT(0),
|
---|
49 | UIVisualElement_IndicatorPool = RT_BIT(1),
|
---|
50 | #ifndef VBOX_WS_MAC
|
---|
51 | UIVisualElement_MiniToolBar = RT_BIT(2),
|
---|
52 | #endif
|
---|
53 | UIVisualElement_AllStuff = 0xFFFF
|
---|
54 | };
|
---|
55 |
|
---|
56 | /** Mouse state types. */
|
---|
57 | enum UIMouseStateType
|
---|
58 | {
|
---|
59 | UIMouseStateType_MouseCaptured = RT_BIT(0),
|
---|
60 | UIMouseStateType_MouseAbsolute = RT_BIT(1),
|
---|
61 | UIMouseStateType_MouseAbsoluteDisabled = RT_BIT(2),
|
---|
62 | UIMouseStateType_MouseNeedsHostCursor = RT_BIT(3)
|
---|
63 | };
|
---|
64 |
|
---|
65 | /** Keyboard state types. */
|
---|
66 | enum UIKeyboardStateType
|
---|
67 | {
|
---|
68 | UIKeyboardStateType_KeyboardUnavailable = 0,
|
---|
69 | UIKeyboardStateType_KeyboardAvailable = RT_BIT(0),
|
---|
70 | UIKeyboardStateType_KeyboardCaptured = RT_BIT(1),
|
---|
71 | UIKeyboardStateType_HostKeyPressed = RT_BIT(2),
|
---|
72 | UIKeyboardStateType_HostKeyPressedInsertion = RT_BIT(3)
|
---|
73 | };
|
---|
74 |
|
---|
75 | /** Robust struct to bring storage device info to machine-logic. */
|
---|
76 | struct StorageDeviceInfo
|
---|
77 | {
|
---|
78 | QString m_strControllerName;
|
---|
79 | StorageSlot m_guiStorageSlot;
|
---|
80 | QIcon m_icon;
|
---|
81 | };
|
---|
82 |
|
---|
83 | /** Robust struct to bring USB device info to machine-logic. */
|
---|
84 | struct USBDeviceInfo
|
---|
85 | {
|
---|
86 | QUuid m_uId;
|
---|
87 | QString m_strName;
|
---|
88 | QString m_strToolTip;
|
---|
89 | bool m_fIsChecked;
|
---|
90 | bool m_fIsEnabled;
|
---|
91 | };
|
---|
92 |
|
---|
93 | /** Robust struct to bring web cam device info to machine-logic. */
|
---|
94 | struct WebcamDeviceInfo
|
---|
95 | {
|
---|
96 | QString m_strName;
|
---|
97 | QString m_strPath;
|
---|
98 | QString m_strToolTip;
|
---|
99 | bool m_fIsChecked;
|
---|
100 | };
|
---|
101 |
|
---|
102 | #endif /* !FEQT_INCLUDED_SRC_runtime_UIMachineDefs_h */
|
---|