|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: CNcdPreminetProtocolPurchaseOptionImpl declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCD_PREMINET_PROTOCOL_SUBSCRIPTIONDETAILS_IMPL_H |
|
20 #define NCD_PREMINET_PROTOCOL_SUBSCRIPTIONDETAILS_IMPL_H |
|
21 |
|
22 #include "ncd_pp_subscriptiondetails.h" |
|
23 #include "ncdprotocoltypes.h" |
|
24 |
|
25 class CNcdPreminetProtocolSubscriptionDetailsImpl |
|
26 : public CBase, public MNcdPreminetProtocolSubscriptionDetails |
|
27 { |
|
28 |
|
29 public: |
|
30 |
|
31 static CNcdPreminetProtocolSubscriptionDetailsImpl* NewL(); |
|
32 static CNcdPreminetProtocolSubscriptionDetailsImpl* NewLC(); |
|
33 |
|
34 virtual ~CNcdPreminetProtocolSubscriptionDetailsImpl(); |
|
35 |
|
36 void ConstructL(); |
|
37 |
|
38 |
|
39 // From base class MNcdPreminetProtocolSubscriptionDetails |
|
40 |
|
41 /** |
|
42 * Subscription details of this purchase. |
|
43 */ |
|
44 virtual TInt ValidityDelta() const; |
|
45 virtual TBool ValidityAutoUpdate() const; |
|
46 virtual TReal32 AmountOfCredits() const; |
|
47 virtual const TDesC& AmountOfCreditsCurrency() const; |
|
48 virtual TInt NumberOfDownloads() const; |
|
49 |
|
50 |
|
51 private: |
|
52 CNcdPreminetProtocolSubscriptionDetailsImpl(); |
|
53 |
|
54 public: |
|
55 |
|
56 // subscription details |
|
57 TInt iValidityDelta; |
|
58 TBool iValidityAutoUpdate; |
|
59 TReal32 iAmountOfCredits; |
|
60 HBufC* iAmountOfCreditsCurrency; |
|
61 TInt iNumberOfDownloads; |
|
62 }; |
|
63 |
|
64 #endif // NCD_PREMINET_PROTOCOL_SUBSCRIPTIONDETAILS_IMPL_H |