summaryrefslogtreecommitdiff
path: root/libsowatch/notificationprovider.h
blob: 6f31581dea4dbf1ae20aed129b373cbd065ca129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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