InvokeTargetReply
#include <bb/system/InvokeTargetReply>
To link against this class, add the following line to your .pro file: LIBS += -lbbsystem
Encapsulates the result from an invocation request.
When a client sends an invocation request to the invocation service it subsequently receives a reply message indicating the success of the request. To handle the reply message connect to the InvokeTargetReply::finished() signal of the object returned by InvokeManager::invoke(). This method is asynchronous and returns immediately, using the returned InvokeTargetReply object as a future. Consequently, the values returned by the error(), target() and targetType() methods are not valid until the reply message arrives (when finished() is emitted).
BlackBerry 10.0.0
Inheritance
| bb::system::InvokeReply | ||
| bb::system::InvokeTargetReply | ||
Public Functions Index
| InvokeTargetReply (QObject *parent=0) | |
| virtual | ~InvokeTargetReply () |
| QString | target () const |
| bb::system::InvokeTarget::Type | targetType () const |
| bb::system::InvokeReplyError::Type | error () const |
| InvokeReply (QObject *parent=0) | |
| bool | isFinished () const |
Signals Index
Only has inherited signals
| void | finished () |
Public Functions
Creates a new InvokeTargetReply 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
QString
Returns the target that has been invoked.
An empty QString is returned if the request includes a specific target.
The invoked target.
BlackBerry 10.0.0
bb::system::InvokeTarget::Type
Returns the type of the target that has been invoked.
The invoked target type. See bb::system::InvokeTarget::Type for this list of target types.
BlackBerry 10.0.0
bb::system::InvokeReplyError::Type 
Returns the error code from the reply message.
The return value is not valid until a reply message has been received.
The error code from the reply message. See bb::system::InvokeReplyError for the list of possible results.
BlackBerry 10.0.0
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