BluezQt 5.109.0
|
D-Bus request. More...
#include <BluezQt/Request>
Public Member Functions | |
Request () | |
Creates a new Request object. | |
Request (const Request &other) | |
Copy constructor. | |
virtual | ~Request () |
Destroys a Request object. | |
void | accept (T returnValue) const |
Accepts the request. | |
void | cancel () const |
Cancels the request. | |
Request & | operator= (const Request &other) |
Copy assignment operator. | |
void | reject () const |
Rejects the request. | |
D-Bus request.
This class represents a request from a Bluetooth daemon. It is a convenient wrapper around QDBusMessage and easily allows sending replies and handling errors.
|
explicit |
Creates a new Request object.
|
virtual |
Destroys a Request object.
BluezQt::Request< T >::Request | ( | const Request< T > & | other | ) |
Copy constructor.
other |
void BluezQt::Request< T >::accept | ( | T | returnValue | ) | const |
Accepts the request.
This method should be called to send a reply to indicate the request was accepted.
In case the request is of type void, this method does not take any parameter.
returnValue | return value of request |
void BluezQt::Request< T >::cancel | ( | ) | const |
Cancels the request.
This method should be called to send an error reply to indicate the request was canceled.
Request & BluezQt::Request< T >::operator= | ( | const Request< T > & | other | ) |
Copy assignment operator.
other |
void BluezQt::Request< T >::reject | ( | ) | const |
Rejects the request.
This method should be called to send an error reply to indicate the request was rejected.