VirtualBox

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

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

FE/Qt: bugref:10322: Runtime UI: Network status-bar indicator stuff forgotten in r156448.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1/* $Id: UIMachineDefs.h 99091 2023-03-21 15:28:29Z 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_HDStuff = RT_BIT(3),
52 UIVisualElement_CDStuff = RT_BIT(4),
53 UIVisualElement_FDStuff = RT_BIT(5),
54 UIVisualElement_AudioStuff = RT_BIT(6),
55 UIVisualElement_USBStuff = RT_BIT(8),
56 UIVisualElement_SharedFolderStuff = RT_BIT(9),
57 UIVisualElement_Display = RT_BIT(10),
58 UIVisualElement_Recording = RT_BIT(11),
59 UIVisualElement_FeaturesStuff = RT_BIT(12),
60#ifndef VBOX_WS_MAC
61 UIVisualElement_MiniToolBar = RT_BIT(13),
62#endif
63 UIVisualElement_AllStuff = 0xFFFF
64};
65
66/** Mouse state types. */
67enum UIMouseStateType
68{
69 UIMouseStateType_MouseCaptured = RT_BIT(0),
70 UIMouseStateType_MouseAbsolute = RT_BIT(1),
71 UIMouseStateType_MouseAbsoluteDisabled = RT_BIT(2),
72 UIMouseStateType_MouseNeedsHostCursor = RT_BIT(3)
73};
74
75/** Keyboard state types. */
76enum UIKeyboardStateType
77{
78 UIKeyboardStateType_KeyboardUnavailable = 0,
79 UIKeyboardStateType_KeyboardAvailable = RT_BIT(0),
80 UIKeyboardStateType_KeyboardCaptured = RT_BIT(1),
81 UIKeyboardStateType_HostKeyPressed = RT_BIT(2),
82 UIKeyboardStateType_HostKeyPressedInsertion = RT_BIT(3)
83};
84
85/** Robust struct to bring storage device info to machine-logic. */
86struct StorageDeviceInfo
87{
88 QString m_strControllerName;
89 StorageSlot m_guiStorageSlot;
90 QIcon m_icon;
91};
92
93/** Robust struct to bring USB device info to machine-logic. */
94struct USBDeviceInfo
95{
96 QUuid m_uId;
97 QString m_strName;
98 QString m_strToolTip;
99 bool m_fIsChecked;
100 bool m_fIsEnabled;
101};
102
103/** Robust struct to bring web cam device info to machine-logic. */
104struct WebcamDeviceInfo
105{
106 QString m_strName;
107 QString m_strPath;
108 QString m_strToolTip;
109 bool m_fIsChecked;
110};
111
112#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