From 39fa663cd08bd2b7d46ed170d49ac794c531c42e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 10 Aug 2012 16:06:14 +0200 Subject: watchlet edit UI --- notificationswatchlet/notificationswatchletplugin.cpp | 9 +++++++++ notificationswatchlet/notificationswatchletplugin.h | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'notificationswatchlet') diff --git a/notificationswatchlet/notificationswatchletplugin.cpp b/notificationswatchlet/notificationswatchletplugin.cpp index 5f4875f..d5ba173 100644 --- a/notificationswatchlet/notificationswatchletplugin.cpp +++ b/notificationswatchlet/notificationswatchletplugin.cpp @@ -19,6 +19,15 @@ QStringList NotificationsWatchletPlugin::watchlets() return l; } +WatchletPluginInterface::WatchletInfo NotificationsWatchletPlugin::describeWatchlet(const QString &id) +{ + WatchletInfo info; + if (id != "com.javispedro.sowatch.notifications") return info; + info.name = "Pending notifications"; + info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/notificationswatchlet/icon.png"); + return info; +} + Watchlet* NotificationsWatchletPlugin::getWatchlet(const QString& driver, ConfigKey *settings, WatchServer *server) { Q_UNUSED(driver); diff --git a/notificationswatchlet/notificationswatchletplugin.h b/notificationswatchlet/notificationswatchletplugin.h index bc305fc..7efbc1c 100644 --- a/notificationswatchlet/notificationswatchletplugin.h +++ b/notificationswatchlet/notificationswatchletplugin.h @@ -16,7 +16,8 @@ public: ~NotificationsWatchletPlugin(); QStringList watchlets(); - Watchlet* getWatchlet(const QString& driver, ConfigKey *settings, WatchServer* server); + WatchletInfo describeWatchlet(const QString &id); + Watchlet* getWatchlet(const QString& id, ConfigKey *settings, WatchServer* server); }; } -- cgit v1.2.3