BluezQt

declarativeinput.cpp
1 /*
2  * BluezQt - Asynchronous BlueZ wrapper library
3  *
4  * SPDX-FileCopyrightText: 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 #include "declarativeinput.h"
10 
11 DeclarativeInput::DeclarativeInput(const BluezQt::InputPtr &input, QObject *parent)
12  : QObject(parent)
13  , m_input(input)
14 {
15  connect(m_input.data(), &BluezQt::Input::reconnectModeChanged, this, &DeclarativeInput::reconnectModeChanged);
16 }
17 
18 BluezQt::Input::ReconnectMode DeclarativeInput::reconnectMode() const
19 {
20  return m_input->reconnectMode();
21 }
void reconnectModeChanged(ReconnectMode mode)
Indicates that input's reconnect mode have changed.
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
ReconnectMode
Reconnect mode.
Definition: input.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:19:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.