Public Slots | Signals | Public Member Functions | Protected Attributes

QIap Class Reference

In App Purchase wrapper implementation for local stored content. More...

#include <qiap.h>

List of all members.

Public Slots

void getProducts ()
 Get available IAP products on OVI Store.
void restoreProducts ()
 Retrieve previously purchased products.
void resetPurchases ()
 Reset purchased products.

Signals

void purchaseCompleted (QString status, QString productID)
void purchaseFlowFinished (int requestId)
void getProductsCompleted ()
void restoreProductsCompleted ()
void itemRestored (QString productID)

Public Member Functions

 QIap (QObject *parent=0)
 Constructor.
virtual ~QIap ()
 Destructor.
QList
< IAPClient::ProductDataHash > & 
availableProducts ()
 List of available IAP products on OVI Store.
Q_INVOKABLE int purchaseProductByID (QString productId, IAPClient::ForceRestorationFlag restoration=IAPClient::ForcedAutomaticRestoration)
 Purchase a product by In-app ID.
Q_INVOKABLE int purchaseProductByName (QString productName, IAPClient::ForceRestorationFlag restoration=IAPClient::ForcedAutomaticRestoration)
 Purchase a product by product name ( info field ).
Q_INVOKABLE bool isPurchased (QString fileName)
Q_INVOKABLE QByteArray getDRMFileContent (QString productID, QString fileName)
 Get DRM file content if the device can access the encrypted file.

Protected Attributes

QIapPrivate *const d_ptr

Detailed Description

In App Purchase wrapper implementation for local stored content.


Constructor & Destructor Documentation

QIap::QIap ( QObject *  parent = 0  )  [explicit]

Constructor.

Parameters:
parent 

Member Function Documentation

QByteArray QIap::getDRMFileContent ( QString  productID,
QString  fileName 
)

Get DRM file content if the device can access the encrypted file.

Parameters:
productID 
fileName 
bool QIap::isPurchased ( QString  fileName  ) 
Parameters:
fileName 
Returns:
true if file is purchased
int QIap::purchaseProductByID ( QString  productId,
IAPClient::ForceRestorationFlag  restoration = IAPClient::ForcedAutomaticRestoration 
)

Purchase a product by In-app ID.

Parameters:
productId 
restoration 
int QIap::purchaseProductByName ( QString  productName,
IAPClient::ForceRestorationFlag  restoration = IAPClient::ForcedAutomaticRestoration 
)

Purchase a product by product name ( info field ).

Parameters:
productName 
restoration 

Member Data Documentation

QIapPrivate* const QIap::d_ptr [protected]

Private implementation of the API


The documentation for this class was generated from the following files:
 All Classes Functions Variables