1 // Copyright (c) 2011-2013 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOIN_QT_MACDOCKICONHANDLER_H
6 #define BITCOIN_QT_MACDOCKICONHANDLER_H
18 @class DockIconClickEventHandler;
20 class DockIconClickEventHandler;
23 /** Macintosh-specific dock icon handler.
25 class MacDockIconHandler : public QObject
30 ~MacDockIconHandler();
33 void setIcon(const QIcon &icon);
34 void setMainWindow(QMainWindow *window);
35 static MacDockIconHandler *instance();
37 void handleDockIconClickEvent();
40 void dockIconClicked();
45 DockIconClickEventHandler *m_dockIconClickEventHandler;
46 QWidget *m_dummyWidget;
48 QMainWindow *mainWindow;
51 #endif // BITCOIN_QT_MACDOCKICONHANDLER_H