|
1 /* |
|
2 * Copyright (c) 2002-2005 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 FILES =================================================== |
|
20 |
|
21 #include "AiFwTestControllerPlugin2.h" |
|
22 #include <e32std.h> |
|
23 |
|
24 #include "AiFwTestDefines.h" |
|
25 #include "AiFwTestContentModel.h" |
|
26 |
|
27 using namespace AiTestUiController2; |
|
28 |
|
29 |
|
30 // ========== EXTERNAL DATA STRUCTURES ======================================== |
|
31 |
|
32 // ========== EXTERNAL FUNCTION PROTOTYPES ==================================== |
|
33 |
|
34 // ========== CONSTANTS ======================================================= |
|
35 |
|
36 // ========== MACROS ========================================================== |
|
37 |
|
38 // ========== LOCAL CONSTANTS AND MACROS ====================================== |
|
39 |
|
40 // ========== MODULE DATA STRUCTURES ========================================== |
|
41 |
|
42 // ========== LOCAL FUNCTION PROTOTYPES ======================================= |
|
43 |
|
44 // ========== FORWARD DECLARATIONS ============================================ |
|
45 |
|
46 // ========== LOCAL FUNCTIONS ================================================= |
|
47 |
|
48 // ========== MEMBER FUNCTIONS ================================================ |
|
49 |
|
50 // ---------------------------------------------------------------------------- |
|
51 // |
|
52 // |
|
53 // |
|
54 // ---------------------------------------------------------------------------- |
|
55 // |
|
56 CAiFwTestControllerPlugin2::CAiFwTestControllerPlugin2() |
|
57 { |
|
58 } |
|
59 |
|
60 // ---------------------------------------------------------------------------- |
|
61 // |
|
62 // |
|
63 // |
|
64 // ---------------------------------------------------------------------------- |
|
65 // |
|
66 void CAiFwTestControllerPlugin2::ConstructL() |
|
67 { |
|
68 User::Leave( KErrNotFound ); |
|
69 } |
|
70 |
|
71 // ---------------------------------------------------------------------------- |
|
72 // |
|
73 // |
|
74 // |
|
75 // ---------------------------------------------------------------------------- |
|
76 // |
|
77 CAiFwTestControllerPlugin2* CAiFwTestControllerPlugin2::NewL() |
|
78 { |
|
79 CAiFwTestControllerPlugin2* self = new (ELeave) CAiFwTestControllerPlugin2(); |
|
80 |
|
81 CleanupStack::PushL( self ); |
|
82 self->ConstructL(); |
|
83 CleanupStack::Pop(); |
|
84 |
|
85 return self; |
|
86 } |
|
87 |
|
88 // ---------------------------------------------------------------------------- |
|
89 // |
|
90 // |
|
91 // |
|
92 // ---------------------------------------------------------------------------- |
|
93 // |
|
94 CAiFwTestControllerPlugin2::~CAiFwTestControllerPlugin2() |
|
95 { |
|
96 } |
|
97 |
|
98 // ---------------------------------------------------------------------------- |
|
99 // |
|
100 // |
|
101 // |
|
102 // ---------------------------------------------------------------------------- |
|
103 // |
|
104 TInt CAiFwTestControllerPlugin2::StartTransaction(TInt /*aTxId*/) |
|
105 { |
|
106 return 0; |
|
107 } |
|
108 |
|
109 // ---------------------------------------------------------------------------- |
|
110 // |
|
111 // |
|
112 // |
|
113 // ---------------------------------------------------------------------------- |
|
114 // |
|
115 TInt CAiFwTestControllerPlugin2::Commit(TInt /*aTxId*/) |
|
116 { |
|
117 return 0; |
|
118 } |
|
119 |
|
120 // ---------------------------------------------------------------------------- |
|
121 // |
|
122 // |
|
123 // |
|
124 // ---------------------------------------------------------------------------- |
|
125 // |
|
126 TInt CAiFwTestControllerPlugin2::CancelTransaction(TInt /*aTxId*/) |
|
127 { |
|
128 return 0; |
|
129 } |
|
130 |
|
131 TBool CAiFwTestControllerPlugin2::CanPublish( MAiPropertyExtension& /*aPlugin*/, |
|
132 TInt /*aContent*/, |
|
133 TInt /*aIndex*/ ) |
|
134 { |
|
135 return EFalse; |
|
136 } |
|
137 |
|
138 // ---------------------------------------------------------------------------- |
|
139 // |
|
140 // |
|
141 // |
|
142 // ---------------------------------------------------------------------------- |
|
143 // |
|
144 TInt CAiFwTestControllerPlugin2::Publish( MAiPropertyExtension& /*aPlugin*/, |
|
145 TInt /*aContent*/, TInt /*aResource*/, TInt /*aIndex*/ ) |
|
146 { |
|
147 return 0; |
|
148 } |
|
149 |
|
150 // ---------------------------------------------------------------------------- |
|
151 // |
|
152 // |
|
153 // |
|
154 // ---------------------------------------------------------------------------- |
|
155 // |
|
156 TInt CAiFwTestControllerPlugin2::Publish( MAiPropertyExtension& /*aPlugin*/, |
|
157 TInt /*aContent*/, const TDesC16& /*aBuf*/, TInt /*aIndex */) |
|
158 { |
|
159 |
|
160 return 0; |
|
161 } |
|
162 |
|
163 // ---------------------------------------------------------------------------- |
|
164 // |
|
165 // |
|
166 // |
|
167 // ---------------------------------------------------------------------------- |
|
168 // |
|
169 TInt CAiFwTestControllerPlugin2::Publish( MAiPropertyExtension& /*aPlugin*/, |
|
170 TInt /*aContent*/, const TDesC8& /*aBuf*/, TInt /*aIndex */) |
|
171 { |
|
172 |
|
173 return 0; |
|
174 } |
|
175 |
|
176 // ---------------------------------------------------------------------------- |
|
177 // |
|
178 // |
|
179 // |
|
180 // ---------------------------------------------------------------------------- |
|
181 // |
|
182 TInt CAiFwTestControllerPlugin2::Publish( MAiPropertyExtension& /*aPlugin*/, |
|
183 TInt /*aContent*/, RFile& /*aFile*/, TInt /*aIndex*/ ) |
|
184 { |
|
185 // TODO: get content from aFile. |
|
186 |
|
187 return 0; |
|
188 } |
|
189 |
|
190 // ---------------------------------------------------------------------------- |
|
191 // |
|
192 // |
|
193 // |
|
194 // ---------------------------------------------------------------------------- |
|
195 // |
|
196 TInt CAiFwTestControllerPlugin2::Clean( MAiPropertyExtension& /*aPlugin*/, TInt /*aContent*/, TInt /*aIndex*/ ) |
|
197 { |
|
198 // TODO: clean content. |
|
199 |
|
200 return 0; |
|
201 } |
|
202 |
|
203 // ---------------------------------------------------------------------------- |
|
204 // |
|
205 // |
|
206 // |
|
207 // ---------------------------------------------------------------------------- |
|
208 // |
|
209 TAny* CAiFwTestControllerPlugin2::Extension( TUid /*aUid*/ ) |
|
210 { |
|
211 return NULL; |
|
212 } |
|
213 |
|
214 // ---------------------------------------------------------------------------- |
|
215 // |
|
216 // |
|
217 // |
|
218 // ---------------------------------------------------------------------------- |
|
219 // |
|
220 TBool CAiFwTestControllerPlugin2::RequiresSubscription( const TAiPublisherInfo& aPublisherInfo ) const |
|
221 { |
|
222 return EFalse; |
|
223 } |
|
224 |
|
225 // ---------------------------------------------------------------------------- |
|
226 // |
|
227 // |
|
228 // |
|
229 // ---------------------------------------------------------------------------- |
|
230 // |
|
231 void CAiFwTestControllerPlugin2::LoadUIDefinitionL() |
|
232 { |
|
233 iDefinitionLoaded = ETrue; |
|
234 } |
|
235 |
|
236 // ---------------------------------------------------------------------------- |
|
237 // |
|
238 // |
|
239 // |
|
240 // ---------------------------------------------------------------------------- |
|
241 // |
|
242 void CAiFwTestControllerPlugin2::GetPluginsL( RAiPublisherInfoArray& /*aPlugins */) |
|
243 { |
|
244 } |
|
245 |
|
246 void CAiFwTestControllerPlugin2::GetSettingsL(const TAiPublisherInfo& /*aPubInfo*/, RAiSettingsItemArray& /*aSettings*/) |
|
247 { |
|
248 } |
|
249 |
|
250 // ---------------------------------------------------------------------------- |
|
251 // |
|
252 // |
|
253 // |
|
254 // ---------------------------------------------------------------------------- |
|
255 // |
|
256 void CAiFwTestControllerPlugin2::RunApplicationL() |
|
257 { |
|
258 } |
|
259 |
|
260 // ---------------------------------------------------------------------------- |
|
261 // |
|
262 // |
|
263 // |
|
264 // ---------------------------------------------------------------------------- |
|
265 // |
|
266 void CAiFwTestControllerPlugin2::ActivateUI() |
|
267 { |
|
268 iUiActivated = ETrue; |
|
269 } |
|
270 |
|
271 // ---------------------------------------------------------------------------- |
|
272 // |
|
273 // |
|
274 // |
|
275 // ---------------------------------------------------------------------------- |
|
276 // |
|
277 MAiContentObserver& CAiFwTestControllerPlugin2::GetContentObserver() |
|
278 { |
|
279 return *this; |
|
280 } |
|
281 |
|
282 // ---------------------------------------------------------------------------- |
|
283 // |
|
284 // |
|
285 // |
|
286 // ---------------------------------------------------------------------------- |
|
287 // |
|
288 void CAiFwTestControllerPlugin2::SetText( const TDesC8& /*aId*/, TPtrC8& /*aBuf*/ ) |
|
289 { |
|
290 } |
|
291 |
|
292 // ---------------------------------------------------------------------------- |
|
293 // |
|
294 // |
|
295 // |
|
296 // ---------------------------------------------------------------------------- |
|
297 // |
|
298 const TDesC* CAiFwTestControllerPlugin2::GetText( const TDesC8& /*aId*/ ) |
|
299 { |
|
300 return NULL; |
|
301 } |
|
302 |
|
303 void CAiFwTestControllerPlugin2::SetEventHandler(MAiFwEventHandler& aEventHandler) |
|
304 { |
|
305 iFwEventHandler = &aEventHandler; |
|
306 } |
|
307 |
|
308 // ========== OTHER EXPORTED FUNCTIONS ======================================== |
|
309 |
|
310 // End of File. |