summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-05 18:24:02 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-05 18:24:02 (GMT)
commitbfeca3cc938e325bf2cc2d9105c719feb1fe28ee (patch)
tree8089a181b678912432f0ae4a61759b92566c62fb /Swift/Controllers/UIEvents
parent6cdd48b30526761f5c6365496e30580ed3bd8a82 (diff)
downloadswift-contrib-bfeca3cc938e325bf2cc2d9105c719feb1fe28ee.zip
swift-contrib-bfeca3cc938e325bf2cc2d9105c719feb1fe28ee.tar.bz2
Create 'Enable notifications' menu on Linux.
I've not actually tested this on Linux... Resolves: #594
Diffstat (limited to 'Swift/Controllers/UIEvents')
-rw-r--r--Swift/Controllers/UIEvents/ToggleNotificationsUIEvent.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Swift/Controllers/UIEvents/ToggleNotificationsUIEvent.h b/Swift/Controllers/UIEvents/ToggleNotificationsUIEvent.h
new file mode 100644
index 0000000..0f7acc8
--- /dev/null
+++ b/Swift/Controllers/UIEvents/ToggleNotificationsUIEvent.h
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2010 Kevin Smith
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include "Swift/Controllers/UIEvents/UIEvent.h"
+
+namespace Swift {
+ class ToggleNotificationsUIEvent : public UIEvent {
+ public:
+ ToggleNotificationsUIEvent(bool enable) : enabled_(enable) {};
+ bool getEnabled() {return enabled_;};
+ private:
+ bool enabled_;
+ };
+}