author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 20:54:53 +0300 | |
branch | RCL_3 |
changeset 21 | 9da50d567e3c |
parent 20 | f4a778e096c2 |
permissions | -rw-r--r-- |
20 | 1 |
/* |
2 |
* Copyright (c) 2008 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: Phonebook2 command execution handler |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#include "CCCAppCommLauncherPbkCmd.h" |
|
20 |
#include "ccappcommlauncherplugin.h" |
|
21 |
||
22 |
#include <CPbk2ApplicationServices.h> |
|
23 |
#include <Pbk2DataCaging.hrh> |
|
24 |
#include <CPbk2CommandHandler.h> |
|
25 |
#include <CVPbkContactManager.h> |
|
26 |
#include <MVPbkContactLinkArray.h> |
|
27 |
#include <MVPbkContactStore.h> |
|
28 |
#include <MVPbkStoreContact.h> |
|
29 |
#include <MVPbkContactOperationBase.h> |
|
30 |
#include <MVPbkContactLink.h> |
|
31 |
#include <MPbk2Command.h> |
|
32 |
#include <Pbk2MenuFilteringFlags.hrh> |
|
33 |
#include <coemain.h> |
|
34 |
#include <aknnotewrappers.h> |
|
35 |
#include <StringLoader.h> |
|
21
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
36 |
#include <CPbk2CommandStore.h> |
20 | 37 |
|
38 |
_LIT(KPbk2CommandsDllResFileName, "Pbk2Commands.rsc"); |
|
39 |
_LIT(KPbk2UiControlsDllResFileName, "Pbk2UiControls.rsc"); |
|
40 |
_LIT(KPbk2CommonUiDllResFileName, "Pbk2CommonUi.rsc" ); |
|
41 |
||
42 |
/// Unnamed namespace for local definitions |
|
43 |
namespace |
|
44 |
{ |
|
45 |
const TInt KNumberOfContacts = 1; |
|
46 |
} // namespace |
|
47 |
||
48 |
// --------------------------------------------------------------------------- |
|
49 |
// CCCAppCommLauncherPbkCmd::CCCAppCommLauncherPbkCmd |
|
50 |
// --------------------------------------------------------------------------- |
|
51 |
// |
|
52 |
CCCAppCommLauncherPbkCmd::CCCAppCommLauncherPbkCmd( CCCAppCommLauncherPlugin& aPlugin ): |
|
53 |
iCommandsResourceFile( *CCoeEnv::Static() ), |
|
54 |
iUiControlsResourceFile( *CCoeEnv::Static() ), |
|
55 |
iCommonUiResourceFile( *CCoeEnv::Static() ), |
|
56 |
iPlugin( aPlugin ) |
|
57 |
{ |
|
58 |
} |
|
59 |
||
60 |
||
61 |
// --------------------------------------------------------------------------- |
|
62 |
// CCCAppCommLauncherPbkCmd::ConstructL |
|
63 |
// --------------------------------------------------------------------------- |
|
64 |
// |
|
65 |
void CCCAppCommLauncherPbkCmd::ConstructL() |
|
66 |
{ |
|
67 |
PreparePbk2ApplicationServicesL(); |
|
68 |
iCommandHandler = CPbk2CommandHandler::NewL(); |
|
69 |
iCommandHandler->AddMenuCommandObserver( *this ); |
|
70 |
} |
|
71 |
||
72 |
||
73 |
// --------------------------------------------------------------------------- |
|
74 |
// CCCAppCommLauncherPbkCmd::NewL |
|
75 |
// --------------------------------------------------------------------------- |
|
76 |
// |
|
77 |
CCCAppCommLauncherPbkCmd* CCCAppCommLauncherPbkCmd::NewL( CCCAppCommLauncherPlugin& aPlugin ) |
|
78 |
{ |
|
79 |
CCCAppCommLauncherPbkCmd* self = CCCAppCommLauncherPbkCmd::NewLC( aPlugin ); |
|
80 |
CleanupStack::Pop( self ); |
|
81 |
return self; |
|
82 |
} |
|
83 |
||
84 |
||
85 |
// --------------------------------------------------------------------------- |
|
86 |
// CCCAppCommLauncherPbkCmd::NewLC |
|
87 |
// --------------------------------------------------------------------------- |
|
88 |
// |
|
89 |
CCCAppCommLauncherPbkCmd* CCCAppCommLauncherPbkCmd::NewLC( CCCAppCommLauncherPlugin& aPlugin ) |
|
90 |
{ |
|
91 |
CCCAppCommLauncherPbkCmd* self = new( ELeave ) CCCAppCommLauncherPbkCmd( aPlugin ); |
|
92 |
CleanupStack::PushL( self ); |
|
93 |
self->ConstructL(); |
|
94 |
return self; |
|
95 |
} |
|
96 |
||
97 |
||
98 |
// --------------------------------------------------------------------------- |
|
99 |
// CCCAppCommLauncherPbkCmd::~CCCAppCommLauncherPbkCmd |
|
100 |
// --------------------------------------------------------------------------- |
|
101 |
// |
|
102 |
CCCAppCommLauncherPbkCmd::~CCCAppCommLauncherPbkCmd() |
|
103 |
{ |
|
104 |
if ( iCommand ) |
|
105 |
{ |
|
106 |
iCommand->ResetUiControl( *this ); |
|
107 |
} |
|
108 |
||
109 |
delete iStoreContact; |
|
110 |
if ( iCommandHandler ) |
|
111 |
{ |
|
112 |
iCommandHandler->RemoveMenuCommandObserver( *this ); |
|
113 |
} |
|
114 |
delete iCommandHandler; |
|
115 |
delete iLinks; |
|
116 |
delete iOperation; |
|
117 |
||
118 |
// Close contact store |
|
119 |
if( iContactStore ) |
|
120 |
{ |
|
121 |
iContactStore->Close( *this ); |
|
122 |
} |
|
123 |
||
124 |
Release( iAppServices ); |
|
125 |
||
126 |
iCommandsResourceFile.Close(); |
|
127 |
iUiControlsResourceFile.Close(); |
|
128 |
iCommonUiResourceFile.Close(); |
|
129 |
} |
|
130 |
||
131 |
// --------------------------------------------------------------------------- |
|
132 |
// CCCAppCommLauncherMenuHandler::PreparePbk2ApplicationServicesL |
|
133 |
// --------------------------------------------------------------------------- |
|
134 |
// |
|
135 |
void CCCAppCommLauncherPbkCmd::PreparePbk2ApplicationServicesL() |
|
136 |
{ |
|
137 |
iCommandsResourceFile.OpenL( |
|
138 |
KPbk2RomFileDrive, KDC_RESOURCE_FILES_DIR, KPbk2CommandsDllResFileName ); |
|
139 |
iUiControlsResourceFile.OpenL( |
|
140 |
KPbk2RomFileDrive, KDC_RESOURCE_FILES_DIR, KPbk2UiControlsDllResFileName ); |
|
141 |
iCommonUiResourceFile.OpenL( |
|
142 |
KPbk2RomFileDrive, KDC_RESOURCE_FILES_DIR, KPbk2CommonUiDllResFileName ); |
|
143 |
||
144 |
iAppServices = CPbk2ApplicationServices::InstanceL(); |
|
145 |
}; |
|
146 |
||
147 |
// --------------------------------------------------------------------------- |
|
148 |
// CCCAppCommLauncherMenuHandler::ExecutePbk2CmdAssignDefault |
|
149 |
// --------------------------------------------------------------------------- |
|
150 |
// |
|
151 |
void CCCAppCommLauncherPbkCmd::ExecutePbk2CmdAssignDefaultL( const TDesC8& aContact ) |
|
152 |
{ |
|
153 |
TCCAppCommandState& cmdState( iPlugin.CommandState() ); |
|
154 |
if ( !cmdState.IsRunning() ) |
|
155 |
{ |
|
156 |
cmdState.SetRunningAndPushCleanupL(); |
|
157 |
||
158 |
iPbk2CommandId = EPbk2CmdDefaultSettings; |
|
159 |
||
160 |
if( iLinks ) |
|
161 |
{ |
|
162 |
delete iLinks; |
|
163 |
iLinks = NULL; |
|
164 |
} |
|
165 |
||
166 |
iLinks = iAppServices->ContactManager().CreateLinksLC( aContact ); |
|
167 |
||
168 |
if ( iLinks && iLinks->Count() > 0 ) |
|
169 |
{ |
|
170 |
// operation completes by StoreReady, |
|
171 |
// StoreUnavailable or HandleStoreEventL |
|
172 |
(iLinks->At( 0 )).ContactStore().OpenL( *this ); |
|
173 |
} |
|
174 |
||
175 |
CleanupStack::Pop( 1 ); // iLinks (deleted in destructor) |
|
176 |
cmdState.PopCleanup(); |
|
177 |
} |
|
178 |
} |
|
179 |
||
180 |
// --------------------------------------------------------------------------- |
|
181 |
// CCCAppCommLauncherMenuHandler::ExecutePbk2CmdViewImageL |
|
182 |
// --------------------------------------------------------------------------- |
|
183 |
// |
|
184 |
void CCCAppCommLauncherPbkCmd::ExecutePbk2CmdViewImageL( const TDesC8& aContact ) |
|
185 |
{ |
|
186 |
TCCAppCommandState& cmdState( iPlugin.CommandState() ); |
|
187 |
if ( !cmdState.IsRunning() ) |
|
188 |
{ |
|
189 |
cmdState.SetRunningAndPushCleanupL(); |
|
190 |
||
191 |
iPbk2CommandId = EPbk2CmdViewImage; |
|
192 |
||
193 |
if( iLinks ) |
|
194 |
{ |
|
195 |
delete iLinks; |
|
196 |
iLinks = NULL; |
|
197 |
} |
|
198 |
||
199 |
iLinks = iAppServices->ContactManager().CreateLinksLC( aContact ); |
|
200 |
||
201 |
if ( iLinks && iLinks->Count() > 0 ) |
|
202 |
{ |
|
203 |
// operation completes by StoreReady, |
|
204 |
// StoreUnavailable or HandleStoreEventL |
|
205 |
(iLinks->At( 0 )).ContactStore().OpenL( *this ); |
|
206 |
} |
|
207 |
||
208 |
CleanupStack::Pop( 1 ); // iLinks (deleted in destructor) |
|
209 |
cmdState.PopCleanup(); |
|
210 |
} |
|
211 |
} |
|
212 |
||
213 |
// --------------------------------------------------------------------------- |
|
214 |
// CCCAppCommLauncherMenuHandler::ExecutePbk2CmdChangeImageL |
|
215 |
// --------------------------------------------------------------------------- |
|
216 |
// |
|
217 |
void CCCAppCommLauncherPbkCmd::ExecutePbk2CmdChangeImageL( const TDesC8& aContact ) |
|
218 |
{ |
|
219 |
TCCAppCommandState& cmdState( iPlugin.CommandState() ); |
|
220 |
if ( !cmdState.IsRunning() ) |
|
221 |
{ |
|
222 |
cmdState.SetRunningAndPushCleanupL(); |
|
223 |
||
224 |
iPbk2CommandId = EPbk2CmdChangeImage; |
|
225 |
||
226 |
if( iLinks ) |
|
227 |
{ |
|
228 |
delete iLinks; |
|
229 |
iLinks = NULL; |
|
230 |
} |
|
231 |
||
232 |
iLinks = iAppServices->ContactManager().CreateLinksLC( aContact ); |
|
233 |
||
234 |
if ( iLinks && iLinks->Count() > 0 ) |
|
235 |
{ |
|
236 |
// operation completes by StoreReady, |
|
237 |
// StoreUnavailable or HandleStoreEventL |
|
238 |
(iLinks->At( 0 )).ContactStore().OpenL( *this ); |
|
239 |
} |
|
240 |
||
241 |
CleanupStack::Pop( 1 ); // iLinks (deleted in destructor) |
|
242 |
cmdState.PopCleanup(); |
|
243 |
} |
|
244 |
} |
|
245 |
||
246 |
// --------------------------------------------------------------------------- |
|
247 |
// CCCAppCommLauncherMenuHandler::ExecutePbk2CmdRemoveImageL |
|
248 |
// --------------------------------------------------------------------------- |
|
249 |
// |
|
250 |
void CCCAppCommLauncherPbkCmd::ExecutePbk2CmdRemoveImageL( const TDesC8& aContact ) |
|
251 |
{ |
|
252 |
TCCAppCommandState& cmdState( iPlugin.CommandState() ); |
|
253 |
if ( !cmdState.IsRunning() ) |
|
254 |
{ |
|
255 |
cmdState.SetRunningAndPushCleanupL(); |
|
256 |
||
257 |
iPbk2CommandId = EPbk2CmdRemoveImage; |
|
258 |
||
259 |
if( iLinks ) |
|
260 |
{ |
|
261 |
delete iLinks; |
|
262 |
iLinks = NULL; |
|
263 |
} |
|
264 |
||
265 |
iLinks = iAppServices->ContactManager().CreateLinksLC( aContact ); |
|
266 |
||
267 |
if ( iLinks && iLinks->Count() > 0 ) |
|
268 |
{ |
|
269 |
// operation completes by StoreReady, |
|
270 |
// StoreUnavailable or HandleStoreEventL |
|
271 |
(iLinks->At( 0 )).ContactStore().OpenL( *this ); |
|
272 |
} |
|
273 |
||
274 |
CleanupStack::Pop( 1 ); // iLinks (deleted in destructor) |
|
275 |
cmdState.PopCleanup(); |
|
276 |
} |
|
277 |
} |
|
278 |
||
279 |
// --------------------------------------------------------------------------- |
|
280 |
// CCCAppCommLauncherMenuHandler::ExecutePbk2CmdAddImageL |
|
281 |
// --------------------------------------------------------------------------- |
|
282 |
// |
|
283 |
void CCCAppCommLauncherPbkCmd::ExecutePbk2CmdAddImageL( const TDesC8& aContact ) |
|
284 |
{ |
|
285 |
TCCAppCommandState& cmdState( iPlugin.CommandState() ); |
|
286 |
if ( !cmdState.IsRunning() ) |
|
287 |
{ |
|
288 |
cmdState.SetRunningAndPushCleanupL(); |
|
289 |
||
290 |
iPbk2CommandId = EPbk2CmdAddImage; |
|
291 |
||
292 |
if( iLinks ) |
|
293 |
{ |
|
294 |
delete iLinks; |
|
295 |
iLinks = NULL; |
|
296 |
} |
|
297 |
||
298 |
iLinks = iAppServices->ContactManager().CreateLinksLC( aContact ); |
|
299 |
||
300 |
if ( iLinks && iLinks->Count() > 0 ) |
|
301 |
{ |
|
302 |
// operation completes by StoreReady, |
|
303 |
// StoreUnavailable or HandleStoreEventL |
|
304 |
(iLinks->At( 0 )).ContactStore().OpenL( *this ); |
|
305 |
} |
|
306 |
||
307 |
CleanupStack::Pop( 1 ); // iLinks (deleted in destructor) |
|
308 |
cmdState.PopCleanup(); |
|
309 |
} |
|
310 |
} |
|
311 |
||
312 |
// --------------------------------------------------------------------------- |
|
313 |
// CCCAppCommLauncherMenuHandler::ExecutePbk2CmdShowOnMapL |
|
314 |
// --------------------------------------------------------------------------- |
|
315 |
// |
|
316 |
void CCCAppCommLauncherPbkCmd::ExecutePbk2CmdShowMapL( const HBufC8* aContact, |
|
317 |
TPbk2CommandId aCommandId ) |
|
318 |
{ |
|
319 |
TCCAppCommandState& cmdState( iPlugin.CommandState() ); |
|
320 |
if ( !cmdState.IsRunning() ) |
|
321 |
{ |
|
322 |
cmdState.SetRunningAndPushCleanupL(); |
|
323 |
||
324 |
iPbk2CommandId = aCommandId; |
|
325 |
||
326 |
if( iLinks ) |
|
327 |
{ |
|
328 |
delete iLinks; |
|
329 |
iLinks = NULL; |
|
330 |
} |
|
331 |
||
332 |
iLinks = iAppServices->ContactManager().CreateLinksLC( *aContact ); |
|
333 |
||
334 |
if ( iLinks->Count() > 0 ) |
|
335 |
{ |
|
336 |
// operation completes by StoreReady, |
|
337 |
// StoreUnavailable or HandleStoreEventL |
|
338 |
(iLinks->At( 0 )).ContactStore().OpenL( *this ); |
|
339 |
} |
|
340 |
||
341 |
CleanupStack::Pop( 1 ); // iLinks (deleted in destructor) |
|
342 |
cmdState.PopCleanup(); |
|
343 |
} |
|
344 |
} |
|
345 |
||
346 |
// --------------------------------------------------------------------------- |
|
347 |
// CCCAppCommLauncherMenuHandler::ExecutePbk2CmdDeleteL |
|
348 |
// --------------------------------------------------------------------------- |
|
349 |
// |
|
350 |
void CCCAppCommLauncherPbkCmd::ExecutePbk2CmdDeleteL( const TDesC8& aContact ) |
|
351 |
{ |
|
352 |
TCCAppCommandState& cmdState( iPlugin.CommandState() ); |
|
353 |
if ( !cmdState.IsRunning() ) |
|
354 |
{ |
|
355 |
cmdState.SetRunningAndPushCleanupL(); |
|
356 |
||
357 |
iPbk2CommandId = EPbk2CmdDeleteMe; |
|
358 |
||
359 |
if( iLinks ) |
|
360 |
{ |
|
361 |
delete iLinks; |
|
362 |
iLinks = NULL; |
|
363 |
} |
|
364 |
||
365 |
iLinks = iAppServices->ContactManager().CreateLinksLC( aContact ); |
|
366 |
||
367 |
if ( iLinks->Count() > 0 ) |
|
368 |
{ |
|
369 |
// operation completes by StoreReady, |
|
370 |
// StoreUnavailable or HandleStoreEventL |
|
371 |
( iLinks->At( 0 ) ).ContactStore().OpenL( *this ); |
|
372 |
} |
|
373 |
||
374 |
CleanupStack::Pop( 1 ); // iLinks (deleted in destructor) |
|
375 |
cmdState.PopCleanup(); |
|
376 |
} |
|
377 |
} |
|
378 |
||
379 |
// --------------------------------------------------------------------------- |
|
380 |
// CCCAppCommLauncherMenuHandler::HandleError |
|
381 |
// --------------------------------------------------------------------------- |
|
382 |
// |
|
383 |
void CCCAppCommLauncherPbkCmd::HandleError( TInt aError ) |
|
384 |
{ |
|
385 |
iPlugin.CommandState().SetNotRunning(); |
|
386 |
||
387 |
if( KErrNotSupported == aError && |
|
388 |
(TPbk2CommandId)EPbk2ExtensionShowOnMap == iPbk2CommandId ) |
|
389 |
{ |
|
390 |
// Show maps specifix error note |
|
391 |
HBufC* prompt = StringLoader::LoadLC( R_QTN_CCA_ERROR_NOTE_MAPS_NOT_FOUND ); |
|
392 |
CAknErrorNote* note = new ( ELeave ) CAknErrorNote( ETrue ); |
|
393 |
note->ExecuteLD( *prompt ); |
|
394 |
CleanupStack::PopAndDestroy( prompt ); |
|
395 |
} |
|
396 |
else |
|
397 |
{ |
|
398 |
CCoeEnv::Static()->HandleError( aError ); |
|
399 |
} |
|
400 |
} |
|
401 |
// --------------------------------------------------------------------------- |
|
402 |
// CCCAppCommLauncherPbkCmd::StoreReady |
|
403 |
// --------------------------------------------------------------------------- |
|
404 |
// |
|
405 |
void CCCAppCommLauncherPbkCmd::StoreReady( |
|
406 |
MVPbkContactStore& aContactStore ) |
|
407 |
{ |
|
408 |
iContactStore = &aContactStore; |
|
409 |
||
410 |
// operation completes by VPbkSingleContactOperationComplete |
|
411 |
// or VPbkSingleContactOperationFailed |
|
412 |
if( iOperation ) |
|
413 |
{ |
|
414 |
delete iOperation; |
|
415 |
iOperation = NULL; |
|
416 |
} |
|
417 |
||
418 |
TRAPD( err,iOperation = iAppServices->ContactManager().RetrieveContactL( iLinks->At( 0 ), *this ) ;) |
|
419 |
if( err != KErrNone ) |
|
420 |
{ |
|
421 |
HandleError( err ); |
|
422 |
} |
|
423 |
} |
|
424 |
||
425 |
// --------------------------------------------------------------------------- |
|
426 |
// CCCAppCommLauncherPbkCmd::StoreUnavailable |
|
427 |
// --------------------------------------------------------------------------- |
|
428 |
// |
|
429 |
void CCCAppCommLauncherPbkCmd::StoreUnavailable( |
|
430 |
MVPbkContactStore& /*aContactStore*/, |
|
431 |
TInt /*aReason*/) |
|
432 |
{ |
|
433 |
iPlugin.CommandState().SetNotRunning(); |
|
434 |
} |
|
435 |
||
436 |
// --------------------------------------------------------------------------- |
|
437 |
// CCCAppCommLauncherPbkCmd::HandleStoreEventL |
|
438 |
// --------------------------------------------------------------------------- |
|
439 |
// |
|
440 |
void CCCAppCommLauncherPbkCmd::HandleStoreEventL( |
|
441 |
MVPbkContactStore& /*aContactStore*/, |
|
442 |
TVPbkContactStoreEvent /*aStoreEvent*/) |
|
443 |
{ |
|
444 |
} |
|
445 |
||
446 |
// --------------------------------------------------------------------------- |
|
447 |
// CCCAppCommLauncherPbkCmd::VPbkSingleContactOperationComplete |
|
448 |
// --------------------------------------------------------------------------- |
|
449 |
// |
|
450 |
void CCCAppCommLauncherPbkCmd::VPbkSingleContactOperationComplete( |
|
451 |
MVPbkContactOperationBase& /*aOperation*/, |
|
452 |
MVPbkStoreContact* aContact ) |
|
453 |
{ |
|
454 |
delete iStoreContact; |
|
455 |
iStoreContact = aContact; |
|
456 |
||
457 |
TRAPD(err, iCommandHandler->HandleCommandL( |
|
458 |
iPbk2CommandId, *this, NULL );) |
|
459 |
if( err != KErrNone ) |
|
460 |
{ |
|
461 |
HandleError( err ); |
|
462 |
} |
|
463 |
} |
|
464 |
||
465 |
// --------------------------------------------------------------------------- |
|
466 |
// CCCAppCommLauncherPbkCmd::VPbkSingleContactOperationFailed |
|
467 |
// --------------------------------------------------------------------------- |
|
468 |
// |
|
469 |
void CCCAppCommLauncherPbkCmd::VPbkSingleContactOperationFailed( |
|
470 |
MVPbkContactOperationBase& /*aOperation*/, |
|
471 |
TInt /*aError*/ ) |
|
472 |
{ |
|
473 |
iPlugin.CommandState().SetNotRunning(); |
|
474 |
} |
|
475 |
||
476 |
// -------------------------------------------------------------------------- |
|
477 |
// CCCAppCommLauncherPbkCmd::ParentControl |
|
478 |
// -------------------------------------------------------------------------- |
|
479 |
// |
|
480 |
MPbk2ContactUiControl* CCCAppCommLauncherPbkCmd::ParentControl() const |
|
481 |
{ |
|
482 |
// Contact info control has no parent control |
|
483 |
return NULL; |
|
484 |
} |
|
485 |
||
486 |
// -------------------------------------------------------------------------- |
|
487 |
// CCCAppCommLauncherPbkCmd::NumberOfContacts |
|
488 |
// -------------------------------------------------------------------------- |
|
489 |
// |
|
490 |
TInt CCCAppCommLauncherPbkCmd::NumberOfContacts() const |
|
491 |
{ |
|
492 |
return KNumberOfContacts; |
|
493 |
} |
|
494 |
||
495 |
// -------------------------------------------------------------------------- |
|
496 |
// CCCAppCommLauncherPbkCmd::FocusedContactL |
|
497 |
// -------------------------------------------------------------------------- |
|
498 |
// |
|
499 |
const MVPbkBaseContact* CCCAppCommLauncherPbkCmd::FocusedContactL() const |
|
500 |
{ |
|
501 |
return STATIC_CAST(MVPbkBaseContact*, iStoreContact); |
|
502 |
} |
|
503 |
||
504 |
// -------------------------------------------------------------------------- |
|
505 |
// CCCAppCommLauncherPbkCmd::FocusedViewContactL |
|
506 |
// -------------------------------------------------------------------------- |
|
507 |
// |
|
508 |
const MVPbkViewContact* CCCAppCommLauncherPbkCmd::FocusedViewContactL() const |
|
509 |
{ |
|
510 |
return NULL; |
|
511 |
} |
|
512 |
||
513 |
// -------------------------------------------------------------------------- |
|
514 |
// CCCAppCommLauncherPbkCmd::FocusedStoreContact |
|
515 |
// -------------------------------------------------------------------------- |
|
516 |
// |
|
517 |
const MVPbkStoreContact* CCCAppCommLauncherPbkCmd::FocusedStoreContact() const |
|
518 |
{ |
|
519 |
return iStoreContact; |
|
520 |
} |
|
521 |
||
522 |
// -------------------------------------------------------------------------- |
|
523 |
// CCCAppCommLauncherPbkCmd::SetFocusedContactL |
|
524 |
// -------------------------------------------------------------------------- |
|
525 |
// |
|
526 |
void CCCAppCommLauncherPbkCmd::SetFocusedContactL( |
|
527 |
const MVPbkBaseContact& aContact) |
|
528 |
{ |
|
529 |
if (!iStoreContact->IsSame(aContact)) |
|
530 |
{ |
|
531 |
MVPbkContactLink* link = aContact.CreateLinkLC(); |
|
532 |
HBufC8* packed = link->PackLC(); |
|
533 |
||
534 |
// Update the CCA parameter contact data |
|
535 |
HBufC16* link16 = HBufC16::NewLC(packed->Length()); |
|
536 |
link16->Des().Copy(packed->Des()); |
|
537 |
iPlugin.AppEngine()->Parameter().SetContactDataL(link16->Des()); |
|
538 |
iPlugin.AppEngine()->CCAppContactEventL(); |
|
539 |
CleanupStack::PopAndDestroy(3); // link16, packed, link |
|
540 |
||
541 |
// Update the commlauncher the UI contact data |
|
542 |
iPlugin.ContactHandler().RefetchContactL(); |
|
543 |
iPlugin.Container().ContactsChangedL(); |
|
544 |
} |
|
545 |
} |
|
546 |
||
547 |
// -------------------------------------------------------------------------- |
|
548 |
// CCCAppCommLauncherPbkCmd::SetFocusedContactL |
|
549 |
// -------------------------------------------------------------------------- |
|
550 |
// |
|
551 |
void CCCAppCommLauncherPbkCmd::SetFocusedContactL( |
|
552 |
const MVPbkContactBookmark& /*aContactBookmark*/) |
|
553 |
{ |
|
554 |
// Do nothing |
|
555 |
} |
|
556 |
||
557 |
// -------------------------------------------------------------------------- |
|
558 |
// CCCAppCommLauncherPbkCmd::SetFocusedContactL |
|
559 |
// -------------------------------------------------------------------------- |
|
560 |
// |
|
561 |
void CCCAppCommLauncherPbkCmd::SetFocusedContactL( |
|
562 |
const MVPbkContactLink& /*aContactLink*/) |
|
563 |
{ |
|
564 |
// Do nothing |
|
565 |
} |
|
566 |
||
567 |
// -------------------------------------------------------------------------- |
|
568 |
// CCCAppCommLauncherPbkCmd::FocusedContactIndex |
|
569 |
// -------------------------------------------------------------------------- |
|
570 |
// |
|
571 |
TInt CCCAppCommLauncherPbkCmd::FocusedContactIndex() const |
|
572 |
{ |
|
573 |
return KErrNotFound; |
|
574 |
} |
|
575 |
||
576 |
// -------------------------------------------------------------------------- |
|
577 |
// CCCAppCommLauncherPbkCmd::SetFocusedContactIndexL |
|
578 |
// -------------------------------------------------------------------------- |
|
579 |
// |
|
580 |
void CCCAppCommLauncherPbkCmd::SetFocusedContactIndexL(TInt /*aIndex*/) |
|
581 |
{ |
|
582 |
// Do nothing |
|
583 |
} |
|
584 |
||
585 |
// -------------------------------------------------------------------------- |
|
586 |
// CCCAppCommLauncherPbkCmd::NumberOfContactFields |
|
587 |
// -------------------------------------------------------------------------- |
|
588 |
// |
|
589 |
TInt CCCAppCommLauncherPbkCmd::NumberOfContactFields() const |
|
590 |
{ |
|
591 |
TInt cnt = KErrNotSupported; |
|
592 |
return cnt; |
|
593 |
} |
|
594 |
||
595 |
// -------------------------------------------------------------------------- |
|
596 |
// CCCAppCommLauncherPbkCmd::FocusedField |
|
597 |
// -------------------------------------------------------------------------- |
|
598 |
// |
|
599 |
const MVPbkBaseContactField* CCCAppCommLauncherPbkCmd::FocusedField() const |
|
600 |
{ |
|
601 |
return NULL; |
|
602 |
} |
|
603 |
||
604 |
// -------------------------------------------------------------------------- |
|
605 |
// CCCAppCommLauncherPbkCmd::FocusedFieldIndex |
|
606 |
// -------------------------------------------------------------------------- |
|
607 |
// |
|
608 |
TInt CCCAppCommLauncherPbkCmd::FocusedFieldIndex() const |
|
609 |
{ |
|
610 |
return 0; |
|
611 |
} |
|
612 |
||
613 |
// -------------------------------------------------------------------------- |
|
614 |
// CCCAppCommLauncherPbkCmd::SetFocusedFieldIndex |
|
615 |
// -------------------------------------------------------------------------- |
|
616 |
// |
|
617 |
void CCCAppCommLauncherPbkCmd::SetFocusedFieldIndex(TInt /*aIndex*/) |
|
618 |
{ |
|
619 |
// Do nothing |
|
620 |
} |
|
621 |
||
622 |
// -------------------------------------------------------------------------- |
|
623 |
// CCCAppCommLauncherPbkCmd::ContactsMarked |
|
624 |
// -------------------------------------------------------------------------- |
|
625 |
// |
|
626 |
TBool CCCAppCommLauncherPbkCmd::ContactsMarked() const |
|
627 |
{ |
|
628 |
// This control does not support contacts marking |
|
629 |
return EFalse; |
|
630 |
} |
|
631 |
||
632 |
// -------------------------------------------------------------------------- |
|
633 |
// CCCAppCommLauncherPbkCmd::SelectedContactsL |
|
634 |
// -------------------------------------------------------------------------- |
|
635 |
// |
|
636 |
MVPbkContactLinkArray* CCCAppCommLauncherPbkCmd::SelectedContactsL() const |
|
637 |
{ |
|
638 |
// No selection support in contact info control |
|
639 |
return NULL; |
|
640 |
} |
|
641 |
||
642 |
// -------------------------------------------------------------------------- |
|
643 |
// CCCAppCommLauncherPbkCmd::SelectedContactsOrFocusedContactL |
|
644 |
// -------------------------------------------------------------------------- |
|
645 |
// |
|
646 |
MVPbkContactLinkArray* |
|
647 |
CCCAppCommLauncherPbkCmd::SelectedContactsOrFocusedContactL() const |
|
648 |
{ |
|
649 |
CVPbkContactLinkArray* array = CVPbkContactLinkArray::NewLC(); |
|
650 |
||
651 |
if ( iStoreContact ) |
|
652 |
{ |
|
653 |
MVPbkContactLink* link = iStoreContact->CreateLinkLC(); |
|
654 |
array->AppendL(link); |
|
655 |
CleanupStack::Pop(); // link |
|
656 |
} |
|
657 |
CleanupStack::Pop(); // array |
|
658 |
||
659 |
return array; |
|
660 |
} |
|
661 |
||
662 |
// -------------------------------------------------------------------------- |
|
663 |
// CCCAppCommLauncherPbkCmd::SelectedContactsIteratorL |
|
664 |
// -------------------------------------------------------------------------- |
|
665 |
// |
|
666 |
MPbk2ContactLinkIterator* |
|
667 |
CCCAppCommLauncherPbkCmd::SelectedContactsIteratorL() const |
|
668 |
{ |
|
669 |
// No selection support in contact info control |
|
670 |
return NULL; |
|
671 |
} |
|
672 |
||
673 |
// -------------------------------------------------------------------------- |
|
674 |
// CCCAppCommLauncherPbkCmd::SelectedContactStoresL |
|
675 |
// -------------------------------------------------------------------------- |
|
676 |
// |
|
677 |
CArrayPtr<MVPbkContactStore>* |
|
678 |
CCCAppCommLauncherPbkCmd::SelectedContactStoresL() const |
|
679 |
{ |
|
680 |
// This is not a contact store control |
|
681 |
return NULL; |
|
682 |
} |
|
683 |
||
684 |
// -------------------------------------------------------------------------- |
|
685 |
// CCCAppCommLauncherPbkCmd::ClearMarks |
|
686 |
// -------------------------------------------------------------------------- |
|
687 |
// |
|
688 |
void CCCAppCommLauncherPbkCmd::ClearMarks() |
|
689 |
{ |
|
690 |
// Do nothing |
|
691 |
} |
|
692 |
||
693 |
// -------------------------------------------------------------------------- |
|
694 |
// CCCAppCommLauncherPbkCmd::SetSelectedContactL |
|
695 |
// -------------------------------------------------------------------------- |
|
696 |
// |
|
697 |
void CCCAppCommLauncherPbkCmd::SetSelectedContactL( |
|
698 |
TInt /*aIndex*/, |
|
699 |
TBool /*aSelected*/) |
|
700 |
{ |
|
701 |
// Not supported in Contact Info |
|
702 |
} |
|
703 |
||
704 |
// -------------------------------------------------------------------------- |
|
705 |
// CCCAppCommLauncherPbkCmd::SetSelectedContactL |
|
706 |
// -------------------------------------------------------------------------- |
|
707 |
// |
|
708 |
void CCCAppCommLauncherPbkCmd::SetSelectedContactL( |
|
709 |
const MVPbkContactBookmark& /*aContactBookmark*/, |
|
710 |
TBool /*aSelected*/) |
|
711 |
{ |
|
712 |
// Not supported |
|
713 |
} |
|
714 |
||
715 |
// -------------------------------------------------------------------------- |
|
716 |
// CCCAppCommLauncherPbkCmd::SetSelectedContactL |
|
717 |
// -------------------------------------------------------------------------- |
|
718 |
// |
|
719 |
void CCCAppCommLauncherPbkCmd::SetSelectedContactL( |
|
720 |
const MVPbkContactLink& /*aContactLink*/, |
|
721 |
TBool /*aSelected*/) |
|
722 |
{ |
|
723 |
// Not supported |
|
724 |
} |
|
725 |
||
726 |
||
727 |
||
728 |
// -------------------------------------------------------------------------- |
|
729 |
// CCCAppCommLauncherPbkCmd::DynInitMenuPaneL |
|
730 |
// -------------------------------------------------------------------------- |
|
731 |
// |
|
732 |
void CCCAppCommLauncherPbkCmd::DynInitMenuPaneL( |
|
733 |
TInt /*aResourceId*/, |
|
734 |
CEikMenuPane* /*aMenuPane*/) const |
|
735 |
{ |
|
736 |
// Nothing to do |
|
737 |
} |
|
738 |
||
739 |
// -------------------------------------------------------------------------- |
|
740 |
// CCCAppCommLauncherPbkCmd::ProcessCommandL |
|
741 |
// -------------------------------------------------------------------------- |
|
742 |
// |
|
743 |
void CCCAppCommLauncherPbkCmd::ProcessCommandL(TInt /*aCommandId*/) const |
|
744 |
{ |
|
745 |
// Nothing to do |
|
746 |
} |
|
747 |
||
748 |
// -------------------------------------------------------------------------- |
|
749 |
// CCCAppCommLauncherPbkCmd::UpdateAfterCommandExecution |
|
750 |
// -------------------------------------------------------------------------- |
|
751 |
// |
|
752 |
void CCCAppCommLauncherPbkCmd::UpdateAfterCommandExecution() |
|
753 |
{ |
|
754 |
if( iCommand ) |
|
755 |
{ |
|
756 |
/// Reset command pointer, command has completed |
|
757 |
iCommand->ResetUiControl(*this); |
|
758 |
iCommand = NULL; |
|
759 |
} |
|
760 |
} |
|
761 |
||
762 |
// -------------------------------------------------------------------------- |
|
763 |
// CCCAppCommLauncherPbkCmd::GetMenuFilteringFlagsL |
|
764 |
// -------------------------------------------------------------------------- |
|
765 |
// |
|
766 |
TInt CCCAppCommLauncherPbkCmd::GetMenuFilteringFlagsL() const |
|
767 |
{ |
|
768 |
TInt ret = KPbk2MenuFilteringFlagsNone; |
|
769 |
return ret; |
|
770 |
} |
|
771 |
||
772 |
// -------------------------------------------------------------------------- |
|
773 |
// CCCAppCommLauncherPbkCmd::ControlStateL |
|
774 |
// -------------------------------------------------------------------------- |
|
775 |
// |
|
776 |
CPbk2ViewState* CCCAppCommLauncherPbkCmd::ControlStateL() const |
|
777 |
{ |
|
778 |
return NULL; |
|
779 |
} |
|
780 |
||
781 |
// -------------------------------------------------------------------------- |
|
782 |
// CCCAppCommLauncherPbkCmd::RestoreControlStateL |
|
783 |
// -------------------------------------------------------------------------- |
|
784 |
// |
|
785 |
void CCCAppCommLauncherPbkCmd::RestoreControlStateL( |
|
786 |
CPbk2ViewState* /*aState*/) |
|
787 |
{ |
|
788 |
// Do nothing |
|
789 |
} |
|
790 |
||
791 |
// -------------------------------------------------------------------------- |
|
792 |
// CCCAppCommLauncherPbkCmd::FindTextL |
|
793 |
// -------------------------------------------------------------------------- |
|
794 |
// |
|
795 |
const TDesC& CCCAppCommLauncherPbkCmd::FindTextL() |
|
796 |
{ |
|
797 |
// No find box in this control |
|
798 |
return KNullDesC; |
|
799 |
} |
|
800 |
||
801 |
// -------------------------------------------------------------------------- |
|
802 |
// CCCAppCommLauncherPbkCmd::ResetFindL |
|
803 |
// -------------------------------------------------------------------------- |
|
804 |
// |
|
805 |
void CCCAppCommLauncherPbkCmd::ResetFindL() |
|
806 |
{ |
|
807 |
// Do nothing |
|
808 |
} |
|
809 |
||
810 |
// -------------------------------------------------------------------------- |
|
811 |
// CCCAppCommLauncherPbkCmd::ShowThumbnail |
|
812 |
// -------------------------------------------------------------------------- |
|
813 |
// |
|
814 |
void CCCAppCommLauncherPbkCmd::ShowThumbnail() |
|
815 |
{ |
|
816 |
// Do nothing |
|
817 |
} |
|
818 |
||
819 |
// -------------------------------------------------------------------------- |
|
820 |
// CCCAppCommLauncherPbkCmd::HideThumbnail |
|
821 |
// -------------------------------------------------------------------------- |
|
822 |
// |
|
823 |
void CCCAppCommLauncherPbkCmd::HideThumbnail() |
|
824 |
{ |
|
825 |
// Do nothing |
|
826 |
} |
|
827 |
||
828 |
// -------------------------------------------------------------------------- |
|
829 |
// CCCAppCommLauncherPbkCmd::SetBlank |
|
830 |
// -------------------------------------------------------------------------- |
|
831 |
// |
|
832 |
void CCCAppCommLauncherPbkCmd::SetBlank(TBool /*aBlank*/) |
|
833 |
{ |
|
834 |
// This control does not support blanking |
|
835 |
} |
|
836 |
||
837 |
// -------------------------------------------------------------------------- |
|
838 |
// CCCAppCommLauncherPbkCmd::RegisterCommand |
|
839 |
// -------------------------------------------------------------------------- |
|
840 |
// |
|
841 |
void CCCAppCommLauncherPbkCmd::RegisterCommand(MPbk2Command* aCommand) |
|
842 |
{ |
|
843 |
iCommand = aCommand; |
|
844 |
} |
|
845 |
||
846 |
// -------------------------------------------------------------------------- |
|
847 |
// CCCAppCommLauncherPbkCmd::SetTextL |
|
848 |
// -------------------------------------------------------------------------- |
|
849 |
// |
|
850 |
void CCCAppCommLauncherPbkCmd::SetTextL(const TDesC& /*aText*/) |
|
851 |
{ |
|
852 |
// Do nothing |
|
853 |
} |
|
854 |
||
855 |
// -------------------------------------------------------------------------- |
|
856 |
// CCCAppCommLauncherPbkCmd::ContactUiControlExtension |
|
857 |
// -------------------------------------------------------------------------- |
|
858 |
// |
|
859 |
TAny* CCCAppCommLauncherPbkCmd::ContactUiControlExtension(TUid aExtensionUid ) |
|
860 |
{ |
|
861 |
if( aExtensionUid == KMPbk2ContactUiControlExtension2Uid ) |
|
862 |
{ |
|
863 |
return static_cast<MPbk2ContactUiControl2*>( this ); |
|
864 |
} |
|
865 |
||
866 |
return NULL; |
|
867 |
} |
|
868 |
||
869 |
// -------------------------------------------------------------------------- |
|
870 |
// CCCAppCommLauncherPbkCmd::CommandItemCount |
|
871 |
// -------------------------------------------------------------------------- |
|
872 |
// |
|
873 |
TInt CCCAppCommLauncherPbkCmd::CommandItemCount() const |
|
874 |
{ |
|
875 |
return 0; // No command items. |
|
876 |
} |
|
877 |
||
878 |
// -------------------------------------------------------------------------- |
|
879 |
// CCCAppCommLauncherPbkCmd::CommandItemAt |
|
880 |
// -------------------------------------------------------------------------- |
|
881 |
// |
|
882 |
const MPbk2UiControlCmdItem& CCCAppCommLauncherPbkCmd::CommandItemAt( |
|
883 |
TInt /*aIndex*/) const |
|
884 |
{ |
|
885 |
// There are no command items in this control |
|
886 |
__ASSERT_ALWAYS(EFalse, User::Panic(_L("Pbk2"), 4)); |
|
887 |
MPbk2UiControlCmdItem* item = NULL; // For compiler only |
|
888 |
return *item; // For compiler only |
|
889 |
} |
|
890 |
||
891 |
// -------------------------------------------------------------------------- |
|
892 |
// CCCAppCommLauncherPbkCmd::FocusedCommandItem |
|
893 |
// -------------------------------------------------------------------------- |
|
894 |
// |
|
895 |
const MPbk2UiControlCmdItem* CCCAppCommLauncherPbkCmd::FocusedCommandItem() const |
|
896 |
{ |
|
897 |
return NULL; |
|
898 |
} |
|
899 |
||
900 |
// -------------------------------------------------------------------------- |
|
901 |
// CCCAppCommLauncherPbkCmd::DeleteCommandItemL |
|
902 |
// -------------------------------------------------------------------------- |
|
903 |
// |
|
904 |
void CCCAppCommLauncherPbkCmd::DeleteCommandItemL(TInt /*aIndex*/) |
|
905 |
{ |
|
906 |
// Do nothing |
|
907 |
} |
|
908 |
||
909 |
// -------------------------------------------------------------------------- |
|
910 |
// CCCAppCommLauncherPbkCmd::AddCommandItemL |
|
911 |
// -------------------------------------------------------------------------- |
|
912 |
// |
|
913 |
void CCCAppCommLauncherPbkCmd::AddCommandItemL( |
|
914 |
MPbk2UiControlCmdItem* /*aCommand*/, TInt /*aIndex*/) |
|
915 |
{ |
|
916 |
//Do nothing, since there shouldn't be any command items in this state. |
|
917 |
} |
|
918 |
||
919 |
// -------------------------------------------------------------------------- |
|
920 |
// CCCAppCommLauncherPbkCmd::PostCommandExecutionL |
|
921 |
// -------------------------------------------------------------------------- |
|
922 |
// |
|
923 |
void CCCAppCommLauncherPbkCmd::PostCommandExecutionL( |
|
924 |
const MPbk2Command& /*aCommand*/ ) |
|
925 |
{ |
|
926 |
// Async Pbk2 command has been executed. The state must be set back to |
|
927 |
// not running. |
|
928 |
iPlugin.CommandState().SetNotRunning(); |
|
929 |
} |
|
930 |
||
931 |
// -------------------------------------------------------------------------- |
|
932 |
// CCCAppCommLauncherPbkCmd::IsPbk2CommandRunning |
|
933 |
// -------------------------------------------------------------------------- |
|
934 |
// |
|
935 |
TBool CCCAppCommLauncherPbkCmd::IsPbk2CommandRunning() |
|
936 |
{ |
|
937 |
return iPlugin.CommandState().IsRunning(); |
|
938 |
} |
|
939 |
||
940 |
// -------------------------------------------------------------------------- |
|
941 |
// CCCAppCommLauncherPbkCmd::ApplicationServices |
|
942 |
// -------------------------------------------------------------------------- |
|
943 |
// |
|
944 |
CPbk2ApplicationServices& CCCAppCommLauncherPbkCmd::ApplicationServices() const |
|
945 |
{ |
|
946 |
return *iAppServices; |
|
947 |
} |
|
21
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
948 |
|
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
949 |
// -------------------------------------------------------------------------- |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
950 |
// CCCAppCommLauncherPbkCmd::DeleteAllRunningCmd |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
951 |
// -------------------------------------------------------------------------- |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
952 |
// |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
953 |
void CCCAppCommLauncherPbkCmd::DeleteAllRunningCmd() |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
954 |
{ |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
955 |
//Close all the pending pbk2commands launched from CCA |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
956 |
if ( iPlugin.CommandState().IsRunning() ) |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
957 |
{ |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
958 |
iPlugin.CommandState().SetNotRunning(); |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
959 |
if ( iCommandHandler ) |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
960 |
{ |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
961 |
CPbk2CommandStore* cmdStore( iCommandHandler->CommandStore() ); |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
962 |
if ( cmdStore ) |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
963 |
{ |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
964 |
cmdStore->DestroyAllCommands(); |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
965 |
} |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
966 |
} |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
967 |
} |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
968 |
} |
9da50d567e3c
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
20
diff
changeset
|
969 |