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.
Do not delete the object in a slot connected to the finished() signal. Use QObject::deleteLater() instead.
BlackBerry 10.0.0
Inheritance
| bb::platform::PaymentReply | |||||||
| bb::platform::CancelSubscriptionReply | |||||||
| bb::platform::DigitalGoodReply | |||||||
| bb::platform::ExistingPurchasesReply | |||||||
Public Functions Index
| virtual | ~PaymentReply () |
| bool | isFinished () const |
| bool | isError () const |
| QString | errorText () const |
| int | errorCode () const |
Signals Index
| void | finished () |
Public Functions
bool
Whether the request is finished.
true if a result has been received, false otherwise.
BlackBerry 10.0.0
bool
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.
Whether the request failed.
BlackBerry 10.0.0
QString
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.
A description of the error that occurred.
BlackBerry 10.0.0
int
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.
The error code.
BlackBerry 10.0.0
Signals
void
Emitted when a result is received.
BlackBerry 10.0.0