ExistingPurchasesReply
#include <bb/platform/ExistingPurchasesReply>
To link against this class, add the following line to your .pro file: LIBS += -lbbplatform
Represents a response to PaymentManager::requestExistingPurchases().
An instance of this class is returned when a call to PaymentManager::requestExistingPurchases() is made. 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, PaymentReply::isError() can be used to determine whether the request succeeded or failed. If the request was successful, then the purchases() method provides the list of receipts for all existing purchases. If the request failed, then the error code and error text are included; these can be accessed on the PaymentReply base class.
The finished() signal can be used to determine when the request finishes. The PaymentManager::existingPurchasesFinished() signal can also be used to determine when a request finishes.
Do not delete the object in a slot connected to any of the finished signals. Use QObject::deleteLater() instead.
BlackBerry 10.0.0
Inheritance
| bb::platform::PaymentReply | ||
| bb::platform::ExistingPurchasesReply | ||
Properties Index
Public Functions Index
| virtual | ~ExistingPurchasesReply () |
| QList< PurchaseReceipt > | purchases () const |
| int | errorCode () const |
| QString | errorInfo () const |
| QString | errorText () const |
| bool | isError () const |
| bool | isFinished () const |
Signals Index
Only has inherited signals
| void | finished () |
Properties
QVariantList
Represents the list of existing purhcase(s).
If the request finished successfully, then a list of receipts for the user's purchases is returned. If the request failed or is unfinished, then an empty list is returned.
date
digitalGoodId
digitalGoodSku
endDate
extraParameters
initialPeriod
isSubscription
isValid
licenseKey
purchaseId
purchaseMetadata
startDate
state
BlackBerry 10.2.0
int
Represents 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.
BlackBerry 10.2.0
QString
Get the extra error information.
In the event of a Failed errorCode, this represents extra information to further identify the error that occurred, for diagnostic purposes.
BlackBerry 10.2.0
QString
Represents 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.
BlackBerry 10.2.0
bool
Represents whether the request is finished.
Whether the request is finished.
BlackBerry 10.2.0
Public Functions
QList< PurchaseReceipt >
Get the list of user purchases.
If the request finished successfully, then a list of receipts for the user's purchases is returned. If the request failed or is unfinished, then an empty list is returned.
A list of purchase receipts.
BlackBerry 10.0.0
int 
Get the error code.
If the request is unfinished or finished successfully, then this method returns PaymentErrorCode::None. If the request failed, then this method returns the appropriate PaymentErrorCode.
The error code.
BlackBerry 10.0.0
QString 
Get the extra error information.
In the event of a Failed errorCode(), this method returns extra information to further identify the error that occurred, for diagnostic purposes.
The extra error information.
BlackBerry 10.2.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
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
bool 
Whether the request is finished.
true if a result has been received, false otherwise.
BlackBerry 10.0.0
Signals
(Only has inherited signals)
void 
Emitted when a result is received.
BlackBerry 10.0.0