|
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: CNcdPreminetProtocolDataEntityImpl declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NCD_PROTOCOL_ELEMENT_DATAENTITY_IMPL_H |
|
20 #define NCD_PROTOCOL_ELEMENT_DATAENTITY_IMPL_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "ncd_pp_dataentitycontent.h" |
|
24 #include "ncdprotocoltypes.h" |
|
25 |
|
26 class MNcdPreminetProtocolEntityDependency; |
|
27 |
|
28 class CNcdPreminetProtocolDataEntityContentImpl |
|
29 : public CBase, public MNcdPreminetProtocolDataEntityContent |
|
30 { |
|
31 |
|
32 public: |
|
33 |
|
34 static CNcdPreminetProtocolDataEntityContentImpl* NewL(); |
|
35 static CNcdPreminetProtocolDataEntityContentImpl* NewLC(); |
|
36 |
|
37 virtual ~CNcdPreminetProtocolDataEntityContentImpl(); |
|
38 |
|
39 void ConstructL(); |
|
40 |
|
41 |
|
42 // From base class MNcdPreminetProtocolDataEntity |
|
43 |
|
44 /** |
|
45 * @see MNcdPreminetProtocolDataEntityContent |
|
46 */ |
|
47 virtual const TDesC& Timestamp() const; |
|
48 |
|
49 /** |
|
50 * @see MNcdPreminetProtocolDataEntityContent |
|
51 */ |
|
52 virtual TInt Size() const; |
|
53 |
|
54 /** |
|
55 * @see MNcdPreminetProtocolDataEntityContent |
|
56 */ |
|
57 virtual const TDesC& Mime() const; |
|
58 |
|
59 /** |
|
60 * @see MNcdPreminetProtocolDataEntityContent |
|
61 */ |
|
62 virtual const TDesC& Id() const; |
|
63 |
|
64 /** |
|
65 * @see MNcdPreminetProtocolDataEntityContent |
|
66 */ |
|
67 virtual const TDesC& Version() const; |
|
68 |
|
69 /** |
|
70 * @see MNcdPreminetProtocolDataEntityContent |
|
71 */ |
|
72 virtual TInt ValidUntilDelta() const; |
|
73 |
|
74 /** |
|
75 * @see MNcdPreminetProtocolDataEntityContent |
|
76 */ |
|
77 virtual TBool ValidUntilAutoUpdate() const; |
|
78 |
|
79 /** |
|
80 * @see MNcdPreminetProtocolDataEntityContent |
|
81 */ |
|
82 virtual TInt ContentPurposeCount() const; |
|
83 |
|
84 /** |
|
85 * @see MNcdPreminetProtocolDataEntityContent |
|
86 */ |
|
87 virtual const TDesC& ContentPurposeL(TInt aIndex) const; |
|
88 |
|
89 /** |
|
90 * @see MNcdPreminetProtocolDataEntityContent |
|
91 */ |
|
92 virtual TInt EntityDependencyCount() const; |
|
93 |
|
94 /** |
|
95 * @see MNcdPreminetProtocolDataEntityContent |
|
96 */ |
|
97 virtual const MNcdPreminetProtocolEntityDependency& |
|
98 EntityDependencyL(TInt aIndex) const; |
|
99 |
|
100 /** |
|
101 * @see MNcdPreminetProtocolDataEntityContent |
|
102 */ |
|
103 virtual TNcdSubscriptionType SubscriptionType() const; |
|
104 |
|
105 /** |
|
106 * @see MNcdPreminetProtocolDataEntityContent |
|
107 */ |
|
108 virtual TBool ChildViewable() const; |
|
109 |
|
110 /** |
|
111 * @see MNcdPreminetProtocolDataEntityContent |
|
112 */ |
|
113 virtual TBool ChildSeparatelyPurchasable() const; |
|
114 |
|
115 private: |
|
116 CNcdPreminetProtocolDataEntityContentImpl(); |
|
117 |
|
118 public: |
|
119 |
|
120 HBufC* iTimestamp; |
|
121 TInt iSize; |
|
122 HBufC* iMime; |
|
123 HBufC* iId; |
|
124 HBufC* iVersion; |
|
125 TInt iValidUntilDelta; |
|
126 TBool iValidUntilAutoUpdate; |
|
127 |
|
128 RPointerArray<HBufC> iContentPurposes; |
|
129 RPointerArray<MNcdPreminetProtocolEntityDependency> iEntityDependencies; |
|
130 |
|
131 TNcdSubscriptionType iSubscriptionType; |
|
132 TBool iChildViewable; |
|
133 TBool iChildSeparatelyPurchasable; |
|
134 |
|
135 |
|
136 }; |
|
137 |
|
138 #endif // NCD_PROTOCOL_ELEMENT_DATAENTITY_IMPL_H |