BluezQt 5.109.0
input.h
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 BLUEZQT_INPUT_H
10#define BLUEZQT_INPUT_H
11
12#include <QObject>
13
14#include "bluezqt_export.h"
15#include "types.h"
16
17namespace BluezQt
18{
26class BLUEZQT_EXPORT Input : public QObject
27{
28 Q_OBJECT
29 Q_PROPERTY(ReconnectMode reconnectMode READ reconnectMode NOTIFY reconnectModeChanged)
30
31public:
42 };
43 Q_ENUM(ReconnectMode)
44
45
48 ~Input() override;
49
55 InputPtr toSharedPtr() const;
56
63
64Q_SIGNALS:
69
70private:
71 BLUEZQT_NO_EXPORT explicit Input(const QString &path, const QVariantMap &properties);
72
73 class InputPrivate *const d;
74
75 friend class InputPrivate;
76 friend class DevicePrivate;
77};
78
79} // namespace BluezQt
80
81#endif // BLUEZQT_INPUT_H
Device input.
Definition input.h:27
ReconnectMode reconnectMode() const
Returns the reconnect mode.
ReconnectMode
Reconnect mode.
Definition input.h:33
@ DeviceReconnect
Device restores the connection.
Definition input.h:39
@ NoReconnect
Device and host are not required to automatically restore the connection.
Definition input.h:35
@ HostReconnect
Host restores the connection.
Definition input.h:37
@ AnyReconnect
Device shall attempt to restore the lost connection, but host may also restore the connection.
Definition input.h:41
InputPtr toSharedPtr() const
Returns a shared pointer from this.
~Input() override
Destroys an Input object.
void reconnectModeChanged(ReconnectMode mode)
Indicates that input's reconnect mode have changed.