+
+void
+EndCallForm::OnContactsChanged(const IList& contactChangeInfoList)
+{
+ UpdatePersonDetail();
+}
+
+void
+EndCallForm::UpdatePersonDetail()
+{
+ AppLog("Enter");
+ if (__pContactNumber != null && __pContactNumber->IsEmpty() == false)
+ {
+ AppCallInfo* ActiveCallInfo = new (std::nothrow) AppCallInfo();
+ ActiveCallInfo->SetContactNumber(*__pContactNumber);
+ Contact* pContact = __pCallPresentor->GetContactN(*__pContactNumber);
+ if (pContact != null)
+ {
+ ActiveCallInfo->SetContactInfo(*pContact);
+ }
+ //before setting check if the contact is deleted
+ if(pContact != null)
+ {
+ ShowViewContactButton();
+ delete pContact;
+ pContact = null;
+ }
+ else
+ {
+ ShowAddContactButton();
+ }
+ ShowPersonDetails(*__pContactNumber, IDC_CALLER1_LABEL, IDC_CALLER1_BIGPHOTO_LABEL,ActiveCallInfo);
+ delete ActiveCallInfo;
+ }
+ AppLog("Exit");
+}