diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-23 08:22:10 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-23 08:22:10 (GMT) |
commit | 96be62f4a700e3bd50f4b6f177f02e5820a09106 (patch) | |
tree | fc2f49e7a9874c147ba04795d60a9a941dd2b624 /SwifTools/Notifier/Notifier.h | |
parent | fd7d3f4f994159a4990f3a0029597d4c14f727a9 (diff) | |
download | swift-contrib-96be62f4a700e3bd50f4b6f177f02e5820a09106.zip swift-contrib-96be62f4a700e3bd50f4b6f177f02e5820a09106.tar.bz2 |
Don't lose notification enabledness when the user changes status.
Resolves: #651
Release-Notes: The notification toggle on Linux will now be respected.
Diffstat (limited to 'SwifTools/Notifier/Notifier.h')
-rw-r--r-- | SwifTools/Notifier/Notifier.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/SwifTools/Notifier/Notifier.h b/SwifTools/Notifier/Notifier.h index e609867..b7c705e 100644 --- a/SwifTools/Notifier/Notifier.h +++ b/SwifTools/Notifier/Notifier.h @@ -14,7 +14,6 @@ namespace Swift { class Notifier { public: - Notifier(); virtual ~Notifier(); enum Type { ContactAvailable, ContactUnavailable, ContactStatusChange, IncomingMessage, SystemMessage }; @@ -27,20 +26,6 @@ namespace Swift { const String& subject, const String& description, const boost::filesystem::path& picture, - boost::function<void()> callback); - - void setEnabled(bool b) { - enabled = b; - } - - bool getEnabled() const {return enabled;} - - private: - virtual void doShowMessage( - Type type, - const String& subject, - const String& description, - const boost::filesystem::path& picture, boost::function<void()> callback) = 0; protected: @@ -50,8 +35,5 @@ namespace Swift { static const int DEFAULT_STATUS_NOTIFICATION_TIMEOUT_SECONDS; static const int DEFAULT_MESSAGE_NOTIFICATION_TIMEOUT_SECONDS; - - private: - bool enabled; }; } |