UISession.h revision 68436b7f7bc35d8d020343b68ff117c3decdeacd
6535N/A * available from http://www.virtualbox.org. This file is free software;
6535N/A#ifndef ___UISession_h___
6535N/A#define ___UISession_h___
6535N/A#include "UIExtraDataDefs.h"
6535N/A#include "COMEnums.h"
6535N/A#include "CSession.h"
6535N/A void closeRuntimeUI();
6535N/A GuruMeditationHandlerType guruMeditationHandlerType() const { return m_guruMeditationHandlerType; }
6535N/A 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 sigFrameBufferResize();
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 sigHostScreenCountChange();
void sigHostScreenGeometryChange();
void sigHostScreenAvailableAreaChange();
void sigStarted();
void setKeyboardState(int iKeyboardState) { m_iKeyboardState = iKeyboardState; emit sigKeyboardStateChange(m_iKeyboardState); }
void setMouseState(int iMouseState) { m_iMouseState = iMouseState; emit sigMouseStateChange(m_iMouseState); }
void sltCloseRuntimeUI();
#ifdef RT_OS_DARWIN
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();
~UISession();
bool prepare();
bool prepareSession();
void prepareActions();
void prepareConnections();
void prepareConsoleEventHandlers();
void prepareScreens();
void prepareFramebuffers();
void loadSessionSettings();
void saveSessionSettings();
void cleanupFramebuffers();
void cleanupConsoleEventHandlers();
void cleanupConnections();
void cleanupActions();
void cleanupSession();
void cleanup();
#ifdef Q_WS_MAC
void updateMenu();
void setPointerShape(const uchar *pShapeData, bool fHasAlpha, uint uXHot, uint uYHot, uint uWidth, uint uHeight);
bool preparePowerUp();
int countOfVisibleWindows();
void updateHostScreenData();
#ifdef Q_WS_MAC
#ifndef Q_WS_MAC
#if defined(Q_WS_WIN)
#ifdef Q_WS_MAC
int m_iKeyboardState;
int m_iMouseState;