InvokeReply

Since: BlackBerry 10.0.0

#include <bb/system/InvokeReply>

To link against this class, add the following line to your .pro file: LIBS += -lbbsystem

Encapsulates a reply from the invocation service.

When a client sends an invoke or an update target filters request message to the invocation service it subsequently receives a reply message indicating the success of the request. To handle the reply message, connect to the InvokeReply::finished() signal of the object returned by the method called to send the request (InvokeManager::invoke() for an invoke request, InvokeManager::updateTargetFilters() for an update target filters request). These methods are asynchronous, returning immediately and using the returned InvokeReply object as a future. Consequently, the value returned by the error() method is not valid until the reply message arrives (when finished() is emitted).


Overview

Public Functions Index

InvokeReply (QObject *parent=0)
virtual ~InvokeReply ()
bb::system::InvokeReplyError::Typeerror () const
interrorCode () const
boolisFinished () const

Signals Index

voidfinished ()

Public Functions

InvokeReply (

Creates a new InvokeReply object.

Parameters
parent

If not 0, the supplied parent will be responsible for deleting this instance.

Since:

BlackBerry 10.0.0

virtual~InvokeReply ()

Destructor.

Since:

BlackBerry 10.0.0

bb::system::InvokeReplyError::Type error ()

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().

Return:

The error type from the reply message. See bb::system::InvokeReplyError for the list of possible results.

Since:

BlackBerry 10.0.0

int errorCode ()

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().

Return:

The error code from the reply message.

bool isFinished ()

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.

Return:

true if a reply message has been received, false otherwise.

Since:

BlackBerry 10.0.0

Signals

void finished ()

Emitted when a reply message is received.

The value returned by the error() method is not valid until a reply message has been received.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus