summaryrefslogtreecommitdiff
path: root/metawatch/metawatchplugin.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-10-17 00:20:20 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-10-17 00:20:20 +0200
commit0e265ebc99a274cd4809b628a7667408a0c0a11c (patch)
treedde5595e3ea51131ed8649ee4058747dee7f2eb2 /metawatch/metawatchplugin.cpp
parent5db79919b3140673f66c9da5965b54671e8f4b6a (diff)
downloadsowatch-0e265ebc99a274cd4809b628a7667408a0c0a11c.tar.gz
sowatch-0e265ebc99a274cd4809b628a7667408a0c0a11c.zip
Adding stub MetaWatchAnalog plugin
Diffstat (limited to 'metawatch/metawatchplugin.cpp')
-rw-r--r--metawatch/metawatchplugin.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/metawatch/metawatchplugin.cpp b/metawatch/metawatchplugin.cpp
index 5744196..5e649a9 100644
--- a/metawatch/metawatchplugin.cpp
+++ b/metawatch/metawatchplugin.cpp
@@ -1,6 +1,7 @@
#include <QtGui/QFontDatabase>
#include <QtConnectivity/QBluetoothAddress>
#include "metawatchdigital.h"
+#include "metawatchanalog.h"
#include "metawatchsimulator.h"
#include "metawatchplugin.h"
@@ -28,7 +29,7 @@ MetaWatchPlugin::~MetaWatchPlugin()
QStringList MetaWatchPlugin::drivers()
{
QStringList d;
- d << "metawatch-digital";
+ d << "metawatch-digital" << "metawatch-analog";
return d;
}
@@ -37,6 +38,9 @@ Watch* MetaWatchPlugin::getWatch(const QString& driver, QSettings& settings, QOb
if (driver == "metawatch-digital") {
QBluetoothAddress address(settings.value("address").toString());
return new MetaWatchDigital(address, &settings, parent);
+ } else if (driver == "metawatch-analog") {
+ QBluetoothAddress address(settings.value("address").toString());
+ return new MetaWatchAnalog(address, &settings, parent);
} else {
return 0;
}