diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-14 01:57:34 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-14 01:57:34 +0200 |
commit | 9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada (patch) | |
tree | e28d75366e004e3865deefb5bcaa2dc8e0d3a773 /qmafwwatchlet/qmafwwatchletplugin.cpp | |
parent | 80c58c124caf17f670d8efc120f5ae4bfd9aa09f (diff) | |
download | sowatch-9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada.tar.gz sowatch-9e3eff1c3a2b7105fecf6d0d7f052eb9943fbada.zip |
perform only one bluetooth discovery for all watches
Diffstat (limited to 'qmafwwatchlet/qmafwwatchletplugin.cpp')
-rw-r--r-- | qmafwwatchlet/qmafwwatchletplugin.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qmafwwatchlet/qmafwwatchletplugin.cpp b/qmafwwatchlet/qmafwwatchletplugin.cpp index f2ec355..a2d7a1f 100644 --- a/qmafwwatchlet/qmafwwatchletplugin.cpp +++ b/qmafwwatchlet/qmafwwatchletplugin.cpp @@ -15,20 +15,22 @@ QStringList QMafwWatchletPlugin::watchlets() return l; } -WatchletPluginInterface::WatchletInfo QMafwWatchletPlugin::describeWatchlet(const QString &id) +WatchletPluginInterface::WatchletInfo QMafwWatchletPlugin::describeWatchlet(const QString &id, const QString &watchModel) { WatchletInfo info; if (id != "com.javispedro.sowatch.qmafw") return info; info.name = tr("Music player"); - info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qmafwwatchlet/icon.png"); + info.phoneIcon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qmafwwatchlet/icon.png"); + info.icon = QUrl::fromLocalFile(SOWATCH_QML_DIR "/qmafwwatchlet/" + watchModel + "-icon.png"); + info.visible = true; return info; } -Watchlet* QMafwWatchletPlugin::getWatchlet(const QString &id, ConfigKey *config, WatchServer *server) +Watchlet* QMafwWatchletPlugin::getWatchlet(const QString &id, ConfigKey *config, Watch *watch) { Q_UNUSED(config); if (id != "com.javispedro.sowatch.qmafw") return 0; - return new QMafwWatchlet(server); + return new QMafwWatchlet(watch); } Q_EXPORT_PLUGIN2(qmafwwatchlet, QMafwWatchletPlugin) |