VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h

Last change on this file was 106061, checked in by vboxsync, 7 weeks ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1/* $Id: UIMachineDefs.h 106061 2024-09-16 14:03:52Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - Defines for Virtual Machine classes.
4 */
5
6/*
7 * Copyright (C) 2010-2024 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. */
46enum 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. */
57enum UIMouseStateType
58{
59 UIMouseStateType_MouseCaptured = RT_BIT(0),
60 UIMouseStateType_MouseSupportsAbsolute = RT_BIT(1),
61 UIMouseStateType_MouseIntegrated = RT_BIT(2)
62};
63
64/** Keyboard state types. */
65enum UIKeyboardStateType
66{
67 UIKeyboardStateType_KeyboardUnavailable = 0,
68 UIKeyboardStateType_KeyboardAvailable = RT_BIT(0),
69 UIKeyboardStateType_KeyboardCaptured = RT_BIT(1),
70 UIKeyboardStateType_HostKeyPressed = RT_BIT(2),
71 UIKeyboardStateType_HostKeyPressedInsertion = RT_BIT(3)
72};
73
74/** Robust struct to bring storage device info to machine-logic. */
75struct StorageDeviceInfo
76{
77 QString m_strControllerName;
78 StorageSlot m_guiStorageSlot;
79 QIcon m_icon;
80};
81
82/** Robust struct to bring USB device info to machine-logic. */
83struct USBDeviceInfo
84{
85 QUuid m_uId;
86 QString m_strName;
87 QString m_strToolTip;
88 bool m_fIsChecked;
89 bool m_fIsEnabled;
90};
91
92/** Robust struct to bring web cam device info to machine-logic. */
93struct WebcamDeviceInfo
94{
95 QString m_strName;
96 QString m_strPath;
97 QString m_strToolTip;
98 bool m_fIsChecked;
99};
100
101#endif /* !FEQT_INCLUDED_SRC_runtime_UIMachineDefs_h */
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