VirtualBox

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

Last change on this file since 35740 was 31816, checked in by vboxsync, 14 years ago

two more

  • 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 sigUSBControllerChange();
45 void sigUSBDeviceStateChange(CUSBDevice device, bool fAttached, CVirtualBoxErrorInfo error);
46 void sigSharedFolderChange();
47 void sigRuntimeError(bool fFatal, QString strId, QString strMessage);
48#ifdef RT_OS_DARWIN
49 void sigShowWindow();
50#endif /* RT_OS_DARWIN */
51
52private slots:
53 void sltCanShowWindow(bool &fVeto, QString &strReason);
54 void sltShowWindow(LONG64 &winId);
55
56private:
57 UIConsoleEventHandler(UISession *pSession);
58 ~UIConsoleEventHandler();
59
60 static UIConsoleEventHandler *m_pInstance;
61 UISession *m_pSession;
62 CEventListener m_mainEventListener;
63};
64
65#define gConsoleEvents UIConsoleEventHandler::instance()
66
67#endif /* !__UIConsoleEventHandler_h__ */
68
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use