UISession.h revision 40b38a663dc0fd3003f7cdb0a69a01959d79b1f0
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/** @file
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync *
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * VBox frontends: Qt GUI ("VirtualBox"):
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * UISession class declaration
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/*
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * Copyright (C) 2010 Sun Microsystems, Inc.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync *
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * available from http://www.virtualbox.org. This file is free software;
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * you can redistribute it and/or modify it under the terms of the GNU
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * General Public License (GPL) as published by the Free Software
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync *
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * additional information or have any questions.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#ifndef ___UIConsole_h___
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#define ___UIConsole_h___
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/* Global includes */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#include <QObject>
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync#include <QCursor>
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/* Local includes */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#include "COMDefs.h"
af62929dce3cc5e14c75438cd2b893f82ae6dbc8vboxsync#include "UIMachineDefs.h"
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
0ae258e7d0d2520036514d896a9eea58bf285f03vboxsync/* Global forwards */
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsyncclass QMenu;
0ae258e7d0d2520036514d896a9eea58bf285f03vboxsyncclass QMenuBar;
0ae258e7d0d2520036514d896a9eea58bf285f03vboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/* Local forwards */
04e845ee9ef813501cd2570a4188cb852d170408vboxsyncclass UIActionsPool;
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncclass UIConsoleCallback;
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsyncclass UIFrameBuffer;
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsyncclass UIMachine;
04e845ee9ef813501cd2570a4188cb852d170408vboxsyncclass UIMachineMenuBar;
04e845ee9ef813501cd2570a4188cb852d170408vboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/* CConsole callback event types: */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncenum UIConsoleEventType
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync{
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_MousePointerShapeChange = QEvent::User + 1,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_MouseCapabilityChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_KeyboardLedsChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_StateChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_AdditionsStateChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_NetworkAdapterChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_SerialPortChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_ParallelPortChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_StorageControllerChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_MediumChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_CPUChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_VRDPServerChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_RemoteDisplayInfoChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_USBControllerChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_USBDeviceStateChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_SharedFolderChange,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_RuntimeError,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_CanShowWindow,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_ShowWindow,
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_MAX
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync};
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncclass UISession : public QObject
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync{
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync Q_OBJECT;
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncpublic:
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync /* Machine uisession constructor/destructor: */
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync UISession(UIMachine *pMachine, CSession &session);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync virtual ~UISession();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync /* Common members: */
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync void powerUp();
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Common getters: */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync CSession& session() { return m_session; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync KMachineState machineState() const { return m_machineState; }
04e845ee9ef813501cd2570a4188cb852d170408vboxsync UIActionsPool* actionsPool() const;
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync QWidget* mainMachineWindow() const;
af62929dce3cc5e14c75438cd2b893f82ae6dbc8vboxsync QMenu* newMenu(UIMainMenuType fOptions = UIMainMenuType_All);
af62929dce3cc5e14c75438cd2b893f82ae6dbc8vboxsync QMenuBar* newMenuBar(UIMainMenuType fOptions = UIMainMenuType_All);
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync QCursor cursor() const { return m_cursor; }
04e845ee9ef813501cd2570a4188cb852d170408vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isSaved() const { return machineState() == KMachineState_Saved; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isTurnedOff() const { return machineState() == KMachineState_PoweredOff ||
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync machineState() == KMachineState_Saved ||
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync machineState() == KMachineState_Teleported ||
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync machineState() == KMachineState_Aborted; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isPaused() const { return machineState() == KMachineState_Paused ||
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync machineState() == KMachineState_TeleportingPausedVM; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isRunning() const { return machineState() == KMachineState_Running ||
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync machineState() == KMachineState_Teleporting ||
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync machineState() == KMachineState_LiveSnapshotting; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isFirstTimeStarted() const { return m_fIsFirstTimeStarted; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isIgnoreRuntimeMediumsChanging() const { return m_fIsIgnoreRutimeMediumsChanging; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isGuestResizeIgnored() const { return m_fIsGuestResizeIgnored; }
83ee0b9fd6aa227bf4276f9d41af7ef59c03e8eevboxsync bool isSeamlessModeRequested() const { return m_fIsSeamlessModeRequested; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Guest additions state getters: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isGuestAdditionsActive() const { return m_fIsGuestAdditionsActive; }
e99106e1706f8e87456f34b22c40becae61e1ed0vboxsync bool isGuestSupportsGraphics() const { return isGuestAdditionsActive() && m_fIsGuestSupportsGraphics; }
e99106e1706f8e87456f34b22c40becae61e1ed0vboxsync bool isGuestSupportsSeamless() const { return isGuestSupportsGraphics() && m_fIsGuestSupportsSeamless; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Keyboard getters: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isNumLock() const { return m_fNumLock; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isCapsLock() const { return m_fCapsLock; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isScrollLock() const { return m_fScrollLock; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync uint numLockAdaptionCnt() const { return m_uNumLockAdaptionCnt; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync uint capsLockAdaptionCnt() const { return m_uCapsLockAdaptionCnt; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Mouse getters: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isMouseSupportsAbsolute() const { return m_fIsMouseSupportsAbsolute; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isMouseSupportsRelative() const { return m_fIsMouseSupportsRelative; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isMouseHostCursorNeeded() const { return m_fIsMouseHostCursorNeeded; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isMouseCaptured() const { return m_fIsMouseCaptured; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isMouseIntegrated() const { return m_fIsMouseIntegrated; }
08640b1dc58f26140fca6525ced3dbdef4ce45f7vboxsync bool isValidPointerShapePresent() const { return m_fIsValidPointerShapePresent; }
770da3dbb247278c98d1b21d2e11a0a7769131a4vboxsync bool isHidingHostPointer() const { return m_fIsHidingHostPointer; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Common setters: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool pause() { return setPause(true); }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool unpause() { return setPause(false); }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool setPause(bool fOn);
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void setGuestResizeIgnored(bool fIsGuestResizeIgnored) { m_fIsGuestResizeIgnored = fIsGuestResizeIgnored; }
83ee0b9fd6aa227bf4276f9d41af7ef59c03e8eevboxsync void setSeamlessModeRequested(bool fIsSeamlessModeRequested) { m_fIsSeamlessModeRequested = fIsSeamlessModeRequested; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Keyboard setters: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void setNumLockAdaptionCnt(uint uNumLockAdaptionCnt) { m_uNumLockAdaptionCnt = uNumLockAdaptionCnt; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void setCapsLockAdaptionCnt(uint uCapsLockAdaptionCnt) { m_uCapsLockAdaptionCnt = uCapsLockAdaptionCnt; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Mouse setters: */
24ecfcc82c2eecb44373198021e69229e1c66490vboxsync void setMouseCaptured(bool fIsMouseCaptured) { m_fIsMouseCaptured = fIsMouseCaptured; emit sigMouseCapturedStatusChanged(); }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void setMouseIntegrated(bool fIsMouseIntegrated) { m_fIsMouseIntegrated = fIsMouseIntegrated; }
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
ddfcbd0a2ee61ce75ecc10a6001d5d834893bf8fvboxsync#ifdef VBOX_WITH_VIDEOHWACCEL
72bb582308f9b6953c65b8b8807597dbef848b16vboxsync /* return a persisted framebuffer for the given screen
72bb582308f9b6953c65b8b8807597dbef848b16vboxsync * see comment below for the m_FrameBufferVector field */
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsync UIFrameBuffer* frameBuffer(ulong screenId) const;
72bb582308f9b6953c65b8b8807597dbef848b16vboxsync /* @return VINF_SUCCESS - on success
72bb582308f9b6953c65b8b8807597dbef848b16vboxsync * VERR_INVALID_PARAMETER - if screenId is invalid */
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsync int setFrameBuffer(ulong screenId, UIFrameBuffer* pFrameBuffer);
ddfcbd0a2ee61ce75ecc10a6001d5d834893bf8fvboxsync#endif
ddfcbd0a2ee61ce75ecc10a6001d5d834893bf8fvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncsignals:
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Console callback signals: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void sigMousePointerShapeChange();
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void sigMouseCapabilityChange();
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void sigKeyboardLedsChange();
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void sigMachineStateChange();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigAdditionsStateChange();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigNetworkAdapterChange(const CNetworkAdapter &networkAdapter);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigSerialPortChange(const CSerialPort &serialPort);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigParallelPortChange(const CParallelPort &parallelPort);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigStorageControllerChange();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigMediumChange(const CMediumAttachment &mediumAttachment);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigCPUChange(ulong uCPU, bool bRemove);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigVRDPServerChange();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigRemoteDisplayInfoChange();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigUSBControllerChange();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigUSBDeviceStateChange(const CUSBDevice &device, bool bIsAttached, const CVirtualBoxErrorInfo &error);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync void sigSharedFolderChange();
374979da4e9440f386798bce28aa9165f3fb5e3avboxsync void sigRuntimeError(bool bIsFatal, const QString &strErrorId, const QString &strMessage);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
24ecfcc82c2eecb44373198021e69229e1c66490vboxsync /* Session signals: */
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync void sigMachineStarted();
24ecfcc82c2eecb44373198021e69229e1c66490vboxsync void sigMouseCapturedStatusChanged();
24ecfcc82c2eecb44373198021e69229e1c66490vboxsync
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsyncpublic slots:
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsync
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsync void sltInstallGuestAdditionsFrom(const QString &strSource);
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsync
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsyncprivate slots:
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync /* Close uisession handler: */
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync void sltCloseVirtualSession();
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncprivate:
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync /* Private getters: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync UIMachine* uimachine() const { return m_pMachine; }
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync /* Event handlers: */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync bool event(QEvent *pEvent);
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Prepare helpers: */
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync void prepareMenuPool();
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void loadSessionSettings();
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Cleanup helpers: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void saveSessionSettings();
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync void cleanupMenuPool();
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Common helpers: */
224edf755dff839a1896d3930ea7627f69eb0d9fvboxsync WId winId() const;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void setPointerShape(const uchar *pShapeData, bool fHasAlpha, uint uXHot, uint uYHot, uint uWidth, uint uHeight);
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync void reinitMenuPool();
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync void preparePowerUp();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync /* Private variables: */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIMachine *m_pMachine;
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync CSession &m_session;
45cc469795c8872b9a6e0200b624ec9740ea6093vboxsync const CConsoleCallback m_callback;
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync UIMachineMenuBar *m_pMenuPool;
04e845ee9ef813501cd2570a4188cb852d170408vboxsync
ddfcbd0a2ee61ce75ecc10a6001d5d834893bf8fvboxsync#ifdef VBOX_WITH_VIDEOHWACCEL
72bb582308f9b6953c65b8b8807597dbef848b16vboxsync /* When 2D is enabled we do not re-create Framebuffers. This is done
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsync * 1. to avoid 2D command loss during the time slot when no framebuffer is
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsync * assigned to the display
72bb582308f9b6953c65b8b8807597dbef848b16vboxsync * 2. to make it easier to preserve the current 2D state */
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsync QVector<UIFrameBuffer*> m_FrameBufferVector;
ddfcbd0a2ee61ce75ecc10a6001d5d834893bf8fvboxsync#endif
ddfcbd0a2ee61ce75ecc10a6001d5d834893bf8fvboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Common variables: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync KMachineState m_machineState;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync QCursor m_cursor;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync#if defined(Q_WS_WIN)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync HCURSOR m_alphaCursor;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync#endif
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Common flags: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsFirstTimeStarted : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsIgnoreRutimeMediumsChanging : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsGuestResizeIgnored : 1;
83ee0b9fd6aa227bf4276f9d41af7ef59c03e8eevboxsync bool m_fIsSeamlessModeRequested : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Guest additions flags: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsGuestAdditionsActive : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsGuestSupportsGraphics : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsGuestSupportsSeamless : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Keyboard flags: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fNumLock : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fCapsLock : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fScrollLock : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync uint m_uNumLockAdaptionCnt;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync uint m_uCapsLockAdaptionCnt;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Mouse flags: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsMouseSupportsAbsolute : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsMouseSupportsRelative : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsMouseHostCursorNeeded : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsMouseCaptured : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsMouseIntegrated : 1;
08640b1dc58f26140fca6525ced3dbdef4ce45f7vboxsync bool m_fIsValidPointerShapePresent : 1;
770da3dbb247278c98d1b21d2e11a0a7769131a4vboxsync bool m_fIsHidingHostPointer : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync /* Friend classes: */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync friend class UIConsoleCallback;
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync};
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#endif // !___UIConsole_h___
3488e51e244adfc756837287fbfbcc03eca8bf7avboxsync