summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/serviceinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/serviceinfo.h')
-rw-r--r--examples/bluetooth/lowenergyscanner/serviceinfo.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/bluetooth/lowenergyscanner/serviceinfo.h b/examples/bluetooth/lowenergyscanner/serviceinfo.h
index 56140e4c..d02c79ba 100644
--- a/examples/bluetooth/lowenergyscanner/serviceinfo.h
+++ b/examples/bluetooth/lowenergyscanner/serviceinfo.h
@@ -1,6 +1,7 @@
/***************************************************************************
**
** Copyright (C) 2013 BlackBerry Limited. All rights reserved.
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtBluetooth module of the Qt Toolkit.
@@ -40,9 +41,7 @@
#ifndef SERVICEINFO_H
#define SERVICEINFO_H
-#include <QObject>
-#include "qlowenergyserviceinfo.h"
-#include "qbluetoothuuid.h"
+#include <QtBluetooth/QLowEnergyService>
class ServiceInfo: public QObject
{
@@ -51,8 +50,8 @@ class ServiceInfo: public QObject
Q_PROPERTY(QString serviceUuid READ getUuid NOTIFY serviceChanged)
public:
ServiceInfo();
- ServiceInfo(const QLowEnergyServiceInfo &service);
- QLowEnergyServiceInfo getLeService() const;
+ ServiceInfo(QLowEnergyService *service);
+ QLowEnergyService *service() const;
QString getUuid() const;
QString getName() const;
@@ -60,7 +59,7 @@ Q_SIGNALS:
void serviceChanged();
private:
- QLowEnergyServiceInfo m_serviceLe;
+ QLowEnergyService *m_service;
};
#endif // SERVICEINFO_H