PaymentReply

#include <bb/platform/PaymentReply>

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

Base class for all PaymentManager replies.

This class provides the finished and error information for all PaymentManager replies. Subclasses of this class are returned for all PaymentManager request methods. Initially, the returned object will be unfinished and will not contain any valid information relating to the request (other than that it is unfinished). Once the request is finished, isError() can be used to determine whether the request succeeded or failed. If the request was successful, then the subclass will provide data on the success result. If the request failed, errorCode() and errorText() can be used to determine why the request failed.

The finished() signal can be used to determine when the request finishes. There are also signals on PaymentManager that can be to determine when a request finishes.

Note:

Do not delete the object in a slot connected to the finished() signal. Use QObject::deleteLater() instead.

Since:

BlackBerry 10.0.0

Public Functions Index

virtual ~PaymentReply ()
boolisFinished () const
boolisError () const
QStringerrorText () const
interrorCode () const

Signals Index

voidfinished ()

Public Functions

virtual~PaymentReply ()

Destructor.

Destroys a PaymentReply.

Since:

BlackBerry 10.0.0

bool isFinished ()

Whether the request is finished.

Return:

true if a result has been received, false otherwise.

Since:

BlackBerry 10.0.0

bool isError ()

Whether the request failed.

If the request is unfinished or finished successfully, then this method returns false. If the request failed, then this method returns true.

Return:

Whether the request failed.

Since:

BlackBerry 10.0.0

QString errorText ()

Get the error text.

If the request is unfinished or finished successfully, then this method returns an empty string. If the request failed, then this method returns the a description of the error that occurred.

Return:

A description of the error that occurred.

Since:

BlackBerry 10.0.0

int errorCode ()

Get the error code.

If the request is unfinished or finished successfully, then this method returns 0. If the request failed, then this method returns the error code.

Return:

The error code.

Since:

BlackBerry 10.0.0

Signals

void finished ()

Emitted when a result is received.

Since:

BlackBerry 10.0.0