Name: org.tizen.email
Summary: email application
-Version: 0.0.3
+Version: 0.0.4
Release: 1
Group: devel
License: Flora
email_account_t *account = NULL;
account = ugd->new_account;
- int rgb = 0xdaa520ff;
+ int rgb = 0x008080ff;
account->incoming_server_user_name = g_strdup(account->user_email_address);
_set_display_name_with_email_addr(account->user_email_address, &(account->user_display_name));
p->entry_account_name = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_account_name, EINA_TRUE);
elm_entry_single_line_set(p->entry_account_name, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_account_name, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_account_name, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_account_name, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_account_name, TRUE);
p->entry_email_address = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_email_address, EINA_TRUE);
elm_entry_single_line_set(p->entry_email_address, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_email_address, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_email_address, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_email_address, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_email_address, FALSE);
p->entry_user_name = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_user_name, EINA_TRUE);
elm_entry_single_line_set(p->entry_user_name, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_user_name, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_user_name, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_user_name, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_user_name, FALSE);
p->entry_password = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_password, EINA_TRUE);
elm_entry_single_line_set(p->entry_password, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_password, EINA_TRUE);
elm_entry_password_set(p->entry_password, 1);
elm_entry_cnp_mode_set(p->entry_password, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_password, ELM_INPUT_PANEL_LAYOUT_EMAIL);
p->entry_smtp_server = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_smtp_server, EINA_TRUE);
elm_entry_single_line_set(p->entry_smtp_server, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_smtp_server, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_smtp_server, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_smtp_server, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_smtp_server, TRUE);
p->entry_smtp_port = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_smtp_port, EINA_TRUE);
elm_entry_single_line_set(p->entry_smtp_port, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_smtp_port, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_smtp_port, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_smtp_port, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY);
elm_entry_editable_set(p->entry_smtp_port, TRUE);
p->entry_incoming_server = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_incoming_server, EINA_TRUE);
elm_entry_single_line_set(p->entry_incoming_server, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_incoming_server, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_incoming_server, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_incoming_server, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_incoming_server, TRUE);
p->entry_incoming_port = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_incoming_port, EINA_TRUE);
elm_entry_single_line_set(p->entry_incoming_port, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_incoming_port, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_incoming_port, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_incoming_port, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY);
elm_entry_editable_set(p->entry_incoming_port, TRUE);
p->entry_sending_username = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_sending_username, EINA_TRUE);
elm_entry_single_line_set(p->entry_sending_username, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_sending_username, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_sending_username, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_sending_username, ELM_INPUT_PANEL_LAYOUT_EMAIL);
p->entry_sending_password = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_sending_password, EINA_TRUE);
elm_entry_single_line_set(p->entry_sending_password, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_sending_password, EINA_TRUE);
elm_entry_password_set(p->entry_sending_password, 1);
elm_entry_cnp_mode_set(p->entry_sending_password, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_sending_password, ELM_INPUT_PANEL_LAYOUT_EMAIL);
debug_log("");
p->ef = elm_layout_add(p->genlist);
elm_layout_theme_set(p->ef, "layout", "editfield", "title");
+ evas_object_size_hint_weight_set(p->ef, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_show(p->ef);
+
p->entry_sig = elm_entry_add(p->genlist);
- elm_entry_scrollable_set(p->entry_sig, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_sig, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_sig, ELM_INPUT_PANEL_LAYOUT_EMAIL);
if (account_data->options.add_signature) {
elm_object_part_text_set(p->ef, "elm.text", _("IDS_EMAIL_BODY_SIGNATURE"));
elm_object_signal_callback_add(p->ef, "elm,eraser,clicked", "elm", _eraser_clicked_cb, p->entry_sig);
- evas_object_size_hint_weight_set(p->ef, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_show(p->ef);
-
if (account_data->options.signature)
elm_entry_entry_set(p->entry_sig, p->signature_backup);
debug_log("User Name:%s", account->incoming_server_user_name);
debug_log("User Password:%s", account->incoming_server_password);
- ret = _check_null_field(vd);
-
if (ugd->popup_one) {
evas_object_del(ugd->popup_one);
ugd->popup_one = NULL;
ugd->popup_validate = NULL;
}
+ /* check Null field */
+ ret = _check_null_field(vd);
if (!ret) {
ugd->popup_one = setting_get_notify(vd,
dgettext("sys_string", "IDS_COM_POP_WARNING"),
return;
}
+ /* check character validation */
buf = g_strdup(account->user_email_address);
ret = email_get_address_validation(buf);
-
if (!ret) {
ugd->popup_one = setting_get_notify(vd,
dgettext("sys_string", "IDS_COM_POP_WARNING"),
free(buf);
return;
}
-
g_free(buf);
setting_change_view(VIEW_MANUAL_SETUP, ugd);
debug_log("User Name:%s", account->incoming_server_user_name);
debug_log("User Password:%s", account->incoming_server_password);
- if (vd->ugd->account_info == OTHERS) {
- ret = _check_null_field(vd);
- } else {
- ret = _check_preset_null_field(vd);
- }
-
if (ugd->popup_one) {
evas_object_del(ugd->popup_one);
ugd->popup_one = NULL;
ugd->popup_validate = NULL;
}
+ /* check Null field */
+ if (vd->ugd->account_info == OTHERS) {
+ ret = _check_null_field(vd);
+ } else {
+ ret = _check_preset_null_field(vd);
+ }
+
if (!ret) {
ugd->popup_one = setting_get_notify(vd,
dgettext("sys_string", "IDS_COM_POP_WARNING"),
return;
}
+ /* check ISP */
+ if (ugd->account_info != OTHERS) {
+ buf = g_strdup(account->user_email_address);
+ ret = _check_preset_isp_name(buf, ugd->account_info);
+ if (ret == FALSE) {
+ debug_log("wrong ISP server name for preset accounts");
+ ugd->popup_one = setting_get_notify(vd,
+ dgettext("sys_string", "IDS_COM_POP_WARNING"),
+ _("IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"),
+ 1, dgettext("sys_string", "IDS_COM_SK_OK"),
+ _popup_ok_cb, NULL, NULL);
+ free(buf);
+ return;
+ }
+ g_free(buf);
+ }
+
+ /* check character validation */
buf = g_strdup(account->user_email_address);
ret = email_get_address_validation(buf);
-
if (!ret) {
ugd->popup_one = setting_get_notify(vd,
dgettext("sys_string", "IDS_COM_POP_WARNING"),
g_free(buf);
/* account info setting */
- if (vd->ugd->account_info != OTHERS)
+ if (ugd->account_info != OTHERS)
setting_set_account(vd);
setting_change_view(VIEW_MANUAL_SETUP, ugd);
ugd->popup_validate = NULL;
}
+ elm_object_disabled_set(p->l_button, EINA_FALSE);
elm_object_disabled_set(p->r_button, EINA_FALSE);
elm_object_disabled_set(p->r_button2, EINA_FALSE);
+ elm_object_disabled_set(p->manual_btn, EINA_FALSE);
}
static void _popup_cancel_validation_cb(void *data, Evas_Object *obj, void *event_info)
p->entry_account_name = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_account_name, EINA_TRUE);
elm_entry_single_line_set(p->entry_account_name, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_account_name, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_account_name, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_account_name, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_account_name, TRUE);
p->entry_user_id = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_user_id, EINA_TRUE);
elm_entry_single_line_set(p->entry_user_id, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_user_id, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_user_id, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_user_id, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_user_id, TRUE);
p->entry_display_name = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_display_name, EINA_TRUE);
elm_entry_single_line_set(p->entry_display_name, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_display_name, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_display_name, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_display_name, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_display_name, TRUE);
p->entry_email_address = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_email_address, EINA_TRUE);
elm_entry_single_line_set(p->entry_email_address, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_email_address, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_email_address, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_email_address, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_email_address, TRUE);
p->entry_password = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_password, EINA_TRUE);
elm_entry_single_line_set(p->entry_password, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_password, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_password, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_password, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_password, EINA_TRUE);
p->entry_account_name = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_account_name, EINA_TRUE);
elm_entry_single_line_set(p->entry_account_name, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_account_name, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_account_name, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_account_name, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_account_name, TRUE);
p->entry_user_name = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_user_name, EINA_TRUE);
elm_entry_single_line_set(p->entry_user_name, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_user_name, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_user_name, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_user_name, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_user_name, TRUE);
p->entry_password = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_password, EINA_TRUE);
elm_entry_single_line_set(p->entry_password, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_password, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_password, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_password, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_password, EINA_TRUE);
p->entry_smtp_server = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_smtp_server, EINA_TRUE);
elm_entry_single_line_set(p->entry_smtp_server, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_smtp_server, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_smtp_server, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_smtp_server, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_smtp_server, TRUE);
p->entry_smtp_port = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_smtp_port, EINA_TRUE);
elm_entry_single_line_set(p->entry_smtp_port, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_smtp_port, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_smtp_port, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_smtp_port, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY);
elm_entry_editable_set(p->entry_smtp_port, TRUE);
p->entry_incoming_server = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_incoming_server, EINA_TRUE);
elm_entry_single_line_set(p->entry_incoming_server, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_incoming_server, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_incoming_server, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_incoming_server, ELM_INPUT_PANEL_LAYOUT_EMAIL);
elm_entry_editable_set(p->entry_incoming_server, TRUE);
p->entry_incoming_port = elm_entry_add(p->genlist);
elm_entry_scrollable_set(p->entry_incoming_port, EINA_TRUE);
elm_entry_single_line_set(p->entry_incoming_port, EINA_TRUE);
+ elm_entry_input_panel_return_key_disabled_set(p->entry_incoming_port, EINA_TRUE);
elm_entry_cnp_mode_set(p->entry_incoming_port, ELM_CNP_MODE_PLAINTEXT);
elm_entry_input_panel_layout_set(p->entry_incoming_port, ELM_INPUT_PANEL_LAYOUT_NUMBERONLY);
elm_entry_editable_set(p->entry_incoming_port, TRUE);
elm_colorselector_palette_color_add(p->colorselector, 0xff, 0xd7, 0x00, 0xff);
elm_colorselector_palette_color_add(p->colorselector, 0xad, 0xff, 0x2f, 0xff);
elm_colorselector_palette_color_add(p->colorselector, 0x00, 0x64, 0x00, 0xff);
- elm_colorselector_palette_color_add(p->colorselector, 0x19, 0x19, 0x70, 0xff);
+ elm_colorselector_palette_color_add(p->colorselector, 0x00, 0x00, 0xff, 0xff);
elm_colorselector_palette_color_add(p->colorselector, 0x80, 0x00, 0x80, 0xff);
elm_colorselector_palette_color_add(p->colorselector, 0x00, 0xbf, 0xff, 0xff);
elm_colorselector_palette_color_add(p->colorselector, 0x77, 0x88, 0x99, 0xff);
evas_object_smart_callback_add(check, "changed", _onoff_cb, vd);
evas_object_propagate_events_set(check, EINA_FALSE);
- if (account_data->sync_disabled)
+ if (account_data->sync_disabled) {
elm_check_state_set(check, EINA_FALSE);
- else
+ elm_object_item_disabled_set(p->gl_sync_item, EINA_TRUE);
+ } else {
elm_check_state_set(check, EINA_TRUE);
+ elm_object_item_disabled_set(p->gl_sync_item, EINA_FALSE);
+ }
p->onoff = check;
evas_object_smart_callback_add(check, "changed", _onoff_cb, vd);
evas_object_propagate_events_set(check, EINA_FALSE);
- if (account_data->sync_disabled)
+ if (account_data->sync_disabled) {
elm_check_state_set(check, EINA_FALSE);
- else
+ elm_object_item_disabled_set(p->gl_sync_item, EINA_TRUE);
+ } else {
elm_check_state_set(check, EINA_TRUE);
+ elm_object_item_disabled_set(p->gl_sync_item, EINA_FALSE);
+ }
p->onoff = check;