InvokeQueryTargetsReply
Since: BlackBerry 10.0.0
#include <bb/system/InvokeQueryTargetsReply>
To link against this class, add the following line to your .pro file: LIBS += -lbbsystem
Encapsulates the set of results from a query request.
When a client sends a query message to the invocation service it subsequently receives a reply message indicating the success of the request and the results of the search. To handle the reply message, connect to the InvokeQueryTargetsReply::finished() signal of the object returned by InvokeManager::queryTargets(). This method is asynchronous returning immediately and using InvokeQueryTargetsReply as a future. Consequently, the values returned by the error() and actions() methods are not valid until the reply message arrives (when finished() is emitted).
Overview
Inheritance
bb::system::InvokeReply | ||
bb::system::InvokeQueryTargetsReply |
Public Functions Index
InvokeQueryTargetsReply (QObject *parent=0) | |
virtual | ~InvokeQueryTargetsReply () |
QList< InvokeAction > | actions () const |
bb::system::InvokeReplyError::Type | error () const ![]() |
int | errorCode () const ![]() |
InvokeReply (QObject *parent=0)![]() | |
bool | isFinished () const ![]() |
Signals Index
Only has inherited signals
void | finished ()![]() |
Public Functions
Creates a new InvokeQueryTargetsReply object.
Parameters | |
---|---|
parent |
If not 0, the supplied parent will be responsible for deleting this instance. |
BlackBerry 10.0.0
virtual
Destructor.
BlackBerry 10.0.0
QList< InvokeAction >
Returns the list of matching targets, grouped by action, from the reply message.
The list of matching targets from the reply message.
BlackBerry 10.0.0
bb::system::InvokeReplyError::Type 
Returns the error type from the reply message.
The return value is not valid until a reply message has been received. The error code can be retrieved via errorCode().
The error type from the reply message. See bb::system::InvokeReplyError for the list of possible results.
BlackBerry 10.0.0
int 
Returns the error code from the reply message.
The return value is not valid until a reply message has been received. The error type can be retrieved via error().
The error code from the reply message.
Creates a new InvokeReply object.
Parameters | |
---|---|
parent |
If not 0, the supplied parent will be responsible for deleting this instance. |
BlackBerry 10.0.0
bool 
Checks whether a reply message has been received.
The value returned by the error() method is not valid until a reply message has been received.
true if a reply message has been received, false otherwise.
BlackBerry 10.0.0
Signals
(Only has inherited signals)
void 
Emitted when a reply message is received.
The value returned by the error() method is not valid until a reply message has been received.
BlackBerry 10.0.0