//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
__pSmallPhotoLabel = null;
__pActiveCallInfo = null;
__pHeldCallInfo = null;
+ __isSwapInProgress = false;
}
ActiveCallForm::~ActiveCallForm(void)
AppLog("DTMF Keypad rect(%d,%d,%d,%d)",rect.x,rect.y,rect.width,rect.height);
__pDTMFKeypad = new (std::nothrow) DtmfKeyPadPanel();
__pDTMFKeypad->Initialize(this, rect);
- AddControl(*__pDTMFKeypad);
+ AddControl(__pDTMFKeypad);
//set layout relation w.r.t call buttons panel
RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(GetLandscapeLayoutN());
{
//in landscape mode, caller info is visible.
SetShowStateOnKeypad(true);
+ SetHoldButtonShowState(false);
}
else if (orientationStatus == ORIENTATION_STATUS_PORTRAIT || orientationStatus == ORIENTATION_STATUS_PORTRAIT_REVERSE)
{
{
__DtmfString = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
- RemoveControl(*__pDTMFKeypad);
+ RemoveControl(__pDTMFKeypad);
__pDTMFKeypad = null;
}
}
__pCallButtonsPanel = new (std::nothrow) CallButtonsPanel();
__pCallButtonsPanel->ConstructPanel(this, __formType);
__pCallButtonsPanel->SetBounds(pKeysBgLbl->GetBounds());
- r = AddControl(*__pCallButtonsPanel);
+ r = AddControl(__pCallButtonsPanel);
}
RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(GetPortraitLayoutN());
pBgPopupArwBmp = null;
// Adds a Label to the Form
- AddControl(*__pMoreOptionsListAnchor);
+ AddControl(__pMoreOptionsListAnchor);
}
//create options menu list
__pMoreOptionsList->SetItemProvider(*this);
__pMoreOptionsList->AddListViewItemEventListener(*this);
//Add option list to the form
- AddControl(*__pMoreOptionsList);
+ AddControl(__pMoreOptionsList);
}
else
{
if (__pMoreOptionsListAnchor != null)
{
//removes and delete the child control
- RemoveControl(*__pMoreOptionsListAnchor);
+ RemoveControl(__pMoreOptionsListAnchor);
__pMoreOptionsListAnchor = null;
}
if (__pMoreOptionsList != null)
{
//removes and delete the child control
- RemoveControl(*__pMoreOptionsList);
+ RemoveControl(__pMoreOptionsList);
__pMoreOptionsList = null;
}
}
//hide only in portrait mode.
SetShowStateOnKeypad(false);
}
+ //Hide the hold button as it goes behind DTMF keypad
+ SetHoldButtonShowState(false);
ShowDTMFKeypad();
__pCallButtonsPanel->SetKeypadButtonState(IDA_CLOSE_NUMKEYPAD);
}
case IDA_SWAP_CALLS:
{
- AppAssert(__formType == FORMTYPE_MULTIPLECALLS);
- __pCallPresentor->SwapCalls();
+ if(IsSwapInProgress() == false)
+ {
+ AppAssert(__formType == FORMTYPE_MULTIPLECALLS);
+ __pCallPresentor->SwapCalls();
+ SetSwapInProgress(true);
+ }
}
break;
}
}
+bool
+ActiveCallForm::IsSwapInProgress(void)
+{
+ return __isSwapInProgress;
+}
+
+void
+ActiveCallForm::SetSwapInProgress(bool progress)
+{
+ __isSwapInProgress = progress;
+}
+
void
ActiveCallForm::SetTextToDTMFTextField(const String& dtmfStr)
{
delete pArgs;
pArgs = null;
}
+
+ CallApp* pCallApp = static_cast<CallApp*>(CallApp::GetInstance());
+ pCallApp->SetTopMostWindow(false);
}
void
RemoveOrientationEventListener(*this);
if (__pCallButtonsPanel != null)
{
- RemoveControl(*__pCallButtonsPanel);
+ RemoveControl(__pCallButtonsPanel);
__pCallButtonsPanel = null;
}
if (__pActiveCallTimer != null)
//Remove small photo label
if (__pSmallPhotoLabel != null)
{
- RemoveControl(*__pSmallPhotoLabel);
+ RemoveControl(__pSmallPhotoLabel);
__pSmallPhotoLabel = null;
}
{
if (__pSmallPhotoLabel != null)
{
- RemoveControl(*__pSmallPhotoLabel);
+ RemoveControl(__pSmallPhotoLabel);
__pSmallPhotoLabel = null;
}
//Draw Small Photo and show on small photo label
__pSmallPhotoLabel->SetBackgroundColor(Color(0,0,0));
__pSmallPhotoLabel->SetBackgroundBitmap(pPhotoId);
// Add a Label to the Form
- AddControl(*__pSmallPhotoLabel);
+ AddControl(__pSmallPhotoLabel);
__pSmallPhotoLabel->Invalidate(true);
}
}
void
+ActiveCallForm::SetHoldButtonShowState(bool showState)
+{
+ Label* pLblControl = static_cast<Label*>(GetControl(IDC_HOLD_LABEL));
+ if(pLblControl != null)
+ {
+ pLblControl->SetShowState(showState);
+ }
+ Button* pButtonControl = static_cast<Button*>(GetControl(IDC_HOLD_BUTTON));
+ if(pButtonControl != null)
+ {
+ pButtonControl->SetShowState(showState);
+ }
+}
+
+void
ActiveCallForm::SetShowStateOnKeypad(bool showState)
{
Label* pLblControl = static_cast<Label*>(GetControl(IDC_CALLER1_LABEL));
pLblControl->SetShowState(showState);
pLblControl = static_cast<Label*>(GetControl(IDC_VOICE_CALL_ICON_LABEL));
pLblControl->SetShowState(showState);
- pLblControl = static_cast<Label*>(GetControl(IDC_HOLD_LABEL));
- pLblControl->SetShowState(showState);
- Button* pButtonControl = static_cast<Button*>(GetControl(IDC_HOLD_BUTTON));
- pButtonControl->SetShowState(showState);
+ SetHoldButtonShowState(showState);
}
break;
{
pLblControl = static_cast<Label*>(GetControl(IDC_PARTICIPANTS_LABEL));
pLblControl->SetShowState(showState);
- pLblControl = static_cast<Label*>(GetControl(IDC_HOLD_LABEL));
- pLblControl->SetShowState(showState);
- Button* pButtonControl = static_cast<Button*>(GetControl(IDC_HOLD_BUTTON));
- pButtonControl->SetShowState(showState);
- pButtonControl = static_cast<Button*>(GetControl(IDC_CONF_CALL_MORE_BUTTON));
+ SetHoldButtonShowState(showState);
+ Button* pButtonControl = static_cast<Button*>(GetControl(IDC_CONF_CALL_MORE_BUTTON));
pButtonControl->SetShowState(showState);
}
break;
{
//Goto conference call list form
SceneManager* pSceneManager = SceneManager::GetInstance();
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SCENE_CONFCALLLIST), null);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SCENE_CONFCALLLIST, SCENE_TRANSITION_ANIMATION_TYPE_NONE,
+ SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), null);
}
void
void
ActiveCallForm::OnForeground(void)
{
+ AppLogDebug("Enter");
__pCallPresentor->OnAppForeground();
}