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