/*! * \brief The Bluetooth Pairing Agent class * \details The implementation of the interface for the generated DBus interface * from the org.bluez.Agent1.xml. * * Interface Reference: * https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/agent-api.txt */ #pragma once // Qt #include #include // namespace namespace Bluetooth { class BluetoothPairingAgent : public QObject { Q_OBJECT public: explicit BluetoothPairingAgent(QObject *parent = nullptr); public slots: void Release() const; QString RequestPinCode(const QDBusObjectPath &device) const; void DisplayPinCode(const QDBusObjectPath &device, const QString &pincode); uint RequestPasskey(const QDBusObjectPath &device) const; void DisplayPasskey(const QDBusObjectPath &device, uint passkey, ushort entered); void RequestConfirmation(const QDBusObjectPath &device, uint passkey); void RequestAuthorization(const QDBusObjectPath &device) const; void AuthorizeService(const QDBusObjectPath &device, const QString &uuid) const; void Cancel() const; signals: void showCode(const uint &code, const ushort &entered); void showVerificationCode(const uint &code); void showPinCode(const QString &code); }; }