summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SwifTools/Notifier/NotificationCenterNotifier.h')
-rw-r--r--SwifTools/Notifier/NotificationCenterNotifier.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/SwifTools/Notifier/NotificationCenterNotifier.h b/SwifTools/Notifier/NotificationCenterNotifier.h
new file mode 100644
index 0000000..0d43c5b
--- /dev/null
+++ b/SwifTools/Notifier/NotificationCenterNotifier.h
@@ -0,0 +1,38 @@
1/*
2 * Copyright (c) 2015 Isode Limited.
3 * All rights reserved.
4 * See the COPYING file for more information.
5 */
6
7#pragma once
8
9#include <string>
10
11#include <SwifTools/Notifier/Notifier.h>
12
13namespace Swift {
14
15/**
16 * @brief The NotificationCenterNotifier class implmenents the notification interface for the
17 * OS X Notification Center API.
18 */
19class NotificationCenterNotifier : public Notifier {
20public:
21 NotificationCenterNotifier();
22 virtual ~NotificationCenterNotifier();
23
24 virtual void showMessage(Type type, const std::string& subject, const std::string& description, const boost::filesystem::path& picture, boost::function<void ()> callback);
25 virtual void purgeCallbacks();
26
27 /**
28 * @brief The handleUserNotificationActivated is called by the delegate, when a user activates/clicks on a notification.
29 * @param identifier The std::string UUID identifiying the notification.
30 */
31 void handleUserNotificationActivated(const std::string& identifier);
32
33private:
34 class Private;
35 boost::shared_ptr<Private> p;
36};
37
38}