BluezQt::Agent
#include <BluezQt/Agent>
Public Types | |
enum | Capability { DisplayOnly = 0 , DisplayYesNo = 1 , KeyboardOnly = 2 , NoInputNoOutput = 3 } |
Public Types inherited from QObject | |
typedef | QObjectList |
Properties | |
Capability | capability |
Properties inherited from QObject | |
objectName | |
Public Member Functions | |
Agent (QObject *parent=nullptr) | |
virtual void | authorizeService (DevicePtr device, const QString &uuid, const Request<> &request) |
virtual void | cancel () |
virtual Capability | capability () const |
virtual void | displayPasskey (DevicePtr device, const QString &passkey, const QString &entered) |
virtual void | displayPinCode (DevicePtr device, const QString &pinCode) |
virtual QDBusObjectPath | objectPath () const =0 |
virtual void | release () |
virtual void | requestAuthorization (DevicePtr device, const Request<> &request) |
virtual void | requestConfirmation (DevicePtr device, const QString &passkey, const Request<> &request) |
virtual void | requestPasskey (DevicePtr device, const Request< quint32 > &request) |
virtual void | requestPinCode (DevicePtr device, const Request< QString > &request) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () const const |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isQuickItemType () const const |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_GADGET_EXPORT (EXPORT_MACRO) | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_MOC_INCLUDE Q_MOC_INCLUDE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setObjectName (QAnyStringView name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | setProperty (const char *name, QVariant &&value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
QThread * | thread () const const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
Bluetooth agent.
This class represents a Bluetooth agent.
The agent is used in pairing process to do various actions.
- Note
- The return value of requests will be sent asynchronously with Request class. It is also possible to cancel/reject all requests.
Member Enumeration Documentation
◆ Capability
Property Documentation
◆ capability
|
read |
Constructor & Destructor Documentation
◆ Agent()
|
explicit |
Member Function Documentation
◆ authorizeService()
|
virtual |
Requests the agent to authorize a connection/service request.
This method gets called when the Bluetooth daemon needs to authorize a connection/service request.
- Parameters
-
device device that invoked the action uuid UUID of service request request to be used for sending reply
◆ cancel()
|
virtual |
◆ capability()
|
virtual |
◆ displayPasskey()
|
virtual |
Requests the agent to display a passkey.
This method gets called when the Bluetooth daemon needs to display a passkey for an authentication.
When the passkey needs no longer to be displayed, the cancel() method will be called.
- Parameters
-
device device that invoked the action passkey passkey to be displayed entered number of already typed keys on the remote side
◆ displayPinCode()
Requests the agent to display a PIN code.
This method gets called when the Bluetooth daemon needs to display a pincode for an authentication.
When the PIN code needs no longer to be displayed, the cancel() method will be called.
- Parameters
-
device device that invoked the action pinCode PIN code to be displayed
◆ objectPath()
|
pure virtual |
D-Bus object path of the agent.
The path where the agent will be registered.
- Note
- You must provide valid object path!
- Returns
- object path of agent
◆ release()
|
virtual |
Indicates that the agent was unregistered.
This method gets called when the Bluetooth daemon unregisters the agent.
An agent can use it to do cleanup tasks. There is no need to unregister the agent, because when this method gets called it has already been unregistered.
◆ requestAuthorization()
Requests the agent to authorize an incoming pairing attempt.
This method gets called to request the user to authorize an incoming pairing attempt which would in other circumstances trigger the just-works model.
- Parameters
-
device device that invoked the action request request to be used for sending reply
◆ requestConfirmation()
|
virtual |
Requests the agent to confirm a passkey.
This method gets called when the Bluetooth daemon needs to confirm a passkey for an authentication.
- Parameters
-
device device that invoked the action passkey passkey to be confirmed request request to be used for sending reply
◆ requestPasskey()
|
virtual |
Requests a passkey from the agent.
This method gets called when the Bluetooth daemon needs to get the passkey for an authentication.
The return value should be a numeric value between 0-999999.
- Parameters
-
device device that invoked the action request request to be used for sending reply
◆ requestPinCode()
|
virtual |
Requests a PIN code from the agent.
This method gets called when the Bluetooth daemon needs to get the PIN code for an authentication.
The return value should be a string of 1-16 characters length. The string can be alphanumeric.
- Parameters
-
device device that invoked the action request request to be used for sending reply
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.