Tizen::Ui::Controls::ListView* __pMoreOptionsList;
Tizen::Ui::Controls::Label* __pMoreOptionsListAnchor;
Tizen::Ui::Controls::Label* __pSmallPhotoLabel;
+ Tizen::Base::String __DtmfString;
AppCallInfo* __pActiveCallInfo;
AppCallInfo* __pHeldCallInfo;
};
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
-<ScenePanel Bversion="2.0.0.201303250952" Dversion="20120315">
+
+<ScenePanel Bversion="2.0.0.201304081058" Dversion="20120315">
<Panel id="IDL_DTMF_KEYPAD_PANEL">
<property backgroundColor="#000000" backgroundColorOpacity="50" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
<layout height="720.0" mode="Portrait" type="LAYOUT_RELATIVE" width="720.0" x="0.0" y="0.0"/>
<layout height="660.0" mode="Landscape" type="LAYOUT_RELATIVE" width="560.0" x="0.0" y="0.0"/>
</Panel>
<Label id="IDC_DTMF_KEY_BG_LABEL" parent="IDL_DTMF_KEYPAD_PANEL">
- <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+ <property accessibilityHint="" backgroundBitmapPath="C01-1_keypad_btn_normal.png" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
<layout bottomRelation="IDL_DTMF_KEYPAD_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="560.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DTMF_KEYPAD_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="35.0" marginRight="35.0" marginTop="140.0" mode="Portrait" rightRelation="IDL_DTMF_KEYPAD_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_DTMF_KEYPAD_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="650.0" x="35.0" y="140.0"/>
<layout bottomRelation="IDL_DTMF_KEYPAD_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="500.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DTMF_KEYPAD_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="20.0" marginRight="20.0" marginTop="16.0" mode="Landscape" rightRelation="IDL_DTMF_KEYPAD_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="520.0" x="20.0" y="140.0"/>
</Label>
<EditField id="IDC_NUM_EDITFIELD" parent="IDL_DTMF_KEYPAD_PANEL">
- <property accessibilityHint="" commandButtonVisible="false" disabledBGBitmapPath="" disabledColor="#FFFFFF" disabledColorOpacity="0" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_START" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="#FFFFFF" highlightedColorOpacity="0" highlightedTextColor="#FFFFFF" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="false" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="#FFFFFF" normalColorOpacity="0" normalTextColor="#FFFFFF" pressedBGBitmapPath="" pressedColor="#FFFFFF" pressedColorOpacity="0" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="94.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="12.0" viewMode="false"/>
+ <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="#FFFFFF" disabledColorOpacity="0" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="#FFFFFF" highlightedColorOpacity="0" highlightedTextColor="#FFFFFF" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_ENTER" keypadEnabled="false" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="#FFFFFF" normalColorOpacity="0" normalTextColor="#FFFFFF" pressedBGBitmapPath="" pressedColor="#FFFFFF" pressedColorOpacity="0" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="94.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="12.0" viewMode="false"/>
<layout bottomRelation="IDC_DTMF_KEY_BG_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DTMF_KEYPAD_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="35.0" marginRight="35.0" marginTop="10.0" mode="Portrait" rightRelation="IDL_DTMF_KEYPAD_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_PHONE_NUMBER" topRelation="IDL_DTMF_KEYPAD_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="650.0" x="35.0" y="10.0"/>
<layout bottomRelation="IDC_DTMF_KEY_BG_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="130.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DTMF_KEYPAD_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="20.0" marginRight="20.0" marginTop="10.0" mode="Landscape" rightRelation="IDL_DTMF_KEYPAD_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_PHONE_NUMBER" topRelation="IDL_DTMF_KEYPAD_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="520.0" x="20.0" y="10.0"/>
</EditField>
-->
<!DOCTYPE Scene SYSTEM "UIForm.dtd">
-<Scene Bversion="2.0.0.201304041646" Dversion="20120315">
+<Scene Bversion="2.0.0.201304081058" Dversion="20120315">
<LogicalCoordinate>720</LogicalCoordinate>
<Form id="IDL_MULTIPLE_CALL_FORM">
<property backgroundColor="#000000" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic:4Dir" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="70.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="24.0" marginTop="22.0" mode="Landscape" rightRelation="IDL_MULTIPLE_CALL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_MULTIPLE_CALL_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="70.0" x="1186.0" y="22.0"/>
</Label>
<Button id="IDC_CONF_CALL_MORE_BUTTON" parent="IDL_MULTIPLE_CALL_FORM">
- <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="#FFFFFF" normalColorOpacity="0" normalTextColor="" pressedBGBitmapPath="C01-1_icon_more_press.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+ <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="C01-1_icon_more.png" normalBitmapPath="" normalColor="#FFFFFF" normalColorOpacity="0" normalTextColor="" pressedBGBitmapPath="C01-1_icon_more_press.png" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="16.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_MULTIPLE_CALL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="72.0" x="632.0" y="23.0"/>
<layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="70.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="24.0" marginTop="22.0" mode="Landscape" rightRelation="IDL_MULTIPLE_CALL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_MULTIPLE_CALL_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="70.0" x="1186.0" y="22.0"/>
</Button>
pRelativeLayout->SetRelation(*__pDTMFKeypad, __pCallButtonsPanel, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
}
}
- EditField* pTextBox = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX));
__pDTMFKeypad->SetShowState(true);
+ if(__DtmfString.IsEmpty() == false)
+ {
+ EditField* pTextBox = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX));
+ pTextBox->SetText(__DtmfString);
+ }
__pDTMFKeypad->Draw(true);
__pDTMFKeypad->Show();
}
//in Portrait mode it is hidden beneath DTMF Keypad.
SetShowStateOnKeypad(false);
}
- String dtmfText = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
- ShowDTMFKeypad();
- //get new text box.
- EditField* pTextBox = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX));
- pTextBox->SetText(dtmfText);
+ if(__pDTMFKeypad->GetShowState() == true)
+ {
+ String dtmfText = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
+ HideDTMFKeypad();
+ ShowDTMFKeypad();
+ }
}
}
//More option is displayed recreate it
{
if(__pDTMFKeypad != null)
{
- __pDTMFKeypad->SetShowState(false);
- __pDTMFKeypad->Draw(true);
- __pDTMFKeypad->Show();
+ __DtmfString = static_cast<EditField*>(__pDTMFKeypad->GetControl(IDC_TEXTBOX))->GetText();
+
+ RemoveControl(*__pDTMFKeypad);
+ __pDTMFKeypad = null;
}
}
{
__pMoreOptionsList->SetShowState(false);
}
+ __DtmfString.Clear();
}
void
pMoreBtn->SetShowState(false);
}
ShowPersonDetails(contactNo, IDC_NUMBER1_LABEL, IDC_CALLER1_LABEL, false,__pActiveCallInfo);
+ if(__pMoreOptionsListAnchor != null && __pMoreOptionsListAnchor->GetShowState() == true)
+ {
+ CreateMoreOptionsMenuList();
+ }
}
else
{
pTextElement->SetFont(font);
//construct Enriched text
EnrichedText* pEnrichedText = new (std::nothrow) EnrichedText();
- Dimension textDimension;
+ FloatDimension textDimension;
font.GetTextExtent(confCallName, confCallName.GetLength(), textDimension);
textDimension.height = textDimension.height + font.GetDescender();
pEnrichedText->Construct(textDimension);
pEnrichedText->Add(*pTextElement);
//Add Enriched text to pItem
- Point textPos(((2 * IDI_OPTIONMENU_ITEM_SPACING) + W_MGR_CONFCALL_BITMAP), ((IDI_OPTIONMENU_DIMEN.height - textDimension.height) / 2));
- pItem->AddElement(Rectangle(textPos, textDimension), 2, *pEnrichedText);
+ FloatPoint textPos(((2 * IDI_OPTIONMENU_ITEM_SPACING) + W_MGR_CONFCALL_BITMAP), ((IDI_OPTIONMENU_DIMEN.height - textDimension.height) / 2));
+ pItem->AddElement(FloatRectangle(textPos, textDimension), 2, *pEnrichedText);
// Cleans up
pEnrichedText->RemoveAll(true);
delete pEnrichedText;
Font font;
font.Construct(FONT_STYLE_PLAIN, IDI_TEXT_SIZE);
- Dimension textDimension;
+ FloatDimension textDimension;
font.GetTextExtent(buttonName, buttonName.GetLength(), textDimension);
textDimension.height = textDimension.height + font.GetDescender();
TextElement* pTextElement = new (std::nothrow) TextElement();
delete textColor;
//get dimensions of the text
- Dimension textDimension;
+ FloatDimension textDimension;
font->GetTextExtent(buttonText, buttonText.GetLength(), textDimension);
if(textFontStyle != FONT_KEYPAD_NUMBER)
{
pItem->AddControl(*pSplitCallButton);
pItem->AddControl(*pCallLabel);
pItem->AddControl(*pEndCallButton);
+ if(pDisplayName != null)
+ {
+ delete pDisplayName;
+ pDisplayName = null;
+ }
return pItem;
//Set background bitmap
Label* pKeyBgLbl = static_cast<Label*>(GetControl(IDC_DTMF_KEY_BG_LABEL, true));
- Bitmap* pKeyBgBitmap = AppUtility::GetBitmapFromResourcesN(IDB_KEYPAD_BG, pKeyBgLbl->GetWidth(), pKeyBgLbl->GetHeight());
+ /*Bitmap* pKeyBgBitmap = AppUtility::GetBitmapFromResourcesN(IDB_KEYPAD_BG, pKeyBgLbl->GetWidth(), pKeyBgLbl->GetHeight());
if (pKeyBgBitmap != null)
{
pKeyBgLbl->SetBackgroundBitmap(*pKeyBgBitmap);
delete pKeyBgBitmap;
pKeyBgBitmap = null;
- }
+ }*/
//DTMF Keys panel
Panel* pKeysPanel = new (std::nothrow) Panel();
__isContactAppControlLaunched = false;
}
extraData.RemoveAll(true);
+ if(pContact != null)
+ {
+ delete pContact;
+ pContact = null;
+ }
}
void
//or if call is from known number(i.e present in contacts db), Then do NOT show "Add to Contact" button.
if (pEndCall->GetContactInfo() != null || pEndCall->GetContactNumber().IsEmpty() == true)
{
- SetContactButtonState(false);
+ Contact* pContact = __pCallPresentor->GetContactN(pEndCall->GetContactNumber());
+ //before setting check if the contact is deleted
+ if(pContact != null)
+ {
+ SetContactButtonState(false);
+ }
+ else
+ {
+ SetContactButtonState(true);
+ }
}
else
{
}
pMessageList->SetBounds(tmpRect.x, tmpRect.y, tmpRect.width, listHeight);
+ pMessageList->UpdateTableView();
tmpRect = pKeysPanel->GetBounds();
pKeysPanel->SetBounds(tmpRect.x, tmpRect.y, tmpRect.width, H_MESSAGE_BG_BITMAP /*+ H_REJECT_VIEW_FOOTER*/ + listHeight);
//set button name
String holdBtnName = AppUtility::GetResourceString(btnName);
- Dimension textDimension;
+ FloatDimension textDimension;
if (!holdBtnName.IsEmpty())
{
Font font;
TryCatch(__pTelephonyMgr != null, (errorCode = ERROR_TAPI_INIT_FAILED), "TAPI initialization failed");
//check if phone is in flight mode
- if(__pSettingsPresentor->GetFlightModeStatus() == true)
+ if(__pSettingsPresentor != null && __pSettingsPresentor->GetFlightModeStatus() == true)
{
__pTelEventListener->HandleTelephonyError(ERROR_FLIGHT_MODE_SET);
return;
{
delete pMessageMap;
pMessageMap = null;
+ delete pMessageStr;
+ pMessageStr = null;
return null;
}
break;
//then divert event to "HandleParticipantEndedFromConference()"
AppCallInfo confCallInfo;
bool isConferenceCallChanged = false;
- for (int index = 0; index < pActiveCallList->GetCount(); index++)
+ for (int index = 0; (pActiveCallList != null && index < pActiveCallList->GetCount()); index++)
{
//fetch conference call
result r = pActiveCallList->GetAt(index, confCallInfo);