summaryrefslogtreecommitdiff
path: root/notificationswatchlet
diff options
context:
space:
mode:
Diffstat (limited to 'notificationswatchlet')
-rw-r--r--notificationswatchlet/notificationswatchletplugin.cpp9
-rw-r--r--notificationswatchlet/notificationswatchletplugin.h3
2 files changed, 11 insertions, 1 deletions
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);
};
}