aboutsummaryrefslogtreecommitdiff
path: root/src/qt/macdockiconhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/macdockiconhandler.h')
-rw-r--r--src/qt/macdockiconhandler.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/qt/macdockiconhandler.h b/src/qt/macdockiconhandler.h
new file mode 100644
index 0000000000..cc78c7a787
--- /dev/null
+++ b/src/qt/macdockiconhandler.h
@@ -0,0 +1,37 @@
+#ifndef MACDOCKICONHANDLER_H
+#define MACDOCKICONHANDLER_H
+
+#include <QtCore/QObject>
+
+class QMenu;
+class QIcon;
+class QWidget;
+class objc_object;
+
+class MacDockIconHandler : public QObject
+{
+ Q_OBJECT
+public:
+ ~MacDockIconHandler();
+
+ QMenu *dockMenu();
+ void setIcon(const QIcon &icon);
+
+ static MacDockIconHandler *instance();
+
+ void handleDockIconClickEvent();
+
+signals:
+ void dockIconClicked();
+
+public slots:
+
+private:
+ MacDockIconHandler();
+
+ objc_object *m_dockIconClickEventHandler;
+ QWidget *m_dummyWidget;
+ QMenu *m_dockMenu;
+};
+
+#endif // MACDOCKICONCLICKHANDLER_H