virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
virtual int GetItemCount(void);
+ void UpdateViewByPopupList();
result ConstructViewbyPopup();
result ConstructBlockPopup(Tizen::Base::String& phoneNumber, bool isCallRejected, bool isMsgBeRejected);
Tizen::Ui::Controls::Button* __pButtonCancel;
Tizen::Ui::Controls::Button* __pButtonBlockOk;
Tizen::Ui::Controls::Button* __pButtonBlockCancel;
+ ListView* __pListView;
bool __isBlockCallSelected;
bool __isBlockMessageSelected;
void ShowCallContextMenu(Tizen::Base::String& contactNumber);
//Used to check if App is in foreground.
bool IsForeground();
+ //Used to show silent mode message box
+ void ShowSilentModeToggle(bool bEnabled);
virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
extern const wchar_t* IDS_DIALER_MOBILE_STR;
extern const wchar_t* IDS_DIALER_SPEEDDIAL_POPUP_MSG;
extern const wchar_t* IDS_DIALER_SPEEDDIAL_POPUP_TITLE_MSG;
+extern const wchar_t* IDS_DIALER_VOICE_POPUP_MSG;
+extern const wchar_t* IDS_DIALER_VOICE_POPUP_TITLE_MSG;
extern const wchar_t* IDS_SPEEDDIAL_POP_YES_BTN_STRING;
extern const wchar_t* IDS_SPEEDDIAL_POP_NO_BTN_STRING;
extern const wchar_t* IDS_DIALER_MENU_ITEM_SEND_MSG;
extern const wchar_t* IDS_SETTING_EDIT_REJECT_MSG_TITLE;
extern const wchar_t* IDS_SPEED_DIAL_INVALID_CONTACT;
extern const wchar_t* IDS_SPEED_DIAL_INVALID_CONTACT_OK;
+extern const wchar_t* IDS_SILENT_MODE_ENABLED;
+extern const wchar_t* IDS_SILENT_MODE_DISABLED;
//control name
extern const wchar_t* IDC_GROUPEDTABLEVIEW;
<Feature Name="http://tizen.org/feature/platform.core.fpu.arch.vfpv3">true</Feature>
</Requirements>
<Apps>
- <ApiVersion>2.1</ApiVersion>
+ <ApiVersion>2.2</ApiVersion>
<Privileges>
<Privilege>http://tizen.org/privilege/application.launch</Privilege>
<Privilege>http://tizen.org/privilege/appusage</Privilege>
<text id="IDS_SETTING_SET_BARRING_PWD_LABEL_STRING">Enter Password</text>
<text id="IDS_DIALER_KEYPAD_STRING">Keypad</text>
<text id="IDS_DIALER_LOGS_STRING">Logs</text>
+ <text id="IDS_SILENT_MODE_ENABLED">Silent Mode Enabled</text>
+ <text id="IDS_SILENT_MODE_DISABLED">Silent Mode Disabled</text>
+ <text id="IDS_DIALER_VOICE_POPUP_MSG">Assign now?</text>
+ <text id="IDS_DIALER_VOICE_POPUP_TITLE_MSG">No Voice Mail Assigned.</text>
</string_table>
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE ScenePopup SYSTEM "UIForm.dtd">
-<ScenePopup Bversion="2.0.0.201303182057" Dversion="20120315">
+<ScenePopup Bversion="2.0.0.201306281023" Dversion="20120315">
<Popup id="IDL_CALL_LOG_VIEWBY_POPUP">
<property accessibilityHint="" color="" titleText="" titleTextColor=""/>
- <layout height="520.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="600.0"/>
- <layout height="520.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="600.0"/>
+ <layout height="573.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="600.0"/>
+ <layout height="573.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="600.0"/>
</Popup>
<Label id="IDC_POPUP_TITLE" parent="IDL_CALL_LOG_VIEWBY_POPUP">
<property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="View by" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="93.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CALL_LOG_VIEWBY_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_CALL_LOG_VIEWBY_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CALL_LOG_VIEWBY_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="560.0" x="0.0" y="0.0"/>
- <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="93.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CALL_LOG_VIEWBY_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_CALL_LOG_VIEWBY_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CALL_LOG_VIEWBY_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="560.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="125.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CALL_LOG_VIEWBY_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_CALL_LOG_VIEWBY_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CALL_LOG_VIEWBY_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="600.0" x="0.0" y="0.0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="125.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_CALL_LOG_VIEWBY_POPUP" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_CALL_LOG_VIEWBY_POPUP" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_CALL_LOG_VIEWBY_POPUP" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="600.0" x="0.0" y="0.0"/>
</Label>
</ScenePopup>
__pBlockInfo = null;
__isBlockCallSelected = false;
__isBlockMessageSelected = false;
+ __pListView = null;
}
CallLogViewByPopup::~CallLogViewByPopup()
return r;
}
SetPropagatedKeyEventListener(this);
+ AppUtility::GetGlobalFontAndItemHeight(&__fontSize, &__itemHeight);
//show options
__pOptionsList = new (std::nothrow) ArrayList(SingleObjectDeleter);
__pOptionsList->Construct();
if(__pPopupTitle != null)
{
cmdString = AppUtility::GetResourceString(IDS_VIEWBY_POPUP_TITLE_STRING);
+ __pPopupTitle->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
__pPopupTitle->SetText(cmdString);
}
+ __pListView = new (std::nothrow) ListView();
+ __pListView->Construct(Rectangle(0, __pPopupTitle->GetHeight() + POPUP_TITLE_PADDING, W_POPUP, H_LIST), true, SCROLL_STYLE_FADE_OUT);
+ __pListView->AddListViewItemEventListener(*this);
+ __pListView->SetItemProvider(*this);
+ r = AddControl(__pListView);
+
String strText;
Application::GetInstance()->GetAppResource()->GetString(L"IDS_CANCEL", strText);
Button* pCancelButton = new (std::nothrow) Button();
- r = pCancelButton->Construct(Rectangle(((W_POPUP - W_CANCEL_BUTTON)/2)-25, H_POPUP_TITLE + POPUP_TITLE_PADDING + H_LIST + CANCEL_BUTTON_PADDING , W_CANCEL_BUTTON, H_CANCEL_BUTTON), strText);
+ r = pCancelButton->Construct(Rectangle(((W_POPUP - W_CANCEL_BUTTON)/2), __pPopupTitle->GetHeight() + POPUP_TITLE_PADDING + __pListView->GetHeight() + CANCEL_BUTTON_PADDING, W_CANCEL_BUTTON, H_CANCEL_BUTTON), strText);
pCancelButton->SetActionId(IDA_CANCEL);
pCancelButton->AddActionEventListener(*this);
r = AddControl(pCancelButton);
TryReturn(r == E_SUCCESS, r, "CallOptionPopup::AddControl() failed");
- ListView* pListView = new (std::nothrow) ListView();
- pListView->Construct(Rectangle(0, H_POPUP_TITLE + POPUP_TITLE_PADDING, W_POPUP, H_LIST), true, SCROLL_STYLE_FADE_OUT);
- pListView->AddListViewItemEventListener(*this);
- pListView->SetItemProvider(*this);
- r = AddControl(pListView);
-
- pListView->UpdateList();
- pListView->SetItemChecked(__selectedViewByIndex, true);
- pListView->Invalidate(true);
+ __pListView->UpdateList();
+ __pListView->SetItemChecked(__selectedViewByIndex, true);
+ __pListView->Invalidate(true);
return r;
}
int
CallLogViewByPopup::GetItemCount(void)
{
- AppUtility::GetGlobalFontAndItemHeight(&__fontSize, &__itemHeight);
if (__pOptionsList != null)
{
return __pOptionsList->GetCount();
return true;
}
+void
+CallLogViewByPopup::UpdateViewByPopupList()
+{
+ AppUtility::GetGlobalFontAndItemHeight(&__fontSize, &__itemHeight);
+ __pPopupTitle->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+ __pPopupTitle->Invalidate(true);
+ __pListView->UpdateList();
+ __pListView->Invalidate(true);
+}
+
result
CallLogViewByPopup::ConstructBlockPopup(Tizen::Base::String& phoneNumber, bool isCallRejected, bool isMsgBeRejected)
{
using namespace Tizen::Base::Utility;
//Constants
-const int H_SPEEDDIAL_POPUP = 300;
+const int H_SPEEDDIAL_POPUP = 350;
const int W_SPEEDDIAL_POPUP = 720;
const int H_POPUP_MSG_LABEL = 100;
const int H_POPUP_BTN = 90;
const wchar_t* IDC_LABEL_LASTROW_BG = L"IDC_LABEL_LASTROW_BG";
const wchar_t* IDC_PANEL_DROPDOWN = L"IDC_PANEL_DROPDOWN";
const wchar_t* IDC_PANEL_USE_CONTACT = L"IDC_PANEL_USE_CONTACT";
+const wchar_t* IDC_SPEED_DIAL_TXT_LABEL = L"IDC_SPEED_DIAL_TXT_LABEL";
//Button Dimensions
//enable or disable the phone silent mode.
result r = E_FAILURE;
r = SettingInfo::SetValue(title, !enabled);
- if(r == E_OBJ_NOT_FOUND)
+ if(r == E_SUCCESS)
{
- AppLog("Object not found");
+ ShowSilentModeToggle(!enabled);
}
}
}
void
DialTabDialer::ShowSpeedDialConfirmationPopup(bool isVoiceMail)
{
+ String popupTitleMsg;
+ String popupMsg;
+ Label* pMsgLabel;
if(__pConfirmationPopup == null)
{
FloatRectangle rect = GetBoundsF();
__pConfirmationPopup->Construct(true, FloatDimension(W_SPEEDDIAL_POPUP, H_SPEEDDIAL_POPUP));
rect = __pConfirmationPopup->GetBoundsF();
- Label* pMsgLabel = new (std::nothrow) Label();
- String popupTitleMsg;
- String popupMsg;
+ pMsgLabel = new (std::nothrow) Label();
if(isVoiceMail == true)
{
- popupMsg = AppUtility::GetResourceString(IDS_DIALER_VOICE_MAIL_POPUP_MSG);
+ popupTitleMsg = AppUtility::GetResourceString(IDS_DIALER_VOICE_POPUP_TITLE_MSG);
+ popupMsg = AppUtility::GetResourceString(IDS_DIALER_VOICE_POPUP_MSG);
}
else
{
__pConfirmationPopup->SetPropagatedKeyEventListener(this);
__pConfirmationPopup->Invalidate(true);
pMsgLabel->Construct(Rectangle(0, IDI_PADDING, rect.width, H_POPUP_MSG_LABEL), popupMsg);
+ pMsgLabel->SetName(IDC_SPEED_DIAL_TXT_LABEL);
+ pMsgLabel->SetTextConfig(44,LABEL_TEXT_STYLE_NORMAL);
pMsgLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
pMsgLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
__pConfirmationPopup->AddControl(*pMsgLabel);
pButtonNo->AddActionEventListener(*this);
__pConfirmationPopup->AddControl(pButtonNo);
}
+ else
+ {
+ if(isVoiceMail == true)
+ {
+ popupTitleMsg = AppUtility::GetResourceString(IDS_DIALER_VOICE_POPUP_TITLE_MSG);
+ popupMsg = AppUtility::GetResourceString(IDS_DIALER_VOICE_POPUP_MSG);
+ }
+ else
+ {
+ popupTitleMsg = AppUtility::GetResourceString(IDS_DIALER_SPEEDDIAL_POPUP_TITLE_MSG);
+ popupMsg = AppUtility::GetResourceString(IDS_DIALER_SPEEDDIAL_POPUP_MSG);
+ }
+ __pConfirmationPopup->SetTitleText(popupTitleMsg);
+ pMsgLabel = static_cast<Label*>(__pConfirmationPopup->GetControl(IDC_SPEED_DIAL_TXT_LABEL, true));
+ pMsgLabel->SetText(popupMsg);
+
+ }
//Show Popup message
__pConfirmationPopup->SetShowState(true);
__pConfirmationPopup->Show();
}
return false;
}
+
+void
+DialTabDialer::ShowSilentModeToggle(bool bEnabled)
+{
+ // Creates an instance of MessageBox
+ String message = (bEnabled ? AppUtility::GetResourceString(IDS_SILENT_MODE_ENABLED):AppUtility::GetResourceString(IDS_SILENT_MODE_DISABLED));
+ MessageBox silentMsgBox;
+
+ silentMsgBox.Construct(L"", message, MSGBOX_STYLE_NONE, 2000);
+ // Calls ShowAndWait() : Draws and Shows itself and processes events
+ SetFocus();
+ int modalResult;
+ silentMsgBox.ShowAndWait(modalResult);
+}
__fontSize = fontSize;
__itemHeight = itemHeight;
__plogsListView->UpdateList();
+ if(__pLogsViewbyPopup != null && __pLogsViewbyPopup->GetShowState() == true)
+ {
+ __pLogsViewbyPopup->UpdateViewByPopupList();
+ }
}
}
const wchar_t* IDS_DIALER_MOBILE_STR = L"IDS_DIALER_MOBILE_STR";
const wchar_t* IDS_DIALER_SPEEDDIAL_POPUP_MSG = L"IDS_DIALER_SPEEDDIAL_POPUP_MSG";
const wchar_t* IDS_DIALER_SPEEDDIAL_POPUP_TITLE_MSG = L"IDS_DIALER_SPEEDDIAL_POPUP_TITLE_MSG";
+const wchar_t* IDS_DIALER_VOICE_POPUP_MSG = L"IDS_DIALER_VOICE_POPUP_MSG";
+const wchar_t* IDS_DIALER_VOICE_POPUP_TITLE_MSG = L"IDS_DIALER_VOICE_POPUP_TITLE_MSG";
const wchar_t* IDS_SPEEDDIAL_POP_YES_BTN_STRING = L"IDS_SPEEDDIAL_POP_YES_BTN_STRING";
const wchar_t* IDS_SPEEDDIAL_POP_NO_BTN_STRING = L"IDS_SPEEDDIAL_POP_NO_BTN_STRING";
const wchar_t* IDS_DIALER_MENU_ITEM_SEND_MSG = L"IDS_DIALER_MENU_ITEM_SEND_MSG";
const wchar_t* IDS_SETTING_ADD_REJECT_MSG_TITLE = L"IDS_SETTING_ADD_REJECT_MSG_TITLE";
const wchar_t* IDS_SETTING_SET_BARRING_PWD_TITLE = L"IDS_SETTING_SET_BARRING_PWD_TITLE";
const wchar_t* IDS_SETTING_EDIT_REJECT_MSG_TITLE = L"IDS_SETTING_EDIT_REJECT_MSG_TITLE";
+const wchar_t* IDS_SILENT_MODE_ENABLED = L"IDS_SILENT_MODE_ENABLED";
+const wchar_t* IDS_SILENT_MODE_DISABLED = L"IDS_SILENT_MODE_DISABLED";
//control name for settings module
const wchar_t* IDC_GROUPEDTABLEVIEW = L"IDC_GROUPEDTABLEVIEW";