summaryrefslogtreecommitdiff
path: root/libsowatch/notificationplugininterface.h
blob: 144e38836e7ea3a21d24dce91b246322b10dac32 (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
30
31
32
33
34
#ifndef SOWATCH_NOTIFICATIONPLUGININTERFACE_H
#define SOWATCH_NOTIFICATIONPLUGININTERFACE_H

#include <QtPlugin>
#include <QtCore/QSettings>
#include <QtCore/QStringList>
#include "sowatch_global.h"

namespace sowatch
{

class ConfigKey;
class Notification;
class NotificationProvider;

class SOWATCH_EXPORT NotificationPluginInterface
{
public:
	virtual ~NotificationPluginInterface();

	struct NotificationProviderInfo {
		QString name;
	};

	virtual QStringList providers() = 0;
	virtual NotificationProviderInfo describeProvider(const QString& driver) = 0;
	virtual NotificationProvider* getProvider(const QString& driver, ConfigKey *settings, QObject *parent = 0) = 0;
};

}

Q_DECLARE_INTERFACE(sowatch::NotificationPluginInterface, "com.javispedro.sowatch.NotificationPluginInterface")

#endif // SOWATCH_NOTIFICATIONPLUGININTERFACE_H