diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-05 03:18:46 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-05 03:18:46 +0200 |
commit | 12cf6df3f1c90c6ccbab398f0ae03c946e4af638 (patch) | |
tree | a205f1240a421a1a6ac4d97e592730e5be00533b /metawatchwatchlets/metawatchwatchletsplugin.cpp | |
parent | 12d61ddf50f5f34cafd25d7cbdc827156cfb184c (diff) | |
download | sowatch-12cf6df3f1c90c6ccbab398f0ae03c946e4af638.tar.gz sowatch-12cf6df3f1c90c6ccbab398f0ae03c946e4af638.zip |
continue working on qml watchface support
Diffstat (limited to 'metawatchwatchlets/metawatchwatchletsplugin.cpp')
-rw-r--r-- | metawatchwatchlets/metawatchwatchletsplugin.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/metawatchwatchlets/metawatchwatchletsplugin.cpp b/metawatchwatchlets/metawatchwatchletsplugin.cpp new file mode 100644 index 0000000..31b66ab --- /dev/null +++ b/metawatchwatchlets/metawatchwatchletsplugin.cpp @@ -0,0 +1,40 @@ +#include "metawatchfacewatchlet.h" +#include "metawatchwatchletsplugin.h" + +using namespace sowatch; + +MetaWatchWatchletsPlugin::MetaWatchWatchletsPlugin(QObject *parent) : + QObject(parent) +{ +} + +MetaWatchWatchletsPlugin::~MetaWatchWatchletsPlugin() +{ +} + +QStringList MetaWatchWatchletsPlugin::watchlets() +{ + QStringList l; + l << MetaWatchFaceWatchlet::myId; + return l; +} + +WatchletPluginInterface::WatchletInfo MetaWatchWatchletsPlugin::describeWatchlet(const QString &id) +{ + WatchletInfo info; + if (id == MetaWatchFaceWatchlet::myId) { + info.name = "MetaWatch Face Watchlet"; + info.hidden = true; + } + return info; +} + +Watchlet* MetaWatchWatchletsPlugin::getWatchlet(const QString& id, ConfigKey *settings, Watch *watch) +{ + Q_UNUSED(settings); + if (id == MetaWatchFaceWatchlet::myId) { + return new MetaWatchFaceWatchlet(watch); + } +} + +Q_EXPORT_PLUGIN2(notificationswatchlet, MetaWatchWatchletsPlugin) |