libsolidcontrol
Solid::Control::BluetoothPasskeyAgent Class Reference
#include <bluetoothsecurity.h>

Detailed Description
This is the interface a class must implement to act as a Passkey Agent.A class that acts as a PassKeyAgent will handle the process of pairing (stablish a trusted connection) with a remote device.
Definition at line 40 of file bluetoothsecurity.h.
Public Slots | |
virtual void | cancelAuthentication (const QString &ubi) |
virtual void | completedAuthentication (const QString &ubi) |
virtual bool | confirmPasskey (const QString &ubi, const QString &passkey) |
virtual void | displayPasskey (const QString &ubi, const QString &passkey) |
virtual void | keypress (const QString &ubi) |
virtual QString | requestPasskey (const QString &ubi, bool isNumeric) |
Public Member Functions | |
BluetoothPasskeyAgent (QObject *parent=0, const QString &remote="") | |
virtual QString | remote () |
Properties | |
QString | remote |
Constructor & Destructor Documentation
Solid::Control::BluetoothPasskeyAgent::BluetoothPasskeyAgent | ( | QObject * | parent = 0 , |
|
const QString & | remote = "" | |||
) |
Initializes the passkey agent.
- Parameters:
-
parent pointer to the parent object for auto deletion remote address of the remote device for this agent in 00:00:00:00:00:00 format. If empty the agent will act as the default passkey agent for all devices.
Definition at line 86 of file bluetoothsecurity.cpp.
Member Function Documentation
void Solid::Control::BluetoothPasskeyAgent::cancelAuthentication | ( | const QString & | ubi | ) | [virtual, slot] |
Indicates to the agent that the authentication has been canceled before completion.
- Parameters:
-
ubi Universal Bluetooth Identifier of the remote device which authentication was
Definition at line 127 of file bluetoothsecurity.cpp.
void Solid::Control::BluetoothPasskeyAgent::completedAuthentication | ( | const QString & | ubi | ) | [virtual, slot] |
Indicates to the agent that the authentication has been completed.
- Parameters:
-
ubi Universal Bluetooth Identifier of the remote device that has been authenticated
Definition at line 122 of file bluetoothsecurity.cpp.
bool Solid::Control::BluetoothPasskeyAgent::confirmPasskey | ( | const QString & | ubi, | |
const QString & | passkey | |||
) | [virtual, slot] |
This method gets called when the bluetooth system needs to verify a passkey.
The verification is done by showing the value to the passkey agent.
- Parameters:
-
ubi Universal Bluetooth Identifier of the remote device passkey The passkey to confirm.
- Returns:
- Whether the passkey accepts or not the remote passkey
Definition at line 104 of file bluetoothsecurity.cpp.
void Solid::Control::BluetoothPasskeyAgent::displayPasskey | ( | const QString & | ubi, | |
const QString & | passkey | |||
) | [virtual, slot] |
Gets called when the bluetooth system needs to show a passkey.
No answer is expected from the agent.
- Parameters:
-
ubi Universal Bluetooth Identifier of the remote device passkey The passkey to show
Definition at line 111 of file bluetoothsecurity.cpp.
void Solid::Control::BluetoothPasskeyAgent::keypress | ( | const QString & | ubi | ) | [virtual, slot] |
Indicates keypresses from a remote device,this can happen, for example, when pairing with a keyboard.
- Parameters:
-
ubi Universal Bluetooth Identifier of the remote device that emitted the keypress
Definition at line 117 of file bluetoothsecurity.cpp.
virtual QString Solid::Control::BluetoothPasskeyAgent::remote | ( | ) | [virtual] |
Gets the UBI of the remote device this agent authenticates.
- Returns:
- Universal Bluetooth Identifier of the associated agent. If empty the agent authenticates any remote device that requires it.
QString Solid::Control::BluetoothPasskeyAgent::requestPasskey | ( | const QString & | ubi, | |
bool | isNumeric | |||
) | [virtual, slot] |
This method gets called when the bluetooth system needs to get the passkey for a remote authentication.
- Parameters:
-
ubi Universal Bluetooth Identifier of the remote device isNumeric Indicates whether a numerical passkey is expected.
- Returns:
- The passkey to be used in this authentication, or an empty string if the request has been rejected/canceled
Definition at line 97 of file bluetoothsecurity.cpp.
Property Documentation
QString Solid::Control::BluetoothPasskeyAgent::remote [read] |
Definition at line 43 of file bluetoothsecurity.h.
The documentation for this class was generated from the following files: