diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-10 16:06:14 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-10 16:06:14 +0200 |
commit | 39fa663cd08bd2b7d46ed170d49ac794c531c42e (patch) | |
tree | 92131388053eadbfca4b8917ab1e1f87ffe30fdd /libsowatch | |
parent | b9082fda48bb026fc4e6148efeba9aabf608373a (diff) | |
download | sowatch-39fa663cd08bd2b7d46ed170d49ac794c531c42e.tar.gz sowatch-39fa663cd08bd2b7d46ed170d49ac794c531c42e.zip |
watchlet edit UI
Diffstat (limited to 'libsowatch')
-rw-r--r-- | libsowatch/notificationplugininterface.h | 2 | ||||
-rw-r--r-- | libsowatch/watchletplugininterface.h | 7 |
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; }; |