equal
deleted
inserted
replaced
57 #include <txtrich.h> |
57 #include <txtrich.h> |
58 #include <SendUiConsts.h> |
58 #include <SendUiConsts.h> |
59 #include <Sendnorm.rsg> |
59 #include <Sendnorm.rsg> |
60 #include <MVPbkContactFieldTextData.h> |
60 #include <MVPbkContactFieldTextData.h> |
61 |
61 |
|
62 _LIT( KSpace, " " ); |
|
63 |
62 // ================= MEMBER FUNCTIONS ======================= |
64 // ================= MEMBER FUNCTIONS ======================= |
63 |
65 |
64 // --------------------------------------------------------- |
66 // --------------------------------------------------------- |
65 // CSpdiaView::NewLC |
67 // CSpdiaView::NewLC |
66 // |
68 // |
495 TPhCltTelephoneNumber number; |
497 TPhCltTelephoneNumber number; |
496 TBool call( EFalse ); |
498 TBool call( EFalse ); |
497 TInt index( iContainer->CurGridPosition() ); |
499 TInt index( iContainer->CurGridPosition() ); |
498 |
500 |
499 number = control.PhoneNumber( index ); |
501 number = control.PhoneNumber( index ); |
|
502 TBuf<1>space( KSpace ); |
|
503 while( number.Length() > 0 && number.Find( space ) != KErrNotFound ) |
|
504 { |
|
505 number.Delete( number.Find( space ), 1 ); |
|
506 } |
|
507 |
500 int type = control.NumberType( index ); |
508 int type = control.NumberType( index ); |
501 if ( ( iContainer->IsVoiceMailBox()) || ( iContainer->IsVdoMailBox() ) ) |
509 if ( ( iContainer->IsVoiceMailBox()) || ( iContainer->IsVdoMailBox() ) ) |
502 { |
510 { |
503 TInt numberType( ESpDialPbkFieldIdNone ); |
511 TInt numberType( ESpDialPbkFieldIdNone ); |
504 CRepository* vmbxkey2 = CRepository::NewL( KCRUidTelVideoMailbox ); |
512 CRepository* vmbxkey2 = CRepository::NewL( KCRUidTelVideoMailbox ); |
602 { |
610 { |
603 dialData->SetNameL( *nameBuffer ); |
611 dialData->SetNameL( *nameBuffer ); |
604 } |
612 } |
605 CleanupStack::PopAndDestroy( nameBuffer ); |
613 CleanupStack::PopAndDestroy( nameBuffer ); |
606 } |
614 } |
607 |
615 |
608 dialData->SetPhoneNumberL( aNumber ); |
616 dialData->SetPhoneNumberL( aNumber ); |
609 dialData->SetWindowGroup( AIWDialData::KAiwGoToIdle ); |
617 dialData->SetWindowGroup( AIWDialData::KAiwGoToIdle ); |
610 CAiwGenericParamList& paramList = iServiceHandler->InParamListL(); |
618 CAiwGenericParamList& paramList = iServiceHandler->InParamListL(); |
611 dialData->FillInParamListL( paramList ); |
619 dialData->FillInParamListL( paramList ); |
612 CleanupStack::PopAndDestroy( dialData ); |
620 CleanupStack::PopAndDestroy( dialData ); |
763 } |
771 } |
764 |
772 |
765 iServiceHandler->InitializeMenuPaneL( *aMenuPane, |
773 iServiceHandler->InitializeMenuPaneL( *aMenuPane, |
766 aResourceId, |
774 aResourceId, |
767 ESpdiaCmdLast, |
775 ESpdiaCmdLast, |
768 paramList ); |
776 paramList, |
|
777 EFalse, |
|
778 ETrue ); |
769 if ( aMenuPane->NumberOfItemsInPane() == KErrNone ) |
779 if ( aMenuPane->NumberOfItemsInPane() == KErrNone ) |
770 { |
780 { |
771 User::Leave( KErrNotFound ); |
781 User::Leave( KErrNotFound ); |
772 } |
782 } |
773 } |
783 } |