CancelSubscriptionReply
#include <bb/platform/CancelSubscriptionReply>
To link against this class, add the following line to your .pro file: LIBS += -lbbplatform
Represents a response to PaymentManager::requestCancelSubscription().
An instance of this class is returned when a call to PaymentManager::requestCancelSubscription 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 isCanceled() method indicates whether the subscription was canceled. 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::cancelSubscriptionFinished signal can also be used to determine when a request finishes.
A successful response does not indicate that the subscription was canceled. The request is successful if the BlackBerry World server can be contacted and the purchase could be located. It is possible for a successful request to have not canceled the subscription. In this case, PaymentReply::isError() and isCanceled() will both return false.
,Do not delete the object in a slot connected to the any of the finished signals. Use QObject::deleteLater() instead.
BlackBerry 10.0.0
Inheritance
| bb::platform::PaymentReply | ||
| bb::platform::CancelSubscriptionReply | ||
Properties Index
Public Functions Index
| virtual | ~CancelSubscriptionReply () |
| bool | isCanceled () const |
| QString | purchaseId () 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
bool
Represents the result of a cancel subscription request.
If the request finished successfully, then this returns whether the subscription was successfully canceled. If the request failed or is unfinished, then false is returned.
BlackBerry 10.2.0
QString
Represents the purchase id .
The purchase id passed to PaymentManager::requestCancelSubscription().
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
virtual
Destructor.
BlackBerry 10.0.0
bool
Whether the subscription was successfully canceled.
If the request finished successfully, then this returns whether the subscription was successfully canceled. If the request failed or is unfinished, then false is returned.
A successful response does not indicate that the subscription was canceled. The request is successful if the BlackBerry World server can be contacted and the purchase could be located. It is possible for a successful request to have not canceled the subscription. In this case, PaymentReply::isError() and isCanceled() will both return false.
Whether the subscription was successfully canceled.
BlackBerry 10.0.0
QString
Get the purchase id.
The purchase id passed to PaymentManager::requestCancelSubscription().
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