|
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: ?description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCD_CLIENT_PART_OF_SUBSCRIPTION |
|
20 #define C_NCD_CLIENT_PART_OF_SUBSCRIPTION |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 |
|
25 |
|
26 /** |
|
27 * Class to represent partofsubscription part of purchaseoption. |
|
28 * |
|
29 * Client-side class to represent a partofsubscription part of |
|
30 * a purchaseoption. |
|
31 * |
|
32 * @lib ?library |
|
33 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
34 */ |
|
35 class CNcdClientPartOfSubscription : public CBase |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 static CNcdClientPartOfSubscription* NewL(); |
|
41 |
|
42 static CNcdClientPartOfSubscription* NewLC(); |
|
43 |
|
44 virtual ~CNcdClientPartOfSubscription(); |
|
45 |
|
46 /* |
|
47 * Setters for part of subscription data. |
|
48 */ |
|
49 void SetParentEntityId( HBufC* aParentEntityId ); |
|
50 void SetParentPurchaseOptionId( HBufC* aParentPurchaseOptionId ); |
|
51 void SetCreditPrice( TReal32 aCreditPrice ); |
|
52 |
|
53 /* |
|
54 * Getters for part of subscription data. |
|
55 */ |
|
56 const TDesC& ParentEntityId() const; |
|
57 const TDesC& ParentPurchaseOptionId() const; |
|
58 TReal32 CreditPrice() const; |
|
59 |
|
60 protected: |
|
61 |
|
62 CNcdClientPartOfSubscription(); |
|
63 |
|
64 void ConstructL(); |
|
65 |
|
66 private: |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 private: // data |
|
72 |
|
73 /* |
|
74 * Part of subscription data. |
|
75 * Own. |
|
76 */ |
|
77 HBufC* iParentEntityId; |
|
78 HBufC* iParentPurchaseOptionId; |
|
79 TReal32 iCreditPrice; |
|
80 |
|
81 |
|
82 }; |
|
83 |
|
84 |
|
85 |
|
86 #endif // C_NCD_CLIENT_PART_OF_SUBSCRIPTION |