summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SwifTools/Notifier/Notifier.h')
-rw-r--r--SwifTools/Notifier/Notifier.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/SwifTools/Notifier/Notifier.h b/SwifTools/Notifier/Notifier.h
index f1a89ef..dab6e90 100644
--- a/SwifTools/Notifier/Notifier.h
+++ b/SwifTools/Notifier/Notifier.h
@@ -14,6 +14,7 @@
namespace Swift {
class Notifier {
public:
+ Notifier();
virtual ~Notifier();
enum Type { ContactAvailable, ContactUnavailable, ContactStatusChange, IncomingMessage, SystemMessage };
@@ -26,11 +27,26 @@ namespace Swift {
const String& subject,
const String& description,
const boost::filesystem::path& picture,
+ boost::function<void()> callback);
+
+ void setEnabled(bool b) {
+ enabled = b;
+ }
+
+ private:
+ virtual void doShowMessage(
+ Type type,
+ const String& subject,
+ const String& description,
+ const boost::filesystem::path& picture,
boost::function<void()> callback) = 0;
protected:
String typeToString(Type type);
static std::vector<Type> getAllTypes();
static std::vector<Type> getDefaultTypes();
+
+ private:
+ bool enabled;
};
}