blob: de7e802d9f4aef462fb37f18c4d67835f94ff035 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SERVICE_H
#define SERVICE_H
#include <QDialog>
QT_FORWARD_DECLARE_CLASS(QBluetoothAddress)
QT_FORWARD_DECLARE_CLASS(QBluetoothServiceInfo)
QT_FORWARD_DECLARE_CLASS(QBluetoothServiceDiscoveryAgent)
QT_FORWARD_DECLARE_CLASS(Ui_ServiceDiscovery)
QT_USE_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&);
private:
QBluetoothServiceDiscoveryAgent *discoveryAgent;
Ui_ServiceDiscovery *ui;
};
#endif
|