UISession.h revision 495d29c29d5aeaf966ec9e7148631e751c1862d1
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/** @file
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync *
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * VBox frontends: Qt GUI ("VirtualBox"):
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync * UISession class declaration
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/*
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync * Copyright (C) 2010-2012 Oracle Corporation
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
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;
341c5004a837c62a8a12ec854b0f75cf7ffc15eavboxsync#ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER
39345dfec876ad123c6e787de90ad83089441794vboxsync# ifdef Q_WS_MAC
39345dfec876ad123c6e787de90ad83089441794vboxsyncstruct __siginfo;
39345dfec876ad123c6e787de90ad83089441794vboxsynctypedef struct __siginfo siginfo_t;
39345dfec876ad123c6e787de90ad83089441794vboxsync# else /* Q_WS_MAC */
341c5004a837c62a8a12ec854b0f75cf7ffc15eavboxsyncstruct siginfo;
341c5004a837c62a8a12ec854b0f75cf7ffc15eavboxsynctypedef struct siginfo siginfo_t;
39345dfec876ad123c6e787de90ad83089441794vboxsync# endif /* !Q_WS_MAC */
341c5004a837c62a8a12ec854b0f75cf7ffc15eavboxsync#endif /* VBOX_GUI_WITH_KEYS_RESET_HANDLER */
0ae258e7d0d2520036514d896a9eea58bf285f03vboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync/* Local forwards */
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsyncclass UIFrameBuffer;
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsyncclass UIMachine;
9161d9a8318db73b2848c1feaef3880980474e64vboxsyncclass UIMachineLogic;
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,
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync /* Not used: UIConsoleEventType_SerialPortChange, */
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync /* Not used: UIConsoleEventType_ParallelPortChange, */
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync /* Not used: UIConsoleEventType_StorageControllerChange, */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIConsoleEventType_MediumChange,
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync /* Not used: UIConsoleEventType_CPUChange, */
3933885bc0c2c93436d858a14564c6179ec72872vboxsync UIConsoleEventType_VRDEServerChange,
3933885bc0c2c93436d858a14564c6179ec72872vboxsync UIConsoleEventType_VRDEServerInfoChange,
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; }
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync QWidget* mainMachineWindow() const;
9161d9a8318db73b2848c1feaef3880980474e64vboxsync UIMachineLogic* machineLogic() 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; }
00c120c036112e6430a84cb41ddc3e847ba1e9e2vboxsync bool isIgnoreRuntimeMediumsChanging() const { return m_fIsIgnoreRuntimeMediumsChanging; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool isGuestResizeIgnored() const { return m_fIsGuestResizeIgnored; }
83ee0b9fd6aa227bf4276f9d41af7ef59c03e8eevboxsync bool isSeamlessModeRequested() const { return m_fIsSeamlessModeRequested; }
6361862f262bb5f90ed82f2a6e926c35bfa9cf18vboxsync bool isAutoCaptureDisabled() const { return m_fIsAutoCaptureDisabled; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Guest additions state getters: */
08de95260e5829c72e66326016c7e2fc861d9f26vboxsync bool isGuestAdditionsActive() const { return (m_ulGuestAdditionsRunLevel > AdditionsRunLevelType_None); }
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; }
6361862f262bb5f90ed82f2a6e926c35bfa9cf18vboxsync void setAutoCaptureDisabled(bool fIsAutoCaptureDisabled) { m_fIsAutoCaptureDisabled = fIsAutoCaptureDisabled; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Keyboard setters: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void setNumLockAdaptionCnt(uint uNumLockAdaptionCnt) { m_uNumLockAdaptionCnt = uNumLockAdaptionCnt; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void setCapsLockAdaptionCnt(uint uCapsLockAdaptionCnt) { m_uCapsLockAdaptionCnt = uCapsLockAdaptionCnt; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Mouse setters: */
4bc74a1db929517da626b12e61cc468fa0947927vboxsync void setMouseCaptured(bool fIsMouseCaptured) { m_fIsMouseCaptured = fIsMouseCaptured; }
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void setMouseIntegrated(bool fIsMouseIntegrated) { m_fIsMouseIntegrated = fIsMouseIntegrated; }
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync /* Returns existing framebuffer for the given screen-number;
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync * Returns 0 (asserts) if screen-number attribute is out of bounds: */
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync UIFrameBuffer* frameBuffer(ulong uScreenId) const;
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync /* Sets framebuffer for the given screen-number;
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync * Ignores (asserts) if screen-number attribute is out of bounds: */
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync void setFrameBuffer(ulong uScreenId, UIFrameBuffer* pFrameBuffer);
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 sigMediumChange(const CMediumAttachment &mediumAttachment);
5d96aa0d3ade93ae2970f61342432246c9842466vboxsync void sigVRDEChange();
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);
303ea6bb23384a122bac365c48db3dc4971cf9b1vboxsync#ifdef RT_OS_DARWIN
303ea6bb23384a122bac365c48db3dc4971cf9b1vboxsync void sigShowWindows();
303ea6bb23384a122bac365c48db3dc4971cf9b1vboxsync#endif /* RT_OS_DARWIN */
103b0154d1ec1325cacf0cabaedab9581a317ce2vboxsync void sigCPUExecutionCapChange();
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
24ecfcc82c2eecb44373198021e69229e1c66490vboxsync /* Session signals: */
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync void sigMachineStarted();
24ecfcc82c2eecb44373198021e69229e1c66490vboxsync
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsyncpublic slots:
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsync
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsync void sltInstallGuestAdditionsFrom(const QString &strSource);
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsync
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsyncprivate slots:
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync /* Close uisession handler: */
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync void sltCloseVirtualSession();
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync
346af0930020342df40a1ca8d13eb185ad48067evboxsync /* Console events slots */
346af0930020342df40a1ca8d13eb185ad48067evboxsync void sltMousePointerShapeChange(bool fVisible, bool fAlpha, QPoint hotCorner, QSize size, QVector<uint8_t> shape);
346af0930020342df40a1ca8d13eb185ad48067evboxsync void sltMouseCapabilityChange(bool fSupportsAbsolute, bool fSupportsRelative, bool fNeedsHostCursor);
346af0930020342df40a1ca8d13eb185ad48067evboxsync void sltKeyboardLedsChangeEvent(bool fNumLock, bool fCapsLock, bool fScrollLock);
346af0930020342df40a1ca8d13eb185ad48067evboxsync void sltStateChange(KMachineState state);
346af0930020342df40a1ca8d13eb185ad48067evboxsync void sltAdditionsChange();
5d96aa0d3ade93ae2970f61342432246c9842466vboxsync void sltVRDEChange();
346af0930020342df40a1ca8d13eb185ad48067evboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncprivate:
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync /* Private getters: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync UIMachine* uimachine() const { return m_pMachine; }
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Prepare helpers: */
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync void prepareFramebuffers();
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync void prepareMenuPool();
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void loadSessionSettings();
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Cleanup helpers: */
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync void saveSessionSettings();
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync void cleanupMenuPool();
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync void cleanupFramebuffers();
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
341c5004a837c62a8a12ec854b0f75cf7ffc15eavboxsync#ifdef VBOX_GUI_WITH_KEYS_RESET_HANDLER
341c5004a837c62a8a12ec854b0f75cf7ffc15eavboxsync static void signalHandlerSIGUSR1(int sig, siginfo_t *pInfo, void *pSecret);
341c5004a837c62a8a12ec854b0f75cf7ffc15eavboxsync#endif /* VBOX_GUI_WITH_KEYS_RESET_HANDLER */
341c5004a837c62a8a12ec854b0f75cf7ffc15eavboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync /* Private variables: */
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync UIMachine *m_pMachine;
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync CSession &m_session;
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync UIMachineMenuBar *m_pMenuPool;
04e845ee9ef813501cd2570a4188cb852d170408vboxsync
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync /* Frame-buffers vector: */
495d29c29d5aeaf966ec9e7148631e751c1862d1vboxsync QVector<UIFrameBuffer*> m_frameBufferVector;
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;
00c120c036112e6430a84cb41ddc3e847ba1e9e2vboxsync bool m_fIsIgnoreRuntimeMediumsChanging : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync bool m_fIsGuestResizeIgnored : 1;
83ee0b9fd6aa227bf4276f9d41af7ef59c03e8eevboxsync bool m_fIsSeamlessModeRequested : 1;
6361862f262bb5f90ed82f2a6e926c35bfa9cf18vboxsync bool m_fIsAutoCaptureDisabled : 1;
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync /* Guest additions flags: */
0229ec87789aab83ed0595b9ad5151351778e2cfvboxsync ULONG m_ulGuestAdditionsRunLevel;
0229ec87789aab83ed0595b9ad5151351778e2cfvboxsync bool m_fIsGuestSupportsGraphics : 1;
0229ec87789aab83ed0595b9ad5151351778e2cfvboxsync 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: */
346af0930020342df40a1ca8d13eb185ad48067evboxsync friend class UIConsoleEventHandler;
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync};
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#endif // !___UIConsole_h___