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] |
Member Function Documentation
QByteArray QIap::getDRMFileContent |
( |
QString |
productID, |
|
|
QString |
fileName | |
|
) |
| | |
Get DRM file content if the device can access the encrypted file.
- Parameters:
-
bool QIap::isPurchased |
( |
QString |
fileName |
) |
|
- Parameters:
-
- Returns:
- true if file is purchased
int QIap::purchaseProductByID |
( |
QString |
productId, |
|
|
IAPClient::ForceRestorationFlag |
restoration = IAPClient::ForcedAutomaticRestoration | |
|
) |
| | |
Purchase a product by In-app ID.
- Parameters:
-
int QIap::purchaseProductByName |
( |
QString |
productName, |
|
|
IAPClient::ForceRestorationFlag |
restoration = IAPClient::ForcedAutomaticRestoration | |
|
) |
| | |
Purchase a product by product name ( info field ).
- Parameters:
-
Member Data Documentation
Private implementation of the API
The documentation for this class was generated from the following files: