summaryrefslogtreecommitdiffstats
blob: 337f224f73fe43c3ceb309752000e8e86503e5fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2012 Tobias Markmann
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <boost/filesystem/fstream.hpp>

#include <SwifTools/Notifier/Notifier.h>

namespace Swift {
	class NotificationCenterNotifier : public Notifier {
		public:
			NotificationCenterNotifier(const std::string& name);
			virtual ~NotificationCenterNotifier();

			virtual void showMessage(Type type, const std::string& subject, const std::string& description, const boost::filesystem::path& picture, boost::function<void()> callback);
		
			virtual void purgeCallbacks();

			static bool isSupported();
			void handleNotificationClicked(void* notification);

		public:
			class Private;
			boost::shared_ptr<Private> p;
	};
}