File indexing completed on 2024-10-06 10:50:48
0001 /* 0002 * SPDX-FileCopyrightText: 2010 Alejandro Fiestas Olivares <alex@eyeos.org> 0003 * SPDX-FileCopyrightText: 2010 Eduardo Robles Elvira <edulix@gmail.com> 0004 * SPDX-FileCopyrightText: 2010 UFO Coders <info@ufocoders.com> 0005 * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com> 0006 * 0007 * SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #ifndef BLUEZAGENT_H 0011 #define BLUEZAGENT_H 0012 0013 #include <BluezQt/Agent> 0014 0015 class BluezAgent : public BluezQt::Agent 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 explicit BluezAgent(QObject *parent); 0021 0022 QDBusObjectPath objectPath() const override; 0023 0024 void authorizeService(BluezQt::DevicePtr device, const QString &uuid, const BluezQt::Request<> &request) override; 0025 void requestPinCode(BluezQt::DevicePtr device, const BluezQt::Request<QString> &request) override; 0026 void requestPasskey(BluezQt::DevicePtr device, const BluezQt::Request<quint32> &request) override; 0027 void requestConfirmation(BluezQt::DevicePtr device, const QString &passkey, const BluezQt::Request<> &request) override; 0028 void requestAuthorization(BluezQt::DevicePtr device, const BluezQt::Request<> &request) override; 0029 void release() override; 0030 void cancel() override; 0031 0032 Q_SIGNALS: 0033 void agentReleased(); 0034 void agentCanceled(); 0035 }; 0036 0037 #endif // BLUEZAGENT_H