BluezQt::Agent
#include <BluezQt/Agent>
Public Types | |
enum | Capability { DisplayOnly = 0 , DisplayYesNo = 1 , KeyboardOnly = 2 , NoInputNoOutput = 3 } |
Properties | |
Capability | capability |
Properties inherited from QObject | |
objectName | |
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) |
Public Attributes inherited from QObject | |
typedef | QObjectList |
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()
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 Tue Mar 26 2024 11:13:52 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.