VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/globals/UIExtraDataEventHandler.h@ 43138

Last change on this file since 43138 was 41587, checked in by vboxsync, 12 years ago

FE/Qt: 6227: Decrease GUI build time: Rework COM wrappers generator to create one header per each COM interface. Update all GUI files to use newly generated headers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
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: */
26class UIExtraDataEventHandlerPrivate;
27
28class UIExtraDataEventHandler: public QObject
29{
30 Q_OBJECT;
31
32public:
33 static UIExtraDataEventHandler* instance();
34 static void destroy();
35
36signals:
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
50private:
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
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use