Phone number Selector
Question
Is this object something that already exists in the messaging app or another
part of AKN so that I can use it again ?
Answer
Yes, it does. Use something like:
TContactItemId id=(*current_ids)[index];
if (id!=0) {
contactitem=eng->ReadContactL(id);
CPbkPhoneNumberSelect* sel=new (ELeave)
CPbkPhoneNumberSelect;
return sel->ExecuteLD(*contactitem, NULL, EFalse);
}
CPbkPhoneNumberSelect is declared in CPbkPhoneNumberSelect.h
and remember to load the resource file before that, with:
TFileName resfile=_L("z:\\System\\data\\PBKVIEW.rSC");
BaflUtils::NearestLanguageFile(iEikonEnv->FsSession(), resfile); resource_files->AppendL(iEikonEnv->AddResourceFileL(resfile));