diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-12-24 10:08:47 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-12-24 11:00:04 (GMT) |
commit | 3e2a3a4cdb0b6bc0cf79423c48400c544830177a (patch) | |
tree | dcc53224fd0b0ed0bd704a4b097f5c425dbd672e /SwifTools/Notifier/Notifier.h | |
parent | f69d027b7e3b4260e514a77f7195ec511977b63e (diff) | |
download | swift-contrib-3e2a3a4cdb0b6bc0cf79423c48400c544830177a.zip swift-contrib-3e2a3a4cdb0b6bc0cf79423c48400c544830177a.tar.bz2 |
Enable "Show notifications" toggle when Growl isn't installed.
Diffstat (limited to 'SwifTools/Notifier/Notifier.h')
-rw-r--r-- | SwifTools/Notifier/Notifier.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SwifTools/Notifier/Notifier.h b/SwifTools/Notifier/Notifier.h index d6bd878..1bcd58d 100644 --- a/SwifTools/Notifier/Notifier.h +++ b/SwifTools/Notifier/Notifier.h @@ -26,18 +26,22 @@ namespace Swift { const std::string& subject, const std::string& description, const boost::filesystem::path& picture, boost::function<void()> callback) = 0; virtual bool isAvailable() const { return true; } + virtual bool isExternallyConfigured() const { + return false; + } + protected: std::string typeToString(Type type); static std::vector<Type> getAllTypes(); static std::vector<Type> getDefaultTypes(); static const int DEFAULT_STATUS_NOTIFICATION_TIMEOUT_SECONDS; static const int DEFAULT_MESSAGE_NOTIFICATION_TIMEOUT_SECONDS; }; } |