Debian Codegraph @

tests/adaptersreceiver.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2011 Rafael Fernández López <[email protected]>
3 * SPDX-FileCopyrightText: 2011 UFO Coders <[email protected]>
4 * SPDX-FileCopyrightText: 2014-2015 David Rosca <[email protected]>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9 #ifndef ADAPTERSRECEIVER_H
10 #define ADAPTERSRECEIVER_H
11
12 #include <QObject>
13
14 #include "manager.h"
15
16 class AdaptersReceiver : public QObject
17 {
18 Q_OBJECT
19
20 public:
21 explicit AdaptersReceiver(BluezQt::Manager *manager, QObject *parent = nullptr);
22
23 public Q_SLOTS:
24 void adapterAdded(const BluezQt::AdapterPtr &adapter);
25 void adapterRemoved(const BluezQt::AdapterPtr &adapter);
26 void usableAdapterChanged(const BluezQt::AdapterPtr &adapter);
27 void allAdaptersRemoved();
28 void bluetoothOperationalChanged(bool operational);
29 void bluetoothBlockedChanged(bool blocked);
30 void printStatus();
31
32 private:
33 BluezQt::Manager *m_manager;
34 };
35
36 #endif // ADAPTERSRECEIVER_H