VirtualBox

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

Last change on this file since 44453 was 44453, checked in by vboxsync, 11 years ago

FE/Qt: Registration dialog related code cleanup.

  • 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-2013 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 sigGUILanguageChange(QString strLang);
39 void sigSelectorShortcutsChanged();
40 void sigMachineShortcutsChanged();
41#ifdef VBOX_GUI_WITH_SYSTRAY
42 void sigMainWindowCountChange(int count);
43 void sigCanShowTrayIcon(bool fEnabled);
44 void sigTrayIconChange(bool fEnabled);
45#endif /* VBOX_GUI_WITH_SYSTRAY */
46#ifdef RT_OS_DARWIN
47 void sigPresentationModeChange(bool fEnabled);
48 void sigDockIconAppearanceChange(bool fEnabled);
49#endif /* RT_OS_DARWIN */
50
51private:
52 UIExtraDataEventHandler();
53 ~UIExtraDataEventHandler();
54
55 /* Private member vars */
56 static UIExtraDataEventHandler *m_pInstance;
57 CEventListener m_mainEventListener;
58 UIExtraDataEventHandlerPrivate *m_pHandler;
59};
60
61#define gEDataEvents UIExtraDataEventHandler::instance()
62
63#endif /* !__UIExtraDataEventHandler_h__ */
64
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use