summaryrefslogtreecommitdiff
path: root/libsowatch/notificationplugininterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/notificationplugininterface.h')
-rw-r--r--libsowatch/notificationplugininterface.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/libsowatch/notificationplugininterface.h b/libsowatch/notificationplugininterface.h
index 1a312a1..b6c16f7 100644
--- a/libsowatch/notificationplugininterface.h
+++ b/libsowatch/notificationplugininterface.h
@@ -1,29 +1,28 @@
-#ifndef NOTIFICATIONPLUGININTERFACE_H
-#define NOTIFICATIONPLUGININTERFACE_H
+#ifndef SOWATCH_NOTIFICATIONPLUGININTERFACE_H
+#define SOWATCH_NOTIFICATIONPLUGININTERFACE_H
#include <QtPlugin>
+#include <QtCore/QSettings>
+#include <QtCore/QStringList>
#include "sowatch_global.h"
-#include "notification.h"
namespace sowatch
{
class Notification;
+class NotificationProvider;
class SOWATCH_EXPORT NotificationPluginInterface
{
public:
virtual ~NotificationPluginInterface();
- int getCount(Notification::Type type);
-
-signals:
- void incomingNotification(const Notification& n);
- void unreadCountChanged(Notification::Type type);
+ virtual QStringList providers() = 0;
+ virtual NotificationProvider* getProvider(const QString& driver, QSettings& settings, QObject *parent = 0) = 0;
};
}
Q_DECLARE_INTERFACE(sowatch::NotificationPluginInterface, "com.javispedro.sowatch.NotificationPluginInterface")
-#endif // NOTIFICATIONPLUGININTERFACE_H
+#endif // SOWATCH_NOTIFICATIONPLUGININTERFACE_H