class MNcdNodePurchase : public MCatalogsBase |
Provides functions for the purchase process of the node content. There may be multiple purchase options for the content. And every purchase option may have multiple payment methods.
After the node has been purchased the content has to be downloaded. Downloading may be done by using the download interface functions.
Public Member Functions | |
---|---|
TBool | IsPurchased() |
MNcdPurchaseOperation * | PurchaseL(MNcdPurchaseOption &, MNcdPurchaseOperationObserver &) |
MNcdPurchaseOption * | PurchaseOptionL(const TDesC &) |
RCatalogsArray< MNcdPurchaseOption > | PurchaseOptionsL() |
MNcdPurchaseOption * | PurchasedOptionL() |
const TDesC & | PurchasedPriceL() |
TTime | TimeOfPurchaseL() |
Protected Member Functions | |
---|---|
~MNcdNodePurchase() |
Inherited Enumerations | |
---|---|
MCatalogsBase:@46 |
MNcdPurchaseOperation * | PurchaseL | ( | MNcdPurchaseOption & | aPurchaseOption, |
MNcdPurchaseOperationObserver & | aObserver | |||
) | [pure virtual] |
Starts the purchase operation for the given purchase option.
The reference count of the operation object is increased by one. So, Release function of the operation should be called when operation is not needed anymore.
Leave |
with KNcdErrorObsolete if the given purchase option is obsolete. Leave with KNcdErrorSubscriptionNotSubscribableAnymore if the validity time, which indicates that the subscription is subscribable, has already passed. Leave with KNcdErrorParallelOperationNotAllowed if a parallel client is running an operation for the same metadata. See MNcdOperation for full explanation. Else leave with system wide error code. |
MNcdPurchaseOption & aPurchaseOption | The purchase option that is used for purchasing. |
MNcdPurchaseOperationObserver & aObserver | Observer for the operation. |
MNcdPurchaseOption * | PurchaseOptionL | ( | const TDesC & | aPurchaseOptionId | ) | const [pure virtual] |
Gives a purchase option whose id matches given purchase option id.
Leave |
System wide error codes. |
const TDesC & aPurchaseOptionId |
RCatalogsArray< MNcdPurchaseOption > | PurchaseOptionsL | ( | ) | const [pure virtual] |
Gives the available purchase options for the node.
This function should be called to get current and valid list of purchaseoptions after node's state changes.
Leave |
System wide error codes. |
MNcdPurchaseOption * | PurchasedOptionL | ( | ) | const [pure virtual] |
Returns the purchased purchase option.
Valid only when IsPurchased() returns ETrue.
Leave |
System wide error code. |
const TDesC & | PurchasedPriceL | ( | ) | const [pure virtual] |
Gives the final price paid when the node was purchased.
Valid only when IsPurchased() returns ETrue.
KErrNotFound |
If the node has not been purchased. |
Leave |
System wide error codes. |
TTime | TimeOfPurchaseL | ( | ) | const [pure virtual] |
Gives the time of the purchase if the node has been purchased. Time given is in universal time.
Valid only when IsPurchased() returns ETrue.
KErrNotFound |
If the node has not been purchased. |
Leave |
System wide error codes. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.