summaryrefslogtreecommitdiff
path: root/libsowatch
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch')
-rw-r--r--libsowatch/notificationplugininterface.h2
-rw-r--r--libsowatch/watchletplugininterface.h7
2 files changed, 7 insertions, 2 deletions
diff --git a/libsowatch/notificationplugininterface.h b/libsowatch/notificationplugininterface.h
index fa75ddd..144e388 100644
--- a/libsowatch/notificationplugininterface.h
+++ b/libsowatch/notificationplugininterface.h
@@ -4,7 +4,6 @@
#include <QtPlugin>
#include <QtCore/QSettings>
#include <QtCore/QStringList>
-#include <QtGui/QIcon>
#include "sowatch_global.h"
namespace sowatch
@@ -21,7 +20,6 @@ public:
struct NotificationProviderInfo {
QString name;
- QIcon icon;
};
virtual QStringList providers() = 0;
diff --git a/libsowatch/watchletplugininterface.h b/libsowatch/watchletplugininterface.h
index ef03d81..31accb9 100644
--- a/libsowatch/watchletplugininterface.h
+++ b/libsowatch/watchletplugininterface.h
@@ -4,6 +4,7 @@
#include <QtPlugin>
#include <QtCore/QSettings>
#include <QtCore/QStringList>
+#include <QtCore/QUrl>
#include "sowatch_global.h"
namespace sowatch
@@ -18,7 +19,13 @@ class SOWATCH_EXPORT WatchletPluginInterface
public:
virtual ~WatchletPluginInterface();
+ struct WatchletInfo {
+ QString name;
+ QUrl icon;
+ };
+
virtual QStringList watchlets() = 0;
+ virtual WatchletInfo describeWatchlet(const QString& id) = 0;
virtual Watchlet* getWatchlet(const QString& id, ConfigKey *settings, WatchServer *server) = 0;
};