VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.h@ 36364

Last change on this file since 36364 was 36364, checked in by vboxsync, 13 years ago

FE/Qt: Runtime GUI: VRDE server status is now updated on notifications from Main.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt GUI ("VirtualBox"):
4 * UIConsoleEventHandler class declaration
5 */
6
7/*
8 * Copyright (C) 2010 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef __UIConsoleEventHandler_h__
20#define __UIConsoleEventHandler_h__
21
22/* Local includes */
23#include "COMDefs.h"
24
25/* Local forward declarations */
26class UISession;
27
28class UIConsoleEventHandler: public QObject
29{
30 Q_OBJECT;
31
32public:
33 static UIConsoleEventHandler* instance(UISession *pSession = 0);
34 static void destroy();
35
36signals:
37 void sigMousePointerShapeChange(bool fVisible, bool fAlpha, QPoint hotCorner, QSize size, QVector<uint8_t> shape);
38 void sigMouseCapabilityChange(bool fSupportsAbsolute, bool fSupportsRelative, bool fNeedsHostCursor);
39 void sigKeyboardLedsChangeEvent(bool fNumLock, bool fCapsLock, bool fScrollLock);
40 void sigStateChange(KMachineState state);
41 void sigAdditionsChange();
42 void sigNetworkAdapterChange(CNetworkAdapter adapter);
43 void sigMediumChange(CMediumAttachment attachment);
44 void sigVRDEChange();
45 void sigUSBControllerChange();
46 void sigUSBDeviceStateChange(CUSBDevice device, bool fAttached, CVirtualBoxErrorInfo error);
47 void sigSharedFolderChange();
48 void sigRuntimeError(bool fFatal, QString strId, QString strMessage);
49#ifdef RT_OS_DARWIN
50 void sigShowWindow();
51#endif /* RT_OS_DARWIN */
52
53private slots:
54 void sltCanShowWindow(bool &fVeto, QString &strReason);
55 void sltShowWindow(LONG64 &winId);
56
57private:
58 UIConsoleEventHandler(UISession *pSession);
59 ~UIConsoleEventHandler();
60
61 static UIConsoleEventHandler *m_pInstance;
62 UISession *m_pSession;
63 CEventListener m_mainEventListener;
64};
65
66#define gConsoleEvents UIConsoleEventHandler::instance()
67
68#endif /* !__UIConsoleEventHandler_h__ */
69
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use