BluezQt 5.109.0
|
Pending method call. More...
#include <BluezQt/PendingCall>
Public Types | |
enum | Error { NoError = 0 , NotReady = 1 , Failed = 2 , Rejected = 3 , Canceled = 4 , InvalidArguments = 5 , AlreadyExists = 6 , DoesNotExist = 7 , InProgress = 8 , NotInProgress = 9 , AlreadyConnected = 10 , ConnectFailed = 11 , NotConnected = 12 , NotSupported = 13 , NotAuthorized = 14 , AuthenticationCanceled = 15 , AuthenticationFailed = 16 , AuthenticationRejected = 17 , AuthenticationTimeout = 18 , ConnectionAttemptFailed = 19 , InvalidLength = 20 , NotPermitted = 21 , DBusError = 98 , InternalError = 99 , UnknownError = 100 } |
Known error types. More... | |
Properties | |
int | error |
QString | errorText |
bool | isFinished |
QVariant | userData |
QVariant | value |
QVariantList | values |
Signals | |
void | finished (PendingCall *call) |
Indicates that the call have finished. | |
Public Member Functions | |
~PendingCall () override | |
Destroys a PendingCall object. | |
int | error () const |
Returns an error code. | |
QString | errorText () const |
Returns an error text. | |
bool | isFinished () const |
Returns whether the call is finished. | |
void | setUserData (const QVariant &userData) |
Sets the user data of the call. | |
QVariant | userData () const |
Returns the user data of the call. | |
QVariant | value () const |
Returns a first return value of the call. | |
QVariantList | values () const |
Returns all values of the call. | |
void | waitForFinished () |
Waits for the call to finish. | |
Pending method call.
This class represents a pending method call. It is a convenient wrapper around QDBusPendingReply and QDBusPendingCallWatcher.
Known error types.
|
override |
Destroys a PendingCall object.
int BluezQt::PendingCall::error | ( | ) | const |
QString BluezQt::PendingCall::errorText | ( | ) | const |
Returns an error text.
|
signal |
Indicates that the call have finished.
bool BluezQt::PendingCall::isFinished | ( | ) | const |
Returns whether the call is finished.
void BluezQt::PendingCall::setUserData | ( | const QVariant & | userData | ) |
Sets the user data of the call.
userData | user data |
QVariant BluezQt::PendingCall::userData | ( | ) | const |
Returns the user data of the call.
QVariant BluezQt::PendingCall::value | ( | ) | const |
Returns a first return value of the call.
QVariantList BluezQt::PendingCall::values | ( | ) | const |
Returns all values of the call.
void BluezQt::PendingCall::waitForFinished | ( | ) |
Waits for the call to finish.