|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "ncdclientsubscription.h" |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 |
|
27 CNcdClientSubscription::CNcdClientSubscription() |
|
28 { |
|
29 } |
|
30 |
|
31 void CNcdClientSubscription::ConstructL() |
|
32 { |
|
33 } |
|
34 |
|
35 |
|
36 CNcdClientSubscription* CNcdClientSubscription::NewL() |
|
37 { |
|
38 CNcdClientSubscription* self = |
|
39 CNcdClientSubscription::NewLC(); |
|
40 CleanupStack::Pop( self ); |
|
41 return self; |
|
42 } |
|
43 |
|
44 |
|
45 CNcdClientSubscription* CNcdClientSubscription::NewLC() |
|
46 { |
|
47 CNcdClientSubscription* self = |
|
48 new( ELeave ) CNcdClientSubscription(); |
|
49 CleanupStack::PushL( self ); |
|
50 self->ConstructL(); |
|
51 return self; |
|
52 } |
|
53 |
|
54 |
|
55 CNcdClientSubscription::~CNcdClientSubscription() |
|
56 { |
|
57 delete iAmountOfCreditsCurrency; |
|
58 } |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 void CNcdClientSubscription::SetValidityDelta( |
|
66 TInt aValidityDelta ) |
|
67 { |
|
68 iValidityDelta = aValidityDelta; |
|
69 } |
|
70 |
|
71 void CNcdClientSubscription::SetValidityAutoUpdate( |
|
72 TBool aValidityAutoUpdate ) |
|
73 { |
|
74 iValidityAutoUpdate = aValidityAutoUpdate; |
|
75 } |
|
76 |
|
77 void CNcdClientSubscription::SetAmountOfCredits( |
|
78 TReal32 aAmountOfCredits ) |
|
79 { |
|
80 iAmountOfCredits = aAmountOfCredits; |
|
81 } |
|
82 |
|
83 void CNcdClientSubscription::SetAmountOfCreditsCurrency( |
|
84 HBufC* aAmountOfCreditsCurrency ) |
|
85 { |
|
86 delete iAmountOfCreditsCurrency; |
|
87 iAmountOfCreditsCurrency = aAmountOfCreditsCurrency; |
|
88 } |
|
89 |
|
90 void CNcdClientSubscription::SetNumberOfDownloads( |
|
91 TInt aNumberOfDownloads ) |
|
92 { |
|
93 iNumberOfDownloads = aNumberOfDownloads; |
|
94 } |