1 /* |
|
2 * Copyright (c) 2002-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: This file contains the selector implementation for landmarks by |
|
15 * name view |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 // INCLUDE FILES |
|
26 #include <AiwServiceHandler.h> // AIW |
|
27 #include <AiwCommon.hrh> // AIW |
|
28 #include <lbsfields.h> |
|
29 #include <aknsfld.h> |
|
30 #include <aknlists.h> |
|
31 #include <StringLoader.h> |
|
32 #include <EPos_CPosLmCategoryCriteria.h> |
|
33 #include <EPos_CPosLmCategoryManager.h> |
|
34 #include <AknWaitDialog.h> |
|
35 #include <lmkui.rsg> |
|
36 #include <Landmarks.rsg> |
|
37 #include <CLmkEditorDlg.h> // from system include! |
|
38 #include "clmkdbsearchutils.h" |
|
39 #include "LmkConsts.h" |
|
40 #include "landmarks.hrh" |
|
41 #include "CLmkDbUtils.h" |
|
42 #include "CLmkFields.h" |
|
43 #include "CLmkUiUtils.h" |
|
44 #include "CLmkEditorImpl.h" |
|
45 #include "LmkNotes.h" |
|
46 #include "CLmkSender.h" |
|
47 #include "LmkListProviderFactory.h" |
|
48 #include "CLmkLmItemListProvider.h" |
|
49 #include "CLmkDlgCategorySelectorImpl.h" |
|
50 #include "CLmkLmItemListMemento.h" |
|
51 #include "clmkgotourlcmd.h" |
|
52 #include "CLmkAppLmSelectorImpl.h" |
|
53 #include "MLmkMapAndNavigationObServer.h" |
|
54 #include "CLmkAOOperation.h" |
|
55 #include "MLmkMskObserver.h" |
|
56 #include "CLmkLocSettingLauncher.h" |
|
57 #include <lmkerrors.h> |
|
58 |
|
59 |
|
60 |
|
61 // CONSTANTS |
|
62 /// Unnamed namespace for local definitions |
|
63 namespace { |
|
64 //Below three flags are used only for category remove operation. |
|
65 //This one is used, when the remove operation starts |
|
66 const TInt KRemoveOperationStarted(2); |
|
67 //This one is used when, remove operation ends. |
|
68 const TInt KRemoveOperationCompleted(4); |
|
69 //This one is used, when the remove operation ends & the list box model |
|
70 //also is updated, after getting an event from database. |
|
71 const TInt KRremoveListBoxModUpdated(8); |
|
72 #if defined(_DEBUG) |
|
73 _LIT( KPanicMsg, "CLmkAppLmSelectorImpl" ); |
|
74 |
|
75 void Panic( TPanicCode aReason ) |
|
76 { |
|
77 User::Panic( KPanicMsg, aReason ); |
|
78 } |
|
79 #endif |
|
80 } // namespace |
|
81 |
|
82 _LIT(KWildCard, "*"); |
|
83 |
|
84 // ============================ MEMBER FUNCTIONS =============================== |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // CLmkAppLmSelectorImpl::CLmkAppLmSelectorImpl |
|
88 // C++ default constructor can NOT contain any code, that |
|
89 // might leave. |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 CLmkAppLmSelectorImpl::CLmkAppLmSelectorImpl( |
|
93 CPosLandmarkDatabase& aDb, |
|
94 CLmkSender& aSender, |
|
95 TBool aFindBox ) |
|
96 : CLmkAppLmItemSelectorImpl( aDb, aSender, aFindBox ),iIsDlgOpen(EFalse) |
|
97 { |
|
98 } |
|
99 |
|
100 // ----------------------------------------------------------------------------- |
|
101 // CLmkAppLmSelectorImpl::ConstructL |
|
102 // Symbian 2nd phase constructor can leave. |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 void CLmkAppLmSelectorImpl::ConstructL() |
|
106 { |
|
107 CLmkAppLmItemSelectorImpl::BaseConstructL(); |
|
108 // Added for rel 3.1 |
|
109 iLmkCallCmd = CLmkCallCmd::NewL(); |
|
110 iDbSearchUtils = NULL; |
|
111 // launching browser |
|
112 iLmkGoToURLCmd = CLmkGoToURLCmd::NewL(); |
|
113 } |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // CLmkAppLmSelectorImpl::ConstructL |
|
117 // Symbian 2nd phase constructor can leave. |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 void CLmkAppLmSelectorImpl::ConstructL( |
|
121 const MLmkListMemento& aCategoryMemento ) |
|
122 { |
|
123 // Listing contents of current category is implemented using category |
|
124 // view's memento: |
|
125 const CLmkLmItemListMemento& categoryMemento = |
|
126 static_cast<const CLmkLmItemListMemento&>( aCategoryMemento ); |
|
127 TPosLmItemId categoryId = categoryMemento.MemorizedItemId(); |
|
128 |
|
129 if (categoryId == KPosLmNullItemId) // 'uncategorised' category |
|
130 { |
|
131 // set criteria for searchnig 'Uncategorised' landmarks |
|
132 iCategoryName = StringLoader::LoadL( |
|
133 R_LMK_LM_LIST_UNCATEGORISED, const_cast<CEikonEnv *>( iEnv )); |
|
134 } |
|
135 else |
|
136 { |
|
137 // Construction must fail if category has been deleted: |
|
138 CPosLmCategoryManager* mgr = CPosLmCategoryManager::NewL( iDb ); |
|
139 CleanupStack::PushL( mgr ); |
|
140 // Leaves with KErrNotFound if category doesn't exist |
|
141 CPosLandmarkCategory* category = mgr->ReadCategoryLC( categoryId ); |
|
142 TPtrC categoryName; |
|
143 User::LeaveIfError(category->GetCategoryName(categoryName)); |
|
144 iCategoryName = categoryName.AllocL(); |
|
145 CleanupStack::PopAndDestroy( 2 ); // category, mgr |
|
146 } |
|
147 |
|
148 iCriteria = CPosLmCategoryCriteria::NewLC(); |
|
149 CleanupStack::Pop(); // iCriteria |
|
150 iCriteria->SetCategoryItemId( categoryId ); |
|
151 iMarkedCatCountAdded = 0; |
|
152 // Call "normal" ConstructL(): |
|
153 ConstructL(); |
|
154 } |
|
155 |
|
156 // ----------------------------------------------------------------------------- |
|
157 // CLmkAppLmSelectorImpl::NewL |
|
158 // Two-phased constructor. |
|
159 // ----------------------------------------------------------------------------- |
|
160 // |
|
161 EXPORT_C CLmkAppLmSelectorImpl* CLmkAppLmSelectorImpl::NewL( |
|
162 CPosLandmarkDatabase& aDb, |
|
163 CLmkSender& aSender, |
|
164 TBool aFindBox ) |
|
165 { |
|
166 CLmkAppLmSelectorImpl* self = |
|
167 new( ELeave ) CLmkAppLmSelectorImpl( aDb, aSender, aFindBox ); |
|
168 |
|
169 CleanupStack::PushL( self ); |
|
170 self->ConstructL(); |
|
171 CleanupStack::Pop(); |
|
172 |
|
173 return self; |
|
174 } |
|
175 |
|
176 // ----------------------------------------------------------------------------- |
|
177 // CLmkAppLmSelectorImpl::NewL |
|
178 // Two-phased constructor. |
|
179 // ----------------------------------------------------------------------------- |
|
180 // |
|
181 EXPORT_C CLmkAppLmSelectorImpl* CLmkAppLmSelectorImpl::NewL( |
|
182 CPosLandmarkDatabase& aDb, |
|
183 const MLmkListMemento& aCategoryMemento, |
|
184 CLmkSender& aSender, |
|
185 TBool aFindBox ) |
|
186 { |
|
187 CLmkAppLmSelectorImpl* self = |
|
188 new( ELeave ) CLmkAppLmSelectorImpl( aDb, aSender, aFindBox ); |
|
189 |
|
190 CleanupStack::PushL( self ); |
|
191 self->ConstructL( aCategoryMemento ); |
|
192 CleanupStack::Pop(); |
|
193 |
|
194 return self; |
|
195 } |
|
196 |
|
197 // ----------------------------------------------------------------------------- |
|
198 // CLmkAppLmSelectorImpl::~CLmkAppLmSelectorImpl |
|
199 // ----------------------------------------------------------------------------- |
|
200 // |
|
201 CLmkAppLmSelectorImpl::~CLmkAppLmSelectorImpl() |
|
202 { |
|
203 delete iCriteria; |
|
204 delete iCategoryName; |
|
205 delete iLmkCallCmd; |
|
206 delete iDbSearchUtils; |
|
207 delete iLmkGoToURLCmd; |
|
208 } |
|
209 |
|
210 // ----------------------------------------------------------------------------- |
|
211 // CLmkAppLmSelectorImpl::CategoryNameL |
|
212 // ----------------------------------------------------------------------------- |
|
213 // |
|
214 EXPORT_C TPtrC CLmkAppLmSelectorImpl::CategoryNameL() |
|
215 { |
|
216 return *iCategoryName; |
|
217 } |
|
218 |
|
219 // ----------------------------------------------------------------------------- |
|
220 // CLmkAppLmSelectorImpl::SetupListProviderL |
|
221 // ----------------------------------------------------------------------------- |
|
222 // |
|
223 void CLmkAppLmSelectorImpl::SetupListProviderL() |
|
224 { |
|
225 if ( !iListProvider ) |
|
226 { |
|
227 if ( iCriteria ) |
|
228 { |
|
229 iListProvider = |
|
230 LmkListProviderFactory::CreateProviderL( iDb, *iCriteria ); |
|
231 } |
|
232 else |
|
233 { |
|
234 iListProvider = |
|
235 LmkListProviderFactory::CreateProviderL( iDb, |
|
236 ELandmarkSelector ); |
|
237 } |
|
238 iListProvider->AddObserverL( *this ); |
|
239 iListProvider->InitializeL(); |
|
240 } |
|
241 } |
|
242 |
|
243 // ----------------------------------------------------------------------------- |
|
244 // CLmkAppLmSelectorImpl::ListProvider |
|
245 // ----------------------------------------------------------------------------- |
|
246 // |
|
247 const CLmkListProviderBase& CLmkAppLmSelectorImpl::ListProvider() const |
|
248 { |
|
249 __ASSERT_DEBUG( iListProvider, Panic( KLmkPanicNullMember ) ); |
|
250 return *iListProvider; |
|
251 } |
|
252 |
|
253 // ----------------------------------------------------------------------------- |
|
254 // CLmkAppLmSelectorImpl::HandleCategorySearchNotifyL |
|
255 // ----------------------------------------------------------------------------- |
|
256 // |
|
257 void CLmkAppLmSelectorImpl::HandleCategorySearchNotifyL(RArray<TPosLmItemId> /*aArray*/) |
|
258 { |
|
259 // This search is not used |
|
260 } |
|
261 |
|
262 // ----------------------------------------------------------------------------- |
|
263 // CLmkAppLmSelectorImpl::HandleLmkSearchNotifyL |
|
264 // ----------------------------------------------------------------------------- |
|
265 // |
|
266 void CLmkAppLmSelectorImpl::HandleLmkSearchNotifyL() |
|
267 { |
|
268 iWaitNote->ProcessFinishedL(); |
|
269 } |
|
270 |
|
271 // ----------------------------------------------------------------------------- |
|
272 // CLmkAppLmSelectorImpl::ProcessCommandL |
|
273 // ----------------------------------------------------------------------------- |
|
274 // |
|
275 void CLmkAppLmSelectorImpl::ProcessCommandL( TInt aCommandId ) |
|
276 { |
|
277 __ASSERT_DEBUG( iListProvider, Panic( KLmkPanicNullMember ) ); |
|
278 switch ( aCommandId ) |
|
279 { |
|
280 case ELmkCmdEditLm: |
|
281 { |
|
282 if( iIsDlgOpen ) |
|
283 break; |
|
284 |
|
285 EditLandmarkCmdL(CLmkEditorDlg::ELmkEditor); |
|
286 iSearchBox->ResetL(); |
|
287 |
|
288 break; |
|
289 } |
|
290 case ELmkCmdOpenLm: |
|
291 { |
|
292 if( iIsDlgOpen ) |
|
293 break; |
|
294 |
|
295 EditLandmarkCmdL(CLmkEditorDlg::ELmkViewer); |
|
296 iSearchBox->ResetL(); |
|
297 |
|
298 #ifdef RD_SCALABLE_UI_V2 |
|
299 iSearchBox->DrawDeferred(); |
|
300 #endif// RD_SCALABLE_UI_V2 |
|
301 iListProvider->StartSearchingLandmarksL(KWildCard, EFalse); |
|
302 break; |
|
303 } |
|
304 case ELmkCmdGoToUrl: |
|
305 { |
|
306 HBufC* lmkUrl = HBufC::NewL( KMaxBufferLen ); |
|
307 CleanupStack::PushL( lmkUrl ); |
|
308 if (GetPositionFieldForSelectedLmL( |
|
309 ELmkPositionFieldWebAddress, |
|
310 *lmkUrl ) == KErrNone) |
|
311 { |
|
312 if ( lmkUrl->Length() > 0 ) |
|
313 { |
|
314 // Get the URL of the LM and launch browser |
|
315 iLmkGoToURLCmd->LaunchBrowserL( *lmkUrl ); |
|
316 } |
|
317 } |
|
318 CleanupStack::PopAndDestroy( lmkUrl ); |
|
319 break; |
|
320 } |
|
321 case ELmkCmdCall: |
|
322 { |
|
323 // Create AIW interest |
|
324 ExecuteAIWCallCmdL( aCommandId ); |
|
325 break; |
|
326 } |
|
327 case ELmkCmdDeleteLm: |
|
328 { |
|
329 DeleteLandmarksCmdL(); |
|
330 break; |
|
331 } |
|
332 case ELmkCmdChangeIcon: |
|
333 { |
|
334 ChangeIconCmdL(); |
|
335 break; |
|
336 } |
|
337 case ELmkCmdAddToCat: |
|
338 { |
|
339 AddToCatCmdL(); |
|
340 break; |
|
341 } |
|
342 case ELmkCmdSendVia1: |
|
343 case ELmkCmdSendVia2: |
|
344 case ELmkCmdSendVia3: |
|
345 case ELmkCmdSendVia4: |
|
346 case ELmkCmdSendVia5: |
|
347 case ELmkCmdSendVia6: |
|
348 case ELmkCmdSendVia7: |
|
349 case ELmkCmdSendVia8: |
|
350 case ELmkCmdSendVia9: |
|
351 case ELmkCmdSendVia10: |
|
352 case ELmkCmdSend: |
|
353 { |
|
354 RArray<TPosLmItemId>& markedIds = MarkedItemIdsL(); |
|
355 if(markedIds.Count() == 0) |
|
356 { |
|
357 CPosLandmark* landmark = iDb.ReadLandmarkLC(SelectedIdL()); |
|
358 iSender.SendSingleLandmarkL(*landmark); |
|
359 CleanupStack::PopAndDestroy();//landmark |
|
360 } |
|
361 else |
|
362 { |
|
363 //Send multiple landmarks |
|
364 TPtrC ptr; |
|
365 RPointerArray<CLmkLandmark> lmkArray; |
|
366 TRAPD( sendErr, iSender.PrepareMultipleLandmarkForSendL(lmkArray,markedIds) ); |
|
367 if(sendErr == KErrNone) |
|
368 { |
|
369 TRAP( sendErr, iSender.SendLandmarksL(aCommandId,ptr,lmkArray) ); |
|
370 } |
|
371 lmkArray.ResetAndDestroy(); |
|
372 if(sendErr == KErrNoMemory) |
|
373 { |
|
374 User::LeaveNoMemory(); |
|
375 } |
|
376 } |
|
377 break; |
|
378 } |
|
379 case EAknCmdMark: |
|
380 case EAknCmdUnmark: |
|
381 case EAknMarkAll: |
|
382 case EAknUnmarkAll: |
|
383 { |
|
384 if(iMskObserver) |
|
385 { |
|
386 iMskObserver->UpdateMskContainerL(); |
|
387 } |
|
388 break; |
|
389 } |
|
390 case ELmkCmdLaunchPositionSettings: |
|
391 { |
|
392 LaunchPosSettingsL(); |
|
393 break; |
|
394 } |
|
395 case ELmkCmdFindBoxSearchAfresh: |
|
396 case ELmkCmdFindBoxSearchInPreviousResults: |
|
397 { |
|
398 TInt searchTextLength = iSearchBox->TextLength(); |
|
399 const TInt KExtraChars = 2; // 2 chars wildcards |
|
400 HBufC* filterBuf = HBufC::NewLC(searchTextLength + KExtraChars); |
|
401 TPtr filter = filterBuf->Des(); |
|
402 iSearchBox->GetSearchText(filter); |
|
403 filter.Append(KWildCard); |
|
404 iListProvider->StartSearchingLandmarksL(filter, EFalse); |
|
405 CleanupStack::PopAndDestroy( filterBuf ); |
|
406 |
|
407 break; |
|
408 } |
|
409 default: |
|
410 { |
|
411 CLmkAppLmItemSelectorImpl::ProcessCommandL( aCommandId ); |
|
412 break; |
|
413 } |
|
414 } |
|
415 } |
|
416 |
|
417 EXPORT_C void CLmkAppLmSelectorImpl::StartSearchingLandmarksL( |
|
418 const TDesC& /*aSearchPattern*/, |
|
419 TBool /*aSearchOnlyInPreviousMatches*/) |
|
420 { |
|
421 iListProvider->InitializeL(); |
|
422 } |
|
423 |
|
424 // ----------------------------------------------------------------------------- |
|
425 // CLmkAppLmSelectorImpl::HandleOperationL |
|
426 // ----------------------------------------------------------------------------- |
|
427 // |
|
428 void CLmkAppLmSelectorImpl::HandleOperationL( |
|
429 TOperationTypes aType, |
|
430 TReal32 /*aProgress*/, |
|
431 TInt aStatus ) |
|
432 { |
|
433 TBool deleteNote = EFalse; |
|
434 switch (aType) |
|
435 { |
|
436 case EDeleteLandmarks: |
|
437 { |
|
438 if (aStatus != KPosLmOperationNotComplete) |
|
439 { |
|
440 deleteNote = ETrue; |
|
441 } |
|
442 } |
|
443 break; |
|
444 case EAddToCategory: |
|
445 { |
|
446 if (iMarkedCatCountAdded ==1) |
|
447 { |
|
448 deleteNote = ETrue; |
|
449 } |
|
450 else if (iMarkedCatCountAdded > 1) |
|
451 { |
|
452 --iMarkedCatCountAdded; |
|
453 } |
|
454 } |
|
455 break; |
|
456 case ERemoveCategory: |
|
457 { |
|
458 if (iOperation && aStatus != KPosLmOperationNotComplete) |
|
459 { |
|
460 if((iCatRemoveFlag & KRremoveListBoxModUpdated) && |
|
461 (iCatRemoveFlag & KRemoveOperationStarted )&& iWaitNote) |
|
462 { |
|
463 //Since the operation is completed and listbox model |
|
464 //is updated first, wait note can be closed now |
|
465 CloseWaitNoteL(); |
|
466 iListBox->SetCurrentItemIndex(0); |
|
467 //nullify all the flags |
|
468 iCatRemoveFlag &= ~KRemoveOperationCompleted; |
|
469 iCatRemoveFlag &= ~KRremoveListBoxModUpdated; |
|
470 iCatRemoveFlag &= ~KRemoveOperationStarted; |
|
471 } |
|
472 else |
|
473 { |
|
474 //operation completed but cannot close the wait dialog |
|
475 //since, the listbox model is not updated.Now , it will |
|
476 //be closed in HandleEventListReadyL function.Set the operation |
|
477 //completion flag |
|
478 iCatRemoveFlag |= KRemoveOperationCompleted; |
|
479 } |
|
480 } |
|
481 } |
|
482 break; |
|
483 default: |
|
484 break; |
|
485 } |
|
486 |
|
487 if (deleteNote && iWaitNote) |
|
488 { |
|
489 iWaitNote->ProcessFinishedL(); |
|
490 iWaitNote = NULL; |
|
491 } |
|
492 } |
|
493 |
|
494 // ----------------------------------------------------------------------------- |
|
495 // CLmkAppLmSelectorImpl::ChangeIconL |
|
496 // ----------------------------------------------------------------------------- |
|
497 // |
|
498 void CLmkAppLmSelectorImpl::ChangeIconL( |
|
499 TPosLmItemId aId, |
|
500 TInt aIconIndex, |
|
501 TInt aMaskIndex) |
|
502 { |
|
503 TFileName* iconFile = CLmkUiUtils::LmkUiIconFileLC(); |
|
504 iDbUtils->ChangeIconL( iDb, aId, ELmkItemTypeLandmark, |
|
505 *iconFile, aIconIndex, aMaskIndex); |
|
506 CleanupStack::PopAndDestroy();//iconFile |
|
507 } |
|
508 |
|
509 // ----------------------------------------------------------------------------- |
|
510 // CLmkAppLmSelectorImpl::ChangeIconsL |
|
511 // ----------------------------------------------------------------------------- |
|
512 // |
|
513 void CLmkAppLmSelectorImpl::ChangeIconsL( |
|
514 RArray<TPosLmItemId>& aIdArray, |
|
515 TInt aIconIndex, |
|
516 TInt aMaskIndex) |
|
517 { |
|
518 TFileName* iconFile = CLmkUiUtils::LmkUiIconFileLC(); |
|
519 iDbUtils->ChangeIconsL( aIdArray, ELmkItemTypeLandmark, |
|
520 *iconFile, aIconIndex, aMaskIndex); |
|
521 CleanupStack::PopAndDestroy();//iconFile |
|
522 } |
|
523 |
|
524 // ----------------------------------------------------------------------------- |
|
525 // CLmkAppLmSelectorImpl::InitialLandmarkL |
|
526 // ----------------------------------------------------------------------------- |
|
527 // |
|
528 void CLmkAppLmSelectorImpl::InitialLandmarkL( CPosLandmark* aLandmark ) |
|
529 { |
|
530 if ( iCriteria ) |
|
531 {// category is a valid category in the LM database (not 'uncategorised') |
|
532 if (iCriteria->CategoryItemId() != KPosLmNullItemId) |
|
533 { |
|
534 aLandmark->AddCategoryL( iCriteria->CategoryItemId() ); |
|
535 } |
|
536 |
|
537 } |
|
538 } |
|
539 |
|
540 // ----------------------------------------------------------------------------- |
|
541 // CLmkAppLmSelectorImpl::EditLandmarkCmdL |
|
542 // ----------------------------------------------------------------------------- |
|
543 // |
|
544 void CLmkAppLmSelectorImpl::EditLandmarkCmdL(TLmkEditorMode aEditMode) |
|
545 { |
|
546 TLmkEditorAttributes attributeFlags( CLmkEditorDlg::ELmkAll ); |
|
547 TChar DriveName = 'c'; |
|
548 TInt BytesToWrite = 0; |
|
549 |
|
550 DiskSpaceBelowCriticalLevelL(BytesToWrite, DriveName); |
|
551 iNewLmkItemId = SelectedIdL(); |
|
552 if(iDlg) |
|
553 { |
|
554 iDlg = NULL; |
|
555 } |
|
556 iDlg = CLmkEditorImpl::NewL( iDb, |
|
557 iSender, |
|
558 attributeFlags, |
|
559 aEditMode, |
|
560 iNewLmkItemId ); |
|
561 iDlg->ExecuteLD(); |
|
562 iDlg = NULL; |
|
563 |
|
564 #ifdef RD_SCALABLE_UI_V2 |
|
565 TInt listProviderCount = LmItemListProvider().ItemCount(); |
|
566 TInt listBoxItemCount = iListBox->Model()->NumberOfItems(); |
|
567 TInt currentItemIndex = LmItemListProvider().SelectedIndex(iNewLmkItemId);// iListBox->CurrentItemIndex(); |
|
568 if (listProviderCount != listBoxItemCount) |
|
569 { |
|
570 iDeletionHelper.StoreListInformation( *iListBox, EFalse ); |
|
571 } |
|
572 |
|
573 iDeletionHelper.UpdateListIfDeleteHappenedL(); |
|
574 if( currentItemIndex >= 0 && currentItemIndex < iListBox->Model()->NumberOfItems() ) |
|
575 { |
|
576 iListBox->SetCurrentItemIndex(currentItemIndex); |
|
577 } |
|
578 |
|
579 #endif // RD_SCALABLE_UI_V2 |
|
580 } |
|
581 |
|
582 // ----------------------------------------------------------------------------- |
|
583 // CLmkAppLmSelectorImpl::GetSelectedLandmarksL |
|
584 // ----------------------------------------------------------------------------- |
|
585 // |
|
586 TInt CLmkAppLmSelectorImpl::GetSelectedLandmarksL(RPointerArray<CPosLandmark> &aArray) |
|
587 { |
|
588 if( ! iListBox->Model()->NumberOfItems() ) |
|
589 { |
|
590 return KErrNotFound; |
|
591 } |
|
592 |
|
593 RArray<TPosLmItemId>& markedItemIds = MarkedItemIdsL(); |
|
594 TInt markedCount = markedItemIds.Count(); |
|
595 if ( markedCount == 0 ) |
|
596 { |
|
597 TPosLmItemId itemId = SelectedIdL(); |
|
598 CPosLandmark *lmk = iDb.ReadLandmarkLC(itemId); |
|
599 aArray.Append(lmk); |
|
600 CleanupStack::Pop(); // ReadLandmarkLC |
|
601 return KErrNone; |
|
602 } |
|
603 else |
|
604 { |
|
605 if(markedCount == 1) |
|
606 { |
|
607 // Donot request if only one landmark |
|
608 TPosLmItemId itemId = markedItemIds[0]; |
|
609 CPosLandmark *lmk = iDb.ReadLandmarkLC(itemId); |
|
610 aArray.Append(lmk); |
|
611 CleanupStack::Pop(); // ReadLandmarkLC |
|
612 return KErrNone; |
|
613 } |
|
614 RArray<TPosLmItemId> itemIds; |
|
615 for(TInt index = 0;index < markedCount; index++) |
|
616 { |
|
617 TPosLmItemId itemId = markedItemIds[index]; |
|
618 itemIds.Append(itemId); |
|
619 } |
|
620 if(iDbSearchUtils == NULL) |
|
621 { |
|
622 iDbSearchUtils = CLmkDbSearchUtils::NewL(); |
|
623 } |
|
624 iDbSearchUtils->GetLandmarksL(this, itemIds ,&aArray); |
|
625 iWaitNote = new (ELeave) CAknWaitDialog(NULL, ETrue); |
|
626 iWaitNote->ExecuteLD(R_LMKUI_PROCESSING_WAIT_NOTE); |
|
627 iWaitNote = NULL; |
|
628 return KErrNone; |
|
629 } |
|
630 } |
|
631 |
|
632 // ----------------------------------------------------------------------------- |
|
633 // CLmkAppLmSelectorImpl::IsLandmarkDataEmptyL |
|
634 // ----------------------------------------------------------------------------- |
|
635 // |
|
636 TBool CLmkAppLmSelectorImpl::IsLandmarkDataEmptyL(CPosLandmark* aLandmark) |
|
637 { |
|
638 // verify that destination landmark has coordinates |
|
639 TLocality loc; |
|
640 TBool isValid = (KErrNone == aLandmark->GetPosition( loc ) ); |
|
641 isValid &= !Math::IsNaN( loc.Latitude() ) && !Math::IsNaN( loc.Longitude() ); |
|
642 return isValid; |
|
643 |
|
644 /* |
|
645 if ( !isValid ) |
|
646 { |
|
647 // verify that destination landmark has address info |
|
648 TPositionFieldId fieldId = aLandmark->FirstPositionFieldId(); |
|
649 while ( fieldId != EPositionFieldNone ) |
|
650 { |
|
651 if ( fieldId > EPositionFieldAddressCapabilitiesBegin && |
|
652 fieldId < EPositionFieldBuildingTelephone) |
|
653 { |
|
654 TPtrC field; |
|
655 aLandmark->GetPositionField( fieldId, field ); |
|
656 if ( field.Length() ) |
|
657 { |
|
658 isValid = ETrue; |
|
659 break; |
|
660 } |
|
661 } |
|
662 fieldId = aLandmark->NextPositionFieldId( fieldId ); |
|
663 } |
|
664 } |
|
665 return !isValid; |
|
666 */ |
|
667 } |
|
668 |
|
669 |
|
670 // ----------------------------------------------------------------------------- |
|
671 // CLmkAppLmSelectorImpl::DeleteLandmarksCmdL |
|
672 // ----------------------------------------------------------------------------- |
|
673 // |
|
674 void CLmkAppLmSelectorImpl::DeleteLandmarksCmdL() |
|
675 { |
|
676 |
|
677 if( ! iListBox->Model()->NumberOfItems() ) |
|
678 return; |
|
679 |
|
680 RArray<TPosLmItemId>& markedItemIds = MarkedItemIdsL(); |
|
681 TInt markedCount = markedItemIds.Count(); |
|
682 if ( markedCount == 0 ) |
|
683 { |
|
684 if ( LmkNotes::LandmarkConfirmationQueryL( iEnv, 1 ) ) |
|
685 { |
|
686 iDeletionHelper.StoreListInformation( *iListBox, EFalse ); |
|
687 TPosLmItemId selectedId = SelectedIdL(); |
|
688 LmItemListProvider().RemoveItem( selectedId ); |
|
689 iDbUtils->DeleteLandmarkL( selectedId, iDb ); |
|
690 } |
|
691 |
|
692 } |
|
693 else |
|
694 { |
|
695 if ( LmkNotes::LandmarkConfirmationQueryL( iEnv, markedCount ) ) |
|
696 { |
|
697 StoreIdTobeFocussedAfterDeletion( markedItemIds ); |
|
698 iDeletionHelper.StoreListInformation( *iListBox, ETrue ); |
|
699 |
|
700 if( markedCount == 1 ) |
|
701 { |
|
702 LmItemListProvider().RemoveItem( markedItemIds[0] ); |
|
703 iDbUtils->DeleteLandmarkL( markedItemIds[0], iDb ); |
|
704 return; |
|
705 } |
|
706 // The 10 value is set as standard to remove the multiple landmarks and new procedure for operation |
|
707 if( markedCount > 10) |
|
708 { |
|
709 LmItemListProvider().RemoveItemsL(markedItemIds, |
|
710 MLmkAOOperationObserver::EDeleteLandmarks, |
|
711 KPosLmNullItemId); |
|
712 } |
|
713 else |
|
714 { |
|
715 iDbUtils->DeleteLandmarksL( markedItemIds ); |
|
716 |
|
717 // wait note |
|
718 iWaitNote = new (ELeave) CAknWaitDialog( NULL, ETrue ); |
|
719 if ( !iWaitNote->ExecuteLD( R_LMK_DELETING_WAIT_NOTE ) ) |
|
720 { |
|
721 //making iWaitNote null, since framework destroys waitnote |
|
722 //dialog on pressing cancel. |
|
723 iWaitNote = NULL; |
|
724 iDbUtils->CancelLmOperation(); |
|
725 } |
|
726 } |
|
727 } |
|
728 } |
|
729 } |
|
730 |
|
731 // ----------------------------------------------------------------------------- |
|
732 // CLmkAppLmSelectorImpl::AddToCatL |
|
733 // ----------------------------------------------------------------------------- |
|
734 // |
|
735 void CLmkAppLmSelectorImpl::AddToCatCmdL() |
|
736 { |
|
737 CLmkDlgCategorySelectorImpl* dlg = |
|
738 CLmkDlgCategorySelectorImpl::NewL( iDb, ETrue, ETrue ); |
|
739 CleanupStack::PushL( dlg ); |
|
740 dlg->SetEmptyDlgLabel( R_LMK_EMPTY_NO_CATEGORIES ,R_LMK_GUIDE_CREATE_LANDMARK ); |
|
741 RArray<TPosLmItemId> categories; |
|
742 CleanupClosePushL( categories ); |
|
743 if ( dlg->ExecuteL( categories ) ) |
|
744 { |
|
745 RArray<TPosLmItemId>& markedLmIds = MarkedItemIdsL(); |
|
746 TInt markedLmCount = markedLmIds.Count(); |
|
747 TInt markedCatCount = categories.Count(); |
|
748 iMarkedCatCountAdded = markedCatCount; |
|
749 if ( markedCatCount > 0 ) |
|
750 { |
|
751 LmItemListProvider().SetOperationCmd( ELmkCmdAddToCat ); |
|
752 LmItemListProvider().SetSelectedItemsCount( markedCatCount ); |
|
753 |
|
754 if( markedLmCount == 0 ) |
|
755 markedLmIds.Append( SelectedIdL() ); |
|
756 |
|
757 iDbUtils->AddLmsToCategoriesL( markedLmIds, categories ); |
|
758 |
|
759 // wait note |
|
760 iWaitNote = new (ELeave) CAknWaitDialog( NULL, ETrue ); |
|
761 if ( !iWaitNote->ExecuteLD( R_LMK_PROCESSING_WAIT_NOTE ) ) |
|
762 { |
|
763 //making iWaitNote null, since framework destroys waitnote |
|
764 //dialog on pressing cancel. |
|
765 LmItemListProvider().SetSelectedItemsCount( 0 ); |
|
766 iWaitNote = NULL; |
|
767 iDbUtils->CancelLmOperation(); |
|
768 } |
|
769 iListBox->ClearSelection(); |
|
770 } |
|
771 |
|
772 if( iMskObserver ) |
|
773 { |
|
774 iMskObserver->UpdateMskContainerL(); |
|
775 } |
|
776 } |
|
777 CleanupStack::PopAndDestroy( 2 ); // categories, dlg |
|
778 } |
|
779 |
|
780 // ----------------------------------------------------------------------------- |
|
781 // CLmkAppLmSelectorImpl::HandleEventListReadyL |
|
782 // ----------------------------------------------------------------------------- |
|
783 // |
|
784 TBool CLmkAppLmSelectorImpl::HandleEventListReadyL() |
|
785 { |
|
786 // Possibly user-initiated delete finished --> if yes, update the list: |
|
787 TBool retVal; |
|
788 if( iNewListBoxItemAdded ) |
|
789 { |
|
790 CAknFilteredTextListBoxModel* model = static_cast<CAknFilteredTextListBoxModel*>( iListBox->Model() ); |
|
791 CAknListBoxFilterItems* filter = static_cast<CAknListBoxFilterItems*>( model->Filter() ); |
|
792 filter->HandleItemArrayChangeL(); |
|
793 |
|
794 TInt listboxIndex = LmItemListProvider().SelectedIndex(iNewLmkItemId); |
|
795 |
|
796 /* When the user tries to create a new landmark in category content view (catId = n) |
|
797 * Chooses to deselect that category from multiple category selector |
|
798 * The landmark gets added to either 'uncategorised' category or any other |
|
799 * category than the current category -->n |
|
800 */ |
|
801 |
|
802 if ( listboxIndex == KLmkInValidIndex ) |
|
803 { |
|
804 retVal = EFalse; |
|
805 return retVal; |
|
806 } |
|
807 |
|
808 if ( listboxIndex != KErrNotFound && |
|
809 listboxIndex < iListBox->Model()->NumberOfItems() ) |
|
810 { |
|
811 iListBox->SetCurrentItemIndex(listboxIndex); |
|
812 } |
|
813 UpdateMarkIndexAfterAdditionL( listboxIndex ); |
|
814 iListBox->DrawDeferred(); |
|
815 iNewListBoxItemAdded = EFalse; |
|
816 retVal = ETrue; |
|
817 } |
|
818 else // Either item is updated/deleted |
|
819 { |
|
820 /*Check if the database item count and list item count are same or not |
|
821 *If there is a change, update the list box |
|
822 *(The deletion of an item due to updates in landmark category info |
|
823 *via category in selection via landmark editor or via 'Addtocategory' |
|
824 *command from the Landmark App views) |
|
825 */ |
|
826 if(iDlg) |
|
827 { |
|
828 TRAP_IGNORE(iDlg->UpdateViewDlgL()); |
|
829 } |
|
830 TInt listProviderCount = LmItemListProvider().ItemCount(); |
|
831 TInt listBoxItemCount = iListBox->Model()->NumberOfItems(); |
|
832 if (listProviderCount != listBoxItemCount) |
|
833 { |
|
834 iDeletionHelper.StoreListInformation( *iListBox, EFalse ); |
|
835 } |
|
836 |
|
837 retVal = iDeletionHelper.UpdateListIfDeleteHappenedL(); |
|
838 |
|
839 if( retVal) |
|
840 { |
|
841 SetFocusToItemAfterDeletionOfMarkedItems(); |
|
842 } |
|
843 // |
|
844 if( (iCatRemoveFlag & KRemoveOperationStarted) ) |
|
845 { |
|
846 if((iCatRemoveFlag & KRemoveOperationCompleted) && iWaitNote) |
|
847 { |
|
848 CloseWaitNoteL(); |
|
849 iListBox->SetCurrentItemIndex(0); |
|
850 iCatRemoveFlag &= ~KRremoveListBoxModUpdated; |
|
851 iCatRemoveFlag &= ~KRemoveOperationCompleted; |
|
852 iCatRemoveFlag &= ~KRemoveOperationStarted; |
|
853 } |
|
854 else |
|
855 { |
|
856 //operation completed but cannot close the wait dialog |
|
857 //since, the operation is not yet completed , it will |
|
858 //be closed in HandleOperationL function. |
|
859 iCatRemoveFlag |= KRremoveListBoxModUpdated; |
|
860 } |
|
861 } |
|
862 } |
|
863 return retVal; |
|
864 } |
|
865 |
|
866 // ---------------------------------------------------- |
|
867 // CLmkAppLmSelectorImpl::AttachToAIWMenuL() |
|
868 // ---------------------------------------------------- |
|
869 // |
|
870 void CLmkAppLmSelectorImpl::AttachToAIWMenuL( |
|
871 TInt aMenuResourceId, |
|
872 TInt aInterestResourceId) |
|
873 { |
|
874 iLmkCallCmd->AttachMenuPaneL( aMenuResourceId, aInterestResourceId); |
|
875 } |
|
876 |
|
877 // ---------------------------------------------------- |
|
878 // CLmkAppLmSelectorImpl::InitializeMenuPaneL() |
|
879 // ---------------------------------------------------- |
|
880 // |
|
881 void CLmkAppLmSelectorImpl::InitializeMenuPaneL( |
|
882 CEikMenuPane& aMenuPane, |
|
883 TInt aMenuResourceId) |
|
884 { |
|
885 // Initialize the AIW menu service |
|
886 iLmkCallCmd->InitializeMenuPaneL( |
|
887 aMenuPane, |
|
888 aMenuResourceId, |
|
889 ELmkCmdLast // Must not overlap with the other menu ids! |
|
890 ); |
|
891 } |
|
892 // ---------------------------------------------------- |
|
893 // CLmkAppLmSelectorImpl::AttachInterestL() |
|
894 // ---------------------------------------------------- |
|
895 // |
|
896 void CLmkAppLmSelectorImpl::AttachInterestL ( |
|
897 TInt aInterestResourceId) |
|
898 { |
|
899 iLmkCallCmd->AttachInterestL(aInterestResourceId); |
|
900 } |
|
901 |
|
902 // ----------------------------------------------------------------------------- |
|
903 // CLmkAppLmSelectorImpl::ExecuteAIWCallCmdL() |
|
904 // ----------------------------------------------------------------------------- |
|
905 // |
|
906 void CLmkAppLmSelectorImpl::ExecuteAIWCallCmdL( |
|
907 TInt aCommandId ) |
|
908 { |
|
909 HBufC* lmkPhoneNum = HBufC:: NewL( KMaxPhoneNumberFieldLen ); |
|
910 CleanupStack::PushL(lmkPhoneNum); |
|
911 |
|
912 if ( (GetPositionFieldForSelectedLmL( |
|
913 ELmkPositionFieldPhoneNumber, |
|
914 *lmkPhoneNum ) == KErrNone) && (lmkPhoneNum->Des().Length() > 0) ) |
|
915 { |
|
916 iLmkCallCmd->ExecuteAIWCallCmdL( aCommandId, *lmkPhoneNum ); |
|
917 } |
|
918 else |
|
919 { |
|
920 // Info note here with landmark name |
|
921 TPosLmItemId lmId = SelectedIdL(); |
|
922 CPosLandmark* landmark = iDb.ReadLandmarkLC(lmId); |
|
923 // Get name |
|
924 TPtrC lmkNamePtr; |
|
925 if ( landmark->GetLandmarkName ( lmkNamePtr ) == KErrNone ) |
|
926 { |
|
927 LmkNotes::InformationNotewithTextL( iEnv, |
|
928 R_LMK_NOTE_NO_NUMBER_TO_NAME, lmkNamePtr); |
|
929 } |
|
930 CleanupStack::PopAndDestroy( landmark ); |
|
931 } |
|
932 CleanupStack::PopAndDestroy(lmkPhoneNum); |
|
933 } |
|
934 |
|
935 // ----------------------------------------------------------------------------- |
|
936 // CLmkAppLmSelectorImpl::GetPositionFieldForSelectedLmL() |
|
937 // ----------------------------------------------------------------------------- |
|
938 // |
|
939 TInt CLmkAppLmSelectorImpl::GetPositionFieldForSelectedLmL( |
|
940 TPositionFieldId aFieldId, |
|
941 HBufC& aFieldValue ) |
|
942 { |
|
943 TPosLmItemId lmId = SelectedIdL(); |
|
944 TPtrC tmpPtr; |
|
945 |
|
946 CPosLandmark* landmark = iDb.ReadLandmarkLC(lmId); |
|
947 TInt retVal (-1); |
|
948 if ( landmark->IsPositionFieldAvailable( aFieldId ) ) |
|
949 { |
|
950 retVal = landmark->GetPositionField( aFieldId, tmpPtr ); |
|
951 } |
|
952 if ( aFieldValue.Des().MaxLength() >= tmpPtr.Length() ) |
|
953 { |
|
954 aFieldValue.Des().Copy( tmpPtr ); |
|
955 } |
|
956 CleanupStack::PopAndDestroy( landmark ); |
|
957 return retVal; |
|
958 } |
|
959 |
|
960 // ----------------------------------------------------------------------------- |
|
961 // CLmkAppLmSelectorImpl::IsThisLandmarkFieldDefined |
|
962 // ----------------------------------------------------------------------------- |
|
963 // |
|
964 TBool CLmkAppLmSelectorImpl::IsLmWithThisFieldExistL ( TLmkAppCmdId aCmdId ) |
|
965 { |
|
966 |
|
967 TBool lmkFieldExist = EFalse; |
|
968 TPositionFieldId lmkPostionField (0); |
|
969 |
|
970 if ( aCmdId == ELmkCmdCall ) |
|
971 { |
|
972 lmkPostionField = ELmkPositionFieldPhoneNumber; |
|
973 } |
|
974 if ( aCmdId == ELmkCmdGoToUrl ) |
|
975 { |
|
976 lmkPostionField = ELmkPositionFieldWebAddress; |
|
977 } |
|
978 |
|
979 HBufC* lmkField = HBufC::NewL( KMaxBufferLen ); |
|
980 CleanupStack::PushL( lmkField ); |
|
981 |
|
982 if ( (GetPositionFieldForSelectedLmL( |
|
983 lmkPostionField, |
|
984 *lmkField ) == KErrNone) && |
|
985 (lmkField->Des().Length() > 0) ) |
|
986 { |
|
987 lmkFieldExist = ETrue; |
|
988 } |
|
989 CleanupStack::PopAndDestroy( lmkField ); |
|
990 return lmkFieldExist; |
|
991 } |
|
992 |
|
993 // ----------------------------------------------------------------------------- |
|
994 // CLmkAppLmSelectorImpl::HandleLmCreated |
|
995 // ----------------------------------------------------------------------------- |
|
996 // |
|
997 void CLmkAppLmSelectorImpl::HandleLmCreated(TPosLmItemId aNewLmkItemId) |
|
998 { |
|
999 iNewLmkItemId = aNewLmkItemId; |
|
1000 iNewListBoxItemAdded = ETrue; |
|
1001 } |
|
1002 |
|
1003 // ----------------------------------------------------------------------------- |
|
1004 // CLmkAppLmSelectorImpl::RemoveLandmarksFromCategory |
|
1005 // ----------------------------------------------------------------------------- |
|
1006 // |
|
1007 EXPORT_C void CLmkAppLmSelectorImpl::RemoveLandmarksFromCategoryL() |
|
1008 { |
|
1009 if(iCriteria) |
|
1010 { |
|
1011 TPosLmItemId catId = iCriteria->CategoryItemId(); |
|
1012 RArray<TPosLmItemId>& itemArray = MarkedItemIdsL(); |
|
1013 LmItemListProvider().SetOperationCmd( ERemoveFromCat ); |
|
1014 if (itemArray.Count() == 0) |
|
1015 { |
|
1016 TPosLmItemId id = SelectedIdL(); |
|
1017 itemArray.AppendL(id); |
|
1018 } |
|
1019 // The 10 value is set as standard to remove the multiple landmarks and new procedure for operation |
|
1020 if( itemArray.Count() > 10) |
|
1021 { |
|
1022 LmItemListProvider().RemoveItemsL(itemArray, |
|
1023 MLmkAOOperationObserver::ERemoveCategory, |
|
1024 catId); |
|
1025 return; |
|
1026 } |
|
1027 else |
|
1028 { |
|
1029 CPosLmCategoryManager* mgr = CPosLmCategoryManager::NewL( iDb ); |
|
1030 CleanupStack::PushL(mgr); |
|
1031 CPosLmOperation* operation = mgr->RemoveCategoryFromLandmarksL(catId,itemArray); |
|
1032 CleanupStack::PopAndDestroy();//mgr |
|
1033 if (iOperation) |
|
1034 { |
|
1035 delete iOperation; |
|
1036 iOperation = NULL; |
|
1037 } |
|
1038 iOperation = CLmkAOOperation::NewL(operation, |
|
1039 *this,MLmkAOOperationObserver::ERemoveCategory,ETrue); |
|
1040 iOperation->StartOperation(); |
|
1041 } |
|
1042 } |
|
1043 iCatRemoveFlag |= KRemoveOperationStarted; |
|
1044 iWaitNote = new (ELeave) CAknWaitDialog(NULL, ETrue); |
|
1045 if(!iWaitNote->ExecuteLD(R_LMK_PROCESSING_WAIT_NOTE)) |
|
1046 { |
|
1047 if (iOperation) |
|
1048 { |
|
1049 delete iOperation; |
|
1050 iOperation = NULL; |
|
1051 } |
|
1052 iWaitNote = NULL; |
|
1053 } |
|
1054 iCatRemoveFlag &= ~KRemoveOperationStarted; |
|
1055 } |
|
1056 |
|
1057 |
|
1058 // ----------------------------------------------------------------------------- |
|
1059 // CLmkAppLmSelectorImpl::IsCriteriaUnCategorizedCat |
|
1060 // ----------------------------------------------------------------------------- |
|
1061 // |
|
1062 EXPORT_C TBool CLmkAppLmSelectorImpl::IsCriteriaUnCategorizedCat() |
|
1063 { |
|
1064 TBool result = EFalse; |
|
1065 if (iCriteria && iCriteria->CategoryItemId() == KPosLmNullItemId) |
|
1066 { |
|
1067 result = ETrue; |
|
1068 } |
|
1069 return result; |
|
1070 } |
|
1071 |
|
1072 // ----------------------------------------------------------------------------- |
|
1073 // CLmkAppLmSelectorImpl::ServiceCmdByMenuCmd |
|
1074 // ----------------------------------------------------------------------------- |
|
1075 // |
|
1076 TInt CLmkAppLmSelectorImpl::ServiceCmdByMenuCmd( TInt aMenuCmd ) |
|
1077 { |
|
1078 return iLmkCallCmd->ServiceCmdByMenuCmd( aMenuCmd ); |
|
1079 } |
|
1080 |
|
1081 // ----------------------------------------------------------------------------- |
|
1082 // CLmkAppLmSelectorImpl::CloseWaitNoteL |
|
1083 // ----------------------------------------------------------------------------- |
|
1084 // |
|
1085 void CLmkAppLmSelectorImpl::CloseWaitNoteL() |
|
1086 { |
|
1087 iWaitNote->ProcessFinishedL(); |
|
1088 iWaitNote = NULL; |
|
1089 if (iOperation) |
|
1090 { |
|
1091 delete iOperation; |
|
1092 iOperation = NULL; |
|
1093 } |
|
1094 } |
|
1095 |
|
1096 // End of File |
|
1097 |
|