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 /notificationswatchlet | |
| parent | b9082fda48bb026fc4e6148efeba9aabf608373a (diff) | |
| download | sowatch-39fa663cd08bd2b7d46ed170d49ac794c531c42e.tar.gz sowatch-39fa663cd08bd2b7d46ed170d49ac794c531c42e.zip | |
watchlet edit UI
Diffstat (limited to 'notificationswatchlet')
| -rw-r--r-- | notificationswatchlet/notificationswatchletplugin.cpp | 9 | ||||
| -rw-r--r-- | notificationswatchlet/notificationswatchletplugin.h | 3 | 
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);  };  } | 
