1/*
2 * BluezQt - Asynchronous BlueZ wrapper library
3 *
4 * SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef DECLARATIVEINPUT_H
10#define DECLARATIVEINPUT_H
11
12#include "input.h"
13#include "qqmlregistration.h"
14
15class DeclarativeInput : public QObject
16{
17 Q_OBJECT
18 QML_NAMED_ELEMENT(Input)
19 QML_UNCREATABLE("Input cannot be created")
20 Q_PROPERTY(BluezQt::Input::ReconnectMode reconnectMode READ reconnectMode NOTIFY reconnectModeChanged)
21
22public:
23 explicit DeclarativeInput(const BluezQt::InputPtr &input, QObject *parent = nullptr);
24
25 BluezQt::Input::ReconnectMode reconnectMode() const;
26
27Q_SIGNALS:
28 void reconnectModeChanged(BluezQt::Input::ReconnectMode mode);
29
30private:
31 BluezQt::InputPtr m_input;
32};
33
34#endif // DECLARATIVEINPUT_H
35

source code of bluez-qt/src/imports/declarativeinput.h