diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-05 18:24:02 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-05 18:24:02 (GMT) |
commit | bfeca3cc938e325bf2cc2d9105c719feb1fe28ee (patch) | |
tree | 8089a181b678912432f0ae4a61759b92566c62fb /Swift/Controllers/UIEvents | |
parent | 6cdd48b30526761f5c6365496e30580ed3bd8a82 (diff) | |
download | swift-bfeca3cc938e325bf2cc2d9105c719feb1fe28ee.zip swift-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.h | 19 |
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_; + }; +} |