summaryrefslogtreecommitdiff
path: root/metawatch/metawatchscanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'metawatch/metawatchscanner.cpp')
-rw-r--r--metawatch/metawatchscanner.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/metawatch/metawatchscanner.cpp b/metawatch/metawatchscanner.cpp
index e560195..3742092 100644
--- a/metawatch/metawatchscanner.cpp
+++ b/metawatch/metawatchscanner.cpp
@@ -7,23 +7,9 @@ QTM_USE_NAMESPACE
using namespace sowatch;
MetaWatchScanner::MetaWatchScanner(QObject *parent) :
- WatchScanner(parent),
- _agent(new QBluetoothServiceDiscoveryAgent(this))
+ BluetoothWatchScanner(parent)
{
- _agent->setUuidFilter(QBluetoothUuid::SerialPort);
- connect(_agent, SIGNAL(finished()), this, SIGNAL(finished()));
- connect(_agent, SIGNAL(serviceDiscovered(QBluetoothServiceInfo)),
- this, SLOT(handleDiscoveredService(QBluetoothServiceInfo)));
-}
-
-void MetaWatchScanner::start()
-{
- if (_agent->isActive()) {
- _agent->stop();
- }
- _agent->start();
- qDebug() << "started metawatch bluetooth scan";
- emit started();
+ setUuidFilter(QBluetoothUuid::SerialPort);
}
void MetaWatchScanner::handleDiscoveredService(const QBluetoothServiceInfo &info)