diff options
Diffstat (limited to 'tests/manual/examples/btscanner/service.h')
-rw-r--r-- | tests/manual/examples/btscanner/service.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/manual/examples/btscanner/service.h b/tests/manual/examples/btscanner/service.h new file mode 100644 index 00000000..1c84f38c --- /dev/null +++ b/tests/manual/examples/btscanner/service.h @@ -0,0 +1,36 @@ +// Copyright (C) 2021 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +#ifndef SERVICE_H +#define SERVICE_H + +#include <QtWidgets/qdialog.h> + +QT_BEGIN_NAMESPACE +class QBluetoothAddress; +class QBluetoothServiceDiscoveryAgent; +class QBluetoothServiceInfo; + +namespace Ui { + class ServiceDiscovery; +} +QT_END_NAMESPACE + +class ServiceDiscoveryDialog : public QDialog +{ + Q_OBJECT + +public: + ServiceDiscoveryDialog(const QString &name, const QBluetoothAddress &address, + QWidget *parent = nullptr); + ~ServiceDiscoveryDialog(); + +public slots: + void addService(const QBluetoothServiceInfo &info); + +private: + QBluetoothServiceDiscoveryAgent *discoveryAgent; + Ui::ServiceDiscovery *ui; +}; + +#endif |