summaryrefslogtreecommitdiff
path: root/metawatchwatchlets
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:13:41 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-14 01:13:41 +0200
commit80c58c124caf17f670d8efc120f5ae4bfd9aa09f (patch)
treec6d036f06437e54f80afd65e1a700a018cab994b /metawatchwatchlets
parentc3392e5d539e87f4720b3d107aaefffdc9579f4d (diff)
downloadsowatch-80c58c124caf17f670d8efc120f5ae4bfd9aa09f.tar.gz
sowatch-80c58c124caf17f670d8efc120f5ae4bfd9aa09f.zip
added liveview watchlet menu (API break)
Diffstat (limited to 'metawatchwatchlets')
-rw-r--r--metawatchwatchlets/metawatchwatchletsplugin.cpp14
-rw-r--r--metawatchwatchlets/metawatchwatchletsplugin.h2
2 files changed, 10 insertions, 6 deletions
diff --git a/metawatchwatchlets/metawatchwatchletsplugin.cpp b/metawatchwatchlets/metawatchwatchletsplugin.cpp
index 601e659..4acf721 100644
--- a/metawatchwatchlets/metawatchwatchletsplugin.cpp
+++ b/metawatchwatchlets/metawatchwatchletsplugin.cpp
@@ -20,15 +20,19 @@ QStringList MetaWatchWatchletsPlugin::watchlets()
return l;
}
-WatchletPluginInterface::WatchletInfo MetaWatchWatchletsPlugin::describeWatchlet(const QString &id)
+WatchletPluginInterface::WatchletInfo MetaWatchWatchletsPlugin::describeWatchlet(const QString &id, const QString& watchModel)
{
WatchletInfo info;
if (id == MetaWatchFaceWatchlet::myId) {
- info.name = "MetaWatch Face Watchlet";
- info.hidden = true;
+ if (watchModel == "metawatch-digital") {
+ info.name = "MetaWatch Face Watchlet";
+ // Keep non visible
+ }
} else if (id == MetaWatchNotificationWatchlet::myId) {
- info.name = "MetaWatch Notification Watchlet";
- info.hidden = true;
+ if (watchModel == "metawatch-digital") {
+ info.name = "MetaWatch Notification Watchlet";
+ // Keep non visible
+ }
}
return info;
}
diff --git a/metawatchwatchlets/metawatchwatchletsplugin.h b/metawatchwatchlets/metawatchwatchletsplugin.h
index a7ba34b..44fd944 100644
--- a/metawatchwatchlets/metawatchwatchletsplugin.h
+++ b/metawatchwatchlets/metawatchwatchletsplugin.h
@@ -16,7 +16,7 @@ public:
~MetaWatchWatchletsPlugin();
QStringList watchlets();
- WatchletInfo describeWatchlet(const QString &id);
+ WatchletInfo describeWatchlet(const QString &id, const QString& watchModel);
Watchlet* getWatchlet(const QString& id, ConfigKey *settings, Watch* watch);
};