From 77a98ac21c2520d9fb4bb9c8f70967a8e36dc872 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 19 Sep 2011 01:51:04 +0200 Subject: adding notification provider plugins, idle screen --- libsowatch/notificationplugininterface.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'libsowatch/notificationplugininterface.h') 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 +#include +#include #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 -- cgit v1.2.3