aboutsummaryrefslogtreecommitdiff
path: root/src/qt/macnotificationhandler.h
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2013-06-03 15:18:41 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2013-06-03 15:18:41 +0200
commit39fe9de6b2b255969971beca8fa25a33ad2e5750 (patch)
tree6686041f6b801d0ea5185b026a480a5be61510e6 /src/qt/macnotificationhandler.h
parentf679b2900a3a9f863f888cfb0b1a5e593628e37b (diff)
parentfa9e5adddda0bee5adc040b957cf3f1a6a470802 (diff)
downloadbitcoin-39fe9de6b2b255969971beca8fa25a33ad2e5750.tar.xz
Merge branch 'master' of git://github.com/bitcoin/bitcoin into prefsFix
Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch> Conflicts: bitcoin-qt.pro
Diffstat (limited to 'src/qt/macnotificationhandler.h')
-rw-r--r--src/qt/macnotificationhandler.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/qt/macnotificationhandler.h b/src/qt/macnotificationhandler.h
new file mode 100644
index 0000000000..cd8064c61c
--- /dev/null
+++ b/src/qt/macnotificationhandler.h
@@ -0,0 +1,25 @@
+#ifndef MACNOTIFICATIONHANDLER_H
+#define MACNOTIFICATIONHANDLER_H
+#include <QObject>
+
+/** Macintosh-specific notification handler (supports UserNotificationCenter and Growl).
+ */
+class MacNotificationHandler : public QObject
+{
+ Q_OBJECT
+
+public:
+ /** shows a 10.8+ UserNotification in the UserNotificationCenter
+ */
+ void showNotification(const QString &title, const QString &text);
+
+ /** executes AppleScript */
+ void sendAppleScript(const QString &script);
+
+ /** check if OS can handle UserNotifications */
+ bool hasUserNotificationCenterSupport(void);
+ static MacNotificationHandler *instance();
+};
+
+
+#endif // MACNOTIFICATIONHANDLER_H