VirtualBox

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

Last change on this file since 99093 was 99093, checked in by vboxsync, 23 months ago

FE/Qt: bugref:10322: Runtime UI: Audio status-bar indicator should be updated directly by audio-change event; Display status-bar indicator is already updated by machine-state-change event.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1/* $Id: UIMachineDefs.h 99093 2023-03-21 15:45:23Z 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 "UIDefs.h"
41
42/* Other VBox includes: */
43#include <iprt/cdefs.h>
44
45/** Machine window visual element types. */
46enum UIVisualElement
47{
48 UIVisualElement_WindowTitle = RT_BIT(0),
49 UIVisualElement_MouseIntegrationStuff = RT_BIT(1),
50 UIVisualElement_IndicatorPoolStuff = RT_BIT(2),
51 UIVisualElement_USBStuff = RT_BIT(8),
52 UIVisualElement_SharedFolderStuff = RT_BIT(9),
53 UIVisualElement_Recording = RT_BIT(11),
54 UIVisualElement_FeaturesStuff = RT_BIT(12),
55#ifndef VBOX_WS_MAC
56 UIVisualElement_MiniToolBar = RT_BIT(13),
57#endif
58 UIVisualElement_AllStuff = 0xFFFF
59};
60
61/** Mouse state types. */
62enum UIMouseStateType
63{
64 UIMouseStateType_MouseCaptured = RT_BIT(0),
65 UIMouseStateType_MouseAbsolute = RT_BIT(1),
66 UIMouseStateType_MouseAbsoluteDisabled = RT_BIT(2),
67 UIMouseStateType_MouseNeedsHostCursor = RT_BIT(3)
68};
69
70/** Keyboard state types. */
71enum UIKeyboardStateType
72{
73 UIKeyboardStateType_KeyboardUnavailable = 0,
74 UIKeyboardStateType_KeyboardAvailable = RT_BIT(0),
75 UIKeyboardStateType_KeyboardCaptured = RT_BIT(1),
76 UIKeyboardStateType_HostKeyPressed = RT_BIT(2),
77 UIKeyboardStateType_HostKeyPressedInsertion = RT_BIT(3)
78};
79
80/** Robust struct to bring storage device info to machine-logic. */
81struct StorageDeviceInfo
82{
83 QString m_strControllerName;
84 StorageSlot m_guiStorageSlot;
85 QIcon m_icon;
86};
87
88/** Robust struct to bring USB device info to machine-logic. */
89struct USBDeviceInfo
90{
91 QUuid m_uId;
92 QString m_strName;
93 QString m_strToolTip;
94 bool m_fIsChecked;
95 bool m_fIsEnabled;
96};
97
98/** Robust struct to bring web cam device info to machine-logic. */
99struct WebcamDeviceInfo
100{
101 QString m_strName;
102 QString m_strPath;
103 QString m_strToolTip;
104 bool m_fIsChecked;
105};
106
107#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