summaryrefslogtreecommitdiff
path: root/libsowatch/watchletplugininterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/watchletplugininterface.h')
-rw-r--r--libsowatch/watchletplugininterface.h7
1 files changed, 7 insertions, 0 deletions
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;
};