58 // ---------------------------------------------------------------------------- |
58 // ---------------------------------------------------------------------------- |
59 // CCCAppCommLauncherContainer::~CCCAppCommLauncherContainer() |
59 // CCCAppCommLauncherContainer::~CCCAppCommLauncherContainer() |
60 // ---------------------------------------------------------------------------- |
60 // ---------------------------------------------------------------------------- |
61 // |
61 // |
62 CCCAppCommLauncherContainer::~CCCAppCommLauncherContainer() |
62 CCCAppCommLauncherContainer::~CCCAppCommLauncherContainer() |
63 { |
63 { |
64 delete iListBox; |
64 delete iListBox; |
65 delete iBackground; |
65 delete iBackground; |
66 delete iModel; |
66 delete iModel; |
67 delete iHeaderCtrl; |
67 delete iHeaderCtrl; |
68 delete iPbkCmd; |
68 delete iPbkCmd; |
164 FeatureManager::UnInitializeLib(); |
164 FeatureManager::UnInitializeLib(); |
165 |
165 |
166 // Get the skin background for the view |
166 // Get the skin background for the view |
167 iBackground = CAknsBasicBackgroundControlContext::NewL( |
167 iBackground = CAknsBasicBackgroundControlContext::NewL( |
168 KAknsIIDQsnBgAreaMain, TRect(0, 0, 0, 0), EFalse); |
168 KAknsIIDQsnBgAreaMain, TRect(0, 0, 0, 0), EFalse); |
169 LongTapDetectorL(); |
169 LongTapDetectorL(); |
170 } |
170 } |
171 |
171 |
172 // ---------------------------------------------------------------------------- |
172 // ---------------------------------------------------------------------------- |
173 // CCCAppCommLauncherContainer::CreateListboxControlL() |
173 // CCCAppCommLauncherContainer::CreateListboxControlL() |
174 // ---------------------------------------------------------------------------- |
174 // ---------------------------------------------------------------------------- |
471 |
471 |
472 TUint paramFlag = 0;//CCAContactorService::TCSParameter::EEnableDefaults; |
472 TUint paramFlag = 0;//CCAContactorService::TCSParameter::EEnableDefaults; |
473 |
473 |
474 VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector |
474 VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector |
475 contactActionType = iPlugin.Container().SelectedCommunicationMethod(); |
475 contactActionType = iPlugin.Container().SelectedCommunicationMethod(); |
476 CCAContactorService::TCSParameter param( |
476 |
477 contactActionType, |
477 if ( !iLongTap && contactActionType |
478 *iPlugin.ContactHandler().ContactIdentifierLC(),//contactlinkarray |
478 == VPbkFieldTypeSelectorFactory::EFindOnMapSelector ) |
479 paramFlag, |
479 { |
480 fullName ); |
480 iLongTap = ETrue; |
481 |
481 DoShowMapCmdL( (TPbk2CommandId)EPbk2ExtensionShowOnMap ); |
482 if ( contactActionType == VPbkFieldTypeSelectorFactory::EVoiceCallSelector || |
482 } |
483 contactActionType == VPbkFieldTypeSelectorFactory::EVideoCallSelector || |
483 else |
484 contactActionType == VPbkFieldTypeSelectorFactory::EVOIPCallSelector ) |
|
485 { |
484 { |
486 iPlugin.StartTimerL(); |
485 CCAContactorService::TCSParameter param( |
|
486 contactActionType, |
|
487 *iPlugin.ContactHandler().ContactIdentifierLC(),//contactlinkarray |
|
488 paramFlag, |
|
489 fullName ); |
|
490 |
|
491 if ( contactActionType == VPbkFieldTypeSelectorFactory::EVoiceCallSelector || |
|
492 contactActionType == VPbkFieldTypeSelectorFactory::EVideoCallSelector || |
|
493 contactActionType == VPbkFieldTypeSelectorFactory::EVOIPCallSelector ) |
|
494 { |
|
495 iPlugin.StartTimerL(); |
|
496 } |
|
497 |
|
498 contactorService->ExecuteServiceL( param ); |
|
499 |
|
500 CleanupStack::PopAndDestroy( 1 );// contactlinkarray |
487 } |
501 } |
488 |
|
489 contactorService->ExecuteServiceL( param ); |
|
490 |
|
491 CleanupStack::PopAndDestroy( 1 );// contactlinkarray |
|
492 } |
502 } |
493 } |
503 } |
494 } |
504 } |
495 |
505 |
496 // ---------------------------------------------------------------------------- |
506 // ---------------------------------------------------------------------------- |
747 if( !iPbkCmd ) |
764 if( !iPbkCmd ) |
748 { |
765 { |
749 iPbkCmd = CCCAppCommLauncherPbkCmd::NewL( iPlugin ); |
766 iPbkCmd = CCCAppCommLauncherPbkCmd::NewL( iPlugin ); |
750 } |
767 } |
751 |
768 |
|
769 |
752 iPbkCmd->ExecutePbk2CmdShowMapL( |
770 iPbkCmd->ExecutePbk2CmdShowMapL( |
753 iPlugin.ContactHandler().ContactIdentifierLC(), aCommandId ); |
771 iPlugin.ContactHandler().ContactIdentifierLC(), aCommandId ); |
754 |
772 |
755 CleanupStack::PopAndDestroy( 1 ); // ContactIdentifierLC |
773 CleanupStack::PopAndDestroy( 1 ); // ContactIdentifierLC |
|
774 |
756 } |
775 } |
757 |
776 |
758 // -------------------------------------------------------------------------- |
777 // -------------------------------------------------------------------------- |
759 // CCCAppCommLauncherContainer::LongTapDetectorL |
778 // CCCAppCommLauncherContainer::LongTapDetectorL |
760 // -------------------------------------------------------------------------- |
779 // -------------------------------------------------------------------------- |