|
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_dataentity.h" |
|
24 #include "ncd_pp_iconimpl.h" |
|
25 #include "ncd_pp_skinimpl.h" |
|
26 #include "ncd_pp_download.h" |
|
27 #include "ncdprotocoltypes.h" |
|
28 |
|
29 class CNcdPreminetProtocolDataEntityImpl |
|
30 : public CBase, public MNcdPreminetProtocolDataEntity |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 static CNcdPreminetProtocolDataEntityImpl* NewL(); |
|
36 static CNcdPreminetProtocolDataEntityImpl* NewLC(); |
|
37 |
|
38 virtual ~CNcdPreminetProtocolDataEntityImpl(); |
|
39 |
|
40 void ConstructL(); |
|
41 |
|
42 // From base class MNcdPreminetProtocolDataEntity |
|
43 |
|
44 /** |
|
45 * @see MNcdPreminetProtocolDataEntity |
|
46 */ |
|
47 virtual TNcdDataEntityType Type() const; |
|
48 |
|
49 /** |
|
50 * @see MNcdPreminetProtocolDataEntity |
|
51 */ |
|
52 virtual const TDesC& Id() const; |
|
53 |
|
54 /** |
|
55 * @see MNcdPreminetProtocolDataEntity |
|
56 */ |
|
57 virtual const TDesC& Timestamp() const; |
|
58 |
|
59 /** |
|
60 * @see MNcdPreminetProtocolDataEntity |
|
61 */ |
|
62 virtual const TDesC& Namespace() const; |
|
63 |
|
64 /** |
|
65 * @see MNcdPreminetProtocolDataEntity |
|
66 */ |
|
67 virtual const TDesC& ServerUri() const; |
|
68 |
|
69 /** |
|
70 * @see MNcdPreminetProtocolDataEntity |
|
71 */ |
|
72 virtual const TDesC& Name() const; |
|
73 |
|
74 /** |
|
75 * @see MNcdPreminetProtocolDataEntity |
|
76 */ |
|
77 virtual const TDesC& Description() const; |
|
78 |
|
79 /** |
|
80 * @see MNcdPreminetProtocolDataEntity |
|
81 */ |
|
82 virtual const MNcdPreminetProtocolIcon* Icon() const; |
|
83 |
|
84 /** |
|
85 * @see MNcdPreminetProtocolDataEntity |
|
86 */ |
|
87 virtual const MNcdConfigurationProtocolQuery* Disclaimer() const; |
|
88 |
|
89 /** |
|
90 * @see MNcdPreminetProtocolDataEntity |
|
91 */ |
|
92 virtual const MNcdPreminetProtocolDownload* HelpInformation() const; |
|
93 |
|
94 /** |
|
95 * @see MNcdPreminetProtocolDataEntity |
|
96 */ |
|
97 virtual const MNcdPreminetProtocolDataEntityContent* |
|
98 DownloadableContent() const; |
|
99 |
|
100 /** |
|
101 * @see MNcdPreminetProtocolDataEntity |
|
102 */ |
|
103 virtual const MNcdPreminetProtocolDataEntityContent* |
|
104 SubscribableContent() const; |
|
105 |
|
106 /** |
|
107 * @see MNcdPreminetProtocolDataEntity |
|
108 */ |
|
109 virtual TInt PurchaseOptionCount() const; |
|
110 |
|
111 /** |
|
112 * @see MNcdPreminetProtocolDataEntity |
|
113 */ |
|
114 virtual const MNcdPreminetProtocolPurchaseOption& |
|
115 PurchaseOptionL(TInt aIndex) const; |
|
116 |
|
117 /** |
|
118 * @see MNcdPreminetProtocolDataEntity |
|
119 */ |
|
120 virtual const MNcdPreminetProtocolSkin* Skin() const; |
|
121 |
|
122 /** |
|
123 * @see MNcdPreminetProtocolDataEntity |
|
124 */ |
|
125 virtual const TDesC& LayoutType() const; |
|
126 |
|
127 /** |
|
128 * @see MNcdPreminetProtocolDataEntity |
|
129 */ |
|
130 virtual TInt ScreenshotCount() const; |
|
131 |
|
132 /** |
|
133 * @see MNcdPreminetProtocolDataEntity |
|
134 */ |
|
135 virtual const MNcdPreminetProtocolDownload& |
|
136 ScreenshotL(TInt aIndex) const; |
|
137 |
|
138 /** |
|
139 * @see MNcdPreminetProtocolDataEntity |
|
140 */ |
|
141 virtual TInt PreviewCount() const; |
|
142 |
|
143 /** |
|
144 * @see MNcdPreminetProtocolDataEntity |
|
145 */ |
|
146 virtual const MNcdPreminetProtocolDownload& |
|
147 PreviewL(TInt aIndex) const; |
|
148 |
|
149 /** |
|
150 * @see MNcdPreminetProtocolDataEntity |
|
151 */ |
|
152 virtual const MNcdConfigurationProtocolQuery* |
|
153 MoreInfo() const; |
|
154 |
|
155 /** |
|
156 * @see MNcdPreminetProtocolDataEntity |
|
157 */ |
|
158 virtual TInt DetailCount() const; |
|
159 |
|
160 /** |
|
161 * @see MNcdPreminetProtocolDataEntity |
|
162 */ |
|
163 virtual const MNcdConfigurationProtocolDetail& DetailL( TInt aIndex ) const; |
|
164 |
|
165 |
|
166 public: |
|
167 |
|
168 HBufC* iId; |
|
169 HBufC* iTimestamp; |
|
170 HBufC* iNamespace; |
|
171 HBufC* iServerUri; |
|
172 HBufC* iName; |
|
173 HBufC* iDescription; |
|
174 MNcdConfigurationProtocolQuery* iDisclaimer; |
|
175 //MNcdConfigurationProtocolQuery* iHelpInformation; |
|
176 CNcdPreminetProtocolIcon* iIcon; |
|
177 TNcdDataEntityType iType; |
|
178 RPointerArray<MNcdPreminetProtocolPurchaseOption> iPurchaseOptions; |
|
179 RPointerArray<MNcdPreminetProtocolDownload> iScreenshots; |
|
180 RPointerArray<MNcdPreminetProtocolDownload> iPreviews; |
|
181 MNcdPreminetProtocolDataEntityContent* iDownloadableContent; |
|
182 MNcdPreminetProtocolDataEntityContent* iSubscribableContent; |
|
183 CArrayPtr<MNcdConfigurationProtocolDetail>* iDetails; |
|
184 |
|
185 |
|
186 // FolderData stuff |
|
187 CNcdPreminetProtocolSkin* iSkin; |
|
188 HBufC* iLayoutType; |
|
189 MNcdConfigurationProtocolQuery* iMoreInfo; |
|
190 }; |
|
191 |
|
192 #endif // NCD_PROTOCOL_ELEMENT_DATAENTITY_IMPL_H |