diff options
Diffstat (limited to 'libsowatch/notificationprovider.h')
-rw-r--r-- | libsowatch/notificationprovider.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libsowatch/notificationprovider.h b/libsowatch/notificationprovider.h new file mode 100644 index 0000000..6f31581 --- /dev/null +++ b/libsowatch/notificationprovider.h @@ -0,0 +1,29 @@ +#ifndef SOWATCH_NOTIFICATIONPROVIDER_H +#define SOWATCH_NOTIFICATIONPROVIDER_H + +#include <QtCore/QObject> +#include "notification.h" + +namespace sowatch +{ + +class NotificationProvider : public QObject +{ + Q_OBJECT + +protected: + explicit NotificationProvider(QObject *parent = 0); + virtual ~NotificationProvider(); + +public: + virtual int getCount(Notification::Type type) = 0; + +signals: + void notification(const Notification& n); + void unreadCountChanged(Notification::Type type); + +}; + +} + +#endif // SOWATCH_NOTIFICATIONPROVIDER_H |