__pActiveCallInfo = null;
__pHeldCallInfo = null;
__isSwapInProgress = false;
- __pAddressbook == null;
+ __pAddressbook = null;
}
ActiveCallForm::~ActiveCallForm(void)
ActiveCallForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
{
RemoveOrientationEventListener(*this);
- if (__pCallButtonsPanel != null)
- {
- // RemoveControl(__pCallButtonsPanel);
- __pCallButtonsPanel = null;
- }
if (__pActiveCallTimer != null)
{
__pActiveCallTimer->Cancel();
switch (__formType)
{
- case FORMTYPE_EMERGENCYOUTGOINGCALL:
- {
- }
- break;
-
case FORMTYPE_OUTGOINGCALL:
case FORMTYPE_ACTIVECALL:
{
{
IListT<AppCallInfo>* pCallsList = __pCallPresentor->GetCallListN();
- int listCount = pCallsList->GetCount();
- for(int index = 0; index < listCount; index++)
+ if(pCallsList != null)
{
- AppCallInfo callInfo;
- Contact* pContact;
- pCallsList->GetAt(index, callInfo);
- if(__pActiveCallInfo == null)
+ int listCount = pCallsList->GetCount();
+ for(int index = 0; index < listCount; index++)
{
- __pActiveCallInfo = new (std::nothrow) AppCallInfo();
- }
- *__pActiveCallInfo = callInfo;
- String contactNumber;
- contactNumber.Append(__pActiveCallInfo->GetContactNumber());
- pContact = __pCallPresentor->GetContactN(__pActiveCallInfo->GetContactNumber());
- if(pContact == null)
- {
- __pActiveCallInfo->ResetContactNumber(null);
- __pActiveCallInfo->ResetContactInfo(null);
+ AppCallInfo callInfo;
+ Contact* pContact;
+ pCallsList->GetAt(index, callInfo);
+ if(__pActiveCallInfo == null)
+ {
+ __pActiveCallInfo = new (std::nothrow) AppCallInfo();
+ }
+ *__pActiveCallInfo = callInfo;
+ String contactNumber;
+ contactNumber.Append(__pActiveCallInfo->GetContactNumber());
+ pContact = __pCallPresentor->GetContactN(__pActiveCallInfo->GetContactNumber());
+ if(pContact == null)
+ {
+ __pActiveCallInfo->ResetContactNumber(null);
+ __pActiveCallInfo->ResetContactInfo(null);
+
+ }
+ else
+ {
+ __pActiveCallInfo->SetContactNumber(contactNumber);
+ __pActiveCallInfo->SetContactInfo(*pContact);
+ }
+ if(pContact != null)
+ {
+ delete pContact;
+ pContact = null;
+ }
+ if(callInfo.IsOnHold() == false)
+ {
+ ShowPersonDetails(contactNumber, IDC_NUMBER1_LABEL, IDC_CALLER1_LABEL, false,__pActiveCallInfo);
+ }
+ else
+ {
+ ShowPersonDetails(contactNumber, IDC_NUMBER2_LABEL, IDC_CALLER2_LABEL, true,__pActiveCallInfo);
+ }
- }
- else
- {
- __pActiveCallInfo->SetContactNumber(contactNumber);
- __pActiveCallInfo->SetContactInfo(*pContact);
- }
- if(pContact != null)
- {
- delete pContact;
- pContact = null;
- }
- if(callInfo.IsOnHold() == false)
- {
- ShowPersonDetails(contactNumber, IDC_NUMBER1_LABEL, IDC_CALLER1_LABEL, false,__pActiveCallInfo);
- }
- else
- {
- ShowPersonDetails(contactNumber, IDC_NUMBER2_LABEL, IDC_CALLER2_LABEL, true,__pActiveCallInfo);
}
- }
- if(pCallsList != null)
- {
delete pCallsList;
pCallsList = null;
}
- //pCallsList = __pCallPresentor->GetCallListN();
- //update calls state
- //UpdateMultipleCallScreen(*pCallsList);
- //delete pCallsList;
- //pCallsList = null;
}
break;
-
- case FORMTYPE_ACTIVECONFCALL:
- {
- int participantsCount = __pActiveCallInfo->GetCallerListCount();
- IListT<AppCallInfo>* pParticipantListCallHandles = __pActiveCallInfo->GetCallerList();
- for(int listCount = 0; listCount < participantsCount; listCount++)
- {
-
- }
-
- }
- break;
-
default:
break;
}
-
-
-
-
AppLog("Exit");
}