1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Qt GUI ("VirtualBox"):
|
---|
4 | * UIExtraDataEventHandler 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 __UIExtraDataEventHandler_h__
|
---|
20 | #define __UIExtraDataEventHandler_h__
|
---|
21 |
|
---|
22 | /* COM includes: */
|
---|
23 | #include "CEventListener.h"
|
---|
24 |
|
---|
25 | /* Forward declarations: */
|
---|
26 | class UIExtraDataEventHandlerPrivate;
|
---|
27 |
|
---|
28 | class UIExtraDataEventHandler: public QObject
|
---|
29 | {
|
---|
30 | Q_OBJECT;
|
---|
31 |
|
---|
32 | public:
|
---|
33 | static UIExtraDataEventHandler* instance();
|
---|
34 | static void destroy();
|
---|
35 |
|
---|
36 | signals:
|
---|
37 | /* Specialized extra data signals */
|
---|
38 | void sigCanShowRegistrationDlg(bool fEnabled);
|
---|
39 | void sigGUILanguageChange(QString strLang);
|
---|
40 | #ifdef VBOX_GUI_WITH_SYSTRAY
|
---|
41 | void sigMainWindowCountChange(int count);
|
---|
42 | void sigCanShowTrayIcon(bool fEnabled);
|
---|
43 | void sigTrayIconChange(bool fEnabled);
|
---|
44 | #endif /* VBOX_GUI_WITH_SYSTRAY */
|
---|
45 | #ifdef RT_OS_DARWIN
|
---|
46 | void sigPresentationModeChange(bool fEnabled);
|
---|
47 | void sigDockIconAppearanceChange(bool fEnabled);
|
---|
48 | #endif /* RT_OS_DARWIN */
|
---|
49 |
|
---|
50 | private:
|
---|
51 | UIExtraDataEventHandler();
|
---|
52 | ~UIExtraDataEventHandler();
|
---|
53 |
|
---|
54 | /* Private member vars */
|
---|
55 | static UIExtraDataEventHandler *m_pInstance;
|
---|
56 | CEventListener m_mainEventListener;
|
---|
57 | UIExtraDataEventHandlerPrivate *m_pHandler;
|
---|
58 | };
|
---|
59 |
|
---|
60 | #define gEDataEvents UIExtraDataEventHandler::instance()
|
---|
61 |
|
---|
62 | #endif /* !__UIExtraDataEventHandler_h__ */
|
---|
63 |
|
---|