File indexing completed on 2025-01-19 12:42:13
0001 /* 0002 * BluezQt - Asynchronous BlueZ wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2015 David Rosca <nowrep@gmail.com> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef DECLARATIVEINPUT_H 0010 #define DECLARATIVEINPUT_H 0011 0012 #include "input.h" 0013 0014 class DeclarativeInput : public QObject 0015 { 0016 Q_OBJECT 0017 Q_PROPERTY(BluezQt::Input::ReconnectMode reconnectMode READ reconnectMode NOTIFY reconnectModeChanged) 0018 0019 public: 0020 explicit DeclarativeInput(const BluezQt::InputPtr &input, QObject *parent = nullptr); 0021 0022 BluezQt::Input::ReconnectMode reconnectMode() const; 0023 0024 Q_SIGNALS: 0025 void reconnectModeChanged(BluezQt::Input::ReconnectMode mode); 0026 0027 private: 0028 BluezQt::InputPtr m_input; 0029 }; 0030 0031 #endif // DECLARATIVEINPUT_H