File indexing completed on 2024-10-06 07:57:35
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 #pragma once 0011 0012 #include <BluezQt/Agent> 0013 0014 class BluezAgent : public BluezQt::Agent 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit BluezAgent(QObject *parent); 0020 0021 QDBusObjectPath objectPath() const override; 0022 0023 void authorizeService(BluezQt::DevicePtr device, const QString &uuid, const BluezQt::Request<> &request) override; 0024 void requestPinCode(BluezQt::DevicePtr device, const BluezQt::Request<QString> &request) override; 0025 void requestPasskey(BluezQt::DevicePtr device, const BluezQt::Request<quint32> &request) override; 0026 void requestConfirmation(BluezQt::DevicePtr device, const QString &passkey, const BluezQt::Request<> &request) override; 0027 void requestAuthorization(BluezQt::DevicePtr device, const BluezQt::Request<> &request) override; 0028 void release() override; 0029 void cancel() override; 0030 0031 Q_SIGNALS: 0032 void agentReleased(); 0033 void agentCanceled(); 0034 };