BluezQt::Request
#include <BluezQt/Request>
Public Member Functions | |
Request () | |
Request (const Request &other) | |
virtual | ~Request () |
void | accept (T returnValue) const |
void | cancel () const |
Request & | operator= (const Request &other) |
void | reject () const |
Detailed Description
class BluezQt::Request< T >
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.
Constructor & Destructor Documentation
◆ Request() [1/2]
|
explicit |
Creates a new Request object.
Definition at line 92 of file request.cpp.
◆ ~Request()
|
virtual |
Destroys a Request object.
Definition at line 106 of file request.cpp.
◆ Request() [2/2]
BluezQt::Request< T >::Request | ( | const Request< T > & | other | ) |
Member Function Documentation
◆ accept()
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.
- Parameters
-
returnValue return value of request
Definition at line 126 of file request.cpp.
◆ cancel()
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.
Definition at line 138 of file request.cpp.
◆ operator=()
Request< T > & BluezQt::Request< T >::operator= | ( | const Request< T > & | other | ) |
◆ reject()
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.
Definition at line 132 of file request.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:01:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.