class MNcdSubscription : public MCatalogsBase |
Subscription interface.
This interface describes a subscription and provides methods for subscription management.
Public Member Functions | |
---|---|
TBool | CreditLimit ( TReal &, TReal &) |
TBool | DownloadLimit ( TInt &, TInt &) |
HBufC8 * | IconL () |
TBool | IsObsolete () |
const TDesC & | Name () |
MNcdNode * | OriginNodeL () |
const TDesC & | OriginPurchaseOptionId () |
TStatus | SubscriptionStatus () |
TType | SubscriptionType () |
MNcdSubscriptionOperation * | UnsubscribeL (MNcdSubscriptionOperationObserver &) |
TBool | Unsubscribed () |
TBool | ValidityTime ( TTime &) |
Protected Member Functions | |
---|---|
~MNcdSubscription () |
Public Member Enumerations | |
---|---|
enum | TStatus { ESubscriptionActive , ESubscriptionExpired } |
enum | TType { EPeriodic , EAutomaticContinous } |
Inherited Enumerations | |
---|---|
MCatalogsBase:@52 |
~MNcdSubscription | ( | ) | [protected, inline, virtual] |
Destructor
Protected so that the implementing object cannot be deleted through this interface by using delete. The destructor of an interface should be set virtual to make sure that the destructors of derived classes will be called when object is destroyed.
TBool | CreditLimit | ( | TReal & | aCreditsLeft, |
TReal & | aTotalCredits | |||
) | const [pure virtual] |
Get subscription credit limit information.
TBool | DownloadLimit | ( | TInt & | aDownloadsLeft, |
TInt & | aTotalDownloads | |||
) | const [pure virtual] |
Get subscription download limit information.
HBufC8 * | IconL | ( | ) | const [pure virtual] |
Icon getter.
Leave |
with KNcdErrorObsolete if this subscription is obsolete. Otherwise leave with System wide error code. |
TBool | IsObsolete | ( | ) | const [pure virtual] |
Checks whether this subscription is obsolete or not. Subscription becomes obsolete if it is removed while user still has reference to it. Removal can be done for example because the subscription was removed from the server. Obsolete subscription should not be used and valid subscription instances should be retrieved by using SubscriptionsL method from MNcdSubscriptionManager interface.
MNcdNode * | OriginNodeL | ( | ) | const [pure virtual] |
Returns the node that has the purchase option which was used to buy this subscription.
Leave |
with KNcdErrorObsolete if this subscription is obsolete. Otherwise leave with System wide error code. |
const TDesC & | OriginPurchaseOptionId | ( | ) | const [pure virtual] |
Returns an id that identifies the purchaseoption that was used to buy this subscription. Node that has the purchase option identified by the id returned from this function can be queried by using method OriginNodeL() of this class.
TStatus | SubscriptionStatus | ( | ) | const [pure virtual] |
Returns the current status for the subscription.
MNcdSubscriptionOperation * | UnsubscribeL | ( | MNcdSubscriptionOperationObserver & | aObserver | ) | [pure virtual] |
Unsubscribe a currently valid subscription.
Leave |
with KNcdErrorObsolete if this subscription is obsolete. Otherwise leave with System wide error code. |
MNcdSubscriptionOperationObserver & aObserver | Operation observer interface. |
TBool | Unsubscribed | ( | ) | const [pure virtual] |
Returns whether the subscription has been unsubscribed or not.
TBool | ValidityTime | ( | TTime & | aValidUntil | ) | const [pure virtual] |
Get subscription validity time information.
TTime & aValidUntil | Set to time when the subscription expires, if ETrue is returned, otherwise not used. Time given is in local time. |
Status of the subscription.
ESubscriptionActive |
Subscription has been purchased and is still active (validity time/credits/downloads left). |
ESubscriptionExpired |
Subscription has been purchased, but has expired (out of validity time/credits/downloads). |
Type of the subscription renewal method.
EPeriodic |
Requires an explicit renewal after expiration. |
EAutomaticContinous |
Renewed automatically on server side after expiration. |
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.