DigitalGoodReply

Since: BlackBerry 10.0.0

#include <bb/platform/DigitalGoodReply>

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

Base class for PaymentManager replies for digital goods or subscriptions.

This class provides common details for PaymentManager replies to digital good or subscription-related requests.


Overview

Properties Index

QStringdigitalGoodId [read-only]
QStringdigitalGoodSku [read-only]
interrorCode [read-only]Inherited
QStringerrorInfo [read-only]Inherited
QStringerrorText [read-only]Inherited
boolfinished [read-only]Inherited

Public Functions Index

virtual ~DigitalGoodReply ()
QStringdigitalGoodId () const
QStringdigitalGoodSku () const
interrorCode () const Inherited
QStringerrorInfo () const Inherited
QStringerrorText () const Inherited
boolisError () const Inherited
boolisFinished () const Inherited

Signals Index

Only has inherited signals

voidfinished ()Inherited

Properties

QString digitalGoodId[read-only]

Represents the digital good ID.

Since:

BlackBerry 10.2.0

QString digitalGoodSku[read-only]

Represents the digital good SKU.

If the request finished successfully, then this returns the digital good SKU. If the request failed or is unfinished, then the empty string is returned.

If no digital good SKU was provided in the request, then digital good SKU is empty.

Since:

BlackBerry 10.2.0

int errorCodeInherited[read-only]

Represents the error code.

Since:

BlackBerry 10.2.0

QString errorInfoInherited[read-only]

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.

Since:

BlackBerry 10.2.0

QString errorTextInherited[read-only]

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.

Since:

BlackBerry 10.2.0

bool finishedInherited[read-only]

Represents whether the request is finished.

Whether the request is finished.

Since:

BlackBerry 10.2.0

Public Functions

virtual~DigitalGoodReply ()

Destructor.

Destroys a DigitalGoodReply instance.

Since:

BlackBerry 10.0.0

QString digitalGoodId ()

Get the digital good ID.

If the request finished successfully, then this returns the digital good ID. If the request failed or is unfinished, then the empty string is returned.

If no digital good ID was provided in the request, then the digital good ID is empty.

Return:

The digital good ID.

Since:

BlackBerry 10.0.0

QString digitalGoodSku ()

Get the digital good SKU.

If the request finished successfully, then this returns the digital good SKU. If the request failed or is unfinished, then the empty string is returned.

If no digital good SKU was provided in the request, then digital good SKU is empty.

Return:

The digital good SKU.

Since:

BlackBerry 10.0.0

int errorCode ()Inherited

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.

Return:

The error code.

Since:

BlackBerry 10.0.0

QString errorInfo ()Inherited

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.

Return:

The extra error information.

Since:

BlackBerry 10.2.0

QString errorText ()Inherited

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

bool isError ()Inherited

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

bool isFinished ()Inherited

Whether the request is finished.

Return:

true if a result has been received, false otherwise.

Since:

BlackBerry 10.0.0

Signals

(Only has inherited signals)

void finished ()Inherited

Emitted when a result is received.

Since:

BlackBerry 10.0.0

Last modified: 2014-06-24



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

comments powered by Disqus