UISession.h revision b429482aa9ee615942c70e9beedbe171471e48b3
1N/A * available from http://www.virtualbox.org. This file is free software;
1N/A#ifndef ___UISession_h___
1N/A#define ___UISession_h___
1N/A#include "COMEnums.h"
1N/A /* Machine uisession constructor/destructor: */
1N/A void closeRuntimeUI();
#ifdef Q_WS_MAC
RuntimeMenuApplicationActionType allowedActionsMenuApplication() const { return m_allowedActionsMenuApplication; }
RuntimeMenuMachineActionType allowedActionsMenuMachine() const { return m_allowedActionsMenuMachine; }
RuntimeMenuDevicesActionType allowedActionsMenuDevices() const { return m_allowedActionsMenuDevices; }
#ifdef VBOX_WITH_DEBUGGER_GUI
RuntimeMenuDebuggerActionType allowedActionsMenuDebugger() const { return m_allowedActionsMenuDebugger; }
bool isVisualStateAllowedFullscreen() const;
bool isVisualStateAllowedSeamless() const;
bool isVisualStateAllowedScale() const;
void setRequestedVisualState(UIVisualStateType visualStateType) { m_requestedVisualStateType = visualStateType; }
bool isGuestAdditionsActive() const { return (m_ulGuestAdditionsRunLevel > AdditionsRunLevelType_None); }
bool isGuestSupportsGraphics() const { return isGuestAdditionsActive() && m_fIsGuestSupportsGraphics; }
bool isGuestSupportsSeamless() const { return isGuestSupportsGraphics() && m_fIsGuestSupportsSeamless; }
void setGuestResizeIgnored(bool fIsGuestResizeIgnored) { m_fIsGuestResizeIgnored = fIsGuestResizeIgnored; }
void setAutoCaptureDisabled(bool fIsAutoCaptureDisabled) { m_fIsAutoCaptureDisabled = fIsAutoCaptureDisabled; }
void setNumLockAdaptionCnt(uint uNumLockAdaptionCnt) { m_uNumLockAdaptionCnt = uNumLockAdaptionCnt; }
void setCapsLockAdaptionCnt(uint uCapsLockAdaptionCnt) { m_uCapsLockAdaptionCnt = uCapsLockAdaptionCnt; }
void sigCloseRuntimeUI();
void sigMousePointerShapeChange();
void sigMouseCapabilityChange();
void sigKeyboardLedsChange();
void sigMachineStateChange();
void sigAdditionsStateChange();
void sigVRDEChange();
void sigVideoCaptureChange();
void sigUSBControllerChange();
void sigUSBDeviceStateChange(const CUSBDevice &device, bool bIsAttached, const CVirtualBoxErrorInfo &error);
void sigSharedFolderChange();
#ifdef RT_OS_DARWIN
void sigShowWindows();
void sigCPUExecutionCapChange();
void sigGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo);
void sigHostScreenCountChanged();
void sigHostScreenGeometryChanged();
void sigMachineStarted();
void sltCloseRuntimeUI();
void sltMousePointerShapeChange(bool fVisible, bool fAlpha, QPoint hotCorner, QSize size, QVector<uint8_t> shape);
void sltMouseCapabilityChange(bool fSupportsAbsolute, bool fSupportsRelative, bool fSupportsMultiTouch, bool fNeedsHostCursor);
void sltAdditionsChange();
void sltVRDEChange();
void sltVideoCaptureChange();
void sltGuestMonitorChange(KGuestMonitorChangedEventType changeType, ulong uScreenId, QRect screenGeo);
#ifdef RT_OS_DARWIN
void sltCheckIfHostDisplayChanged();
void sltHandleHostScreenCountChange();
void prepareConnections();
void prepareConsoleEventHandlers();
void prepareScreens();
void prepareFramebuffers();
void prepareMenuPool();
void loadSessionSettings();
void saveSessionSettings();
void cleanupMenuPool();
void cleanupFramebuffers();
void cleanupConsoleEventHandlers();
void cleanupConnections();
void updateSessionSettings();
void setPointerShape(const uchar *pShapeData, bool fHasAlpha, uint uXHot, uint uYHot, uint uWidth, uint uHeight);
void reinitMenuPool();
bool preparePowerUp();
int countOfVisibleWindows();
#ifdef Q_WS_MAC
void recacheDisplayData();
#ifndef Q_WS_MAC
bool m_fIsExtensionPackUsable;
#ifdef Q_WS_MAC
#ifdef VBOX_WITH_DEBUGGER_GUI
#if defined(Q_WS_WIN)
#ifdef Q_WS_MAC