SetFormBackEventListener(this);
pFooter->SetBackButton();
}
+ Label* pTimerLbl = static_cast<Label*>(GetControl(IDC_CALL_TIME_LABEL));
+ SetControlAlwaysOnTop(*pTimerLbl,true);
CreateTableView();
__pCallPresentor = CallPresentationModel::GetInstance();
__pConfCallInfo = null;
}
- RemoveAllControls();
+ //RemoveAllControls();
return r;
}
case IDA_BACK_EVENT:
{
- ArrayListT<CallInfo>* pCallList = static_cast<ArrayListT<CallInfo>*>(__pCallPresentor->GetCallListN());
+ ArrayListT<AppCallInfo>* pCallList = static_cast<ArrayListT<AppCallInfo>*>(__pCallPresentor->GetCallListN());
int noOfCalls = pCallList->GetCount();
//Ownership - To be deleted in 'OnSceneActivatedN' of next form
for (int index = 0; index < noOfCalls; index++)
{
//fetch call info and add to list
- CallInfo callInfo;
+ AppCallInfo callInfo;
result r = pCallList->GetAt(index, callInfo);
if (r == E_SUCCESS)
{
//copy call information to new instance
- CallInfo* pCaller = new (std::nothrow) CallInfo();
+ AppCallInfo* pCaller = new (std::nothrow) AppCallInfo();
*pCaller = callInfo;
pCallInfoList->Add(pCaller);
}
//set itself as listener
__pCallPresentor->SetTelEventListener(this);
- AddOrientationEventListener(*this);
+ AppLogDebug("Enter");
//DisableAllControls();
if (__pConfCallInfo != null)
//show 1st caller's info.
//Fetch Conference call info from telephony manager
__pConfCallInfo = __pCallPresentor->GetConferenceCallInfoN();
+ AppLogDebug("Enter %x",__pConfCallInfo);
//show active call timer
ShowTimerInfo(IDC_CALL_TIME_LABEL, __pConfCallInfo->GetCallConnectTime());
}
__pList->UpdateTableView();
+ AddOrientationEventListener(*this);
//ActivatePanels();
}
ConfCallerListForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
{
RemoveOrientationEventListener(*this);
- if (__pConfCallInfo != null)
- {
- delete __pConfCallInfo;
- __pConfCallInfo = null;
- }
if (__pConfCallTimer != null)
{
__pConfCallTimer->Cancel();
void
ConfCallerListForm::HandleParticipantsChanged(void)
{
- CallInfo* pCallInfo = __pCallPresentor->GetConferenceCallInfoN();
+ AppLogDebug("Enter");
+ AppCallInfo* pCallInfo = __pCallPresentor->GetConferenceCallInfoN();
if (pCallInfo == null)
{
return;
delete __pConfCallInfo;
__pConfCallInfo = null;
}
- __pConfCallInfo = new (std::nothrow) CallInfo();
+ __pConfCallInfo = new (std::nothrow) AppCallInfo();
*__pConfCallInfo = *pCallInfo;
//Disable all key panels and redraw with new caller list
//DisableAllControls();
void
ConfCallerListForm::ActivatePanels(void)
{
- IListT<CallInfo>* pCallList = __pConfCallInfo->GetCallerList();
+ IListT<AppCallInfo>* pCallList = __pConfCallInfo->GetCallerList();
int confCallCount = pCallList->GetCount();
for (int index = 0; index < confCallCount; index++)
{
- CallInfo callInfo;
+ AppCallInfo callInfo;
String pContactNo;
result r = pCallList->GetAt(index, callInfo);
if(callInfo.GetContactNumber().IsEmpty() == false)
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
- ArrayListT<CallInfo>* pCallList = static_cast<ArrayListT<CallInfo>*>(__pCallPresentor->GetCallListN());
+ ArrayListT<AppCallInfo>* pCallList = static_cast<ArrayListT<AppCallInfo>*>(__pCallPresentor->GetCallListN());
int noOfCalls = pCallList->GetCount();
//Ownership - To be deleted in 'OnSceneActivatedN' of next form
for (int index = 0; index < noOfCalls; index++)
{
//fetch call info and add to list
- CallInfo callInfo;
+ AppCallInfo callInfo;
result r = pCallList->GetAt(index, callInfo);
if (r == E_SUCCESS)
{
//copy call information to new instance
- CallInfo* pCaller = new (std::nothrow) CallInfo();
+ AppCallInfo* pCaller = new (std::nothrow) AppCallInfo();
*pCaller = callInfo;
pCallInfoList->Add(pCaller);
}
int
ConfCallerListForm::GetItemCount(void)
{
- IListT<CallInfo>* pCallList = __pConfCallInfo->GetCallerList();
+ IListT<AppCallInfo>* pCallList = __pConfCallInfo->GetCallerList();
return pCallList->GetCount();
}
TableViewItem*
ConfCallerListForm::CreateItem(int itemIndex, int itemWidth)
{
- IListT<CallInfo>* pCallList = __pConfCallInfo->GetCallerList();
+ AppLogDebug("%d %x",itemWidth,__pConfCallInfo);
+ IListT<AppCallInfo>* pCallList = __pConfCallInfo->GetCallerList();
TableViewAnnexStyle style = TABLE_VIEW_ANNEX_STYLE_NORMAL;
TableViewItem* pItem = new (std::nothrow) TableViewItem();
pEndCallButton->Construct(Rectangle(GetBounds().width-X_END_BUTTON_PADDING-W_SPLIT_BITMAP,Y_SPLIT_BUTTON_MARGIN,W_SPLIT_BITMAP,W_SPLIT_BITMAP));
- CallInfo callInfo;
+ AppCallInfo callInfo;
String pContactNo;
result r = pCallList->GetAt(itemIndex, callInfo);
pItem->AddControl(*pSplitCallButton);
pItem->AddControl(*pCallLabel);
pItem->AddControl(*pEndCallButton);
+ if(pDisplayName != null)
+ {
+ delete pDisplayName;
+ pDisplayName = null;
+ }
return pItem;