Submitting latest code on private git to public git 64/13164/1
authorSrinivasa Rao Payyavula <p.srinivasa@samsung.com>
Thu, 28 Nov 2013 13:52:03 +0000 (19:22 +0530)
committerSrinivasa Rao Payyavula <p.srinivasa@samsung.com>
Thu, 28 Nov 2013 13:52:03 +0000 (19:22 +0530)
Change-Id: Ie1da54f69043a202b349f6f1c97ce98e0fb6c5e9
Signed-off-by: Srinivasa Rao Payyavula <p.srinivasa@samsung.com>
634 files changed:
.cproject [new file with mode: 0755]
.project [new file with mode: 0755]
CMakeLists.txt [new file with mode: 0755]
LICENSE.Flora [new file with mode: 0755]
NOTICE [new file with mode: 0755]
inc/EmAccountConfiguration.h [new file with mode: 0644]
inc/EmAccountSettingMainForm.h [new file with mode: 0755]
inc/EmAccountSettingSetUpMailboxForm.h [new file with mode: 0644]
inc/EmAddAccountForm.h [new file with mode: 0755]
inc/EmAddAddressForm.h [new file with mode: 0644]
inc/EmAddSubjectForm.h [new file with mode: 0644]
inc/EmAllMailsPresentationModel.h [new file with mode: 0644]
inc/EmAttachmentPanel.h [new file with mode: 0755]
inc/EmBaseListViewItemProvider.h [new file with mode: 0644]
inc/EmBasePresentationModel.h [new file with mode: 0755]
inc/EmBlockForm.h [new file with mode: 0644]
inc/EmComposerForm.h [new file with mode: 0644]
inc/EmComposerPresentationModel.h [new file with mode: 0644]
inc/EmDeleteSubjectAddress.h [new file with mode: 0644]
inc/EmDetailForm.h [new file with mode: 0755]
inc/EmDraftboxPresentationModel.h [new file with mode: 0644]
inc/EmEmailApp.h [new file with mode: 0644]
inc/EmEmailSettingForm.h [new file with mode: 0644]
inc/EmEmailSettingPresentationModel.h [new file with mode: 0644]
inc/EmEmailSettingProvider.h [new file with mode: 0644]
inc/EmFoldersForm.h [new file with mode: 0644]
inc/EmFormFactory.h [new file with mode: 0644]
inc/EmIListDataChangeListener.h [new file with mode: 0644]
inc/EmInboxPresentationModel.h [new file with mode: 0644]
inc/EmMailListForm.h [new file with mode: 0644]
inc/EmMailSyncThread.h [new file with mode: 0644]
inc/EmMainFrame.h [new file with mode: 0644]
inc/EmManualSetUpForm.h [new file with mode: 0755]
inc/EmMarkAllAsListViewItemProvider.h [new file with mode: 0644]
inc/EmMoveMailForm.h [new file with mode: 0644]
inc/EmNativeMailboxManager.h [new file with mode: 0644]
inc/EmOutboxPresentationModel.h [new file with mode: 0644]
inc/EmRecipientField.h [new file with mode: 0755]
inc/EmSearchForm.h [new file with mode: 0644]
inc/EmSearchPresentationModel.h [new file with mode: 0755]
inc/EmSentboxPresentationModel.h [new file with mode: 0644]
inc/EmSetAllAsListViewItemProvider.h [new file with mode: 0644]
inc/EmSortByListViewItemProvider.h [new file with mode: 0644]
inc/EmSpamboxPresentationModel.h [new file with mode: 0644]
inc/EmStateInfo.h [new file with mode: 0644]
inc/EmTrashPresentationModel.h [new file with mode: 0644]
inc/EmTypes.h [new file with mode: 0755]
inc/EmUtils.h [new file with mode: 0755]
manifest.xml [new file with mode: 0755]
packaging/apps.Email.spec [new file with mode: 0755]
res/.workflow [new file with mode: 0755]
res/ara-AE.xml [new file with mode: 0755]
res/aze-AZ.xml [new file with mode: 0755]
res/bul-BG.xml [new file with mode: 0755]
res/cat-ES.xml [new file with mode: 0755]
res/ces-CZ.xml [new file with mode: 0755]
res/dan-DK.xml [new file with mode: 0755]
res/deu-DE.xml [new file with mode: 0755]
res/ell-GR.xml [new file with mode: 0755]
res/eng-GB.xml [new file with mode: 0755]
res/eng-PH.xml [new file with mode: 0755]
res/eng-US.xml [new file with mode: 0755]
res/est-EE.xml [new file with mode: 0755]
res/eus-ES.xml [new file with mode: 0755]
res/fin-FI.xml [new file with mode: 0755]
res/fra-CA.xml [new file with mode: 0755]
res/fra-FR.xml [new file with mode: 0755]
res/gle-IE.xml [new file with mode: 0755]
res/glg-ES.xml [new file with mode: 0755]
res/hin-IN.xml [new file with mode: 0755]
res/hrv-HR.xml [new file with mode: 0755]
res/hun-HU.xml [new file with mode: 0755]
res/hye-AM.xml [new file with mode: 0755]
res/isl-IS.xml [new file with mode: 0755]
res/ita-IT.xml [new file with mode: 0755]
res/jpn-JP.xml [new file with mode: 0755]
res/kat-GE.xml [new file with mode: 0755]
res/kaz-KZ.xml [new file with mode: 0755]
res/kor-KR.xml [new file with mode: 0755]
res/lav-LV.xml [new file with mode: 0755]
res/lit-LT.xml [new file with mode: 0755]
res/mkd-MK.xml [new file with mode: 0755]
res/nld-NL.xml [new file with mode: 0755]
res/nob-NO.xml [new file with mode: 0755]
res/pol-PL.xml [new file with mode: 0755]
res/por-BR.xml [new file with mode: 0755]
res/por-PT.xml [new file with mode: 0755]
res/ron-RO.xml [new file with mode: 0755]
res/rus-RU.xml [new file with mode: 0755]
res/screen-density-high/00_button_sweep_delete.png [new file with mode: 0755]
res/screen-density-xhigh/00_Nocontents_text.png [new file with mode: 0755]
res/screen-density-xhigh/00_badge_34x34.png [new file with mode: 0755]
res/screen-density-xhigh/00_button_sweep_delete.png [new file with mode: 0755]
res/screen-density-xhigh/00_icon_more.png [new file with mode: 0755]
res/screen-density-xhigh/00_icon_more_dim.png [new file with mode: 0755]
res/screen-density-xhigh/00_icon_more_press.png [new file with mode: 0755]
res/screen-density-xhigh/00_icon_select_all_dim_web.png [new file with mode: 0755]
res/screen-density-xhigh/00_icon_select_all_press_web.png [new file with mode: 0755]
res/screen-density-xhigh/00_icon_select_all_web.png [new file with mode: 0755]
res/screen-density-xhigh/00_index_list_bg.png [new file with mode: 0755]
res/screen-density-xhigh/00_input_bg.png [new file with mode: 0755]
res/screen-density-xhigh/00_list_bar_press_1x80.png [new file with mode: 0755]
res/screen-density-xhigh/00_list_bar_press_1x90.png [new file with mode: 0755]
res/screen-density-xhigh/00_list_expandable_2_bg.png [new file with mode: 0755]
res/screen-density-xhigh/00_list_expandable_bg.png [new file with mode: 0755]
res/screen-density-xhigh/00_list_img_check.png [new file with mode: 0755]
res/screen-density-xhigh/00_list_photo_default.png [new file with mode: 0755]
res/screen-density-xhigh/00_list_thumbnail_bg.png [new file with mode: 0755]
res/screen-density-xhigh/00_sweep_list_bg.png [new file with mode: 0755]
res/screen-density-xhigh/00_winset_title_line.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_accounts.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_change_group.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_create_folder.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_favorite.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_forward.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_reply.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_send.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_set_as.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_store.png [new file with mode: 0755]
res/screen-density-xhigh/01_controlbar_icon_tag.png [new file with mode: 0755]
res/screen-density-xhigh/01_controllbar_icon_add_tag.png [new file with mode: 0755]
res/screen-density-xhigh/01_header_icon_add.png [new file with mode: 0755]
res/screen-density-xhigh/01_header_icon_cancel.png [new file with mode: 0755]
res/screen-density-xhigh/01_header_icon_delete.png [new file with mode: 0755]
res/screen-density-xhigh/01_header_icon_done.png [new file with mode: 0755]
res/screen-density-xhigh/01_header_icon_edit.png [new file with mode: 0755]
res/screen-density-xhigh/01_header_icon_others.png [new file with mode: 0755]
res/screen-density-xhigh/01_list_reorder_bg_above.png [new file with mode: 0755]
res/screen-density-xhigh/01_list_reorder_bg_below.png [new file with mode: 0755]
res/screen-density-xhigh/05_email_icon_attach_30x30.png [new file with mode: 0755]
res/screen-density-xhigh/05_email_icon_attach_40x40.png [new file with mode: 0755]
res/screen-density-xhigh/27_textinput_predictive_btn_arrow_down.png [new file with mode: 0755]
res/screen-density-xhigh/27_textinput_predictive_btn_arrow_up.png [new file with mode: 0755]
res/screen-density-xhigh/A01_2_Icon_others.png [new file with mode: 0755]
res/screen-density-xhigh/B15_double_tap_02.png [new file with mode: 0755]
res/screen-density-xhigh/Black.png [new file with mode: 0755]
res/screen-density-xhigh/Blue.png [new file with mode: 0755]
res/screen-density-xhigh/Brown.png [new file with mode: 0755]
res/screen-density-xhigh/Green.png [new file with mode: 0755]
res/screen-density-xhigh/M02_arrow_expand.png [new file with mode: 0755]
res/screen-density-xhigh/M02_arrow_expand_dim.png [new file with mode: 0755]
res/screen-density-xhigh/M02_arrow_expand_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_btn_Unread email.png [new file with mode: 0755]
res/screen-density-xhigh/M02_btn_Unread email_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_btn_attachment_delete.png [new file with mode: 0755]
res/screen-density-xhigh/M02_btn_attachment_delete_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_btn_circle_bg.png [new file with mode: 0755]
res/screen-density-xhigh/M02_btn_circle_bg_01.png [new file with mode: 0755]
res/screen-density-xhigh/M02_btn_circle_bg_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_btn_play.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_05_dim.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_05_normal.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_05_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_06_dim.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_06_normal.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_06_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_delete.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_download.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_download_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_expand.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_expand_closed.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_expand_closed_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_expand_opened.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_expand_opened_02.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_expand_opened_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_expand_opened_press_02.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_expand_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_sweep.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_sweep_delete (copy).png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_sweep_delete.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_sweep_delete_copy.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_sweep_dim.png [new file with mode: 0755]
res/screen-density-xhigh/M02_button_sweep_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_contact_style.png [new file with mode: 0755]
res/screen-density-xhigh/M02_contact_style_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_add_calendar.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_add_folder.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_block.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_cancel.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_compose.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_delete.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_delete_all.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_edit.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_forward.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_mark_as_unread.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_more.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_move.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_reply.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_resend.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_sort_by.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_update.png [new file with mode: 0755]
res/screen-density-xhigh/M02_controlbar_icon_view_mode.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_Flag_Active.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_Flag_Active_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_Flag_Clear.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_Flag_Clear_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_Flag_Complete.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_btn_icon_contact.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_btn_icon_contact_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_btn_icon_down.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_btn_icon_down_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_btn_list_nomal.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_btn_list_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_Encryption.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_Encryption_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_attach.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_attach_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_favorite_off.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_favorite_on.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_forward.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_forward_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_index_close.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_lock.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_lock_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_advanced.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_advanced_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_all.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_all_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_date.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_date_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_sender.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_sender_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_title.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_popup_title_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_priority.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_priority_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_reply.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_reply_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_sign.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_sign_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_title_down.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_title_folders.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_title_refresh.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_icon_title_up.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_AOL.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_YahooMail.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_addaccount.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_allaccount.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_exchange.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_gmail.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_hotmail.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_naver.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_list_icon_samsung.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_minus.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_minus_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_email_popup_bubble_tail_top.png [new file with mode: 0755]
res/screen-density-xhigh/M02_function_attach.png [new file with mode: 0755]
res/screen-density-xhigh/M02_function_ccbcc.png [new file with mode: 0755]
res/screen-density-xhigh/M02_function_security.png [new file with mode: 0755]
res/screen-density-xhigh/M02_help_bg.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_favorite_off_01.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_favorite_off_02.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_favorite_on.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_favorite_on_01.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_favorite_on_02.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_next.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_next_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_previous.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_previous_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_upper folder.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_upper folder_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_upper_folder.png [new file with mode: 0755]
res/screen-density-xhigh/M02_icon_upper_folder_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_inbox_top_line.png [new file with mode: 0755]
res/screen-density-xhigh/M02_logo_bg.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_Aleadsymbol.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_Aleadsymbol_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_Indent.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_Indent_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_Outdent.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_Outdent_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_align_all_center.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_align_all_center_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_align_center.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_align_center_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_align_left.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_align_left_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_align_right.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_align_right_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_bold.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_bold_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_btn_01.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_btn_01_dim.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_btn_01_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_btn_02.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_btn_02_dim.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_btn_02_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor_text.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor_text_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_fontcolor.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_fontcolor_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_fontsize.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_fontsize_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_insert.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_insert_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_italic.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_italic_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_numbering.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_numbering_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_que_left.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_que_right.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_redo.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_redo_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_underline.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_underline_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_undo.png [new file with mode: 0755]
res/screen-density-xhigh/M02_rich_text_bar_undo_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_shadow_01.png [new file with mode: 0755]
res/screen-density-xhigh/M02_shadow_02.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_button.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_button_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_folder.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_folder_press_web.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_folder_web.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_refresh.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_refresh_press_web.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_refresh_web.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_search.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_search_web.png [new file with mode: 0755]
res/screen-density-xhigh/M02_title_icon_search_web_press.png [new file with mode: 0755]
res/screen-density-xhigh/M02_toolbar_Next.png [new file with mode: 0755]
res/screen-density-xhigh/M02_toolbar_Previous.png [new file with mode: 0755]
res/screen-density-xhigh/Multiple.png [new file with mode: 0755]
res/screen-density-xhigh/Pink.png [new file with mode: 0755]
res/screen-density-xhigh/Purple.png [new file with mode: 0755]
res/screen-density-xhigh/Red.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/00_Nocontents_text.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/00_icon_more.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/00_icon_more_dim.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/00_icon_more_press.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/00_icon_select_all_dim_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/00_icon_select_all_press_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/00_icon_select_all_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/01_controlbar_icon_favorite.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/05_email_icon_attach_40x40.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/A01_2_Icon_others.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_btn_circle_bg_01.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_btn_circle_bg_press.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_button_expand_closed.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_button_expand_closed_press.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_button_expand_opened.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_button_expand_opened_press.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_contact_default_image.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_contact_default_image_frame.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_contact_default_image_frame_press.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_email_btn_icon_contact.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_all.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_all_press.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_sender.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_title.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_function_attach.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_SMS.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_attach.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_attach_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_button_download.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_composer_attach.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_event.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_excel.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_forward.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_jump_left.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_jump_top.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_pdf.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_priority.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_reply.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_search_advanced.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_search_date.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_search_sender.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_search_title.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_text.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_voicemail.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_icon_word.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_inbox_button_divider.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_inbox_scroll.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_inbox_top_bg.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_inbox_top_bg.psd [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_inbox_top_line.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_list_icon_all_accounts.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_photo_mark_01.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_photo_mark_02.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_add_account.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_advanced.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_all.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_block.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_date.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_delete_all.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_mark_as_unread.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_move.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_sender.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_sort_by.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_popup_icon_title.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_title_icon_exchange.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_title_icon_google.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_title_icon_hotmail.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/M02_title_icon_yahoomail.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/U01_icon_folder.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/I01_search_list_icon_favorite.png [new file with mode: 0644]
res/screen-density-xhigh/Tizen2_1/common/I01_search_list_icon_favorite_press.png [new file with mode: 0644]
res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off_74x74.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off_74x74_dim.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on_74x74.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on_74x74_dim.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_list_bubble_bg.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_list_bubble_bg_press.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_dim_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_press_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_dim_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_press_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search_web.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search_web_press.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_drafts.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_favourites.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder_minus.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder_plus.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_inbox.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_outbox.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_priority_sender_inbox.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_sentbox.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_spambox.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_trash.png [new file with mode: 0755]
res/screen-density-xhigh/Tizen2_1/popup_icon/M02_popup_icon_setting.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_excel.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_html.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_music.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_pdf.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_ppt.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_ring_tone.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_rss.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_swf.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_text.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_upper_folder.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_upper_folder_focus.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_video.png [new file with mode: 0755]
res/screen-density-xhigh/U01_icon_word.png [new file with mode: 0755]
res/screen-density-xhigh/White.png [new file with mode: 0755]
res/screen-density-xhigh/Yellow.png [new file with mode: 0755]
res/screen-density-xhigh/btn_normal.png [new file with mode: 0755]
res/screen-density-xhigh/btn_selected.png [new file with mode: 0755]
res/screen-density-xhigh/composer_attachment_etc.png [new file with mode: 0755]
res/screen-density-xhigh/composer_attachment_sound.png [new file with mode: 0755]
res/screen-density-xhigh/composer_attachment_vcalender.png [new file with mode: 0755]
res/screen-density-xhigh/composer_attachment_vcard.png [new file with mode: 0755]
res/screen-density-xhigh/composer_attachment_video.png [new file with mode: 0755]
res/screen-density-xhigh/email_viewer_attach_multi.png [new file with mode: 0755]
res/screen-density-xhigh/header_images/A01_2_Icon_others.png [new file with mode: 0644]
res/screen-density-xhigh/header_images/M02_email_list_icon_YahooMail.png [new file with mode: 0644]
res/screen-density-xhigh/header_images/M02_email_list_icon_gmail.png [new file with mode: 0644]
res/screen-density-xhigh/header_images/M02_email_list_icon_hotmail.png [new file with mode: 0644]
res/screen-density-xhigh/header_images/M02_email_list_icon_naver.png [new file with mode: 0644]
res/screen-density-xhigh/header_images/M02_email_list_icon_samsung.png [new file with mode: 0644]
res/screen-density-xhigh/header_images/M02_list_icon_all_accounts.png [new file with mode: 0644]
res/screen-density-xhigh/icon_email.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_contact_default_image.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_contact_default_image_frame.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_contact_default_image_frame_press.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_function_attach.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_SMS.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_attach.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_button_download.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_event.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_excel.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_expand_closed.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_expand_opend.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_folder.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_forward.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_jump_left.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_jump_top.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_pdf.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_priority.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_reply.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_search_advanced.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_search_all.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_search_date.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_search_sender.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_search_title.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_text.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_voicemail.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_icon_word.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_inbox_button_divider.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_inbox_scroll.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_inbox_top_bg.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_inbox_top_bg.psd [new file with mode: 0755]
res/screen-density-xhigh/new/M02_inbox_top_line.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_photo_mark_01.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_photo_mark_02.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_title_icon_exchange.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_title_icon_google.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_title_icon_hotmail.png [new file with mode: 0755]
res/screen-density-xhigh/new/M02_title_icon_yahoomail.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_icon_favorite_off_74x74.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_icon_favorite_off_74x74_dim.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_icon_favorite_on_74x74.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_icon_favorite_on_74x74_dim.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_title_icon_folder.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_title_icon_folder_dim_web.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_title_icon_folder_press_web.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_title_icon_folder_web.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_title_icon_refresh.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_title_icon_refresh_dim_web.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_title_icon_refresh_press_web.png [new file with mode: 0755]
res/screen-density-xhigh/new/common/M02_title_icon_refresh_web.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_add cc.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_advanced.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_all.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_attach.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_date.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_priority.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_save.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_schedule.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_security.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_send_email.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_sender.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_text.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_title.png [new file with mode: 0755]
res/screen-density-xhigh/new/popup icon/M02_icon_popup_tracking.png [new file with mode: 0755]
res/screen-density-xhigh/nf_title_separator.png [new file with mode: 0755]
res/screen-density-xhigh/optionheader_arrow.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_1.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_10.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_11.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_12.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_13.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_14.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_15.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_16.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_17.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_18.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_19.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_2.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_20.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_21.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_22.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_23.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_24.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_25.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_26.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_27.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_28.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_29.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_3.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_30.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_4.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_5.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_6.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_7.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_8.png [new file with mode: 0755]
res/screen-density-xhigh/process/00_winset_list_process_9.png [new file with mode: 0755]
res/screen-size-normal/IDL_ACCOUNT_CONFIG_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_ACCOUNT_SETTINGS_MAIN_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_ADD_ADDRESS_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_ADD_SUBJECT_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_ALL_FOLDERS.xml [new file with mode: 0755]
res/screen-size-normal/IDL_BLOCK_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_COMPOSE_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_DELETE_ADDRESS_SUBJECT_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_EMAIL_DETAIL_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_INBOX_LIST_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_LOGIN_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_MANUAL_SETUP_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_MOVEMAIL_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_POPUP_ATTACHMENT_FAILED.xml [new file with mode: 0755]
res/screen-size-normal/IDL_POPUP_DELETE.xml [new file with mode: 0755]
res/screen-size-normal/IDL_POPUP_MOVE_OR_DELETE_FAILED.xml [new file with mode: 0755]
res/screen-size-normal/IDL_SEARCH_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_SETTINGS_FORM.xml [new file with mode: 0755]
res/screen-size-normal/IDL_SETUP_MAILBOX_FORM.xml [new file with mode: 0755]
res/slk-SK.xml [new file with mode: 0755]
res/slv-SI.xml [new file with mode: 0755]
res/spa-ES.xml [new file with mode: 0755]
res/spa-MX.xml [new file with mode: 0755]
res/srp-RS.xml [new file with mode: 0755]
res/swe-SE.xml [new file with mode: 0755]
res/tur-TR.xml [new file with mode: 0755]
res/ukr-UA.xml [new file with mode: 0755]
res/uzb-UZ.xml [new file with mode: 0755]
res/zho-CN.xml [new file with mode: 0755]
res/zho-HK.xml [new file with mode: 0755]
res/zho-SG.xml [new file with mode: 0755]
res/zho-TW.xml [new file with mode: 0755]
shared/data/nofile.dummy [new file with mode: 0755]
shared/res/screen-density-xhigh/mainmenu.png [new file with mode: 0755]
shared/trusted/nofile.dummy [new file with mode: 0755]
src/.EmAddSubjectForm.cpp.swp [new file with mode: 0755]
src/EmAccountConfiguration.cpp [new file with mode: 0755]
src/EmAccountSettingMainForm.cpp [new file with mode: 0755]
src/EmAccountSettingSetUpMailboxForm.cpp [new file with mode: 0755]
src/EmAddAccountForm.cpp [new file with mode: 0755]
src/EmAddAddressForm.cpp [new file with mode: 0755]
src/EmAddSubjectForm.cpp [new file with mode: 0755]
src/EmAllMailsPresentationModel.cpp [new file with mode: 0755]
src/EmAttachmentPanel.cpp [new file with mode: 0755]
src/EmBaseListViewItemProvider.cpp [new file with mode: 0755]
src/EmBasePresentationModel.cpp [new file with mode: 0755]
src/EmBlockForm.cpp [new file with mode: 0644]
src/EmComposerForm.cpp [new file with mode: 0755]
src/EmComposerPresentationModel.cpp [new file with mode: 0755]
src/EmDeleteSubjectAddress.cpp [new file with mode: 0755]
src/EmDetailForm.cpp [new file with mode: 0755]
src/EmDraftboxPresentationModel.cpp [new file with mode: 0755]
src/EmEmailApp.cpp [new file with mode: 0755]
src/EmEmailEntry.cpp [new file with mode: 0755]
src/EmEmailSettingForm.cpp [new file with mode: 0755]
src/EmEmailSettingPresentationModel.cpp [new file with mode: 0755]
src/EmEmailSettingProvider.cpp [new file with mode: 0755]
src/EmFoldersForm.cpp [new file with mode: 0755]
src/EmFormFactory.cpp [new file with mode: 0755]
src/EmInboxPresentationModel.cpp [new file with mode: 0755]
src/EmMailListForm.cpp [new file with mode: 0755]
src/EmMailSyncThread.cpp [new file with mode: 0755]
src/EmMainFrame.cpp [new file with mode: 0755]
src/EmManualSetUpForm.cpp [new file with mode: 0755]
src/EmMarkAllAsListViewItemProvider.cpp [new file with mode: 0755]
src/EmMoveMailForm.cpp [new file with mode: 0755]
src/EmNativeMailboxManager.cpp [new file with mode: 0755]
src/EmOutboxPresentationModel.cpp [new file with mode: 0755]
src/EmRecipientField.cpp [new file with mode: 0755]
src/EmSearchForm.cpp [new file with mode: 0755]
src/EmSearchPresentationModel.cpp [new file with mode: 0755]
src/EmSentboxPresentationModel.cpp [new file with mode: 0755]
src/EmSetAllAsListViewItemProvider.cpp [new file with mode: 0755]
src/EmSortByListViewItemProvider.cpp [new file with mode: 0755]
src/EmSpamboxPresentationModel.cpp [new file with mode: 0755]
src/EmStateInfo.cpp [new file with mode: 0755]
src/EmTrashPresentationModel.cpp [new file with mode: 0755]
src/EmTypes.cpp [new file with mode: 0755]
src/EmUtils.cpp [new file with mode: 0755]

diff --git a/.cproject b/.cproject
new file mode 100755 (executable)
index 0000000..204e2de
--- /dev/null
+++ b/.cproject
@@ -0,0 +1,791 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+       <storageModule moduleId="org.eclipse.cdt.core.settings">
+               <cconfiguration id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.1300143496">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.1300143496" moduleId="org.eclipse.cdt.core.settings" name="Debug-Tizen-Emulator">
+                               <externalSettings/>
+                               <extensions>
+                                       <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+                                       <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                               </extensions>
+                       </storageModule>
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+                               <configuration artifactExtension="exe" artifactName="Email" buildArtefactType="org.tizen.nativecpp.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecpp.buildArtefactType.app" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;" id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.1300143496" name="Debug-Tizen-Emulator" parent="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator">
+                                       <folderInfo id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.1300143496." name="/" resourcePath="">
+                                               <toolChain id="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.emulator.1267441858" name="Tizen Native Toolchain" superClass="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.emulator">
+                                                       <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.2085688308" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
+                                                       <builder autoBuildTarget="all" buildPath="${workspace_loc:/Email/Debug-Tizen-Emulator}" enableAutoBuild="true" id="org.tizen.nativecpp.target.sbi.gnu.builder.1417277792" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" parallelBuildOn="true" parallelizationNumber="4" stopOnErr="false" superClass="org.tizen.nativecpp.target.sbi.gnu.builder">
+                                                               <outputEntries>
+                                                                       <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="Debug-Tizen-Emulator"/>
+                                                                       <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="Debug-Tizen-Device"/>
+                                                                       <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="Release"/>
+                                                                       <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="DA-Tizen-Emulator"/>
+                                                                       <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="outputPath" name="DA-Tizen-Device"/>
+                                                               </outputEntries>
+                                                       </builder>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.archiver.514124848" name="Archiver" superClass="org.tizen.nativecpp.tool.sbi.gnu.archiver"/>
+                                                       <tool command="clang++" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.116672217" name="C++ Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler">
+                                                               <option id="gnu.cpp.compiler.option.optimization.level.1480125507" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
+                                                               <option id="gnu.cpp.compiler.option.debugging.level.391854538" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
+                                                               <option id="sbi.gnu.cpp.compiler.option.1566874804" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-emulator-2.0.cpp.partner_llvm31.i386.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.include.paths.1720932419" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="/usr/include/glib-2.0"/>
+                                                                       <listOptionValue builtIn="false" value="/usr/lib/i386-linux-gnu/glib-2.0/include/"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${HOME}/tizen-sdk/library&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp.18812934" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp.1711209389" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain /home/manoj/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.5/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu"/>
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks.cpp.37836210" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.preprocessor.def.1867654034" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="_DEBUG"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.cpp.compiler.tizen.inputType.854006275" superClass="sbi.gnu.cpp.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool command="clang" id="org.tizen.nativecpp.tool.sbi.gnu.c.compiler.1568539067" name="C Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.c.compiler">
+                                                               <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.1125294148" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" value="gnu.c.optimization.level.none" valueType="enumerated"/>
+                                                               <option id="gnu.c.compiler.option.debugging.level.89747736" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" value="gnu.c.debugging.level.max" valueType="enumerated"/>
+                                                               <option id="sbi.gnu.c.compiler.option.146450817" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-emulator-2.0.cpp.partner_llvm31.i386.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.include.paths.857927942" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks.cpp.525642642" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_inc.cpp.669897810" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_cflags.cpp.1689264434" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain /home/manoj/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.5/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu"/>
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.preprocessor.def.symbols.2092344330" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="_DEBUG"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.c.compiler.tizen.inputType.1626360966" superClass="sbi.gnu.c.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.1273415802" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
+                                                       <tool command="clang++" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.1322926011" name="C++ Linker" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker">
+                                                               <option id="gnu.cpp.link.option.paths.539255838" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/lib/lib-emu}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp.377897815" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="-target i386-tizen-linux-gnueabi -gcc-toolchain /home/manoj/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.5/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Xlinker --as-needed"/>
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value="-pie -lpthread "/>
+                                                                       <listOptionValue builtIn="false" value="-Xlinker -rpath=\$$ORIGIN/../lib -Xlinker -rpath=/home/developer/sdk_tools/lib"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib/osp&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-appfw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uifw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-image"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-json"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-ime"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-net"/>
+                                                                       <listOptionValue builtIn="false" value="-lpthread"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-content"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-locations"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-telephony"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uix"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-media"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-messaging"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-web"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-social"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-wifi"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-bluetooth"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-nfc"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-face"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-tts"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-stt"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell-core"/>
+                                                                       <listOptionValue builtIn="false" value="-lxml2"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.link.option.libs.1370673808" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
+                                                                       <listOptionValue builtIn="false" value="email-api"/>
+                                                                       <listOptionValue builtIn="false" value="email-common-use"/>
+                                                                       <listOptionValue builtIn="false" value="email-core"/>
+                                                                       <listOptionValue builtIn="false" value="email-device"/>
+                                                                       <listOptionValue builtIn="false" value="email-ipc"/>
+                                                                       <listOptionValue builtIn="false" value="email-network"/>
+                                                                       <listOptionValue builtIn="false" value="email-storage"/>
+                                                                       <listOptionValue builtIn="false" value="dbus-1"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.link.option.other.503863121" name="Other options (-Xlinker [option])" superClass="gnu.cpp.link.option.other" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="--allow-shlib-undefined"/>
+                                                               </option>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.986983726" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
+                                                                       <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+                                                                       <additionalInput kind="additionalinput" paths="$(LIBS)"/>
+                                                               </inputType>
+                                                       </tool>
+                                                       <tool command="clang++" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1349885625" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+                                                               <option id="gnu.both.asm.option.include.paths.350292533" name="Include paths (-I)" superClass="gnu.both.asm.option.include.paths"/>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.521021062" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.po.compiler.560887824" name="PO Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.po.compiler"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.edc.compiler.648476324" name="EDC Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.edc.compiler"/>
+                                                       <tool command="i386-linux-gnueabi-as" id="org.tizen.nativecpp.tool.sbi.gnu.assembler.1712154439" name="Assembler" superClass="org.tizen.nativecpp.tool.sbi.gnu.assembler">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.2097348887" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <folderInfo id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.1300143496.1874283270" name="/" resourcePath="deprecated">
+                                               <toolChain id="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.emulator.604976410" name="Tizen Native Toolchain" superClass="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.emulator" unusedChildren="">
+                                                       <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.archiver.2078560161" name="Archiver" superClass="org.tizen.nativecpp.tool.sbi.gnu.archiver.514124848"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.1708224582" name="C++ Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.116672217">
+                                                               <option id="sbi.gnu.cpp.compiler.option.debug.applog.992560299" name="Enable application logging (-D_APP_LOG)" superClass="sbi.gnu.cpp.compiler.option.debug.applog" value="true" valueType="boolean"/>
+                                                               <inputType id="sbi.gnu.cpp.compiler.tizen.inputType.1329597270" superClass="sbi.gnu.cpp.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.c.compiler.1567835993" name="C Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.c.compiler.1568539067">
+                                                               <option id="sbi.gnu.c.compiler.option.debug.applog.2114192654" name="Enable application logging (-D_APP_LOG)" superClass="sbi.gnu.c.compiler.option.debug.applog" value="true" valueType="boolean"/>
+                                                               <inputType id="sbi.gnu.c.compiler.tizen.inputType.27777617" superClass="sbi.gnu.c.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.1170991804" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.1273415802"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.1021078736" name="C++ Linker" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.1322926011"/>
+                                                       <tool id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.947156437" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1349885625">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.470068943" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.po.compiler.1368522611" name="PO Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.po.compiler.560887824"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.edc.compiler.2049975914" name="EDC Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.edc.compiler.648476324"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.assembler.499796298" name="Assembler" superClass="org.tizen.nativecpp.tool.sbi.gnu.assembler">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.386433400" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <sourceEntries>
+                                               <entry excluding="deprecated|EMailSpamboxSelectedForm.cpp|res_orig|inc_orig" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                       </sourceEntries>
+                               </configuration>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+               </cconfiguration>
+               <cconfiguration id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.1762192684">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.1762192684" moduleId="org.eclipse.cdt.core.settings" name="Debug-Tizen-Device">
+                               <externalSettings/>
+                               <extensions>
+                                       <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+                                       <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                               </extensions>
+                       </storageModule>
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+                               <configuration artifactExtension="exe" artifactName="${ProjName}" buildArtefactType="org.tizen.nativecpp.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecpp.buildArtefactType.app" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;" id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.1762192684" name="Debug-Tizen-Device" parent="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device">
+                                       <folderInfo id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.1762192684." name="/" resourcePath="">
+                                               <toolChain id="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.device.600948011" name="Tizen Native Toolchain" superClass="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.device">
+                                                       <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.399299753" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
+                                                       <builder buildPath="${workspace_loc:/Email/Debug-Tizen-Device}" id="org.tizen.nativecpp.target.sbi.gnu.builder.213392015" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" parallelBuildOn="true" parallelizationNumber="10" superClass="org.tizen.nativecpp.target.sbi.gnu.builder"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.archiver.1717692411" name="Archiver" superClass="org.tizen.nativecpp.tool.sbi.gnu.archiver"/>
+                                                       <tool command="arm-linux-gnueabi-g++" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.440548203" name="C++ Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler">
+                                                               <option id="gnu.cpp.compiler.option.optimization.level.549657180" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.more" valueType="enumerated"/>
+                                                               <option id="gnu.cpp.compiler.option.debugging.level.1999281981" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
+                                                               <option id="sbi.gnu.cpp.compiler.option.939705465" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-device-2.0.cpp.partner_gcc45.armel.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.include.paths.980791317" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="/usr/include/glib-2.0"/>
+                                                                       <listOptionValue builtIn="false" value="/usr/lib/i386-linux-gnu/glib-2.0/include/"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${HOME}/tizen-sdk/library&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp.125304892" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp.1933283025" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks.cpp.300910193" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.preprocessor.def.1482109904" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="_DEBUG"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.cpp.compiler.tizen.inputType.2898856" superClass="sbi.gnu.cpp.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool command="arm-linux-gnueabi-gcc" id="org.tizen.nativecpp.tool.sbi.gnu.c.compiler.447595108" name="C Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.c.compiler">
+                                                               <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.2029116628" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" value="gnu.c.optimization.level.more" valueType="enumerated"/>
+                                                               <option id="gnu.c.compiler.option.debugging.level.201859356" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" value="gnu.c.debugging.level.max" valueType="enumerated"/>
+                                                               <option id="sbi.gnu.c.compiler.option.378572229" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-device-2.0.cpp.partner_gcc45.armel.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.include.paths.721245548" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks.cpp.1923221372" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_inc.cpp.1794104528" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_cflags.cpp.1240546786" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.preprocessor.def.symbols.1423211682" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="_DEBUG"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.c.compiler.tizen.inputType.1692933111" superClass="sbi.gnu.c.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.1060793964" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
+                                                       <tool command="arm-linux-gnueabi-g++" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.245351399" name="C++ Linker" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker">
+                                                               <option id="gnu.cpp.link.option.paths.87550712" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/lib/lib-device}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp.792628564" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="-Xlinker --as-needed"/>
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value="-pie -lpthread "/>
+                                                                       <listOptionValue builtIn="false" value="-Xlinker -rpath=\$$ORIGIN/../lib -Xlinker -rpath=/home/developer/sdk_tools/lib"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib/osp&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-appfw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uifw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-image"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-json"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-ime"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-net"/>
+                                                                       <listOptionValue builtIn="false" value="-lpthread"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-content"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-locations"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-telephony"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uix"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-media"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-messaging"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-web"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-social"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-wifi"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-bluetooth"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-nfc"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-face"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-tts"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-stt"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell-core"/>
+                                                                       <listOptionValue builtIn="false" value="-lxml2"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.link.option.libs.865037171" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
+                                                                       <listOptionValue builtIn="false" value="email-api"/>
+                                                                       <listOptionValue builtIn="false" value="email-common-use"/>
+                                                                       <listOptionValue builtIn="false" value="email-core"/>
+                                                                       <listOptionValue builtIn="false" value="email-device"/>
+                                                                       <listOptionValue builtIn="false" value="email-ipc"/>
+                                                                       <listOptionValue builtIn="false" value="email-network"/>
+                                                                       <listOptionValue builtIn="false" value="email-storage"/>
+                                                                       <listOptionValue builtIn="false" value="dbus-1"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.link.option.flags.1917858530" name="Linker flags" superClass="gnu.cpp.link.option.flags" value="" valueType="string"/>
+                                                               <option id="gnu.cpp.link.option.other.818663621" name="Other options (-Xlinker [option])" superClass="gnu.cpp.link.option.other" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="--allow-shlib-undefined"/>
+                                                               </option>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.538181598" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
+                                                                       <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+                                                                       <additionalInput kind="additionalinput" paths="$(LIBS)"/>
+                                                               </inputType>
+                                                       </tool>
+                                                       <tool command="arm-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1085663410" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.173949161" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.po.compiler.672929111" name="PO Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.po.compiler"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.edc.compiler.1507179401" name="EDC Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.edc.compiler"/>
+                                                       <tool command="arm-linux-gnueabi-as" id="org.tizen.nativecpp.tool.sbi.gnu.assembler.1965532291" name="Assembler" superClass="org.tizen.nativecpp.tool.sbi.gnu.assembler">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.91260454" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <sourceEntries>
+                                               <entry excluding="EMailSpamboxSelectedForm.cpp" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                       </sourceEntries>
+                               </configuration>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+               </cconfiguration>
+               <cconfiguration id="org.tizen.nativecpp.config.sbi.gcc45.app.release.2014214436">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecpp.config.sbi.gcc45.app.release.2014214436" moduleId="org.eclipse.cdt.core.settings" name="Release">
+                               <externalSettings/>
+                               <extensions>
+                                       <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+                                       <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                               </extensions>
+                       </storageModule>
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+                               <configuration artifactExtension="exe" artifactName="${ProjName}" buildArtefactType="org.tizen.nativecpp.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecpp.buildArtefactType.app" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;" id="org.tizen.nativecpp.config.sbi.gcc45.app.release.2014214436" name="Release" parent="org.tizen.nativecpp.config.sbi.gcc45.app.release">
+                                       <folderInfo id="org.tizen.nativecpp.config.sbi.gcc45.app.release.2014214436." name="/" resourcePath="">
+                                               <toolChain id="org.tizen.nativecpp.toolchain.sbi.gcc45.app.release.152201071" name="Tizen Native Toolchain" superClass="org.tizen.nativecpp.toolchain.sbi.gcc45.app.release">
+                                                       <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.1991648360" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
+                                                       <builder buildPath="${workspace_loc:/Email/Release}" id="org.tizen.nativecpp.target.sbi.gnu.builder.167722567" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" superClass="org.tizen.nativecpp.target.sbi.gnu.builder"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.archiver.1050787802" name="Archiver" superClass="org.tizen.nativecpp.tool.sbi.gnu.archiver"/>
+                                                       <tool command="arm-linux-gnueabi-g++" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.874566840" name="C++ Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler">
+                                                               <option id="gnu.cpp.compiler.option.optimization.level.2076282205" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
+                                                               <option id="gnu.cpp.compiler.option.debugging.level.1554816171" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
+                                                               <option id="sbi.gnu.cpp.compiler.option.259062885" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-device-2.0.cpp.partner_gcc45.armel.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.include.paths.1881366522" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp.1319289691" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp.1946048951" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks.cpp.272563764" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.cpp.compiler.tizen.inputType.1088209164" superClass="sbi.gnu.cpp.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool command="arm-linux-gnueabi-gcc" id="org.tizen.nativecpp.tool.sbi.gnu.c.compiler.1899823891" name="C Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.c.compiler">
+                                                               <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.option.optimization.level.1306307072" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" valueType="enumerated"/>
+                                                               <option id="gnu.c.compiler.option.debugging.level.420784140" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/>
+                                                               <option id="sbi.gnu.c.compiler.option.787327283" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-device-2.0.cpp.partner_gcc45.armel.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.include.paths.421334592" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks.cpp.1962741687" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_inc.cpp.1167155892" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_cflags.cpp.251631793" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.c.compiler.tizen.inputType.2067159683" superClass="sbi.gnu.c.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.1636111347" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
+                                                       <tool command="arm-linux-gnueabi-g++" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.1311718988" name="C++ Linker" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker">
+                                                               <option id="gnu.cpp.link.option.paths.1554726832" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/lib}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp.198755396" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="-Xlinker --as-needed"/>
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value="-pie -lpthread "/>
+                                                                       <listOptionValue builtIn="false" value="-Xlinker -rpath=\$$ORIGIN/../lib -Xlinker -rpath=/home/developer/sdk_tools/lib"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib/osp&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-appfw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uifw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-image"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-json"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-ime"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-net"/>
+                                                                       <listOptionValue builtIn="false" value="-lpthread"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-content"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-locations"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-telephony"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uix"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-media"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-messaging"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-web"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-social"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-wifi"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-bluetooth"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-nfc"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-face"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-tts"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-stt"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell-core"/>
+                                                                       <listOptionValue builtIn="false" value="-lxml2"/>
+                                                               </option>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.301950163" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
+                                                                       <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+                                                                       <additionalInput kind="additionalinput" paths="$(LIBS)"/>
+                                                               </inputType>
+                                                       </tool>
+                                                       <tool command="arm-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1026687025" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.2123535607" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.po.compiler.1735764108" name="PO Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.po.compiler"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.edc.compiler.1310356714" name="EDC Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.edc.compiler"/>
+                                                       <tool command="arm-linux-gnueabi-as" id="org.tizen.nativecpp.tool.sbi.gnu.assembler.1757779993" name="Assembler" superClass="org.tizen.nativecpp.tool.sbi.gnu.assembler">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.705556834" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <sourceEntries>
+                                               <entry excluding="EMailSpamboxSelectedForm.cpp" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                       </sourceEntries>
+                               </configuration>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+               </cconfiguration>
+               <cconfiguration id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.da.49081455">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.da.49081455" moduleId="org.eclipse.cdt.core.settings" name="DA-Tizen-Emulator">
+                               <externalSettings/>
+                               <extensions>
+                                       <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+                                       <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                               </extensions>
+                       </storageModule>
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+                               <configuration artifactExtension="exe" artifactName="${ProjName}" buildArtefactType="org.tizen.nativecpp.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecpp.buildArtefactType.app" description="" id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.da.49081455" name="DA-Tizen-Emulator" parent="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.da">
+                                       <folderInfo id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.da.49081455." name="/" resourcePath="">
+                                               <toolChain id="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.emulator.da.1318708433" name="Tizen Native Toolchain" superClass="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.emulator.da">
+                                                       <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.2055461085" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
+                                                       <builder buildPath="${workspace_loc:/Email/DA-Tizen-Emulator}" id="org.tizen.nativecpp.target.sbi.gnu.builder.273884709" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" superClass="org.tizen.nativecpp.target.sbi.gnu.builder"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.archiver.397079995" name="Archiver" superClass="org.tizen.nativecpp.tool.sbi.gnu.archiver"/>
+                                                       <tool command="i386-linux-gnueabi-g++" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.da.1814690761" name="C++ Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.da">
+                                                               <option id="sbi.gnu.cpp.compiler.option.3732269" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-emulator-2.0.cpp.partner_gcc45.i386.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.include.paths.1159691815" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="${SDK_INSTALL_PATH}/library"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SDK_INSTALL_PATH}/library&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp.2141370988" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp.1776661226" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks.cpp.897801178" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.preprocessor.def.100006377" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="_USE_DA_"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.cpp.compiler.tizen.inputType.327221033" superClass="sbi.gnu.cpp.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool command="i386-linux-gnueabi-gcc" id="org.tizen.nativecpp.tool.sbi.gnu.c.compiler.641213474" name="C Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.c.compiler">
+                                                               <option id="sbi.gnu.c.compiler.option.1677076990" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-emulator-2.0.cpp.partner_gcc45.i386.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.include.paths.1350761490" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="${SDK_INSTALL_PATH}/library"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SDK_INSTALL_PATH}/library&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks.cpp.1776254200" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_inc.cpp.879903320" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_cflags.cpp.2133832161" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.preprocessor.def.symbols.311359093" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="_USE_DA_"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.c.compiler.tizen.inputType.12465862" superClass="sbi.gnu.c.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.182311503" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
+                                                       <tool command="i386-linux-gnueabi-g++" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.da.1296624091" name="C++ Linker" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.da">
+                                                               <option id="gnu.cpp.link.option.paths.1461634723" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/lib}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="${SDK_TOOLPATH}/dynamic-analyzer/target/x86"/>
+                                                                       <listOptionValue builtIn="false" value="${SDK_INSTALL_PATH}/library/da/x86"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SDK_INSTALL_PATH}/library/da/x86&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp.89499491" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="-Xlinker --as-needed"/>
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value="-pie -lpthread "/>
+                                                                       <listOptionValue builtIn="false" value="-Xlinker -rpath=\$$ORIGIN/../lib -Xlinker -rpath=/home/developer/sdk_tools/lib"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib/osp&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-appfw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uifw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-image"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-json"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-ime"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-net"/>
+                                                                       <listOptionValue builtIn="false" value="-lpthread"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-content"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-locations"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-telephony"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uix"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-media"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-messaging"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-web"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-social"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-wifi"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-bluetooth"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-nfc"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-face"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-tts"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-stt"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell-core"/>
+                                                                       <listOptionValue builtIn="false" value="-lxml2"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.link.option.libs.158783158" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
+                                                                       <listOptionValue builtIn="false" value="daprobe"/>
+                                                               </option>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1481588737" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
+                                                                       <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+                                                                       <additionalInput kind="additionalinput" paths="$(LIBS)"/>
+                                                               </inputType>
+                                                       </tool>
+                                                       <tool command="i386-linux-gnueabi-as" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1751994194" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1251804526" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.po.compiler.1981722580" name="PO Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.po.compiler"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.edc.compiler.1653287281" name="EDC Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.edc.compiler"/>
+                                                       <tool command="i386-linux-gnueabi-as" id="org.tizen.nativecpp.tool.sbi.gnu.assembler.1799302132" name="Assembler" superClass="org.tizen.nativecpp.tool.sbi.gnu.assembler">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1883519563" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <sourceEntries>
+                                               <entry excluding="EMailSpamboxSelectedForm.cpp" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                       </sourceEntries>
+                               </configuration>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+               </cconfiguration>
+               <cconfiguration id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.da.188154217">
+                       <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.da.188154217" moduleId="org.eclipse.cdt.core.settings" name="DA-Tizen-Device">
+                               <externalSettings/>
+                               <extensions>
+                                       <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+                                       <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                                       <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+                               </extensions>
+                       </storageModule>
+                       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+                               <configuration artifactExtension="exe" artifactName="${ProjName}" buildArtefactType="org.tizen.nativecpp.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.tizen.nativecpp.buildArtefactType.app" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.CWDLocator;org.eclipse.cdt.core.GmakeErrorParser" id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.da.188154217" name="DA-Tizen-Device" parent="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.da" postannouncebuildStep="" postbuildStep="" preannouncebuildStep="" prebuildStep="">
+                                       <folderInfo id="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.da.188154217." name="/" resourcePath="">
+                                               <toolChain errorParsers="" id="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.device.da.2076081161" name="Tizen Native Toolchain" superClass="org.tizen.nativecpp.toolchain.sbi.gcc45.app.debug.device.da">
+                                                       <targetPlatform binaryParser="org.eclipse.cdt.core.ELF" id="org.tizen.nativeide.target.sbi.gnu.platform.base.1441305174" osList="linux,win32" superClass="org.tizen.nativeide.target.sbi.gnu.platform.base"/>
+                                                       <builder buildPath="${workspace_loc:/Email/DA-Tizen-Device}" errorParsers="org.eclipse.cdt.core.GmakeErrorParser;org.eclipse.cdt.core.CWDLocator" id="org.tizen.nativecpp.target.sbi.gnu.builder.1809318443" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Tizen Application Builder" superClass="org.tizen.nativecpp.target.sbi.gnu.builder"/>
+                                                       <tool id="org.tizen.nativecpp.tool.sbi.gnu.archiver.1268684768" name="Archiver" superClass="org.tizen.nativecpp.tool.sbi.gnu.archiver"/>
+                                                       <tool command="arm-linux-gnueabi-g++" commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" errorParsers="org.eclipse.cdt.core.GCCErrorParser" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.da.140265045" name="C++ Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.compiler.da">
+                                                               <option id="sbi.gnu.cpp.compiler.option.1799442878" name="Tizen-Target" superClass="sbi.gnu.cpp.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-device-2.0.cpp.partner_gcc45.armel.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.include.paths.1936182004" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="${SDK_INSTALL_PATH}/library"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SDK_INSTALL_PATH}/library&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp.959999973" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.cpp.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp.709044112" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.cpp.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.compiler.option.frameworks.cpp.891885230" name="Tizen-Frameworks" superClass="sbi.gnu.cpp.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.compiler.option.preprocessor.def.792646392" name="Defined symbols (-D)" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="_USE_DA_"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.cpp.compiler.tizen.inputType.1441368755" superClass="sbi.gnu.cpp.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool command="arm-linux-gnueabi-gcc" commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" errorParsers="org.eclipse.cdt.core.GCCErrorParser" id="org.tizen.nativecpp.tool.sbi.gnu.c.compiler.1928932056" name="C Compiler" superClass="org.tizen.nativecpp.tool.sbi.gnu.c.compiler">
+                                                               <option id="sbi.gnu.c.compiler.option.845869379" name="Tizen-Target" superClass="sbi.gnu.c.compiler.option" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="tizen-device-2.0.cpp.partner_gcc45.armel.cpp.app"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.include.paths.1913335790" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/inc}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="${SDK_INSTALL_PATH}/library"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SDK_INSTALL_PATH}/library&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks.cpp.217238463" name="Tizen-Frameworks" superClass="sbi.gnu.c.compiler.option.frameworks.cpp" valueType="userObjs">
+                                                                       <listOptionValue builtIn="false" value="osp"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_inc.cpp.1208988985" name="Tizen-Frameworks-Include-Path" superClass="sbi.gnu.c.compiler.option.frameworks_inc.cpp" valueType="includePath">
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/libxml2&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;/home/manoj/tizen-sdk/library&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SBI_SYSROOT}/usr/include/osp&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.c.compiler.option.frameworks_cflags.cpp.507087120" name="Tizen-Frameworks-Other-Cflags" superClass="sbi.gnu.c.compiler.option.frameworks_cflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value=" -fPIE"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                               </option>
+                                                               <option id="gnu.c.compiler.option.preprocessor.def.symbols.1401966363" name="Defined symbols (-D)" superClass="gnu.c.compiler.option.preprocessor.def.symbols" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="_USE_DA_"/>
+                                                               </option>
+                                                               <inputType id="sbi.gnu.c.compiler.tizen.inputType.1664124805" superClass="sbi.gnu.c.compiler.tizen.inputType"/>
+                                                       </tool>
+                                                       <tool id="org.tizen.nativeide.tool.sbi.gnu.c.linker.base.687078231" name="C Linker" superClass="org.tizen.nativeide.tool.sbi.gnu.c.linker.base"/>
+                                                       <tool command="arm-linux-gnueabi-g++" commandLinePattern="${COMMAND} ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} ${FLAGS}" errorParsers="org.eclipse.cdt.core.GLDErrorParser" id="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.da.296741857" name="C++ Linker" superClass="org.tizen.nativecpp.tool.sbi.gnu.cpp.linker.da">
+                                                               <option id="gnu.cpp.link.option.paths.776781786" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths">
+                                                                       <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/lib}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="${SDK_TOOLPATH}/dynamic-analyzer/target/arm"/>
+                                                                       <listOptionValue builtIn="false" value="${SDK_INSTALL_PATH}/library/da/arm"/>
+                                                                       <listOptionValue builtIn="false" value="&quot;${SDK_INSTALL_PATH}/library/da/arm&quot;"/>
+                                                               </option>
+                                                               <option id="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp.1272353033" name="Tizen-Frameworks-Other-Lflags" superClass="sbi.gnu.cpp.linker.option.frameworks_lflags.cpp" valueType="stringList">
+                                                                       <listOptionValue builtIn="false" value="-Xlinker --as-needed"/>
+                                                                       <listOptionValue builtIn="false" value=""/>
+                                                                       <listOptionValue builtIn="false" value="-pie -lpthread "/>
+                                                                       <listOptionValue builtIn="false" value="-Xlinker -rpath=\$$ORIGIN/../lib -Xlinker -rpath=/home/developer/sdk_tools/lib"/>
+                                                                       <listOptionValue builtIn="false" value="--sysroot=&quot;${SBI_SYSROOT}&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-L&quot;${SBI_SYSROOT}/usr/lib/osp&quot;"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-appfw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uifw"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-image"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-json"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-ime"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-net"/>
+                                                                       <listOptionValue builtIn="false" value="-lpthread"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-content"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-locations"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-telephony"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-uix"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-media"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-messaging"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-web"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-social"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-wifi"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-bluetooth"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-nfc"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-face"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-tts"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-speech-stt"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell"/>
+                                                                       <listOptionValue builtIn="false" value="-losp-shell-core"/>
+                                                                       <listOptionValue builtIn="false" value="-lxml2"/>
+                                                               </option>
+                                                               <option id="gnu.cpp.link.option.libs.712383241" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
+                                                                       <listOptionValue builtIn="false" value="daprobe"/>
+                                                               </option>
+                                                               <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1103024728" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
+                                                                       <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+                                                                       <additionalInput kind="additionalinput" paths="$(LIBS)"/>
+                                                               </inputType>
+                                                       </tool>
+                                                       <tool command="arm-linux-gnueabi-as" commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" errorParsers="org.eclipse.cdt.core.GASErrorParser" id="org.tizen.nativeapp.tool.sbi.gnu.assembler.base.1274522571" name="Assembler" superClass="org.tizen.nativeapp.tool.sbi.gnu.assembler.base">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1747521125" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                                       <tool command="msgfmt" commandLinePattern="${COMMAND} ${OUTPUT_FLAG} ${OUTPUT} ${INPUTS}" errorParsers="" id="org.tizen.nativecpp.tool.sbi.po.compiler.476011995" name="PO Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.po.compiler"/>
+                                                       <tool command="edje_cc" commandLinePattern="${COMMAND} -id ../res/images ${INPUTS} ${OUTPUT}" errorParsers="" id="org.tizen.nativecpp.tool.sbi.edc.compiler.1989876767" name="EDC Resource Compiler" superClass="org.tizen.nativecpp.tool.sbi.edc.compiler"/>
+                                                       <tool command="arm-linux-gnueabi-as" id="org.tizen.nativecpp.tool.sbi.gnu.assembler.2106106467" name="Assembler" superClass="org.tizen.nativecpp.tool.sbi.gnu.assembler">
+                                                               <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1373494081" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+                                                       </tool>
+                                               </toolChain>
+                                       </folderInfo>
+                                       <sourceEntries>
+                                               <entry excluding="EMailSpamboxSelectedForm.cpp" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
+                                       </sourceEntries>
+                               </configuration>
+                       </storageModule>
+                       <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+               </cconfiguration>
+       </storageModule>
+       <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+               <project id="Email.org.tizen.nativecpp.target.sbi.gcc45.app.1408293295" name="Tizen Application" projectType="org.tizen.nativecpp.target.sbi.gcc45.app"/>
+       </storageModule>
+       <storageModule moduleId="com.samsung.tizen.nativeapp.projectInfo" version="1.0.0"/>
+       <storageModule moduleId="refreshScope" versionNumber="1">
+               <resource resourceType="PROJECT" workspacePath="/Email"/>
+       </storageModule>
+       <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+       <storageModule moduleId="scannerConfiguration">
+               <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
+               <scannerConfigBuildInfo instanceId="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.da.188154217">
+                       <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.tizen.nativecommon.TizenGCCManagedMakePerProjectProfileCPP"/>
+               </scannerConfigBuildInfo>
+               <scannerConfigBuildInfo instanceId="org.tizen.nativecpp.config.sbi.gcc45.app.debug.device.1762192684">
+                       <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.tizen.nativecommon.TizenGCCManagedMakePerProjectProfileCPP"/>
+               </scannerConfigBuildInfo>
+               <scannerConfigBuildInfo instanceId="org.tizen.nativecpp.config.sbi.gcc45.app.release.2014214436">
+                       <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.tizen.nativecommon.TizenGCCManagedMakePerProjectProfileCPP"/>
+               </scannerConfigBuildInfo>
+               <scannerConfigBuildInfo instanceId="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.1300143496">
+                       <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.tizen.nativecommon.TizenGCCManagedMakePerProjectProfileCPP"/>
+               </scannerConfigBuildInfo>
+               <scannerConfigBuildInfo instanceId="org.tizen.nativecpp.config.sbi.gcc45.app.debug.emulator.da.49081455">
+                       <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.tizen.nativecommon.TizenGCCManagedMakePerProjectProfileCPP"/>
+               </scannerConfigBuildInfo>
+       </storageModule>
+</cproject>
diff --git a/.project b/.project
new file mode 100755 (executable)
index 0000000..3e30a9f
--- /dev/null
+++ b/.project
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>Email</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.wst.common.project.facet.core.builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+                       <arguments>
+                               <dictionary>
+                                       <key>?children?</key>
+                                       <value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|\||</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>?name?</key>
+                                       <value></value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.append_environment</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+                                       <value>all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildArguments</key>
+                                       <value>-k -j4</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildCommand</key>
+                                       <value>sbi-make</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.buildLocation</key>
+                                       <value>${workspace_loc:/Email/Debug-Tizen-Emulator}</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+                                       <value>clean</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.contents</key>
+                                       <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+                                       <value>all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.stopOnError</key>
+                                       <value>false</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+                                       <value>true</value>
+                               </dictionary>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+                       <triggers>full,incremental,</triggers>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.tizen.nativecpp.apichecker.core.builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.wst.validation.validationbuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.cdt.core.cnature</nature>
+               <nature>org.eclipse.cdt.core.ccnature</nature>
+               <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+               <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+               <nature>org.tizen.nativecpp.apichecker.core.tizenCppNature</nature>
+               <nature>json.validation.nature</nature>
+               <nature>org.tizen.web.jslint.nature.JSLintNature</nature>
+               <nature>org.tizen.web.css.nature.CSSNature</nature>
+               <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+               <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+               <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+               <nature>org.tizen.web.project.builder.WebNature</nature>
+       </natures>
+</projectDescription>
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..a42903a
--- /dev/null
@@ -0,0 +1,40 @@
+# Target name and PKGID
+## TODO : set application name and ID
+SET(this_target Email)
+SET(PKGID vxqbrefica)
+
+# include directory
+INCLUDE_DIRECTORIES(
+       /usr/include/glib-2.0
+       /usr/lib/glib-2.0/include       
+       /usr/include/osp
+       /usr/include/email-service
+       /usr/include/dbus-1.0
+       /usr/lib/dbus-1.0/include
+       inc
+  )
+
+# Source files
+FILE(GLOB ${this_target}_SOURCE_FILES src/*.cpp)
+
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
+
+# Create executable
+SET(CMAKE_EXECUTABLE_SUFFIX ".exe")
+ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
+
+# Set link libraries and link options
+## TODO : add more link libraries and options
+TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib/osp osp-appfw osp-uifw osp-media osp-messaging osp-web osp-social)
+TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib glib-2.0 pthread)
+TARGET_LINK_LIBRARIES(${this_target} -L/usr/lib email-api email-common-use email-core email-device email-ipc email-network email-storage dbus-1)
+TARGET_LINK_LIBRARIES(${this_target} -Xlinker --allow-shlib-undefined -pthread -pie)
+
+# Copy info, data, res, and icons directories
+INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${PKGID}/bin)
+
+# Copy resource
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${PKGID}/info)
+#INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/data DESTINATION ../usr/apps/${PKGID})
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res DESTINATION ../usr/apps/${PKGID})
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/shared DESTINATION ../usr/apps/${PKGID})
diff --git a/LICENSE.Flora b/LICENSE.Flora
new file mode 100755 (executable)
index 0000000..571fe79
--- /dev/null
@@ -0,0 +1,206 @@
+Flora License
+
+Version 1.1, April, 2013
+
+http://floralicense.org/license/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction,
+and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by
+the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and
+all other entities that control, are controlled by, or are
+under common control with that entity. For the purposes of
+this definition, "control" means (i) the power, direct or indirect,
+to cause the direction or management of such entity,
+whether by contract or otherwise, or (ii) ownership of fifty percent (50%)
+or more of the outstanding shares, or (iii) beneficial ownership of
+such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity
+exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation source,
+and configuration files.
+
+"Object" form shall mean any form resulting from mechanical
+transformation or translation of a Source form, including but
+not limited to compiled object code, generated documentation,
+and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form,
+made available under the License, as indicated by a copyright notice
+that is included in or attached to the work (an example is provided
+in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form,
+that is based on (or derived from) the Work and for which the editorial
+revisions, annotations, elaborations, or other modifications represent,
+as a whole, an original work of authorship. For the purposes of this License,
+Derivative Works shall not include works that remain separable from,
+or merely link (or bind by name) to the interfaces of, the Work and
+Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original
+version of the Work and any modifications or additions to that Work or
+Derivative Works thereof, that is intentionally submitted to Licensor
+for inclusion in the Work by the copyright owner or by an individual or
+Legal Entity authorized to submit on behalf of the copyright owner.
+For the purposes of this definition, "submitted" means any form of
+electronic, verbal, or written communication sent to the Licensor or
+its representatives, including but not limited to communication on
+electronic mailing lists, source code control systems, and issue
+tracking systems that are managed by, or on behalf of, the Licensor
+for the purpose of discussing and improving the Work, but excluding
+communication that is conspicuously marked or otherwise designated
+in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity
+on behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.
+
+"Tizen Certified Platform" shall mean a software platform that complies
+with the standards set forth in the Tizen Compliance Specification
+and passes the Tizen Compliance Tests as defined from time to time
+by the Tizen Technical Steering Group and certified by the Tizen
+Association or its designated agent.
+
+2. Grant of Copyright License.  Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+copyright license to reproduce, prepare Derivative Works of,
+publicly display, publicly perform, sublicense, and distribute the
+Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License.  Subject to the terms and conditions of
+this License, each Contributor hereby grants to You a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+(except as stated in this section) patent license to make, have made,
+use, offer to sell, sell, import, and otherwise transfer the Work
+solely as incorporated into a Tizen Certified Platform, where such
+license applies only to those patent claims licensable by such
+Contributor that are necessarily infringed by their Contribution(s)
+alone or by combination of their Contribution(s) with the Work solely
+as incorporated into a Tizen Certified Platform to which such
+Contribution(s) was submitted. If You institute patent litigation
+against any entity (including a cross-claim or counterclaim
+in a lawsuit) alleging that the Work or a Contribution incorporated
+within the Work constitutes direct or contributory patent infringement,
+then any patent licenses granted to You under this License for that
+Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution.  You may reproduce and distribute copies of the
+Work or Derivative Works thereof pursuant to the copyright license
+above, in any medium, with or without modifications, and in Source or
+Object form, provided that You meet the following conditions:
+
+  1. You must give any other recipients of the Work or Derivative Works
+     a copy of this License; and
+  2. You must cause any modified files to carry prominent notices stating
+     that You changed the files; and
+  3. You must retain, in the Source form of any Derivative Works that
+     You distribute, all copyright, patent, trademark, and attribution
+     notices from the Source form of the Work, excluding those notices
+     that do not pertain to any part of the Derivative Works; and
+  4. If the Work includes a "NOTICE" text file as part of its distribution,
+     then any Derivative Works that You distribute must include a readable
+     copy of the attribution notices contained within such NOTICE file,
+     excluding those notices that do not pertain to any part of
+     the Derivative Works, in at least one of the following places:
+     within a NOTICE text file distributed as part of the Derivative Works;
+     within the Source form or documentation, if provided along with the
+     Derivative Works; or, within a display generated by the Derivative Works,
+     if and wherever such third-party notices normally appear.
+     The contents of the NOTICE file are for informational purposes only
+     and do not modify the License. You may add Your own attribution notices 
+     within Derivative Works that You distribute, alongside or as an addendum 
+     to the NOTICE text from the Work, provided that such additional attribution 
+     notices cannot be construed as modifying the License. You may add Your own
+     copyright statement to Your modifications and may provide additional or
+     different license terms and conditions for use, reproduction, or
+     distribution of Your modifications, or for any such Derivative Works
+     as a whole, provided Your use, reproduction, and distribution of
+     the Work otherwise complies with the conditions stated in this License
+     and your own copyright statement or terms and conditions do not conflict
+     the conditions stated in the License including section 3.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+any Contribution intentionally submitted for inclusion in the Work
+by You to the Licensor shall be under the terms and conditions of
+this License, without any additional terms or conditions.
+Notwithstanding the above, nothing herein shall supersede or modify
+the terms of any separate license agreement you may have executed
+with Licensor regarding such Contributions.
+
+6. Trademarks.  This License does not grant permission to use the trade
+names, trademarks, service marks, or product names of the Licensor,
+except as required for reasonable and customary use in describing the
+origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+agreed to in writing, Licensor provides the Work (and each
+Contributor provides its Contributions) on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+implied, including, without limitation, any warranties or conditions
+of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+PARTICULAR PURPOSE. You are solely responsible for determining the
+appropriateness of using or redistributing the Work and assume any
+risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+whether in tort (including negligence), contract, or otherwise,
+unless required by applicable law (such as deliberate and grossly
+negligent acts) or agreed to in writing, shall any Contributor be
+liable to You for damages, including any direct, indirect, special,
+incidental, or consequential damages of any character arising as a
+result of this License or out of the use or inability to use the
+Work (including but not limited to damages for loss of goodwill,
+work stoppage, computer failure or malfunction, or any and all
+other commercial damages or losses), even if such Contributor
+has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+the Work or Derivative Works thereof, You may choose to offer,
+and charge a fee for, acceptance of support, warranty, indemnity,
+or other liability obligations and/or rights consistent with this
+License. However, in accepting such obligations, You may act only
+on Your own behalf and on Your sole responsibility, not on behalf
+of any other Contributor, and only if You agree to indemnify,
+defend, and hold each Contributor harmless for any liability
+incurred by, or claims asserted against, such Contributor by reason
+of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Flora License to your work
+
+To apply the Flora License to your work, attach the following
+boilerplate notice, with the fields enclosed by brackets "[]"
+replaced with your own identifying information. (Don't include
+the brackets!) The text should be enclosed in the appropriate
+comment syntax for the file format. We also recommend that a
+file or class name and description of purpose be included on the
+same "printed page" as the copyright notice for easier
+identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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
+
+       http://floralicense.org/license/
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
diff --git a/NOTICE b/NOTICE
new file mode 100755 (executable)
index 0000000..15571f0
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,3 @@
+Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
+Except as noted, this software is licensed under Flora License, Version 1.1
+Please, see the LICENSE.Flora file for Flora License, Version 1.1 terms and conditions.
\ No newline at end of file
diff --git a/inc/EmAccountConfiguration.h b/inc/EmAccountConfiguration.h
new file mode 100644 (file)
index 0000000..0eb1002
--- /dev/null
@@ -0,0 +1,79 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmAccountConfigurationForm.h
+ * @brief      Provides the implementation of the Account Configuration Form
+ */
+
+#ifndef _EM_ACCOUNT_CONFIGURATION_H_
+#define _EM_ACCOUNT_CONFIGURATION_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+#include "EmTypes.h"
+
+class AccountConfigurationForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::ISectionTableViewItemEventListener
+       , public Tizen::Ui::Controls::ISectionTableViewItemProvider
+       , public Tizen::Ui::Scenes::ISceneEventListener
+{
+
+public:
+       AccountConfigurationForm(void);
+       virtual ~AccountConfigurationForm(void);
+
+       bool Initialize();
+       result OnInitializing(void);
+       result OnTerminating(void);
+
+       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);
+
+       virtual int GetSectionCount(void);
+       virtual int GetItemCount(int sectionIndex);
+       virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int sectionIndex, int itemIndex, int itemWidth);
+       virtual bool DeleteItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual void UpdateItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual int GetDefaultItemHeight(void);
+       virtual Tizen::Base::String GetSectionHeader(int sectionIndex);
+       virtual bool HasSectionHeader(int sectionIndex);
+       virtual Tizen::Base::String GetSectionFooter(int sectionIndex);
+       virtual bool HasSectionFooter(int sectionIndex);
+
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       virtual void OnSectionTableViewItemStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnSectionTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated);
+
+       void SetFontValues(void);
+private:
+
+       int __fontSize;
+       int __itemHeight;
+       EmailAccount* __pAccount;
+
+       Tizen::Ui::Controls::SectionTableView* __pMainSectionTableView;
+
+};
+
+#endif // _EM_ACCOUNT_CONFIGURATION_H_
diff --git a/inc/EmAccountSettingMainForm.h b/inc/EmAccountSettingMainForm.h
new file mode 100755 (executable)
index 0000000..4957838
--- /dev/null
@@ -0,0 +1,141 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file         EmAccountSettingMainForm.h
+ * @brief        Account Setting View provides the user with Account Settings in choosing
+ * settings like reply with body, add signature etc.
+ */
+
+#ifndef _EM_ACCOUNT_SETTING_MAINFORM_H_
+#define _EM_ACCOUNT_SETTING_MAINFORM_H_
+
+#include <FBase.h>
+#include <FUi.h>
+#include "EmEmailSettingProvider.h"
+#include "EmNativeMailboxManager.h"
+
+enum
+{
+       MAIL_OPTIONS_GROUP,
+       SETUP_MAILBOX_LIST_GROUP
+};
+
+/**
+* @class    AccountSettingMainForm.
+* @brief       This class derived from Form class creates AccountSettingForm.
+* The AccountSettingMainForm provides view for Account Settings.
+*
+*/
+
+class AccountSettingForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::ISectionTableViewItemProvider
+       , public Tizen::Ui::Controls::ISectionTableViewItemEventListener
+       , public Tizen::Ui::ITextEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+
+       /**
+       * Constructor
+       *
+       */
+       AccountSettingForm(void);
+
+       /**
+       * Destructor
+       *
+       */
+       virtual ~AccountSettingForm(void);
+
+       /**
+       * Called when we need to initialize the Form
+       *
+       */
+       bool Initialize(void);
+
+       /**
+       * called when the Form has been initialized.
+       *
+       */
+       virtual result OnInitializing(void);
+
+       /**
+       * The form is about to be terminated
+       *
+       */
+       virtual result OnTerminating(void);
+
+       /**
+       * Called when Form Back is requested.
+       *
+       */
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       /**
+       * Called when Scene is Activated.
+       *
+       */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                      const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+       * Called when Scene is DeActivated.
+       *
+       */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                       const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       virtual int GetSectionCount(void);
+       virtual int GetItemCount(int sectionIndex);
+       virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int sectionIndex, int itemIndex, int itemWidth);
+       virtual bool DeleteItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual void UpdateItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual Tizen::Base::String GetSectionHeader(int sectionIndex);
+       virtual bool HasSectionHeader(int sectionIndex);
+       virtual Tizen::Base::String GetSectionFooter(int sectionIndex);
+       virtual bool HasSectionFooter(int sectionIndex);
+       virtual int GetDefaultItemHeight(void);
+
+       virtual void OnSectionTableViewItemStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnSectionTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated);
+
+       virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
+
+       virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
+
+       void SetFontValues(void);
+
+private:
+       int __index;
+       int __fontSize;
+       int __itemHeight;
+
+       Tizen::Base::Collection::ArrayList* __pMailOptionList;
+       Tizen::Base::Collection::ArrayList* __pSetupMailboxList;
+       Tizen::Base::Collection::ArrayList* __pSubTextList;
+       // UI controls
+       Tizen::Ui::Controls::EditArea* __pSignatureField;
+       Tizen::Ui::Controls::SectionTableView* __pSectionTableView;
+       EmailAccount* __pAccount;
+};
+
+#endif  // _EM_ACCOUNT_SETTING_MAINFORM_H_
diff --git a/inc/EmAccountSettingSetUpMailboxForm.h b/inc/EmAccountSettingSetUpMailboxForm.h
new file mode 100644 (file)
index 0000000..9fca104
--- /dev/null
@@ -0,0 +1,140 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file         EmAccountSettingSetUpMailboxForm.h
+ * @brief        Account Setting set up mailbox form lets user choose the mapping for the mailboxes
+ */
+
+#ifndef _EM_ACCOUNT_SETTING_SET_UP_MAILBOX_FORM_H_
+#define _EM_ACCOUNT_SETTING_SET_UP_MAILBOX_FORM_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FUi.h>
+#include "EmEmailSettingProvider.h"
+#include "EmNativeMailboxManager.h"
+
+class AccountSettingSetUpMailboxForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::IListViewItemProvider
+       , public Tizen::Ui::Controls::IListViewItemEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+
+       /**
+       * Constructor
+       *
+       */
+               AccountSettingSetUpMailboxForm(void);
+
+       /**
+       * Destructor
+       *
+       */
+       virtual ~AccountSettingSetUpMailboxForm(void);
+
+       /**
+       * Called when we need to initialize the Form
+       *
+       */
+       bool Initialize(void);
+
+       /**
+       * called when the Form has been initialized.
+       *
+       */
+       virtual result OnInitializing(void);
+
+       /**
+       * The form is about to be terminated
+       *
+       */
+       virtual result OnTerminating(void);
+       /**
+       * Called when List View ContexItem state is changed.
+       *
+       */
+       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);
+
+       /**
+       * Called when List View Item state is changed.
+       *
+       */
+       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+
+       /**
+       * Called when List View Item Swept.
+       *
+       */
+       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView &listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+
+       /**
+       * Creates the item of Detail Accounts ListView.
+       *
+       */
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+       /**
+       * Deletes the item of Detail Accounts ListView.
+       *
+       */
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       /**
+       *  Returns Number of Items to be Created in the ListView.
+       *
+       */
+       virtual int GetItemCount(void);
+       /**
+       * Called when Scene is Activated.
+       *
+       */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                      const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+       * Called when Scene is DeActivated.
+       *
+       */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                       const Tizen::Ui::Scenes::SceneId& nextSceneId);
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       void SetFontValues(void);
+
+private:
+
+       EmailAccount* __pAccount;
+       int __index;
+       int __sentIndex;
+       int __draftIndex;
+       int __trashIndex;
+       int __spamIndex;
+       int __prevIndex;
+       int __currentIndex;
+       int __fontSize;
+       int __itemHeight;
+       Tizen::Base::Collection::HashMap* __pMailboxList;
+       Tizen::Ui::Controls::ListView* __pMailboxListview;
+};
+
+#endif /* _EM_ACCOUNT_SETTING_SET_UP_MAILBOX_FORM_H_ */
diff --git a/inc/EmAddAccountForm.h b/inc/EmAddAccountForm.h
new file mode 100755 (executable)
index 0000000..5fe8bdf
--- /dev/null
@@ -0,0 +1,164 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmAddAccountForm.h
+ * @brief                      Header for the AddAccountForm which lets the user to add a new account.
+ *
+ */
+
+#ifndef _EM_ADD_ACCOUNT_FORM_H_
+#define _EM_ADD_ACCOUNT_FORM_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+#include "EmNativeMailboxManager.h"
+#include "EmTypes.h"
+
+class AddAccountForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::IKeypadEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::IProgressPopupEventListener
+       , public Tizen::Ui::IPropagatedKeyEventListener
+       , public Tizen::Ui::ITextEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+       /**
+        * Constructor
+        */
+       AddAccountForm(void);
+
+       /**
+        * Destructor
+        */
+       virtual ~AddAccountForm(void);
+
+       /**
+        * Called when we need to initialize the Form
+        */
+       bool Initialize(void);
+
+       /**
+        * called when the Form has been initialized.
+        */
+       virtual result OnInitializing(void);
+
+       /**
+        * The form is about to be terminated
+        */
+       virtual result OnTerminating(void);
+
+       /**
+        * Gets called when any button gets pressed
+        * @param[in] : the source which is bein pressed.
+        * @param[in] : actionId, the action id of the button.
+        */
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       // Called when a text is changed.
+       virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
+
+       // Called when a change made to the text is canceled.
+       virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
+
+       /**
+        * Called after setting as current scene. @n
+        * The UI element (Tizen::Ui::Controls::Form or Tizen::Ui::Controls::Panel)
+        * has been added to a container (Frame or Form) and is ready to update.
+        *
+        * @since               3.0
+        *
+        * @param[in]   previousSceneId         The scene ID of the deactivated scene
+        * @param[in]   currentSceneId          The scene ID of the newly activated scene
+        * @param[in]   pArgs                           A pointer to an argument list that is user-specified
+        * @remarks             The argument list must be cleaned up to free memory.
+        */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+        * Called when the current scene is deactivated.
+        *
+        * @since               3.0
+        *
+        * @param[in]   currentSceneId          The scene ID of the scene being deactivated
+        * @param[in]   nextSceneId                     The scene ID of the next active scene
+        *
+        */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs);
+
+       virtual void OnKeypadWillOpen(Tizen::Ui::Control& source);
+
+       virtual void OnKeypadOpened(Tizen::Ui::Control& source);
+
+       virtual void OnKeypadClosed(Tizen::Ui::Control& source);
+
+       virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
+
+       virtual void OnProgressPopupCanceled(void);
+
+       void ShowPopup(void);
+
+       void HidePopup(void);
+
+       virtual bool OnKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnPreviewKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnPreviewKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       void SetFontValues(void);
+
+private:
+       int __accountId;
+       int __mailboxId;
+       int __addAccountId;
+       int __addAccountSvcId;
+       int __validationHandle;
+       int __fontSize;
+       int __itemHeight;
+       bool __waitForNoti;
+       bool __waitForValidateNoti;
+       bool __waitForMailboxSyncNoti;
+       bool __isBackFromManualSetup;
+       email_mailbox_type_e __mailboxType;
+       BasePresentationModel* __pPresentationModel;
+       Tizen::Base::String __previousSceneId;
+       Tizen::Base::String __currentDomainName;
+       // UI Controls
+       Tizen::Base::Collection::IList* __pArgs;
+       Tizen::Ui::Controls::Button* __pManualSettingsButton;
+       Tizen::Ui::Controls::CheckButton* __pShowPassword;
+       Tizen::Ui::Controls::EditField* __pEmailAddressField;
+       Tizen::Ui::Controls::EditField* __pPasswordField;
+       Tizen::Ui::Controls::ProgressPopup* __pProgressPopup;
+
+       EmailAccount* __pAccount;
+
+       bool IsFieldsEmpty(void);
+};
+
+#endif /* _EM_ADD_ACCOUNT_FORM_H_ */
diff --git a/inc/EmAddAddressForm.h b/inc/EmAddAddressForm.h
new file mode 100644 (file)
index 0000000..d96f410
--- /dev/null
@@ -0,0 +1,161 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+* @file      EmAddressMainForm.h
+* @brief     AddAddressMainForm View provides the user in Adding addresses
+* from which he/she doesn't want to receive mails
+*/
+
+#ifndef _EM_ADD_ADDRESS_MAIN_FORM_H_
+#define _EM_ADD_ADDRESS_MAIN_FORM_H_
+
+#include <FBase.h>
+#include <FUi.h>
+
+/**
+* @class    AddAddressMainForm
+* @brief       This class provides options for adding address which needs to be blocked .
+*
+* The AddAddressMainForm provides options for adding address from which he/she does not want to receive mails.
+*
+*/
+class AddAddressForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::App::IAppControlResponseListener
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::IKeypadEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::ITextEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+
+{
+public:
+
+       /**
+       * Constructor
+       *
+       */
+       AddAddressForm(void);
+
+       /**
+       * Destructor
+       *
+       */
+       virtual
+       ~AddAddressForm(void);
+
+       /**
+       *  Called when we need to initialize the Form.
+       *
+       */
+       bool Initialize(void);
+
+public:
+
+       /**
+       * called when the Form has been initialized.
+       *
+       */
+       virtual result OnInitializing(void);
+
+       /**
+       * The form is about to be terminated
+       *
+       */
+       virtual result OnTerminating(void);
+
+//     virtual void OnAppControlCompleted(const Tizen::Base::String& providerId, const Tizen::Base::String& operationId, const Tizen::Base::Collection::IList* pResultList);
+       virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData);
+
+       /**
+       * Called when an action is performed on an entity.
+       *
+       */
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       /**
+       * Called when Form Back is requested.
+       *
+       */
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       /**
+       * Called when Scene is Activated.
+       *
+       */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                      const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+       * Called when Scene is Deactivated.
+       *
+       */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                       const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       /**
+       * Called when text value is changed.
+       *
+       */
+       virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
+
+       /**
+       * Called when text value is cancelled.
+       *
+       */
+       virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
+
+       /**
+       * Called when keypad action is performed.
+       *
+       */
+       virtual void OnKeypadActionPerformed(Tizen::Ui::Control &source, Tizen::Ui::KeypadAction keypadAction);
+
+       /**
+       * Called when keypad is closed.
+       *
+       */
+       virtual void OnKeypadClosed(Tizen::Ui::Control &source);
+
+       /**
+       * Called when keypad is opened.
+       *
+       */
+       virtual void OnKeypadOpened(Tizen::Ui::Control &source);
+
+       /**
+       * Called when keypad will open.
+       *
+       */
+       virtual void OnKeypadWillOpen(Tizen::Ui::Control &source);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       void SetFontValues(void);
+
+private:
+       //UI controls
+       int __fontSize;
+       int __itemHeight;
+       Tizen::Ui::Controls::Footer* __pFooter;
+       Tizen::Ui::Controls::EditField* __pEditField;
+       Tizen::Ui::Controls::Button* __pAddContactButton;
+};
+
+#endif  // _EM_ADD_ADDRESS_MAIN_FORM_H_
diff --git a/inc/EmAddSubjectForm.h b/inc/EmAddSubjectForm.h
new file mode 100644 (file)
index 0000000..c567700
--- /dev/null
@@ -0,0 +1,156 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+* @file            EmAddSubjectForm.h
+* @brief           AddSubjectForm View provides the user in Adding subject
+* from which he/she doesn't want to receive mails
+*/
+
+#ifndef _EM_ADD_SUBJECT_H_
+#define _EM_ADD_SUBJECT_H_
+
+#include <FBase.h>
+#include <FUi.h>
+
+/**
+* @class    AddSubjectForm.
+* @brief       This class provides options for adding address which needs to be blocked .
+*
+* The AddSubjectForm provides options for adding address from which he/she does not want to receive mails.
+*
+*/
+class AddSubjectForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::IKeypadEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::ITextEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+
+{
+public:
+
+       /**
+       * Constructor
+       *
+       */
+       AddSubjectForm(void);
+
+       /**
+       * Destructor
+       *
+       */
+       virtual
+       ~AddSubjectForm(void);
+
+       /**
+       *  Called when we need to initialize the Form.
+       *
+       */
+       bool Initialize(void);
+
+public:
+
+       /**
+       * called when the Form has been initialized.
+       *
+       */
+       virtual result OnInitializing(void);
+
+       /**
+       * The form is about to be terminated
+       *
+       */
+       virtual result OnTerminating(void);
+
+       /**
+       * Called when an action is performed on an entity.
+       *
+       */
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       /**
+       * Called when Form Back is requested.
+       *
+       */
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       /**
+       * Called when Scene is Activated.
+       *
+       */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                      const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+       * Called when Scene is Deactivated.
+       *
+       */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                       const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       /**
+       * Called when text value is changed.
+       *
+       */
+       virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
+
+       /**
+       * Called when text value is cancelled.
+       *
+       */
+       virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
+
+       /**
+       * Called when keypad action is performed.
+       *
+       */
+       virtual void OnKeypadActionPerformed(Tizen::Ui::Control &source, Tizen::Ui::KeypadAction keypadAction);
+
+       /**
+       * Called when keypad is closed.
+       *
+       */
+       virtual void OnKeypadClosed(Tizen::Ui::Control &source);
+
+       /**
+       * Called when keypad is opened.
+       *
+       */
+       virtual void OnKeypadOpened(Tizen::Ui::Control &source);
+
+       /**
+       * Called when keypad will open.
+       *
+       */
+       virtual void OnKeypadWillOpen(Tizen::Ui::Control &source);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       void SetFontValues(void);
+
+private:
+       //UI controls
+       int __fontSize;
+       int __itemHeight;
+       Tizen::Ui::Controls::Footer* __pFooter;
+       Tizen::Ui::Controls::EditField* __pEditField;
+};
+
+#endif /* _EM_ADD_SUBJECT_H_ */
diff --git a/inc/EmAllMailsPresentationModel.h b/inc/EmAllMailsPresentationModel.h
new file mode 100644 (file)
index 0000000..0e71619
--- /dev/null
@@ -0,0 +1,61 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmAllMailsPresentationModel.h
+ * @brief      Header file containing declarations for EmailListPresentationModel
+ */
+
+#ifndef _EM_ALL_MAILS_PRESENTATION_MODEL_H_
+#define _EM_ALL_MAILS_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include "EmBasePresentationModel.h"
+
+class AllMailsPresentationModel
+       : public BasePresentationModel
+{
+public:
+
+       /**
+       * Gets the instance of the AllMailsPresentationModel
+       *
+       */
+       static AllMailsPresentationModel* GetInstance(void);
+
+       virtual void FetchData(int accountId, bool forceUpdate = false);
+       virtual void FetchData(int accountId, int mailboxId, email_mailbox_type_e mailboxType);
+
+private:
+       //Constructor for the AllMailsPresentationModel class
+       AllMailsPresentationModel(void);
+       //Copy Constructor for the AllMailsPresentationModel class
+       AllMailsPresentationModel(const AllMailsPresentationModel& pEmailListPresentationModelInstance);
+       //Destructor for the AllMailsPresentationModel class
+       virtual ~AllMailsPresentationModel(void);
+
+       result Construct(void);
+
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+       void CleanupInstance(void);
+       void operator=(const AllMailsPresentationModel& pEmailListPresentationModelInstance);
+
+       static AllMailsPresentationModel* __pInstance;
+};
+
+#endif // _EM_ALL_MAILS_PRESENTATION_MODEL_H_
diff --git a/inc/EmAttachmentPanel.h b/inc/EmAttachmentPanel.h
new file mode 100755 (executable)
index 0000000..5131ec5
--- /dev/null
@@ -0,0 +1,156 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmAttachmentPanel.h
+ * @brief                      Keeps the declaration of AttachmentPanel class
+ *
+ */
+
+#ifndef _EM_ATTACHMENT_PANEL_H_
+#define _EM_ATTACHMENT_PANEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FUi.h>
+#include "EmNativeMailboxManager.h"
+
+class IAttachmentPanelListener
+{
+public:
+
+       /**
+        * Destructor
+        */
+       virtual
+       ~IAttachmentPanelListener(void)
+       {
+       }
+
+       virtual void SetFocusToFrom(void)
+       {
+
+       }
+
+       /**
+        *      This method is called when there is a change in the value of viewtype
+        *      @param[in] viewType, gives the selected view type
+        */
+       virtual void OnShowAttachmentValueChanged(bool newValue) = 0;
+};
+
+class AttachmentPanel
+       : public Tizen::Ui::Controls::Panel
+       , public Tizen::App::IAppControlResponseListener
+       , public Tizen::Base::Runtime::ITimerEventListener
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::Controls::IGroupedTableViewItemEventListener
+       , public Tizen::Ui::Controls::IGroupedTableViewItemProvider
+
+{
+public:
+       // ! This is the constructor for the class
+
+       /*!
+        * @fn AttachmentPanel()
+        * @return No value returned
+        */
+       AttachmentPanel(BasePresentationModel* pModel);
+       // ! This is the destructor for the class
+
+       /*!
+        * @fn ~AttachmentPanel()
+        * @return No value returned
+        */
+       ~AttachmentPanel(void);
+       // !Initialises this panel in the application
+
+       result OnInitializing(void);
+       result OnInitialized(void);
+       result OnTerminating(void);
+
+       /*!@fn Initialize(const Tizen::Graphics::Rectangle & bounds, const Tizen::Ui::IActionEventListener& listener)
+        * @param Takes Rectangle and listener as parameters
+        * @return result of the construction of the panel if success , false if unable to initialize
+        */
+       result Construct(Tizen::Ui::RelativeLayout& layout, const Tizen::Graphics::Rectangle & bounds);
+
+       void AttachFilesN(Tizen::Base::Collection::ArrayList* pAttachmentList);
+
+       Tizen::Base::Collection::ArrayList* GetAttachmentList();
+
+       void UpdateAttachmentList(void);
+
+       void SetAttachmentPanelListener(IAttachmentPanelListener* pListener);
+
+       void SetAttachmentList(Tizen::Base::Collection::ArrayList* pAttachmentList);
+
+       void SetDetailView(bool fromDetailView);
+
+       void InitializePresentationModel(BasePresentationModel* pModel);
+
+       virtual int GetGroupCount(void);
+       virtual int GetItemCount(int groupIndex);
+       virtual Tizen::Ui::Controls::TableViewGroupItem* CreateGroupItem(int groupIndex, int itemWidth);
+       virtual bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem);
+       virtual void UpdateGroupItem(int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem);
+       virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int groupIndex, int itemIndex, int itemWidth);
+       virtual bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual void UpdateItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual int GetDefaultGroupItemHeight(void);
+       virtual int GetDefaultItemHeight(void);
+
+       virtual void OnGroupedTableViewGroupItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnGroupedTableViewItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnGroupedTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated);
+
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+       virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+       virtual void OnBoundsChanged(const Tizen::Graphics::Rectangle& oldRect, const Tizen::Graphics::Rectangle& newRect);
+
+       int GetTotalAttachmentSize(void);
+       void SetTotalAttachmentSize(int totalSize);
+
+       virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData);
+       virtual void OnAppControlStartResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, result r);
+
+       virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
+
+private:
+       bool __readOnlyMode;
+       bool __appControlLaunched;
+       bool __processEvent;
+       int __totalAttachmentSize;
+       Tizen::Ui::Controls::Label* __pPathLabel;
+       Tizen::Ui::Controls::Label* __pIconLabel;
+       Tizen::Graphics::Bitmap* __pDeleteAttachmentButtonBitmap;
+       Tizen::Graphics::Bitmap* __pDeleteAttachmentButtonPressedBitmap;
+       Tizen::Graphics::Bitmap* __pIconBitmap;
+       Tizen::Base::Collection::ArrayList* __pAttachmentsList;
+       Tizen::Ui::Controls::GroupedTableView* __pAttachmentListView;
+       Tizen::Ui::Controls::Button* __pDeleteAttachmentButton;
+       IAttachmentPanelListener* __pAttachmentPanelListener;
+       Tizen::Base::Collection::HashMap* __pAttachmentMap;
+
+       Tizen::Base::Runtime::Timer* __pTimer;
+
+       BasePresentationModel* __pPresentationModel;
+
+       void CreateDownloadAttachmentItem(const int& itemWidth, EmailAttachment* pEmailAttachment, Tizen::Ui::Controls::TableViewItem* pItem, int itemIndex);
+};
+
+#endif /* _EM_ATTACHMENT_PANEL_H_ */
diff --git a/inc/EmBaseListViewItemProvider.h b/inc/EmBaseListViewItemProvider.h
new file mode 100644 (file)
index 0000000..5212ad6
--- /dev/null
@@ -0,0 +1,91 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmBaseFormProvider.h
+ * @brief      Keeps the declaration of EmailBaseFormProvider class which has the common groupedlistview item provider for all forms
+ */
+
+#ifndef _EM_BASE_FORM_PROVIDER_H_
+#define _EM_BASE_FORM_PROVIDER_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+#include "EmBasePresentationModel.h"
+#include "EmTypes.h"
+#include "EmUtils.h"
+
+class EmailBaseListViewItemProvider
+       : public Tizen::Ui::Controls::IGroupedListViewItemProvider
+{
+public:
+               EmailBaseListViewItemProvider(BasePresentationModel* pModel, bool isSearch);
+               virtual ~EmailBaseListViewItemProvider(void);
+
+               // Gets the total number of groups.
+               virtual int GetGroupCount(void);
+
+               // Gets the total number of items in the specified group.
+               virtual int GetItemCount(int groupIndex);
+
+               // Creates the group item for the specified index from the item provider.
+               virtual Tizen::Ui::Controls::GroupItem* CreateGroupItem(int groupIndex, int itemWidth);
+
+               // Deletes the specified group item.
+               virtual bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::GroupItem* pItem, int itemWidth);
+
+               // Creates the specified item.
+               virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int groupIndex, int itemIndex, int itemWidth);
+
+               // Deletes the specified item.
+               virtual bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+               virtual void SetPresentationModel(BasePresentationModel* pModel);
+
+               virtual void CreateSubjectText(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth);
+               virtual void CreateRecipientText(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth, const Tizen::Graphics::FloatDimension& dim);
+               virtual void CreateMessageText(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth);
+               virtual void CreateDateText(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth, Tizen::Graphics::FloatDimension& dim);
+               virtual Tizen::Ui::Controls::ListContextItem* CreateContextItemForListItem(const EmailMessageListItem* pMail);
+               virtual Tizen::Ui::Controls::CustomItem* CreateListItem(const EmailMessageListItem* pMail, const int& itemWidth);
+
+               virtual void AddFavoriteIcon(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth);
+               virtual void AddAttachmentIcon(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth);
+               virtual AccountColorCustomListElement* CreateColorCode(const EmailMessageListItem* pMail);
+
+               void InitLocals(void);
+
+protected:
+
+               int _fontSize;
+               int _itemHeight;
+               bool _isSearch;
+               BasePresentationModel* _pModel;
+
+private:
+
+               Tizen::Base::String __delete;
+               Tizen::Base::String __forward;
+               Tizen::Base::String __read;
+               Tizen::Base::String __reply;
+               Tizen::Base::String __unread;
+
+               Tizen::Base::DateTime __today;
+
+               Tizen::Base::Collection::HashMap* __pContextItemMap;
+};
+#endif /* _EM_BASE_FORM_PROVIDER_H_ */
diff --git a/inc/EmBasePresentationModel.h b/inc/EmBasePresentationModel.h
new file mode 100755 (executable)
index 0000000..21c53f4
--- /dev/null
@@ -0,0 +1,190 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmBasePresentationModel.h
+ * @brief      Keeps the declaration of BasePresentationModel class
+ */
+
+#ifndef _EM_BASE_PRESENTATION_MODEL_H_
+#define _EM_BASE_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include "EmEmailSettingProvider.h"
+#include "EmSortByListViewItemProvider.h"
+#include "EmNativeMailboxManager.h"
+#include "EmIListDataChangeListener.h"
+
+enum SortBy
+{
+       SORTBY_RECIPIENT,
+       SORTBY_STRING_KEY,
+       SORTBY_KEY,
+       SORTBY_DATE
+};
+
+enum SelectionMode
+{
+       SELECTION_NONE,
+       SELECTION_READ,
+       SELECTION_UNREAD,
+       SELECTION_MIXED
+};
+
+enum FavouriteSelectionMode
+{
+       FAVOURITE_SELECTION_NONE,
+       FAVOURITE_SELECTION_FAVOURITE,
+       FAVOURITE_SELECTION_UNFAVOURITE,
+       FAVOURITE_SELECTION_MIXED
+};
+
+enum MailboxViewType
+{
+       INBOX_VIEW = 0,
+//     FAVORITES_VIEW,
+       DRAFTS_VIEW,
+       SENTBOX_VIEW,
+       ALL_FOLDERS_VIEW
+};
+
+class CustomSorter
+       : public Tizen::Base::Collection::IComparer
+{
+public:
+       CustomSorter(SortBy sortByType);
+       virtual ~CustomSorter(void);
+       virtual result Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp) const;
+
+private:
+       SortBy __sortByType;
+};
+
+class BasePresentationModel
+       : public Tizen::Base::Object
+{
+public:
+       BasePresentationModel(void);
+       virtual ~BasePresentationModel(void);
+
+       result Construct(void);
+
+       virtual void UpdateData(void);
+       virtual void UpdateData(const int& accountId);
+
+       virtual void DeleteMail(int groupIndex, int itemIndex, bool fromServer);
+       virtual void DeleteMail(int mailId, bool fromServer);
+       virtual void DeleteMail(bool fromServer, bool allAccounts = false);
+
+       void UpdateUnreadCount(int accountId);
+       void UpdateUnreadCount(EmailMailbox* pMailbox, int deltaCount);
+
+       virtual void SetFlag(int groupIndex, int itemIndex, email_flags_field_type fieldType, bool fieldValue, bool updateServer = false);
+       virtual void SetFlag(EmailMessageListItem* pMail, email_flags_field_type fieldType, bool fieldValue, bool updateServer = false);
+       virtual void SetFlag(email_flags_field_type fieldType, bool fieldValue, bool updateServer = false);
+
+       virtual result MoveMail(int groupIndex, int itemIndex, int mailboxId);
+       virtual result MoveMail(int mailId, int mailboxId);
+       virtual result MoveMail(int mailboxId);
+
+       Tizen::Base::Collection::ArrayList* GetData(void);
+
+       virtual EmailMessageListItem* GetMailData(int groupIndex, int itemIndex);
+       virtual EmailMessageListItem* GetMailData(int mailId);
+       virtual EmailMessageItem* GetCompleteMailDataN(const int& mailId);
+
+       virtual void AddMailsOfSelectedSender(int groupIndex, int itemIndex);
+       virtual void AddMailsOfSelectedRecipient(int groupIndex, int itemIndex);
+
+       virtual int GetGroupCount(void);
+       virtual int GetItemCount(int groupIndex);
+
+       virtual SortType GetSortType(void);
+       virtual result DownloadBody(int mailId, bool withAttachment, int& handle);
+       virtual result DownloadAttachment(int mailId, int attachmentIndex, int& handle);
+       virtual result DownloadAttachment(EmailAttachment* pAttachment, int& handle);
+       virtual result CancelJob(int accountId, int& handle, email_cancelation_type type);
+
+       virtual void ClearSortMap(void);
+       virtual Tizen::Base::String GetGroupItemText(int groupIndex);
+       virtual void SortBy(SortType viewType);
+       virtual void BlockEmails(void);
+       virtual void SetEventListener(IListDataChangeListener* pListener);
+       virtual const Tizen::Base::String GetHeaderText(int accId);
+
+       result MoveMail(int groupIndex, int itemIndex, email_mailbox_type_e toMailboxType);
+       result MoveMail(int mailId, email_mailbox_type_e toMailboxType);
+       result MoveMail(email_mailbox_type_e toMailboxType);
+
+       void SetItemCount(void);
+
+       virtual void FetchData(int accountId, bool forceUpdate = false)=0;
+       virtual void FetchData(int accountId, int mailboxId, email_mailbox_type_e mailboxType){}
+
+       void AddSelectedMail(int groupIndex, int itemIndex);
+       void RemoveSelectedMail(int groupIndex, int itemIndex);
+       void RemoveMailFromSelectedMailList(EmailMessageListItem* pMail);
+       void AddMailToSelectedMailList(EmailMessageListItem* pMail);
+       EmailMessageListItem* GetSelectedMailAtIndex(int index);
+       void ClearSelectedMailList(void);
+       int GetNumberOfSelectedItems(void);
+       void SetSelectionModes(void);
+       SelectionMode GetSelectionMode(void);
+       FavouriteSelectionMode GetFavouriteSelectionMode(void);
+
+       int IsMultipleAccountsSelected(void);
+       bool IsMailSelected(EmailMessageListItem* pMail);
+       bool CheckIfSelectedMailExists(void);
+
+       int GetMailboxIdByType(int accountId, email_mailbox_type_e mailboxType);
+       EmailMailbox* GetMailboxByType(int accountId, email_mailbox_type_e mailboxType);
+       EmailMailbox* GetMailboxById(int mailboxId);
+       email_mailbox_type_e GetMailboxType(int mailboxId);
+       int GetDefaultAccountId(void);
+
+       int GetAccountCount(void);
+       EmailAccount* GetAccountByIndex(int index);
+       EmailAccount* GetAccountById(int accountId);
+
+       Tizen::Base::Collection::ArrayList* GetAllAttachmentListN(int mailId);
+
+       Tizen::Base::Collection::ArrayList* GetAttachmentsListN(int mailId);
+
+       Tizen::Base::Collection::ArrayList* GetContentImagesListN(int mailId);
+
+       void GetMailIndex(int mailId, int& groupIndex, int& itemIndex);
+       int GetUnreadCount(EmailAccount* pAccount);
+       int GetUnreadCountForAllAccounts(EmailMailbox* pMailbox);
+
+protected:
+       int _accountId;
+       Tizen::Base::Collection::ArrayList* _pMailList;
+       Tizen::Base::Collection::ArrayList* _pSelectedMailList;
+       EmailMailboxManager* _pMailboxManager;
+       EmailSettingsProvider* _pAccountsManager;
+       SortType _sortType;
+
+private:
+       SelectionMode __selectionMode;
+       FavouriteSelectionMode __favouriteSelectionMode;
+       Tizen::Base::Collection::ArrayList* __pItemCount;
+       Tizen::Base::Collection::HashMap* __pSortMap;
+
+       IListDataChangeListener* __pListDataChangeListener;
+};
+
+#endif /* _EM_BASE_PRESENTATION_MODEL_H_ */
diff --git a/inc/EmBlockForm.h b/inc/EmBlockForm.h
new file mode 100644 (file)
index 0000000..dbaf476
--- /dev/null
@@ -0,0 +1,201 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+* @file                        EmBlockForm.h
+* @brief                       Header for EmBlockForm View provides the user the list of added
+* addresses and subjects of which user doesn't want to receive mails.
+*
+*/
+
+#ifndef _EM_BLOCK_FORM_H_
+#define _EM_BLOCK_FORM_H_
+
+#include <FBase.h>
+#include <FUi.h>
+#include "EmEmailSettingPresentationModel.h"
+
+class BlockAddressProvider
+       : public Tizen::Ui::Controls::IListViewItemProvider
+{
+public:
+
+       /**
+       * Constructor
+       *
+       */
+       BlockAddressProvider(void);
+
+       /**
+       * Destructor.
+       *
+       */
+       virtual
+       ~BlockAddressProvider(void);
+
+public:
+
+       /**
+       * Called when creating Listview item.
+       *
+       */
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+       /**
+       * Called when deleting Listview item.
+       *
+       */
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       /**
+       * Returns number of items to be created in the ListView
+       *
+       */
+       virtual int GetItemCount(void);
+
+       void SetFontValues(void);
+
+private:
+       int __fontSize;
+       int __itemHeight;
+};
+
+class BlockSubjectProvider
+       : public Tizen::Ui::Controls::IListViewItemProvider
+{
+public:
+
+       /**
+       * Constructor
+       *
+       */
+       BlockSubjectProvider(void);
+
+       /**
+       * Destructor.
+       *
+       */
+       virtual
+       ~BlockSubjectProvider(void);
+
+public:
+
+       /**
+       * Called when creating Listview item.
+       *
+       */
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+       /**
+       * Called when deleting Listview item.
+       *
+       */
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       /**
+       * Returns number of items to be created in the ListView
+       *
+       */
+       virtual int GetItemCount(void);
+
+       void SetFontValues(void);
+
+private:
+
+       int __fontSize;
+       int __itemHeight;
+};
+
+
+class BlockForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+
+       /**
+        * Constructor
+        *
+        */
+       BlockForm(void);
+
+       /**
+        * Destructor.
+        *
+        */
+       virtual
+       ~BlockForm(void);
+
+       /**
+        *  Called when we need to initialize the Form.
+        *
+        */
+       bool Initialize(void);
+
+  public:
+
+       /**
+        * called when the Form has been initialized.
+        *
+        */
+       virtual result OnInitializing(void);
+
+       /**
+        * called when the form is about to be terminated.
+        *
+        */
+       virtual result OnTerminating(void);
+
+       /**
+        * Called when an action is performed on an entity.
+        *
+        */
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       /**
+        * Called when Form Back is requested.
+        *
+        */
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       /**
+        * Called when Scene is Activated.
+        *
+        */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                       const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+        * Called when Scene is Deactivated.
+        *
+        */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                       const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+private:
+       bool __isShowAddressListView;
+       Tizen::Ui::Controls::Header* __pHeader;
+       Tizen::Ui::Controls::Footer* __pFooter;
+       Tizen::Ui::Controls::ListView* __pAddressBlockListView;
+       Tizen::Ui::Controls::ListView* __pSubjectBlockListView;
+       BlockAddressProvider* __pBlockAddressProvider;
+       BlockSubjectProvider* __pBlockSubjectProvider;
+};
+
+#endif  // _EM_BLOCK_FORM_H_
diff --git a/inc/EmComposerForm.h b/inc/EmComposerForm.h
new file mode 100644 (file)
index 0000000..7de0a74
--- /dev/null
@@ -0,0 +1,137 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+* @file     EmComposerForm.h
+* @brief    Header form for EmEmailComposerForm class
+*/
+
+#ifndef _EM_COMPOSER_FORM_H_
+#define _EM_COMPOSER_FORM_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FIo.h>
+#include <FMessaging.h>
+#include <FUi.h>
+#include "EmNativeMailboxManager.h"
+#include "EmAttachmentPanel.h"
+#include "EmComposerPresentationModel.h"
+#include "EmRecipientField.h"
+
+class ComposerForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::App::IAppControlResponseListener
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::IFormMenuEventListener
+       , public Tizen::Ui::Controls::ITableViewItemProvider
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::IKeypadEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+       , public IAttachmentPanelListener
+       , public ITokenChangedEventListener
+{
+public:
+       ComposerForm(void);
+       virtual ~ComposerForm(void);
+
+       bool Initialize(void);
+
+       virtual result OnInitializing(void);
+       virtual result OnTerminating(void);
+
+       virtual void LineCountChanged(const RecipientField& src);
+
+       virtual void OnAppControlStartResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, result r);
+       virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData);
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+       virtual void OnFormMenuRequested(Tizen::Ui::Controls::Form& source);
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       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);
+
+       virtual void OnKeypadWillOpen(Tizen::Ui::Control& source);
+       virtual void OnKeypadOpened(Tizen::Ui::Control& source);
+       virtual void OnKeypadClosed(Tizen::Ui::Control& source);
+       virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
+
+       virtual int GetItemCount(void);
+       virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int itemIndex, int itemWidth);
+       virtual bool DeleteItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual void UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual int GetDefaultItemHeight(void);
+
+       void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       void AddSenderAddressToBcc(EmailAccount* pAccount = null);
+       void AttachFiles(const Tizen::Base::Collection::ArrayList* pFilesList);
+       void GoBack(void);
+       void PrepareFormFields(Tizen::Base::Collection::HashMap* pArgsMap);
+       void MoreOptionMenu(void);
+       void SaveDraftMessage(void);
+       virtual void OnShowAttachmentValueChanged(bool showStatus);
+       virtual void SetFocusToFrom(void);
+
+       EmailMessageItem* CreateMessageItem(int accountId);
+       EmailAttachment* GetAttachmentN(const Tizen::Base::String* pSrcAttachmentPath, EmailMessageItem *pMsg);
+
+       void SetFontValues(void);
+
+private:
+
+       int __accountId;
+       int __mailboxId;
+       int __selectedViewMailId;
+       int __fontSize;
+       bool __isCcBccPanelExpanded;
+       bool __changeHeight;
+       bool __waitForNoti;
+       bool __waitForSendNoti;
+       bool __showStatus;
+       bool __keyPadOpen;
+       bool __isMailSelected;
+       bool __appControlLaunched;
+       bool __isMessageBoxShown;
+       email_mailbox_type_e __mailboxType;
+//     SplitViewDetailNS::ViewMode __viewMode;
+
+       Tizen::Base::String __plainTextPath;
+       Tizen::Base::String __prevSceneId;
+
+       // UI controls
+       Tizen::Ui::Controls::OptionMenu* __pMoreOptionMenu;
+       Tizen::Ui::Controls::EditArea* __pEmailTextArea;
+       Tizen::Ui::Controls::EditField* __pSubjectField;
+       Tizen::Ui::Controls::TableView* __pTableView;
+
+       AttachmentPanel* __pAttachmentPanel;
+       BasePresentationModel* __pLauncherPresentationModel;
+       EmailMessageItem* __pMsg;
+       ComposerPresentationModel* __pComposerPresentationModelInstance;
+       RecipientField* __pToFieldPanel;
+       RecipientField* __pCCFieldPanel;
+       RecipientField* __pBCCFieldPanel;
+       RecipientField* __pContactAppControlLauncher;
+
+       Tizen::Base::Collection::ArrayList* ExtractFilenamesN(const Tizen::Base::String* pStr);
+       void HideAllKeypads(void);
+};
+
+#endif  // _EM_COMPOSER_FORM_H_
diff --git a/inc/EmComposerPresentationModel.h b/inc/EmComposerPresentationModel.h
new file mode 100644 (file)
index 0000000..0f7ca94
--- /dev/null
@@ -0,0 +1,74 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmComposerPresentationModel.h
+ * @brief      This file has the definitions of the ComposerPresentationModel class
+ */
+
+#ifndef _EM_COMPOSER_PRESENTATION_MODEL_H_
+#define _EM_COMPOSER_PRESENTATION_MODEL_H_
+
+#include <FBase.h>
+#include <FMessaging.h>
+#include "EmBasePresentationModel.h"
+
+namespace ComposerNS
+{
+enum SendFailure
+{
+       E_SUBJECT,
+       E_BODY,
+       E_USERS,
+       E_ATTACHMENT
+};
+}
+
+class ComposerPresentationModel
+       : public BasePresentationModel
+       , public Tizen::Messaging::IEmailListener
+{
+
+public:
+
+       static ComposerPresentationModel* GetInstance(void);
+
+       /**
+        * Sends the email message.
+        */
+       result SendMessage(const Tizen::Base::String& subject, const Tizen::Base::String& body, Tizen::Base::Collection::ArrayList* pToList, Tizen::Base::Collection::ArrayList* pCcList, Tizen::Base::Collection::ArrayList* pBccList, Tizen::Base::Collection::ArrayList* pAttachmentsList, ComposerNS::SendFailure& sendResult);
+
+       virtual void OnEmailMessageSent(result r);
+
+private:
+
+       ComposerPresentationModel(void);
+       ComposerPresentationModel(const ComposerPresentationModel& pEmailPresentationModelInstance);
+       virtual ~ComposerPresentationModel(void);
+
+       result Construct();
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+       void CleanupInstance(void);
+       void operator=(const ComposerPresentationModel& pEmailPresentationModelInstance);
+
+       virtual void FetchData(int accountId, bool forceUpdate = false);
+
+       static ComposerPresentationModel* __pInstance;
+       Tizen::Messaging::EmailManager* __pEmailManager;
+};
+
+#endif // _EM_COMPOSER_PRESENTATION_MODEL_H_
diff --git a/inc/EmDeleteSubjectAddress.h b/inc/EmDeleteSubjectAddress.h
new file mode 100644 (file)
index 0000000..9b2dc6b
--- /dev/null
@@ -0,0 +1,151 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+* @file               EmDeleteSubjectAddress.h
+* @brief              DeleteSubjectAddress View provides the user to delete
+* addresses from which he/she doesn't want to receive mails.
+*
+*/
+
+#ifndef _EM_DELETE_SUBJECT_ADDRESS_H_
+#define _EM_DELETE_SUBJECT_ADDRESS_H_
+
+#include <FBase.h>
+#include <FUi.h>
+
+class DeleteSubjectAddressForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+    , public Tizen::Ui::Controls::IListViewItemEventListener
+    , public Tizen::Ui::Controls::IListViewItemProvider
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+
+{
+public:
+
+       /**
+       * Constructor
+       *
+       */
+       DeleteSubjectAddressForm(void);
+
+       /**
+       * Destructor.
+       *
+       */
+       virtual
+       ~DeleteSubjectAddressForm(void);
+
+       /**
+       *  Called when we need to initialize the Form.
+       *
+       */
+       bool Initialize(void);
+
+public:
+
+       /**
+       * called when the Form has been initialized.
+       *
+       */
+       virtual result OnInitializing(void);
+
+       /**
+       * called when the form is about to be terminated.
+       *
+       */
+       virtual result OnTerminating(void);
+
+       /**
+       * Called when an action is performed on an entity.
+       *
+       */
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       /**
+       * Called when Form Back is requested.
+       *
+       */
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       /**
+       * Called when Scene is Activated.
+       *
+       */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                      const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+       * Called when Scene is Deactivated.
+       *
+       */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                       const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       /**
+       * Called when Listview itemcontext state is changed.
+       *
+       */
+       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);
+
+       /**
+       * Called when Listview item state is changed.
+       *
+       */
+       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+
+       /**
+       * Called when Listview item is swept.
+       *
+       */
+       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView &listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+
+       /**
+       * Called when creating Listview item.
+       *
+       */
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+       /**
+       * Called when deleting Listview item.
+       *
+       */
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       /**
+       * Returns number of items to be created in the ListView
+       *
+       */
+       virtual int GetItemCount(void);
+
+       void SetFontValues(void);
+
+private:
+       int __numberOfSelectedItems;
+       int __sceneDifferentiator;
+       int __fontSize;
+       int __itemHeight;
+
+       Tizen::Ui::Controls::Footer* __pFooter;
+       Tizen::Base::Collection::ArrayList* __pBlockList;
+       Tizen::Ui::Controls::ListView* __pBlockListView;
+       Tizen::Ui::Controls::Label* __pSelectedLabel;
+
+};
+
+#endif /* _EM_DELETE_SUBJECT_ADDRESS_H_ */
diff --git a/inc/EmDetailForm.h b/inc/EmDetailForm.h
new file mode 100755 (executable)
index 0000000..434d2ed
--- /dev/null
@@ -0,0 +1,188 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmDetailForm.h
+ * @brief      This is the header for the implementation of Email detail view
+ */
+
+#ifndef _EM_DETAIL_FORM_H_
+#define _EM_DETAIL_FORM_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FIo.h>
+#include <FUi.h>
+#include <FWeb.h>
+
+#include "EmEmailApp.h"
+#include "EmInboxPresentationModel.h"
+#include "EmSentboxPresentationModel.h"
+#include "EmSpamboxPresentationModel.h"
+#include "EmRecipientField.h"
+#include "EmTrashPresentationModel.h"
+#include "EmUtils.h"
+
+class DetailForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::IFormMenuEventListener
+       , public Tizen::Ui::Controls::ITableViewItemProvider
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::IProgressPopupEventListener
+       , public Tizen::Ui::IPropagatedKeyEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+       , public Tizen::Web::Controls::ILoadingListener
+       , public IAttachmentPanelListener
+{
+
+public:
+
+       DetailForm(void);
+       virtual ~DetailForm(void);
+       bool Initialize(void);
+       void InitSubjectPanel(void);
+       void SetTextAndAdjustSubjectPanel(const Tizen::Base::String& subjectText);
+
+       virtual result OnInitializing(void);
+       virtual result OnTerminating(void);
+
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       virtual void OnFormMenuRequested(Tizen::Ui::Controls::Form& source);
+
+       virtual int GetItemCount(void);
+       virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int itemIndex, int itemWidth);
+       virtual bool DeleteItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual void UpdateItem(int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual int GetDefaultItemHeight(void);
+
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       virtual void OnProgressPopupCanceled(void);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       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);
+
+       virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+       void HidePopup(void);
+       void ShowPopUp(const Tizen::Base::String& popupTitle);
+
+       void ShowDownloadBodyPopup(void);
+       void HideDownloadBodyPopup(void);
+
+       virtual void OnShowAttachmentValueChanged(bool showStatus);
+
+       virtual bool OnHttpAuthenticationRequestedN(const Tizen::Base::String& host, const Tizen::Base::String& realm, const Tizen::Web::Controls::AuthenticationChallenge& authentication);
+       virtual void OnHttpAuthenticationCanceled(void);
+       virtual void OnLoadingStarted(void);
+       virtual void OnLoadingCanceled(void);
+       virtual void OnLoadingErrorOccurred(Tizen::Web::Controls::LoadingErrorType error, const Tizen::Base::String& reason);
+       virtual void OnLoadingCompleted(void);
+       virtual void OnEstimatedProgress(int progress);
+       virtual void OnPageTitleReceived(const Tizen::Base::String& title);
+       virtual bool OnLoadingRequested(const Tizen::Base::String& url, Tizen::Web::Controls::WebNavigationType type);
+       virtual Tizen::Web::Controls::DecisionPolicy OnWebDataReceived(const Tizen::Base::String& mime, const Tizen::Net::Http::HttpHeader& httpHeader);
+
+       virtual bool OnKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnPreviewKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnPreviewKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+
+private:
+
+       bool __waitForNoti;
+       bool __attachmentsShowState;
+       bool __showAttachmentPanel;
+       bool __showToCcField;
+       bool __forwardAfterDownload;
+       bool __userCancelledAttachmentDownload;
+       bool __isMessageBoxShown;
+       int __downloadAttachments;
+       int __starFlag;
+       int __arrowFlag;
+       int __indexValue;
+       int __mailId;
+       int __viewType;
+       int __groupCount;
+       int __accountId;
+       int __mailboxId;
+       int __downloadBodyHandle;
+       int __attachmentCount;
+       email_mailbox_type_e __mailboxType;
+
+       Tizen::Base::String __urlStr;
+       Tizen::Base::String __path;
+
+       Tizen::Graphics::Bitmap* __pExpandButtonOpenedIcon;
+       Tizen::Graphics::Bitmap* __pExpandButtonClosedIcon;
+       Tizen::Graphics::Bitmap* __pExpandButtonOpenedPressedIcon;
+       Tizen::Graphics::Bitmap* __pExpandButtonClosedPressedIcon;
+       Tizen::Graphics::Bitmap* __pAttachIcon;
+       Tizen::Graphics::Bitmap* __pPressedAttachIcon;
+       Tizen::Graphics::Bitmap* __pFavIcon;
+
+       Tizen::Graphics::Bitmap* __pBlockIcon;
+       Tizen::Graphics::Bitmap* __pMoveIcon;
+       Tizen::Graphics::Bitmap* __pMarkReadUnreadIcon;
+       Tizen::Graphics::Bitmap* __pForwardIcon;
+
+       //Tizen::Ui::Controls::Label* __pFavoriteLabel;
+       Tizen::Ui::Controls::Button* __pFavoriteButton;
+       Tizen::Ui::Controls::Button* __pToCcExpandButton;
+       Tizen::Ui::Controls::Button* __pAttachButton;
+
+       Tizen::Ui::Controls::ContextMenu* __pReplyContextMenu;
+       Tizen::Ui::Controls::OptionMenu* __pMoreOptionMenu;
+
+       Tizen::Ui::Controls::ProgressPopup* __pDownloadBodyPopup;
+       Tizen::Ui::Controls::ProgressPopup* __pDownloadAttachmentsPopup;
+       Tizen::Ui::Controls::TableView* __pTableView;
+       Tizen::Web::Controls::Web* __pWeb;
+
+       Tizen::Base::Collection::HashMap* __pAttachmentDownloadHandleMap;
+
+       AttachmentPanel* __pAttachmentPanel;
+       BasePresentationModel* __pPresentationModel;
+       EmailMessageItem* __pMail;
+       RecipientField* __pToFieldPanel;
+       RecipientField* __pCcFieldPanel;
+       Tizen::Ui::Controls::ProgressPopup* __pProgressPanel;
+       Tizen::Ui::Controls::Popup* __pDeleteConfirmationPopup;
+       Tizen::Ui::Controls::Popup* __pAttachmentDownloadFailedPopup;
+       Tizen::Ui::Controls::Popup* __pMoveOrDeleteFailedPopup;
+
+       result LoadIcons(void);
+       void PopulateMoreOptionMenu(void);
+       void PopulateReplyContextMenu(void);
+
+       bool IsAttachmentDownload(const EmailMessageItem* pDetailedMail);
+       void DownloadAllAttachments(const EmailMessageItem* pDetailedMail);
+
+       void InitDeleteConfirmationPopup(void);
+       void SetDeleteConfirmationPopupTitle(const Tizen::Base::String& title);
+
+       void InitAttachmentDownloadFailedPopup(void);
+
+       void InitMoveOrDeleteFailedPopup(void);
+       void SetMoveOrDeleteFailedPopupTitle(const Tizen::Base::String& title);
+};
+
+#endif  // _EM_DETAIL_FORM_H_
diff --git a/inc/EmDraftboxPresentationModel.h b/inc/EmDraftboxPresentationModel.h
new file mode 100644 (file)
index 0000000..d05d209
--- /dev/null
@@ -0,0 +1,53 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file                       EmDraftListPresntationModel.h
+ * @brief                      This is presentation model module for DraftList form. This manages and serves
+ *                  all view specific data requests
+ */
+
+#ifndef _EM_DRAFT_LIST_PRESENTATION_MODEL_H_
+#define _EM_DRAFT_LIST_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include "EmBasePresentationModel.h"
+
+class DraftListPresentationModel
+       : public BasePresentationModel
+{
+public:
+
+       static DraftListPresentationModel* GetInstance(void);
+
+       virtual void FetchData(int accountId, bool forceUpdate = false);
+
+private:
+
+       static DraftListPresentationModel* __pInstance;
+
+       DraftListPresentationModel(void);
+       virtual ~DraftListPresentationModel(void);
+       static void CreateInstance(void);
+       void CleanupInstance(void);
+       static void DestroyInstance(void);
+       result Construct(void);
+
+       DraftListPresentationModel& operator=(const DraftListPresentationModel& pDraftListPresentationModelInstance);
+};
+
+#endif // _EM_DRAFT_LIST_PRESENTATION_MODEL_H_
diff --git a/inc/EmEmailApp.h b/inc/EmEmailApp.h
new file mode 100644 (file)
index 0000000..6f2dcdd
--- /dev/null
@@ -0,0 +1,181 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmEmailApp.h
+ * @brief                      Keeps the implementations of EmailApp class
+ *
+ */
+
+#ifndef _EM_EMAIL_APP_H_
+#define _EM_EMAIL_APP_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FIo.h>
+#include <FLocales.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include "EmEmailSettingPresentationModel.h"
+#include "EmComposerForm.h"
+#include "EmNativeMailboxManager.h"
+#include "EmEmailSettingProvider.h"
+#include "EmDraftboxPresentationModel.h"
+
+enum OperationType
+{
+       EMAIL_OPERATION_NONE,
+       EMAIL_OPERATION_COMPOSE,
+       EMAIL_OPERATION_SETTINGS,
+       EMAIL_OPERATION_ADD_ACCOUNT,
+       EMAIL_OPERATION_ACCOUNT_CONFIG
+};
+
+enum DeletionMode
+{
+       EMAIL_SWIPE_DELETE,
+       EMAIL_SELECTED_DELETE,
+       EMAIL_DELETE_ALL,
+       EMAIL_FOOTER_DELETE
+};
+
+enum DownloadInitiatorMode
+{
+       EMAIL_DRAFT_DOWNLOAD,
+       EMAIL_SWIPE_FORWARD,
+       EMAIL_FOOTER_FORWARD
+};
+
+/**
+ * [EmailApp] UiApp must inherit from UiApp class
+ * which provides basic features necessary to define an UiApp.
+ */
+class EmailApp
+       : public Tizen::App::UiApp
+       , public Tizen::System::IScreenEventListener
+       , public Tizen::App::IAppControlProviderEventListener
+       , public Tizen::System::ISettingEventListener
+{
+public:
+
+       /**
+        * [Test] UiApp must have a factory method that creates an instance of itself.
+        */
+       static EmailApp* __application;
+       static Tizen::App::UiApp* CreateInstance(void);
+       static EmailApp* GetInstance(void);
+
+       EmailApp(void);
+       virtual ~EmailApp(void);
+
+       bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+       bool OnAppInitialized(void);
+
+       bool OnAppWillTerminate(void);
+
+       bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+       void OnForeground(void);
+
+       void OnBackground(void);
+
+       void OnLowMemory(void);
+
+       void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+       void OnScreenOn(void);
+
+       void OnScreenOff(void);
+
+       void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+       virtual void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId, const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pExtraData);
+
+       OperationType GetOperationType(void);
+
+       void SetAppControlResult(Tizen::App::AppCtrlResult appCtrlResult);
+
+       bool IsReturnResultSet(void);
+
+       virtual void OnSettingChanged(Tizen::Base::String& key);
+
+       void DisableFrame(void);
+
+       void EnableFrame(void);
+
+       bool GetShowDeletePopupStatus(int& mailId, DeletionMode& delMode);
+
+       void SetShowDeletePopupStatus(DeletionMode delMode, const int mailId);
+
+       void ClearShowDeletePopupStatus(void);
+
+       bool GetDownloadBodyPopupStatus(int& accountId, int& handle);
+
+       void SetDownloadBodyPopupStatus(int accountId, int handle);
+
+       void ClearDownloadBodyPopupStatus(void);
+
+       bool GetDownloadAttachmentPopupStatus(int& mailId, DownloadInitiatorMode& forwardMode);
+
+       void SetDownloadAttachmentPopupStatus(const int mailId, DownloadInitiatorMode forwardMode);
+
+       void ClearDownloadAttachmentPopupStatus(void);
+
+       void SetDownloadFailedPopupStatus(bool showMessageBox);
+
+       bool GetDownloadFailedPopupStatus(void);
+
+       void SetMoveOrDeleteFailedPopupStatus(bool isMoveFailed);
+
+       bool GetMoveOrDeleteFailedPopupStatus(bool& isMoveFailed);
+
+       void ClearMoveOrDeleteFailedPopupStatus(void);
+
+       long long GetAvailableMemory(void);
+
+       void RegisterScenes(void);
+
+private:
+
+       int __accountId;
+       int __downloadBodyHandle;
+       int __downloadBodyAccountId;
+       bool __returnAppControlResult;
+       bool __frameDisabled;
+       bool __showDeletePopup;
+       bool __showDownloadAttachmentPopup;
+       bool __showDownloadFailedPopup;
+       bool __isMoveFailed;
+       bool __showMoveOrDeleteFailedPopup;
+       bool __is24HourFormat;
+
+       int __mailId;
+       int __downloadMailId;
+
+       DeletionMode __delMode;
+       DownloadInitiatorMode __downloadMode;
+
+       RequestId __appControlRequestId;
+
+       OperationType __opId;
+
+       Tizen::App::AppCtrlResult __appControlResult;
+       Tizen::Base::Collection::ArrayList* __pArgs;
+       Tizen::Base::String __currentDisplayLanguage;
+};
+
+#endif // ifndef _EM_EMAIL_APP_H_
diff --git a/inc/EmEmailSettingForm.h b/inc/EmEmailSettingForm.h
new file mode 100644 (file)
index 0000000..5bdb3d5
--- /dev/null
@@ -0,0 +1,171 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+* @file                             EmailSettingMainForm.cpp
+* @brief                                   EmailSetting View provides the user with Email Settings in choosing
+* default account, options like showing recent mails
+* many other features.
+*
+*/
+
+#ifndef _EM_EMAIL_SETTINGS_FORM_H_
+#define _EM_EMAIL_SETTINGS_FORM_H_
+
+#include <FBase.h>
+#include <FIo.h>
+#include <FUi.h>
+
+/**
+* @class        EmailAccountDetails.
+* @brief       This class provides a structure for EmailAccountDetails.
+*
+* This class provides a structure for EmailAccountDetails.
+*
+*/
+//class EmailAccountDetails
+//     : public Tizen::Base::Object
+//{
+//public:
+//     Tizen::Base::String accountName;
+//     Tizen::Base::String accountAddress;
+//     Tizen::Graphics::Bitmap* pAccountBitmap;
+//     Tizen::Graphics::Bitmap* pSelectedColorBitmap;
+//     Tizen::Graphics::Bitmap* pChooseColorBitmap;
+//     Tizen::Base::Integer colorIndex;
+//};
+
+/**
+* @class        EmailSettingsForm.
+* @brief               This class derived from Form class creates EmailSettingsForm.
+*
+* The EmailSettingsForm provides view for Email Settings.
+*
+*/
+class EmailSettingsForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::ISectionTableViewItemProvider
+       , public Tizen::Ui::Controls::ISectionTableViewItemEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+       , public Tizen::Ui::IColorChangeEventListener
+{
+public:
+
+       /**
+        * Constructor
+        *
+        */
+       EmailSettingsForm(void);
+
+       /**
+        * Destructor
+        *
+        */
+       virtual
+       ~EmailSettingsForm(void);
+
+       /**
+        * Initializes the Form.
+        *
+        */
+       bool Initialize(void);
+
+public:
+
+       /**
+        * Called after Initializing the Form.
+        *
+        */
+       virtual result OnInitializing(void);
+
+       /**
+        * Called when the Form is about To terminate.
+        *
+        */
+       virtual result OnTerminating(void);
+
+       /**
+        * Called when the action is performed on UI control.
+        *
+        */
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       /**
+        * Called when the Form back is requested.
+        *
+        */
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       /**
+        * Called when the Form  is activated.
+        *
+        */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+        * Called when the Form  is Deactivated.
+        *
+        */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       virtual int GetSectionCount(void);
+       virtual int GetItemCount(int sectionIndex);
+       virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int sectionIndex, int itemIndex, int itemWidth);
+       virtual bool DeleteItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual void UpdateItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual Tizen::Base::String GetSectionHeader(int sectionIndex);
+       virtual bool HasSectionHeader(int sectionIndex);
+       virtual Tizen::Base::String GetSectionFooter(int sectionIndex);
+       virtual bool HasSectionFooter(int sectionIndex);
+       virtual int GetDefaultItemHeight(void);
+
+       virtual void OnSectionTableViewItemStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnSectionTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated);
+
+
+       virtual void OnColorChanged(const Tizen::Ui::Control& source, const Tizen::Graphics::Color& color);
+
+       void SetFontValues(void);
+private:
+
+       int __accountIndex;
+       int __fontSize;
+       int __itemHeight;
+
+       Tizen::Base::Collection::ArrayList* __pInputArguments;
+
+       Tizen::Base::Collection::ArrayList* __pAllAccountList;
+       Tizen::Base::Collection::ArrayList* __pAccountGroupList;
+
+       Tizen::Graphics::Bitmap* __pArrowBmpDown;
+       Tizen::Graphics::Bitmap* __pArrowBmpUp;
+
+       Tizen::Ui::Controls::Label* __pselectedColorLabel;
+       Tizen::Ui::Controls::SectionTableView* __pMainSectionTableView;
+       Tizen::Ui::Controls::ScrollPanel* __pColorPickerPanel;
+       Tizen::Ui::Controls::Panel* __pPanel;
+
+       Tizen::Ui::Controls::ColorPicker* __pColorPicker;
+       Tizen::Graphics::Color __color;
+};
+
+#endif  // _EM_EMAIL_SETTINGS_FORM_H_
diff --git a/inc/EmEmailSettingPresentationModel.h b/inc/EmEmailSettingPresentationModel.h
new file mode 100644 (file)
index 0000000..9f420e0
--- /dev/null
@@ -0,0 +1,92 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmEmailSettingPresentationModel.h
+ * @brief                      Keeps the implementations of EmailSettingsPresentationModel class
+ *
+ */
+
+#ifndef _EM_EMAIL_SETTING_PRESENTATION_MODEL_H_
+#define _EM_EMAIL_SETTING_PRESENTATION_MODEL_H_
+
+#include <FBase.h>
+#include <FIo.h>
+#include "EmEmailSettingProvider.h"
+
+class EmailAccountSettings
+       : public Tizen::Base::Object
+{
+public:
+       EmailAccountSettings(int accountId);
+       ~EmailAccountSettings(void);
+
+       bool IsAddSignature(void) const;
+       void SetAddSignature(bool addSignature);
+
+       bool IsBccMyself(void) const;
+       void SetBccMyself(bool bccMyself);
+
+       bool IsFwdWithFiles(void) const;
+       void SetFwdWithFiles(bool fwdWithFiles);
+
+       bool IsReplyWithBody(void) const;
+       void SetReplyWithBody(bool replyWithBody);
+
+       int GetAccountId(void) const;
+private:
+       int __accountId;
+       bool __replyWithBody;
+       bool __forwardWithFiles;
+       bool __bccMyself;
+       bool __addSignature;
+};
+
+class EmailSettingsPresentationModel
+       : public IEmailSettingManagerListener
+{
+public:
+       static EmailSettingsPresentationModel* GetInstance(void);
+
+       int GetShowEmails(void) const;
+       void SetShowEmails(const int& showEmails);
+
+       result SaveSettings(EmailAccount* pAcc);
+       result AddRule(EmailRule* pRule);
+       int GetRulesListCount(email_rule_type_t ruleType);
+       Tizen::Base::String GetRuleAt(int index, email_rule_type_t ruleType);
+       Tizen::Base::Collection::ArrayList* GetRulesList(email_rule_type_t ruleType);
+
+private:
+       EmailSettingsPresentationModel(void);
+       EmailSettingsPresentationModel(const EmailSettingsPresentationModel& pEmailSettingsPresentationModelInstance);
+       virtual ~EmailSettingsPresentationModel(void);
+       result Construct(void);
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+       void CleanupInstance(void);
+       void operator=(const EmailSettingsPresentationModel& pEmailSettingsPresentationModelInstance);
+
+private:
+       static EmailSettingsPresentationModel* __pInstance;
+       Tizen::Base::Collection::ArrayListT<EmailAccountSettings*>* __pEmailAccountSettingsList;
+       Tizen::Base::Collection::ArrayList* __pAddressRuleList;
+       Tizen::Base::Collection::ArrayList* __pSubjectRuleList;
+       Tizen::Base::String __defaultSendingAccount;
+       bool __threadedMsgEnabled;
+};
+
+#endif /* _EM_EMAIL_SETTING_PRESENTATION_MODEL_H_ */
diff --git a/inc/EmEmailSettingProvider.h b/inc/EmEmailSettingProvider.h
new file mode 100644 (file)
index 0000000..f6f0c28
--- /dev/null
@@ -0,0 +1,368 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+* @file            EmEmailSettingsProvider.h
+* @brief           Header for the settings Manager which fetches and keeps the account and the mailbox details
+*/
+
+#ifndef _EM_EMAIL_SETTINGS_PROVIDER_H_
+#define _EM_EMAIL_SETTINGS_PROVIDER_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include "email-service/email-api.h"
+#include "EmMailSyncThread.h"
+#include "EmTypes.h"
+#include "EmUtils.h"
+
+enum ServerType
+{
+       SERVER_AUTO,   // Automatically determine server settings based on domain name.
+       SERVER_MANUAL, // User user specified server settings.
+       SERVER_NONE,   // Unable to automatically determine server settings.
+
+       SERVER_GOOGLE,
+       SERVER_YAHOO,
+       SERVER_SAMSUNG,
+       SERVER_HOTMAIL,
+       SERVER_NAVER
+};
+
+class EmailRule
+       : public Tizen::Base::Object
+{
+public:
+
+       EmailRule(void);
+       virtual ~EmailRule(void);
+
+       int GetAccountId() const;
+       int GetFilterId() const;
+       int GetTargetMailboxId() const;
+       int GetFlag1() const;
+       int GetFlag2() const;
+       const Tizen::Base::String& GetValue() const;
+       email_rule_type_t GetType() const;
+       email_rule_action_t GetFaction() const;
+
+       void SetAccountId(int accountId);
+       void SetFilterId(int filterId);
+       void SetTargetMailboxId(int targetMailboxId);
+       void SetFlag1(int flag1);
+       void SetFlag2(int flag2);
+       void SetValue(const Tizen::Base::String& value);
+       void SetType(email_rule_type_t type);
+       void SetFaction(email_rule_action_t faction);
+
+private:
+       int                  __accountId;          /**< Specifies the account ID.*/
+       int                  __filterId;           /**< Specifies the filtering ID.*/
+       int                  __targetMailboxId;   /**< Specifies the mail box if action type means move.*/
+       int                  __flag1;               /**< Specifies the activation.*/
+       int                  __flag2;
+       Tizen::Base::String  __value;               /**< Specifies the filtering value.*/
+       email_rule_type_t    __type;                /**< Specifies the filtering type.*/
+       email_rule_action_t  __faction;             /**< Specifies the action type for filtering.*/
+
+};
+class EmailOption
+       : public Tizen::Base::Object
+{
+public:
+
+       EmailOption(void);
+       virtual ~EmailOption(void);
+
+    int GetAddMynameCard(void) const;
+    int GetAddSignature(void) const;
+    int GetBlockAddress(void) const;
+    int GetBlockSubject(void) const;
+    int GetDownloadLimit(void) const;
+    int GetForwardWithFiles(void) const;
+    int GetKeepLocalCopy(void) const;
+    int GetReplyWithBody(void) const;
+    int GetReqDeliveryReceipt(void) const;
+    int GetReqReadReceipt(void) const;
+
+    Tizen::Base::String GetDisplayNameFrom(void) const;
+    Tizen::Base::String GetSignature(void) const;
+
+    email_mail_priority_t GetPriority(void) const;
+    email_add_my_address_option_type GetAddMyAddressToBcc(void) const;
+
+    void SetAddMynameCard(int addMynameCard);
+    void SetAddSignature(int addSignature);
+    void SetBlockAddress(int blockAddress);
+    void SetBlockSubject(int blockSubject);
+    void SetDownloadLimit(int downloadLimit);
+    void SetForwardWithFiles(int forwardWithFiles);
+    void SetKeepLocalCopy(int keepLocalCopy);
+    void SetReplyWithBody(int replyWithBody);
+    void SetReqDeliveryReceipt(int reqDeliveryReceipt);
+    void SetReqReadReceipt(int reqReadReceipt);
+
+    void SetDisplayNameFrom(Tizen::Base::String displayNameFrom);
+    void SetSignature(Tizen::Base::String signature);
+
+    void SetPriority(email_mail_priority_t priority);
+    void SetAddMyAddressToBcc(email_add_my_address_option_type addMyAddressToBcc);
+
+private:
+       int __keepLocalCopy;                                                            /**< Specifies the saving save a copy after sending.*/
+       int __reqDeliveryReceipt;                                                       /**< Specifies the request of delivery report. 0=off 1=on*/
+       int __reqReadReceipt;                               /**< Specifies the request of read receipt. 0=off 1=on*/
+       int __downloadLimit;                                    /**< Specifies the limit of size for downloading.*/
+       int __blockAddress;                                 /**< Specifies the blocking of address. 0=off 1=on*/
+       int __blockSubject;                                                                     /**< Specifies the blocking of subject. 0=off 1=on*/
+       int __replyWithBody;                                /**< Specifies the replying with body 0=off 1=on*/
+       int __forwardWithFiles;                             /**< Specifies the forwarding with files 0=off 1=on*/
+       int __addMynameCard;                                /**< Specifies the adding name card 0=off 1=on*/
+       int __addSignature;                                 /**< Specifies the adding signature 0=off 1=on*/
+
+       Tizen::Base::String __displayNameFrom;                /**< Specifies the display name of from.*/
+       Tizen::Base::String __signature;                      /**< Specifies the signature*/
+
+       email_mail_priority_t __priority;                   /**< Specifies the priority. 1=high 3=normal 5=low.*/
+       email_add_my_address_option_type __addMyAddressToBcc;/**< Specifies whether cc or bcc field should be always filled with my address. */
+
+};
+
+class EmailAccount
+       : public Tizen::Base::Object
+{
+public:
+       EmailAccount(void);
+       virtual ~EmailAccount(void);
+
+    const int& GetAccountId(void) const;
+    const int& GetAccountSvcId(void) const;
+       const int& GetAutoDownloadSize(void) const;
+       const int& GetCheckInterval(void) const;
+       const int& GetDefaultMailSlotSize(void) const;
+       const int& GetIncomingServerPortNum(void) const;
+       const int& GetIncomingServerRequiresApop(void) const;
+       const int& GetIncomingServerSecureConnection(void) const;
+       const int& GetKeepMailsAfterDownload(void) const;
+       const int& GetPopBeforeSmtp(void) const;
+       const int& GetOutgoingServerNeedAuthentication(void) const;
+       const int& GetOutgoingServerPortNum(void) const;
+       const int& GetOutgoingServerSecureConnection(void) const;
+       const int& GetOutgoingServerUseSameAuthenticator(void) const;
+       const int& GetSyncDisabled(void) const;
+       const int& GetSyncStatus(void) const;
+       const int& GetUserDataLength(void) const;
+
+       const Tizen::Base::String& GetAccountName(void) const;
+       const Tizen::Base::String& GetCertificatePath(void) const;
+       const Tizen::Base::String& GetIncomingServerAddr(void) const;
+       const Tizen::Base::String& GetIncomingServerPassword(void) const;
+       const Tizen::Base::String& GetIncomingServerUsername(void) const;
+       const Tizen::Base::String& GetLogoIconPath(void) const;
+       const Tizen::Base::String& GetOutgoingServerAddr(void) const;
+       const Tizen::Base::String& GetOutgoingServerPassword(void) const;
+       const Tizen::Base::String& GetUserDisplayName(void) const;
+       const Tizen::Base::String& GetUserEmailAddress(void) const;
+       const Tizen::Base::String& GetOutgoingServerUsername(void) const;
+       const Tizen::Base::String& GetReplyToAddress(void) const;
+       const Tizen::Base::String& GetReturnAddress(void) const;
+    const Tizen::Graphics::Color& GetColorCode(void) const;
+    const Tizen::Base::TimeSpan& GetLastSyncTime(void) const;
+    const email_digest_type& GetDigestType(void) const;
+       const email_account_server_t& GetIncomingServerType(void) const;
+    const email_cipher_type& GetCipherType(void) const;
+    ServerType GetServerType(void);
+
+    EmailOption* GetOptions(void);
+    const EmailOption* GetOptions(void) const;
+    const email_account_server_t& GetOutgoingServerType(void) const;
+    const email_imap4_retrieval_mode_t& GetRetrievalMode(void) const;
+    const email_smime_type& GetSmimeType(void) const;
+    void*& GetUserData(void);
+    void SetAccountId(const int& accountId);
+    void SetAccountName(const Tizen::Base::String& accountName);
+    void SetAccountSvcId(const int& accountSvcId);
+    void SetAutoDownloadSize(const int& autoDownloadSize);
+    void SetCertificatePath(const Tizen::Base::String& certificatePath);
+    void SetCheckInterval(const int& checkInterval);
+
+    void SetCipherType(const email_cipher_type& cipherType);
+    void SetColorCode(const Tizen::Graphics::Color& colorCode);
+    void SetDefaultMailSlotSize(const int& defaultMailSlotSize);
+    void SetDigestType(const email_digest_type& digestType);
+    void SetIncomingServerAddr(const Tizen::Base::String& incomingServerAddr);
+    void SetIncomingServerPassword(const Tizen::Base::String& incomingServerPassword);
+
+    void SetIncomingServerPortNum(const int& incomingServerPortNum);
+    void SetIncomingServerRequiresApop(const int& incomingServerRequiresApop);
+    void SetIncomingServerSecureConnection(const int& incomingServerSecureConnection);
+    void SetIncomingServerType(const email_account_server_t& incomingServerType);
+    void SetIncomingServerUsername(const Tizen::Base::String& incomingServerUsername);
+    void SetKeepMailsAfterDownload(const int& keepMailsAfterDownload);
+
+    void SetLastSyncTime(const Tizen::Base::TimeSpan& lastSyncTime);
+    void SetLogoIconPath(const Tizen::Base::String& logoIconPath);
+    void SetOutgoingServerAddr(const Tizen::Base::String& outgoingServerAddr);
+    void SetOutgoingServerNeedAuthentication(const int& outgoingServerNeedAuthentication);
+    void SetOutgoingServerPassword(const Tizen::Base::String& outgoingServerPassword);
+
+    void SetOutgoingServerPortNum(const int& outgoingServerPortNum);
+    void SetOutgoingServerSecureConnection(const int& outgoingServerSecureConnection);
+    void SetOutgoingServerType(const email_account_server_t& outgoingServerType);
+    void SetOutgoingServerUseSameAuthenticator(const int& outgoingServerUseSameAuthenticator);
+    void SetOutgoingServerUsername(const Tizen::Base::String& outgoingServerUsername);
+    void SetPopBeforeSmtp(const int& popBeforeSmtp);
+
+    void SetReplyToAddress(const Tizen::Base::String& replyToAddress);
+    void SetRetrievalMode(const email_imap4_retrieval_mode_t& retrievalMode);
+    void SetReturnAddress(const Tizen::Base::String& returnAddress);
+    void SetSmimeType(const email_smime_type& smimeType);
+    void SetSyncDisabled(const int& syncDisabled);
+    void SetSyncStatus(const int& syncStatus);
+
+    void SetUserDataLength(const int& userDataLength);
+    void SetUserDisplayName(const Tizen::Base::String& userDisplayName);
+    void SetUserEmailAddress(const Tizen::Base::String& userEmailAddress);
+    void SetServerType(enum ServerType serverType);
+
+private:
+
+    int __accountId;                                    /**< Specifies the ID of account.*/
+    int __accountSvcId;                                 /**< AccountSvc priv data: Specifies id from account-svc */
+    int __syncStatus;                                   /**< Sync Status. SYNC_STATUS_FINISHED, SYNC_STATUS_SYNCING, SYNC_STATUS_HAVE_NEW_MAILS */
+    int __syncDisabled;                                 /**< If this attriube is set as true, email-service will not synchronize this account. */
+    int __defaultMailSlotSize;
+    int __userDataLength;                               /**< user data length */
+    int __incomingServerPortNum;                        /**< Specifies the port number of receiving server.*/
+    int __incomingServerSecureConnection;               /**< Does incoming server requires secured connection? */
+    int __keepMailsAfterDownload;                       /**< Keep mails on POP server after download */
+    int __checkInterval;                                /**< Specifies the interval for checking new mail periodically */
+    int __autoDownloadSize;                             /**< Specifies the size for auto download in bytes. -1 means entire mails body */
+    int __outgoingServerPortNum;                        /**< Outgoing server port number */
+    int __outgoingServerSecureConnection;               /**< Does outgoing server requires secured connection? */
+    int __outgoingServerNeedAuthentication;             /**< Does outgoing server requires authentication? */
+    int __outgoingServerUseSameAuthenticator;           /**< Use same authenticator for outgoing server */
+    int __popBeforeSmtp;                                /**< POP before SMTP Authentication */
+    int __incomingServerRequiresApop;                   /**< APOP authentication */
+
+    Tizen::Base::String __accountName;                    /**< Specifies the account name.*/
+       Tizen::Base::String __logoIconPath;                   /**< account logo icon (used by account svc and email app) */
+    Tizen::Base::String __userDisplayName;                /**< User's display */
+    Tizen::Base::String __userEmailAddress;               /**< User's email address */
+    Tizen::Base::String __replyToAddress;                 /**< Email address for reply */
+    Tizen::Base::String __returnAddress;                  /**< Email address for error from server*/
+    Tizen::Base::String __certificatePath;                /**< Specifies the certificate path of private*/
+    Tizen::Base::String __incomingServerAddr;             /**< Specifies the address of receiving server.*/
+    Tizen::Base::String __incomingServerUsername;         /**< Incoming server user name */
+    Tizen::Base::String __incomingServerPassword;         /**< Incoming server password */
+    Tizen::Base::String __outgoingServerAddr;             /**< Outgoing server address */
+       Tizen::Base::String __outgoingServerUsername;         /**< Outgoing server user name */
+       Tizen::Base::String __outgoingServerPassword;         /**< Outgoing server password */
+
+
+    Tizen::Graphics::Color __colorCode;                   /**< Account's specific color code*/
+    Tizen::Base::TimeSpan __lastSyncTime;
+
+    void *__userData;                                   /**< binary user data */
+    EmailOption __options;
+    email_smime_type __smimeType;                       /**< Specifies the smime type 0=Normal 1=Clear signed 2=encrypted 3=Signed + encrypted */
+    email_cipher_type __cipherType;                     /**< Specifies the encryption algorithm*/
+       email_digest_type __digestType;                     /**< Specifies the digest algorithm*/
+       email_account_server_t __incomingServerType;        /**< Specifies the receiving server type.*/
+       email_account_server_t __outgoingServerType;        /**< Outgoing server type */
+       email_imap4_retrieval_mode_t __retrievalMode;       /**< Retrieval mode : EMAIL_IMAP4_RETRIEVAL_MODE_NEW or EMAIL_IMAP4_RETRIEVAL_MODE_ALL */
+
+       ServerType __serverType;
+};
+
+class IEmailSettingManagerListener
+{
+public:
+       virtual
+       ~IEmailSettingManagerListener()
+       {
+       }
+
+       virtual void OnDefaultAccountChanged(int newDefaultAccount) {}
+};
+
+class EmailSettingsProvider
+       : public Tizen::Base::Object
+{
+public:
+       virtual ~EmailSettingsProvider(void);
+
+       static EmailSettingsProvider* GetInstance(void);
+
+       result AddAccount(email_account_t* account, int& accountId);
+       result AddRule(const EmailRule* pRule);
+       result AddRule(email_rule_t* rule);
+       result AddAccount(EmailAccount* pAcc, int& accountId, int& accountSvcId);
+       result CancelJob(int accountId, int& handle, email_cancelation_type type=EMAIL_CANCELED_BY_USER);
+       result ConvertToNativeRule(const EmailRule* pSrc, email_rule_t* pDest);
+       result ConvertToOspRule(email_rule_t* pSrc, EmailRule* pDest);
+       result DeleteAccount(int accountId);
+       result DeleteRule(const EmailRule* pRule);
+       result DeleteRule(email_rule_t* rule);
+       result GetRuleList(void);
+       result InitializeAccounts(void);
+       result InitializeNewAccount(int accountId);
+       result SetDefaultAccountId(const int& accId);
+       result UpdateAccount(EmailAccount* pAcc);
+       result ValidateAccount(EmailAccount* pAcc, int& handle);
+
+       Tizen::Base::Collection::ArrayList* GetRulesList(email_rule_type_t ruleType);
+       Tizen::Base::Collection::IMapEnumerator* GetAccountListN(void);
+
+       EmailAccount* GetAccountById(const int& id);
+
+       bool IsAccountExists(const Tizen::Base::String& accountEmailId);
+       int GetAccountCount(void);
+       int GetDefaultAccountId(void);
+       void InitializeAccountData(EmailAccount* account, ServerType serverType);
+       void InitializeManualSetUpData(EmailAccount* account, Tizen::Base::Collection::ArrayList* pArgs);
+       void UpdateLastSyncTime(int accId, const Tizen::Base::TimeSpan& timeSpan);
+
+       void
+       SetEmailSettingManagerListener(IEmailSettingManagerListener* pListener)
+       {
+               __pEmailSettingsEventListener = pListener;
+       }
+
+private:
+       static EmailSettingsProvider* __pInstance;
+
+       Tizen::Base::Collection::HashMap* __pAccountsCollection;
+       Tizen::Base::Collection::ArrayList* __pAddressRuleList;
+       Tizen::Base::Collection::ArrayList* __pSubjectRuleList;
+
+       IEmailSettingManagerListener* __pEmailSettingsEventListener;
+
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+
+       EmailSettingsProvider(void);
+
+       result CleanUpNativeObj(email_account_t* pObj);
+       result Construct(void);
+       result ConvertToNativeObjN(const EmailAccount* pSrc, email_account_t* pDest);
+       result ConvertToOspObj(email_account_t* pSrc, EmailAccount* pDest);
+
+       void CleanupInstance(void);
+       void operator=(const EmailSettingsProvider& pEmailSettingsProviderInstance);
+};
+
+#endif /* _EM_EMAIL_NATIVE_SETTINGS_MANAGER_H_ */
diff --git a/inc/EmFoldersForm.h b/inc/EmFoldersForm.h
new file mode 100644 (file)
index 0000000..ee8ae64
--- /dev/null
@@ -0,0 +1,90 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmFoldersForm.h
+ * @brief      Keeps the declaration for the classes needed to show all Folders
+ */
+
+#ifndef _EM_FOLDERS_FORM_H_
+#define _EM_FOLDERS_FORM_H_
+
+#include <FBase.h>
+#include <FUi.h>
+#include "email-service/email-api.h"
+#include "EmBasePresentationModel.h"
+
+class FoldersForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::IGroupedTableViewItemEventListener
+       , public Tizen::Ui::Controls::IGroupedTableViewItemProvider
+       , public Tizen::Ui::Scenes::ISceneEventListener
+       , public Tizen::Ui::IOrientationEventListener
+{
+public:
+       FoldersForm(void);
+       virtual ~FoldersForm(void);
+       bool Initialize(void);
+       result OnInitializing(void);
+       result OnTerminating(void);
+
+       virtual int GetGroupCount(void);
+       virtual int GetItemCount(int groupIndex);
+       virtual Tizen::Ui::Controls::TableViewGroupItem* CreateGroupItem(int groupIndex, int itemWidth);
+       virtual bool DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem);
+       virtual void UpdateGroupItem(int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem);
+       virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int groupIndex, int itemIndex, int itemWidth);
+       virtual bool DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual void UpdateItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual int GetDefaultGroupItemHeight(void);
+       virtual int GetDefaultItemHeight(void);
+
+       virtual void OnGroupedTableViewGroupItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, Tizen::Ui::Controls::TableViewGroupItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnGroupedTableViewItemStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnGroupedTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::GroupedTableView& tableView, int groupIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated);
+
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+       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);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+private:
+       bool __isExpanded;
+       int __accountId;
+       int __mailboxId;
+       int __fontSize;
+       int __itemHeight;
+       email_mailbox_type_e __mailboxType;
+       Tizen::Graphics::Bitmap* __pArrowBmpUp;
+       Tizen::Graphics::Bitmap* __pArrowBmpUpPressed;
+       Tizen::Graphics::Bitmap* __pArrowBmpDown;
+       Tizen::Graphics::Bitmap* __pArrowBmpDownPressed;
+       Tizen::Graphics::Bitmap* __pFolderIcon;
+
+       Tizen::Ui::Controls::GroupedTableView* __pFoldersListView;
+//     Tizen::Ui::Controls::TableViewGroupItem* __pGroupItem;
+       Tizen::Base::Collection::ArrayList* __pMailboxList;
+
+       BasePresentationModel* __pPresentationModel;
+
+       void AddAccountName(Tizen::Ui::Controls::TableViewGroupItem* pItem, const Tizen::Base::String& accountName, const int& unreadCount);
+       void AddAllAccountsText(Tizen::Ui::Controls::TableViewGroupItem* pItem);
+       void AddMailboxName(Tizen::Ui::Controls::TableViewItem* pItem, const Tizen::Base::String& mailboxName);
+};
+
+#endif // _EM_FOLDERS_FORM_H_
diff --git a/inc/EmFormFactory.h b/inc/EmFormFactory.h
new file mode 100644 (file)
index 0000000..fe7d91e
--- /dev/null
@@ -0,0 +1,37 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmFormFactory.h
+ * @brief      Keeps the declarations of EmailFormFactory class
+ */
+
+#ifndef _EM_FORM_FACTORY_H_
+#define _EM_FORM_FACTORY_H_
+
+#include <FUi.h>
+
+class EmailFormFactory
+       : public Tizen::Ui::Scenes::IFormFactory
+{
+public:
+       EmailFormFactory();
+       ~EmailFormFactory();
+
+       virtual Tizen::Ui::Controls::Form* CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId);
+};
+
+#endif /* _EM_FORM_FACTORY_H_ */
diff --git a/inc/EmIListDataChangeListener.h b/inc/EmIListDataChangeListener.h
new file mode 100644 (file)
index 0000000..5d10d18
--- /dev/null
@@ -0,0 +1,45 @@
+
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+/*
+ * @file                       EmIListDataChangeListener.h
+ * @brief                      Keeps the declarations of IListDataChangeListener class
+ *
+ */
+
+#ifndef _EM_ILIST_DATA_CHANGE_LISTENER_H_
+#define _EM_ILIST_DATA_CHANGE_LISTENER_H_
+
+class IListDataChangeListener
+{
+public:
+
+       /**
+        * Destructor
+        */
+       virtual
+       ~IListDataChangeListener(void)
+       {
+       }
+
+       /**
+        *      This method is called when there is a change in the value of viewtype
+        *      @param[in] viewType, gives the selected view type
+        */
+       virtual void OnListViewDataChangedNotify(void) = 0;
+};
+
+#endif /* _EM_ILIST_DATA_CHANGE_LISTENER_H_ */
diff --git a/inc/EmInboxPresentationModel.h b/inc/EmInboxPresentationModel.h
new file mode 100644 (file)
index 0000000..1febea0
--- /dev/null
@@ -0,0 +1,53 @@
+
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmInboxPresentationModel.h
+ * @brief      Keeps the declaration of InboxPresentationModel class
+ */
+
+#ifndef _EM_INBOX_PRESENTATION_MODEL_H_
+#define _EM_INBOX_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include "EmBasePresentationModel.h"
+
+class InboxPresentationModel
+       : public BasePresentationModel
+{
+public:
+       static InboxPresentationModel* GetInstance(void);
+
+       virtual void FetchData(int accountId, bool forceUpdate=false);
+
+private:
+       static InboxPresentationModel* __pInboxPresentationModelInstance;
+
+       InboxPresentationModel(void);
+       virtual ~InboxPresentationModel(void);
+
+       InboxPresentationModel(const InboxPresentationModel& pInboxPresentationModelInstance);
+       InboxPresentationModel& operator=(const InboxPresentationModel& pInboxPresentationModelInstance);
+
+       result Construct(void);
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+       void CleanupInstance(void);
+};
+
+#endif // _EM_INBOX_PRESENTATION_MODEL_H_
diff --git a/inc/EmMailListForm.h b/inc/EmMailListForm.h
new file mode 100644 (file)
index 0000000..3b999e8
--- /dev/null
@@ -0,0 +1,273 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmMailListForm.h
+ * @brief      Keeps the declaration of InboxForm class
+ */
+
+#ifndef _EM_MAIL_LIST_FORM_H_
+#define _EM_MAIL_LIST_FORM_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FLocales.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include "EmSortByListViewItemProvider.h"
+#include "EmMarkAllAsListViewItemProvider.h"
+#include "EmSetAllAsListViewItemProvider.h"
+#include "EmSearchPresentationModel.h"
+#include "EmInboxPresentationModel.h"
+#include "EmBaseListViewItemProvider.h"
+#include "EmDraftboxPresentationModel.h"
+#include "EmSentboxPresentationModel.h"
+#include "EmAllMailsPresentationModel.h"
+#include "EmOutboxPresentationModel.h"
+#include "EmSpamboxPresentationModel.h"
+#include "EmTrashPresentationModel.h"
+#include "EmTypes.h"
+#include "EmUtils.h"
+
+enum Mode
+{
+       EDIT_MODE,
+       NORMAL_MODE
+};
+
+class MailListForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::IFormMenuEventListener
+       , public Tizen::Ui::Controls::IGroupedListViewItemEventListener
+       , public Tizen::Ui::Controls::IListViewItemEventListener
+       , public Tizen::Ui::Controls::IListViewItemProvider
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::IProgressPopupEventListener
+       , public Tizen::Ui::IPropagatedKeyEventListener
+       , public Tizen::Ui::ITouchEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public IListViewStateChangeListener
+       , public IMarkAllAsListViewStateChangeListener
+       , public ISetAllAsListViewStateChangeListener
+{
+public:
+       /**
+       * Constructor
+       *
+       */
+       MailListForm(void);
+
+       /**
+       * Destructor
+       *
+       */
+       virtual ~MailListForm(void);
+
+       /**
+       * Initializes the form
+       *
+       */
+       result Initialize(void);
+
+       //Called when the form has been initialised.
+       result OnInitializing(void);
+
+       // Called when the form is to be terminated
+       result OnTerminating(void);
+
+       // Called when the current %Form control needs to be closed to revert back to the previous %Form control.
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       virtual void OnFormMenuRequested(Tizen::Ui::Controls::Form& source);
+
+       //  Called when an action event occurs
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       // Called when the state of an element of a GroupedListView item is changed.
+       virtual void OnGroupedListViewItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+
+       //Called when group list view item is swept.
+       virtual void OnGroupedListViewItemSwept(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, Tizen::Ui::Controls::SweepDirection direction);
+
+       // Called when the state of an element in the ListContextItem control is changed.
+       virtual void OnGroupedListViewContextItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+
+       // Called after setting scene as current scene.
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       // Called when the current scene is deactivated.
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       virtual void OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo & touchInfo);
+       virtual void OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+       virtual void OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+       virtual void OnTouchFocusIn(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+       virtual void OnTouchFocusOut(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo);
+
+       virtual int GetItemCount(void);
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       virtual void OnProgressPopupCanceled(void);
+
+       /**
+       *       This method is called to create popup with listview
+       *       @param[in] count        number of items of the listview in the popup
+       */
+       void InitSortByPopup(int count);
+
+       /**
+       *       This method is called to create mark all as popup with checkbuttons
+       */
+       void InitMarkAllAsPopup(void);
+
+       /**
+       *       This method is called to create set all as popup with checkbuttons
+       */
+       void InitSetAllAsPopup(void);
+
+       /**
+       *       This method is called  when the popup listView item state has changed
+       *       @param[in] viewType, gives the selected view type
+       */
+       virtual void OnSortTypeChanged(SortType viewByType);
+
+       /**
+        *      This method is called when there is a change in the value of mark all as option
+        *      @param[in] selectedOption, gives the selected option, 0 for read and 1 for unread
+        */
+       virtual void OnMarkAllAsOptionChanged(int selectedOption);
+
+       /**
+        *      This method is called when there is a change in the value of mark all as option
+        *      @param[in] selectedOption, gives the selected option, 0 for read and 1 for unread
+        */
+       virtual void OnSetAllAsOptionChanged(int selectedOption);
+
+       /**
+       *       This method is called  when the data is changed
+       *
+       */
+//     virtual void OnListViewDataChangedNotify(void);
+
+       // Called when this form receives a user event from another object.
+       virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs);
+
+       void ShowPopUp(const Tizen::Base::String& popupTitle);
+       void HidePopUp(void);
+
+       void GoToEditMode(void);
+       void GoToNormalMode(bool animationFlag);
+
+       void PopulateMoreOptionMenu(Mode mode, SelectionMode selectionMode, FavouriteSelectionMode favouriteSelectionMode);
+       void PopulateFolderContextMenu(void);
+       void UnCheckAllListviewItems(void);
+       void CheckSelectedListviewItems(void);
+       void PopulateHeader();
+
+       bool IsAttachmentDownload(const EmailMessageItem* pDetailedMail);
+       void DownloadAllAttachments(const EmailMessageItem* pDetailedMail, DownloadInitiatorMode downloadMode);
+
+       virtual bool OnKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnPreviewKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnPreviewKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+
+private:
+       int __accountId;
+       int __mailboxId;
+       int __groupCount;
+       int __downloadAttachments;
+       int __groupIndex;
+       int __itemIndex;
+       int __headerTouchPosition;
+       bool __waitForDelete;
+       bool __waitForMove;
+       EmailTypesNS::FutureAction __futureAction;
+       bool __userCancelledAttachmentDownload;
+
+       email_mailbox_type_e __mailboxType;
+       MailboxViewType __mailboxViewType;
+
+       Tizen::Base::Collection::ArrayList* __pFolderContextMenuItemsList;
+       Tizen::Base::Collection::HashMap* __pAttachmentDownloadHandleMap;
+
+       Tizen::Graphics::Bitmap* __pSortByIcon;
+       Tizen::Graphics::Bitmap* __pDeleteAllIcon;
+       Tizen::Graphics::Bitmap* __pAddAccountIcon;
+       Tizen::Graphics::Bitmap* __pSettingsIcon;
+       Tizen::Graphics::Bitmap* __pMarkReadUnreadIcon;
+       Tizen::Graphics::Bitmap* __pBlockIcon;
+       Tizen::Graphics::Bitmap* __pAllAccountsIcon;
+       Tizen::Graphics::Bitmap* __pHeaderAllAccountsIcon;
+       Tizen::Graphics::Bitmap* __pFavouriteIcon;
+
+       // UI controls
+       Tizen::Ui::Controls::Button* __pSortByPopupCloseButton;
+       Tizen::Ui::Controls::Button* __pMarkAllAsPopupCloseButton;
+       Tizen::Ui::Controls::Button* __pSetAllAsPopupCancelButton;
+       Tizen::Ui::Controls::OptionMenu* __pMoreOptionMenu;
+       Tizen::Ui::Controls::ContextMenu* __pFolderContextMenu;
+       Tizen::Ui::Controls::ContextMenu* __pAccountsContextMenu;
+       Tizen::Ui::Controls::GroupedListView* __pMailGroupedListView;
+       Tizen::Ui::Controls::Label* __pSelectedLabel;
+       Tizen::Ui::Controls::ListView* __pSortByListView;
+       Tizen::Ui::Controls::ListView* __pMarkAllAsListView;
+       Tizen::Ui::Controls::ListView* __pSetAllAsListView;
+       Tizen::Ui::Controls::ListView* __pAccountsListView;
+       Tizen::Ui::Controls::Panel* __pAccountsListPanel;
+       Tizen::Ui::Controls::Popup* __pSortByPopup;
+       Tizen::Ui::Controls::Popup* __pMarkAllAsPopup;
+       Tizen::Ui::Controls::Popup* __pSetAllAsPopup;
+       Tizen::Ui::Controls::Popup* __pDeleteConfirmationPopup;
+       Tizen::Ui::Controls::Popup* __pAttachmentDownloadFailedPopup;
+       Tizen::Ui::Controls::Popup* __pMoveOrDeleteFailedPopup;
+       Tizen::Ui::Controls::ProgressPopup* __pProgressPopup;
+       Tizen::Ui::Controls::ProgressPopup* __pDownloadAttachmentsPopup;
+       Tizen::Ui::OrientationStatus __prevOrientation;
+       SortByListViewItemProvider* __pSortByListViewItemProvider;
+       MarkAllAsListViewItemProvider* __pMarkAllAsListViewItemProvider;
+       SetAllAsListViewItemProvider* __pSetAllAsListViewItemProvider;
+       EmailBaseListViewItemProvider* __pBaseListViewItemProvider;
+       BasePresentationModel* __pPresentationModel;
+       Mode __mode;
+       SortType __viewByType;
+
+       result LoadIcons(void);
+       result CreateSortByPopup(void);
+       result CreateMarkAllAsPopup(void);
+       result CreateSetAllAsPopup(void);
+       void InitMoreOptionMenu(void);
+       void InitFolderContextMenu(void);
+       void InitAccountsContextMenu(void);
+       void InitDeleteConfirmationPopup(void);
+       void InitAttachmentDownloadFailedPopup(void);
+       void InitMoveOrDeleteFailedPopup(void);
+       void SetDeleteConfirmationPopupTitle(const Tizen::Base::String& title);
+       void SetMoveOrDeleteFailedPopupTitle(const Tizen::Base::String& title);
+
+       BasePresentationModel* GetPresentationModelForMailboxType(int mailboxId);
+};
+
+#endif // _EM_MAIL_LIST_FORM_H_
diff --git a/inc/EmMailSyncThread.h b/inc/EmMailSyncThread.h
new file mode 100644 (file)
index 0000000..417f724
--- /dev/null
@@ -0,0 +1,50 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmMailSyncThread.h
+ * @brief                      Keeps the declaration of MailSyncThread class
+ */
+
+#ifndef _EM_MAIL_SYNC_THREAD_H_
+#define _EM_MAIL_SYNC_THREAD_H_
+
+#include <dbus/dbus.h>
+#include <FBase.h>
+
+class MailNotificationThread
+       : public Tizen::Base::Runtime::EventDrivenThread
+{
+public:
+       static MailNotificationThread* GetInstance(void);
+       static DBusHandlerResult SignalHandler(DBusConnection *connection, DBusMessage *message, void *user_data);
+
+private:
+       MailNotificationThread(void);
+       virtual ~MailNotificationThread(void);
+
+       MailNotificationThread(const MailNotificationThread& pMailNotificationThreadInstance);
+       MailNotificationThread& operator=(const MailNotificationThread& pMailNotificationThreadInstance);
+
+       result Construct(void);
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+
+       static MailNotificationThread* __pInstance;
+       DBusConnection* __pConn;
+};
+
+#endif /* _EM_MAIL_SYNC_THREAD_H_ */
diff --git a/inc/EmMainFrame.h b/inc/EmMainFrame.h
new file mode 100644 (file)
index 0000000..8c4f2b7
--- /dev/null
@@ -0,0 +1,42 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmMainFrame.h
+ * @brief                      Keeps the implementations of EmEmailFrame class
+ *
+ */
+
+#ifndef _EM_EMAIL_FRAME_H_
+#define _EM_EMAIL_FRAME_H_
+
+#include <FBase.h>
+#include <FUi.h>
+
+class EmailFrame
+       : public Tizen::Ui::Controls::Frame
+{
+public:
+       EmailFrame(void);
+       virtual
+       ~EmailFrame(void);
+
+public:
+       virtual result OnInitializing(void);
+       virtual result OnTerminating(void);
+};
+
+#endif  // _EM_EMAIL_FRAME_H_
diff --git a/inc/EmManualSetUpForm.h b/inc/EmManualSetUpForm.h
new file mode 100755 (executable)
index 0000000..35d83df
--- /dev/null
@@ -0,0 +1,142 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmManualSetUpForm.h
+ * @brief      EmManualSetupForm lets the user to give advanced settings while adding new account.
+ */
+
+#ifndef _EM_MANUAL_SETUP_FORM_H_
+#define _EM_MANUAL_SETUP_FORM_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FIo.h>
+#include <FUi.h>
+#include "email-service/email-types.h"
+#include "EmEmailSettingProvider.h"
+
+enum ManualSetupMode
+{
+       ACCOUNT_ADD_MODE,
+       ACCOUNT_CONFIG_MODE
+};
+
+enum SecureConnectionType
+{
+       SECURE_CONNECTION_OFF = 0,
+       SECURE_CONNECTION_SSL,
+       SECURE_CONNECTION_TLS
+};
+
+class ManualSetUpForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::IKeypadEventListener
+       , public Tizen::Ui::IProgressPopupEventListener
+       , public Tizen::Ui::IPropagatedKeyEventListener
+       , public Tizen::Ui::ITextEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+       , public Tizen::Ui::Controls::ISectionTableViewItemProvider
+       , public Tizen::Ui::Controls::ISectionTableViewItemEventListener
+{
+public:
+       ManualSetUpForm(void);
+       virtual ~ManualSetUpForm(void);
+
+       bool Initialize(void);
+
+       virtual result OnInitializing(void);
+       virtual result OnTerminating(void);
+
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       virtual void OnKeypadWillOpen(Tizen::Ui::Control& source);
+       virtual void OnKeypadOpened(Tizen::Ui::Control& source);
+       virtual void OnKeypadClosed(Tizen::Ui::Control& source);
+       virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
+
+       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);
+
+       virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
+       virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
+
+       virtual void OnProgressPopupCanceled(void);
+
+       virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs);
+
+       void ShowPopup(void);
+       void HidePopup(void);
+
+       virtual int GetSectionCount(void);
+       virtual int GetItemCount(int sectionIndex);
+       virtual Tizen::Ui::Controls::TableViewItem* CreateItem(int sectionIndex, int itemIndex, int itemWidth);
+       virtual bool DeleteItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual void UpdateItem(int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem);
+       virtual Tizen::Base::String GetSectionHeader(int sectionIndex);
+       virtual bool HasSectionHeader(int sectionIndex);
+       virtual Tizen::Base::String GetSectionFooter(int sectionIndex);
+       virtual bool HasSectionFooter(int sectionIndex);
+       virtual int GetDefaultItemHeight(void);
+
+       virtual void OnSectionTableViewItemStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewItem* pItem, Tizen::Ui::Controls::TableViewItemStatus status);
+       virtual void OnSectionTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::SectionTableView& tableView, int sectionIndex, int itemIndex, Tizen::Ui::Controls::TableViewContextItem* pContextItem, bool activated);
+
+       virtual bool OnKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnPreviewKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+       virtual bool OnPreviewKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+
+private:
+       int __addAccountId;
+       int __addAccountSvcId;
+       int __validationHandle;
+       int __incomingServerSecureConnection;
+       int __outgoingServerSecureConnection;
+       bool __waitForNoti;
+       bool __waitForValidateNoti;
+       bool __waitForMailboxSyncNoti;
+       bool __isKeyPadOpen;
+       ManualSetupMode __mode;
+       email_account_server_t __incomingServerType;
+
+       Tizen::Base::Collection::ArrayList* __pIncomingServerList;
+       Tizen::Base::Collection::ArrayList* __pOutgoingServerList;
+
+       Tizen::Ui::Controls::EditField* __pAccountNameField;
+       Tizen::Ui::Controls::EditField* __pUserNameField;
+       Tizen::Ui::Controls::EditField* __pPasswordField;
+       Tizen::Ui::Controls::EditField* __pIncomingServerIpField;
+       Tizen::Ui::Controls::EditField* __pIncomingServerPortField;
+       Tizen::Ui::Controls::EditField* __pOutgoingServerIpField;
+       Tizen::Ui::Controls::EditField* __pOutgoingServerPortField;
+
+       Tizen::Ui::Controls::ProgressPopup* __pProgressPopup;
+
+       Tizen::Ui::Controls::SectionTableView* __pMainSectionTableView;
+
+       Tizen::Graphics::Bitmap* __pArrowBmpDown;
+       Tizen::Graphics::Bitmap* __pArrowBmpUp;
+
+       EmailAccount* __pAccount;
+
+       bool IsFieldsEmpty(void);
+};
+
+#endif // _EM_MANUAL_SETUP_FORM_H_
diff --git a/inc/EmMarkAllAsListViewItemProvider.h b/inc/EmMarkAllAsListViewItemProvider.h
new file mode 100644 (file)
index 0000000..9bfcfc4
--- /dev/null
@@ -0,0 +1,182 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmMarkAllAsListViewItemProvider.h
+ * @brief      This is the declaration of MarkAllAsListViewForPopup class.
+ *                     This also contains interface which provides methods to handle change in the mark all as option.
+ */
+
+#ifndef _EM_MARK_ALL_AS_LISTVIEW_ITEM_PROVIDER_H_
+#define _EM_MARK_ALL_AS_LISTVIEW_ITEM_PROVIDER_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+
+/**
+ * @Class IMarkAllAsListViewStateChangeListener
+ * @brief Interface which notifies when there is a change in the mark all as option.
+ */
+class IMarkAllAsListViewStateChangeListener
+{
+public:
+
+       /**
+        * Destructor
+        */
+       virtual
+       ~IMarkAllAsListViewStateChangeListener(void)
+       {
+       }
+
+       /**
+        *      This method is called when there is a change in the value of mark all as option
+        *      @param[in] selectedOption, gives the selected option, 0 for read and 1 for unread
+        */
+       virtual void OnMarkAllAsOptionChanged(int selectedOption) = 0;
+};
+
+/* @Class      CustomListViewForPopup
+ * @brief: This class is a ListView Item Provider and Event Listener for the second ListView Control
+ * that appears in the Popup view.
+ */
+class MarkAllAsListViewItemProvider
+       : public Tizen::Ui::Controls::IListViewItemProvider
+       , public Tizen::Ui::Controls::IListViewItemEventListener
+{
+public:
+
+       /**
+       * Constructor
+       */
+       MarkAllAsListViewItemProvider(void);
+
+       /**
+       * Destructor
+       */
+       ~MarkAllAsListViewItemProvider(void)
+       {
+               // Do Nothing.
+       }
+
+       // Callback Functions for IListViewItemProvider
+
+       /**
+        * Called when the ListView is about to be drawn and returns the number of total items.
+        *
+        * @since       2.0
+        *
+        * @return  The count of all items of the list
+        * @remarks  This method must be implemented so that it returns the number of total items in the list.
+        *
+        */
+       virtual int GetItemCount(void);
+
+       /**
+        * Called when items need to be loaded.
+        *
+        * @since       2.0
+        *
+        * @return  An item of the ListView
+        * @param[in] index        The index of the item
+        * @param[in] itemWidth    The width of the item
+        * @remarks  The applications that use ListView must implement this method. @n
+        *                              This method is expected to return an item which is allocated in a heap memory. @n
+        *                              The returned item can be a SimpleItem or CustomItem. @n
+        *                              Note that when the item becomes unnecessary, the ListView calls IListViewItemProvider::DeleteItem() and the application is in charge of
+        *                              deallocating the item.
+        * @see     DeleteItem()
+        */
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+       /**
+        * Called when an item becomes no longer used by the %ListView.
+        *
+        * @since       2.0
+        *
+        * @return  @c true, if the item is deallocated by this method, @n
+        *          else @c false
+        * @param[in] index        The index of the item
+        * @param[in] pItem        The pointer to the item to be deleted
+        * @param[in] itemWidth    The width of the item
+        * @remarks  Applications which use ListView must implement this method. @n
+       *                       In this method, the applications have the chance of deallocating the item. @n
+       *                       If the application deallocates the item, this method returns @c true, notifying the %ListView not to free the item. @n
+       *                       Otherwise, the item will be deallocated by %ListView.
+        * @see     CreateItem()
+        */
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       // Callback Functions for IListViewItemEventListener
+
+       /**
+        * Called when the state of an element in the ListViewItem in the ListView or GroupedListView is changed.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView      The source of the event
+        * @param[in] index         The index of the list
+        * @param[in] elementId     The element ID
+        * @param[in] status        The status of the element
+        *
+        * @remarks  This method is called when an element of the ListViewItem in the ListView is checked, unchecked, or selected. @n
+        *              When the event comes from the annex or the whole item, @c elementId is always @c -1.
+        */
+       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+
+       /**
+        * Called when the ListItem is swept.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView      The source of the event
+        * @param[in] index         The index of the list
+        * @param[in] direction     The sweep direction
+        */
+       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+
+       /**
+        * Called when the state of an element in the %ListContextItem is changed.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView          The source of the event
+        * @param[in] index                     The index of the list
+        * @param[in] elementId         The element ID
+        * @param[in] status        The status of the element
+        */
+       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+
+       /**
+        * Notifies the Current Form OnListViewItemStateChanged
+        * @brief       A public function which notifies any member implementing the IListViewStateChangeListener interface on ListViewItemStateChanged
+        * so that the view type can be updated accordingly.
+        * @param[in] IListViewStateChangeListener      Pointer to a class inherited from the IListViewStateChangeListener interface.
+        * @return        result                                                E_SUCCESS if successfully created the control else Error Code.
+        */
+       virtual void SetEventListener(IMarkAllAsListViewStateChangeListener* pListener);
+
+       void SetFontValues(void);
+
+private:
+       int __fontSize;
+       int __itemHeight;
+       IMarkAllAsListViewStateChangeListener* __pMarkAllAsListViewStateChangeListener;
+};
+
+#endif /* _EM_MARK_ALL_AS_LISTVIEW_ITEM_PROVIDER_H_ */
diff --git a/inc/EmMoveMailForm.h b/inc/EmMoveMailForm.h
new file mode 100644 (file)
index 0000000..4ab35aa
--- /dev/null
@@ -0,0 +1,106 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file                       EmMoveMailForm.h
+ * @brief                      Keeps the declaration of EmailMoveMailForm class
+ */
+
+#ifndef _EM_MOVE_MAIL_FORM_H_
+#define _EM_MOVE_MAIL_FORM_H_
+
+#include <FBase.h>
+#include <FUi.h>
+
+class EmailMoveMailForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::IListViewItemEventListener
+       , public Tizen::Ui::Controls::IListViewItemProvider
+       , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+       /**
+        * Constructor
+        */
+       EmailMoveMailForm(void);
+
+       /**
+        * Destructor
+        */
+       virtual ~EmailMoveMailForm(void);
+
+       /**
+        * Called when we need to initialize the Form
+        */
+       bool Initialize(void);
+
+       // Called when the form has been initialised.
+       virtual result OnInitializing(void);
+
+       // Called when the form is to be terminated
+       virtual result OnTerminating(void);
+
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       // Called after setting scene as current scene.
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       // Called when the current scene is deactivated.
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       // Called when the state of an element in the ListViewItem in the ListView or GroupedListView is changed.
+       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+
+       // Called when the ListItem is swept.
+       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+
+       // Called when the state of an element in the %ListContextItem is changed.
+       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+
+       // Called when the ListView is about to be drawn and returns the number of total items.
+       virtual int GetItemCount(void);
+
+       // Called when items need to be loaded.
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+       // Called when an item becomes no longer used by the %ListView.
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       // Called when this form receives a user event from another object.
+       virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs);
+
+       void ShowPopUp(void);
+       void HidePopUp(void);
+
+       void SetFontValues(void);
+
+private:
+       int __accountId;
+       int __mailboxId;
+       int __fromMailboxType;
+       int __toMailboxType;
+       int __mailId;
+       int __fontSize;
+       int __itemHeight;
+
+       Tizen::Base::String __previousSceneId;
+       Tizen::Ui::Controls::ProgressPopup* __pProgressPopup;
+       Tizen::Ui::Controls::ListView* __pMoveListView;
+       BasePresentationModel* __pPresentationModelInstance;
+};
+
+#endif /* _EM_MOVE_MAIL_FORM_H_ */
diff --git a/inc/EmNativeMailboxManager.h b/inc/EmNativeMailboxManager.h
new file mode 100644 (file)
index 0000000..a96aea8
--- /dev/null
@@ -0,0 +1,753 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+* @file            EmNativeMailboxManager.h
+* @brief           Header for the Manager which Fetches data and presents it into the respective presentation models
+*/
+
+#ifndef _EM_NATIVE_MAILBOX_MANAGER_H_
+#define _EM_NATIVE_MAILBOX_MANAGER_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FIo.h>
+#include <FLocales.h>
+#include "email-service/email-api.h"
+#include "EmMailSyncThread.h"
+
+class BasePresentationModel;
+
+class EmailMailbox
+       : public Tizen::Base::Object
+{
+public:
+       EmailMailbox();
+       virtual ~EmailMailbox();
+
+       result Construct(void);
+
+    const int& GetAccountId() const;
+    void SetAccountId(int accountId);
+
+    const int& GetLocal() const;
+    void SetLocal(int local);
+
+    const int& GetMailSlotSize() const;
+    void SetMailSlotSize(int mailSlotSize);
+
+    const int& GetMailboxId() const;
+    void SetMailboxId(int mailboxId);
+
+    const int& GetNoSelect() const;
+    void SetNoSelect(int noSelect);
+
+    const int& GetTotalMailCountOnLocal() const;
+    void SetTotalMailCountOnLocal(int totalMailCountOnLocal);
+
+    const int& GetTotalMailCountOnServer() const;
+    void SetTotalMailCountOnServer(int totalMailCountOnServer);
+
+    const int& GetUnreadCount() const;
+    void SetUnreadCount(int unreadCount);
+
+    const Tizen::Base::String& GetMailboxName() const;
+    void SetMailboxName(Tizen::Base::String mailboxName);
+
+    const Tizen::Base::String& GetMailboxAlias() const;
+    void SetMailboxAlias(Tizen::Base::String mailboxAlias);
+
+       const email_mailbox_type_e& GetMailboxType() const;
+       void SetMailboxType(email_mailbox_type_e mailboxType);
+       void SetMailboxTypeDB(email_mailbox_type_e mailboxType);
+
+       const Tizen::Base::TimeSpan& GetLastSyncTime() const;
+       void SetLastSyncTime(const Tizen::Base::TimeSpan& lastSyncTime);
+
+       friend class EmailMailboxManager;
+
+private:
+       int __accountId;                                       /**< Specifies the account ID for mailbox.*/
+       int __mailboxId;                                       /**< Unique id on mailbox table.*/
+       int __unreadCount;                                     /**< Specifies the Unread Mail count in the mailbox.*/
+       int __totalMailCountOnLocal;                           /**< Specifies the total number of mails in the mailbox in the __local DB.*/
+       int __totalMailCountOnServer;                          /**< Specifies the total number of mails in the mailbox in the mail server.*/
+       int __local;                                           /**< Specifies the __local mailbox.*/
+       int __mailSlotSize;                                    /**< Specifies how many mails can be stored in __local mailbox.*/
+       int __noSelect;                                        /**< Specifies the 'no_select' attribute from xlist.*/
+
+       Tizen::Base::String __mailboxName;                       /**< Specifies the path of mailbox.*/
+       Tizen::Base::String __mailboxAlias;                      /**< Specifies the display name of mailbox.*/
+
+       Tizen::Base::TimeSpan __lastSyncTime;
+       Tizen::Base::Collection::ArrayList* __pMessages;           /**< A handle to the list of email __messages contained in the mailbox.*/
+       email_mailbox_type_e __mailboxType;                    /**< Specifies the type of mailbox */
+
+       Tizen::Base::Collection::ArrayList* GetMessages();
+};
+
+class EmailMessageListItem
+       : public Tizen::Base::Object
+{
+public:
+
+       EmailMessageListItem();
+       virtual ~EmailMessageListItem();
+
+    const int& GetAccountId() const;
+    const int& GetHasAttachment() const;
+    const int& GetHasDrmAttachment() const;
+    const int& GetMailId() const;
+    const int& GetMailboxId() const;
+    const int& GetMessageClass() const;
+    const int& GetPriority() const;
+    const int& GetSmimeType() const;
+    const int& GetThreadId() const;
+    const int& GetThreadItemCount() const;
+
+    const Tizen::Base::String& GetPreviewBodyText() const;
+    const Tizen::Base::String& GetRecipients() const;
+    const Tizen::Base::String& GetSubject() const;
+    const Tizen::Base::String& GetFrom() const;
+    const Tizen::Base::String& GetFromEmailAddress() const;
+
+    Tizen::Base::DateTime& GetDateTime();
+    const Tizen::Base::DateTime& GetLocalDateTime() const;
+
+    void SetAccountId(int accountId);
+    void SetFlagsAnsweredField(bool flagsAnsweredField);
+    void SetFlagsDeletedField(bool flagsDeletedField);
+    void SetFlagsDraftField(bool flagsDraftField);
+    void SetFlagsFlaggedField(bool flagsFlaggedField);
+    void SetFlagsForwardedField(bool flagsForwardedField);
+    void SetFlagsRecentField(bool flagsRecentField);
+    void SetFlagsSeenField(bool flagsSeenField);
+    void SetFullAddressFrom(Tizen::Base::String from);
+    void SetEmailAddressSender(Tizen::Base::String fromEmailAddress);
+    void SetAttachmentCount(int attachmentCount);
+    void SetDrmStatus(int drmStatus);
+    void SetLockStatus(bool lockStatus);
+    void SetIsMeetingRequest(email_mail_type_t meetingRequestStatus);
+    void SetReportStatus(email_mail_report_t isReportMail);
+    void SetIsTextDownloaded(bool isTextDownloaded);
+    void SetLocalDateTime(Tizen::Base::DateTime localDateTime);
+    void SetMailId(int mailId);
+    void SetMailboxId(int mailboxId);
+    void SetMessageClass(int messageClass);
+    void SetPreviewText(Tizen::Base::String previewText);
+    void SetPriority(int priority);
+    void SetEmailAddressRecipient(Tizen::Base::String recipients);
+    void SetSaveStatus(bool saveStatus);
+    void SetSmimeType(int smimeType);
+    void SetSubject(Tizen::Base::String subject);
+    void SetThreadId(int threadId);
+    void SetThreadItemCount(int threadItemCount);
+    bool isFlagsAnsweredField() const;
+    bool isFlagsDeletedField() const;
+    bool isFlagsDraftField() const;
+    bool isFlagsFlaggedField() const;
+    bool isFlagsForwardedField() const;
+    bool isFlagsRecentField() const;
+    bool isFlagsSeenField() const;
+    bool isIsLocked() const;
+    bool isIsMeetingRequest() const;
+    bool isIsReportMail() const;
+    bool isIsTextDownloaded() const;
+    bool isSaveStatus() const;
+
+private:
+       int __mailId;                                    /**< Specifies the Mail ID.*/
+       int __accountId;                                 /**< Specifies the Account ID.*/
+       int __mailboxId;                                 /**< Specifies the Mailbox ID.*/
+       int __priority;                                  /**< Specifies the priority of the mail.*/
+       int __attachmentCount;                           /**< the mail has attachments or not[ 0: none, 1: over one] */
+       int __drmStatus;                                 /**< the mail has drm attachment or not*/
+       int __threadId;                                  /**< Specifies the thread id for thread view. */
+       int __threadItemCount;                           /**< Specifies the item count of specific thread. */
+       int __messageClass;                              /**< Specifies the message class */
+       int __smimeType;                                 /**< Specifies the smime type */
+
+       Tizen::Base::String __fullAddressFrom;             /**< Specifies the From Addr display name.*/
+       Tizen::Base::String __emailAddressSender;          /**< Specifies the Sender's Addr.*/
+       Tizen::Base::String __emailAddressRecipients;      /**< Specifies the Recipients Addr.*/
+       Tizen::Base::String __subject;                     /**< Specifies the subject.*/
+       Tizen::Base::String __previewText;                 /**< Specifies the preview body. */
+
+       Tizen::Base::DateTime __dateTime;                  /**< Specifies the Date time.*/
+       Tizen::Base::DateTime __localDateTime;             /**< Specifies the Date time.*/
+
+       bool __bodyDownloadStatus;                       /**< Specifies the text downloaded or not.*/
+       bool __flagsSeenField;                           /**< Specifies the seen flags*/
+       bool __flagsDeletedField;                        /**< Specifies the deleted flags*/
+       bool __flagsFlaggedField;                        /**< Specifies the flagged flags*/
+       bool __flagsAnsweredField;                       /**< Specifies the answered flags*/
+       bool __flagsRecentField;                         /**< Specifies the recent flags*/
+       bool __flagsDraftField;                          /**< Specifies the draft flags*/
+       bool __flagsForwardedField;                      /**< Specifies the forwarded flags*/
+       bool __saveStatus;                               /**< Specifies the save status*/
+       bool __lockStatus;                               /**< Specifies the Locked*/
+       email_mail_report_t __reportStatus;              /**< Specifies the Mail Report.*/
+       email_mail_type_t __meetingRequestStatus;        /**< Whether the mail is a meeting request or not */
+};
+
+class EmailMessageItem
+       : public Tizen::Base::Object
+{
+public:
+    EmailMessageItem();
+    virtual ~EmailMessageItem();
+
+    const int& GetAccountId() const;
+    const int& GetAttachmentCount() const;
+    const int& GetBodyDownloadStatus() const;
+    const int& GetInlineContentCount() const;
+    const int& GetMailId() const;
+    const int& GetMailSize() const;
+    const int& GetMailboxId() const;
+    const email_mail_type_t& GetMeetingRequestStatus() const;
+    const email_mail_report_t& GetReportStatus() const;
+    const int& GetServerMailStatus() const;
+    const int& GetThreadId() const;
+    const int& GetThreadItemCount() const;
+
+    const Tizen::Base::String& GetBody() const;
+    const Tizen::Base::String& GetAliasRecipient() const;
+       const Tizen::Base::String& GetAliasSender() const;
+    const Tizen::Base::String& GetEmailAddressRecipient() const;
+    const Tizen::Base::String& GetEmailAddressSender() const;
+    const Tizen::Base::String& GetFilePathHtml() const;
+    const Tizen::Base::String& GetFilePathMimeEntity() const;
+    const Tizen::Base::String& GetFilePathPlain() const;
+    const Tizen::Base::String& GetFullAddressBcc() const;
+    const Tizen::Base::String& GetFullAddressCc() const;
+    const Tizen::Base::String& GetFullAddressFrom() const;
+    const Tizen::Base::String& GetFullAddressReply() const;
+    const Tizen::Base::String& GetFullAddressReturn() const;
+    const Tizen::Base::String& GetFullAddressTo() const;
+    const Tizen::Base::String& GetMessageId() const;
+    const Tizen::Base::String& GetPreviewText() const;
+    const Tizen::Base::String& GetServerMailboxName() const;
+    const Tizen::Base::String& GetSubject() const;
+    const Tizen::Base::String& GetServerMailId() const;
+
+    Tizen::Base::DateTime& GetDateTime();
+    Tizen::Base::DateTime& GetLocalDateTime();
+    const Tizen::Base::DateTime& GetDateTime() const;
+    const email_digest_type& GetDigestType() const;
+    const email_mailbox_type_e& GetMailboxType() const;
+       const int& GetMessageClass() const;
+    const email_smime_type& GetSmimeType() const;
+    const email_mail_priority_t& GetPriority() const;
+
+    void SetAccountId(int accountId);
+    void SetAliasRecipient(Tizen::Base::String aliasRecipient);
+    void SetAliasSender(Tizen::Base::String aliasSender);
+    void SetAttachmentCount(int attachmentCount);
+    void SetBody(Tizen::Base::String body);
+    void SetBodyDownloadStatus(int bodyDownloadStatus);
+    void SetDigestType(email_digest_type digestType);
+    void SetDrmStatus(bool drmStatus);
+    void SetEmailAddressRecipient(Tizen::Base::String emailAddressRecipient);
+    void SetEmailAddressSender(Tizen::Base::String emailAddressSender);
+    void SetFilePathHtml(Tizen::Base::String filePathHtml);
+    void SetFilePathMimeEntity(Tizen::Base::String filePathMimeEntity);
+    void SetFilePathPlain(Tizen::Base::String filePathPlain);
+    void SetFlagsAnsweredField(bool flagsAnsweredField);
+    void SetFlagsDeletedField(bool flagsDeletedField);
+    void SetFlagsDraftField(bool flagsDraftField);
+    void SetFlagsFlaggedField(bool flagsFlaggedField);
+    void SetFlagsForwardedField(bool flagsForwardedField);
+    void SetFlagsRecentField(bool flagsRecentField);
+    void SetFlagsSeenField(bool flagsSeenField);
+    void SetFullAddressBcc(Tizen::Base::String fullAddressBcc);
+    void SetFullAddressCc(Tizen::Base::String fullAddressCc);
+    void SetFullAddressFrom(Tizen::Base::String fullAddressFrom);
+    void SetFullAddressReply(Tizen::Base::String fullAddressReply);
+    void SetFullAddressReturn(Tizen::Base::String fullAddressReturn);
+    void SetFullAddressTo(Tizen::Base::String fullAddressTo);
+    void SetInlineContentCount(int inlineContentCount);
+    void SetLocalDateTime(Tizen::Base::DateTime dateTime);
+    void SetLockStatus(bool lockStatus);
+    void SetMailId(int mailId);
+    void SetMailSize(int mailSize);
+    void SetMailboxId(int mailboxId);
+    void SetMailboxType(email_mailbox_type_e mailboxType);
+    void SetMeetingRequestStatus(email_mail_type_t meetingRequestStatus);
+    void SetMessageClass(int messageClass);
+    void SetMessageId(Tizen::Base::String messageId);
+    void SetPreviewText(Tizen::Base::String previewText);
+    void SetPriority(email_mail_priority_t priority);
+    void SetReportStatus(email_mail_report_t reportStatus);
+    void SetSaveStatus(email_mail_status_t saveStatus);
+    void SetServerMailId(Tizen::Base::String serverMailId);
+    void SetServerMailStatus(int serverMailStatus);
+    void SetServerMailboxName(Tizen::Base::String serverMailboxName);
+    void SetSmimeType(email_smime_type smimeType);
+    void SetSubject(Tizen::Base::String subject);
+    void SetThreadId(int threadId);
+    void SetThreadItemCount(int threadItemCount);
+    void SetHasAttachment(void);
+    bool isDrmStatus() const;
+    bool isFlagsAnsweredField() const;
+    bool isFlagsDeletedField() const;
+    bool isFlagsDraftField() const;
+    bool isFlagsFlaggedField() const;
+    bool isFlagsForwardedField() const;
+    bool isFlagsRecentField() const;
+    bool isFlagsSeenField() const;
+    bool isLockStatus() const;
+    bool GetHasAttachment(void);
+    email_mail_status_t isSaveStatus() const;
+private:
+    int __mailId;                                 /**< Specifies the Mail ID.*/
+    int __accountId;                              /**< Specifies the Account ID.*/
+    int __mailboxId;                              /**< Specifies the Mailbox ID.*/
+    int __bodyDownloadStatus;                     /**< Specifies the Text donwloaded or not.*/
+    int __mailSize;                               /**< Specifies the Mail Size.*/
+    int __attachmentCount;                        /**< Specifies the attachment count. */
+    int __inlineContentCount;                     /**< Specifies the inline content count. */
+    int __threadId;                               /**< Specifies the thread id for thread view. */
+    int __threadItemCount;                        /**< Specifies the item count of specific thread. */
+    int __serverMailStatus;                       /**< Specifies the Whether sever mail or not.*/
+    int __messageClass;
+
+    Tizen::Base::String __subject;                  /**< Specifies the subject.*/
+    Tizen::Base::String __serverMailboxName;        /**< Specifies the server mailbox.*/
+    Tizen::Base::String __serverMailId;             /**< Specifies the Server Mail ID.*/
+    Tizen::Base::String __messageId;                /**< Specifies the message id */
+    Tizen::Base::String __fullAddressFrom;          /**< Specifies the From Addr.*/
+    Tizen::Base::String __fullAddressReply;         /**< Specifies the Reply to addr */
+    Tizen::Base::String __fullAddressTo;            /**< Specifies the To addr.*/
+    Tizen::Base::String __fullAddressCc;            /**< Specifies the CC addr.*/
+    Tizen::Base::String __fullAddressBcc;           /**< Specifies the BCC addr*/
+    Tizen::Base::String __fullAddressReturn;        /**< Specifies the return Path*/
+    Tizen::Base::String __emailAddressSender;       /**< Specifies the email address of sender.*/
+    Tizen::Base::String __emailAddressRecipient;    /**< Specifies the email address of recipients.*/
+    Tizen::Base::String __aliasSender;              /**< Specifies the alias of sender. */
+    Tizen::Base::String __aliasRecipient;           /**< Specifies the alias of recipients. */
+    Tizen::Base::String __body;
+    Tizen::Base::String __filePathPlain;            /**< Specifies the path of text mail body.*/
+    Tizen::Base::String __filePathHtml;             /**< Specifies the path of HTML mail body.*/
+    Tizen::Base::String __filePathMimeEntity;       /**< Specifies the path of mime entity. */
+    Tizen::Base::String __previewText;              /**< Specifies the preview body. */
+
+    bool __flagsSeenField;                        /**< Specifies the seen flags*/
+    bool __flagsDeletedField;                     /**< Specifies the deleted flags*/
+    bool __flagsFlaggedField;                     /**< Specifies the flagged flags*/
+    bool __flagsAnsweredField;                    /**< Specifies the answered flags*/
+    bool __flagsRecentField;                      /**< Specifies the recent flags*/
+    bool __flagsDraftField;                       /**< Specifies the draft flags*/
+    bool __flagsForwardedField;                   /**< Specifies the forwarded flags*/
+    bool __DRMStatus;                             /**< Has the mail DRM content? (1 : true, 0 : false) */
+    bool __lockStatus;                            /**< Specifies the Locked*/
+    bool __hasAttachment;                                                /**< Specifies whether the mail message has an attachment */
+
+    Tizen::Base::DateTime __dateTime;             /**< Specifies the Date time.*/
+    Tizen::Base::DateTime __localDateTime;        /**< Specifies the local Date time.*/
+    email_mail_priority_t __priority;             /**< Specifies the priority of the mail.*/
+    email_digest_type __digestType;               /**< Sepeifies the digest algorithm*/
+    email_smime_type __smimeType;                 /**< Specifies the smime type. */
+    email_mailbox_type_e __mailboxType;           /**< Specifies the mailbox type of the mail. */
+    email_mail_type_t __meetingRequestStatus;     /**< Specifies the status of meeting request. */
+    email_mail_status_t __saveStatus;             /**< Specifies the save status*/
+    email_mail_report_t __reportStatus;           /**< Specifies the Mail Report.*/
+};
+class EmailAttachment
+       : public Tizen::Base::Object
+{
+public:
+       EmailAttachment();
+       EmailAttachment(const EmailAttachment& attachment);
+       virtual ~EmailAttachment();
+
+    const int& GetAccountId() const;
+    const int& GetAttachmentId() const;
+    const Tizen::Base::String& GetAttachmentMimeType() const;
+    const Tizen::Base::String& GetAttachmentName() const;
+    const Tizen::Base::String& GetAttachmentPath() const;
+    const long long& GetAttachmentSize() const;
+    const int& GetDrmStatus() const;
+    const int& GetInlineContentStatus() const;
+    const int& GetMailId() const;
+    const char& GetMailboxId() const;
+    const int& GetSaveStatus() const;
+    const int& GetDownloadPercent(void) const;
+    int& GetDownloadHandle(void);
+    const int& GetDownloadHandle(void) const;
+    const int GetAttachmentDownloadStatus(void) const;
+    const Tizen::Graphics::Bitmap* GetThumbnail(void) const;
+
+    void SetAccountId(int accountId);
+    void SetAttachmentId(int attachmentId);
+    void SetAttachmentMimeType(Tizen::Base::String attachmentMimeType);
+    void SetAttachmentName(Tizen::Base::String attachmentName);
+    void SetAttachmentPath(Tizen::Base::String attachmentPath);
+    void SetAttachmentSize(long long attachmentSize);
+    void SetDrmStatus(int drmStatus);
+    void SetInlineContentStatus(int inlineContentStatus);
+    void SetMailId(int mailId);
+    void SetMailboxId(char mailboxId);
+    void SetSaveStatus(int saveStatus);
+    void SetDownloadPercent(int percent);
+    void SetAttachmentDownloadStatus(int status);
+    void SetThumbnail(Tizen::Graphics::Bitmap* pThumbnail);
+
+private:
+       int __attachmentId;
+       int __mailId;
+       int __accountId;
+       int __saveStatus;
+       int __drmStatus;
+       int __inlineContentStatus;
+       char __mailboxId;
+       long long __attachmentSize;
+       int __downloadPercent;
+       int __downloadHandle;
+       email_download_status_t __attachmentDownloadStatus;
+
+       Tizen::Base::String __attachmentMimeType;
+       Tizen::Base::String __attachmentName;
+       Tizen::Base::String __attachmentPath;
+
+       Tizen::Graphics::Bitmap* __pThumbnail;
+};
+
+class EmailMeetingRequest
+       : public Tizen::Base::Object
+{
+public:
+       EmailMeetingRequest();
+       virtual ~EmailMeetingRequest();
+
+       const Tizen::Base::DateTime& GetEndTime() const;
+       const Tizen::Base::String& GetGlobalObjectId() const;
+       const Tizen::Base::String& GetLocation() const;
+       const int& GetMailId() const;
+       const email_meeting_response_t& GetMeetingResponse() const;
+       const Tizen::Base::DateTime& GetStartTime() const;
+       const Tizen::Locales::TimeZone& GetTimeZone() const;
+
+    void SetEndTime(Tizen::Base::DateTime endTime);
+    void SetGlobalObjectId(Tizen::Base::String globalObjectId);
+    void SetLocation(Tizen::Base::String location);
+    void SetMailId(int mailId);
+    void SetMeetingResponse(email_meeting_response_t meetingResponse);
+    void SetStartTime(Tizen::Base::DateTime startTime);
+    void SetTimeZone(Tizen::Locales::TimeZone timeZone);
+
+private:
+       int __mailId;
+       email_meeting_response_t __meetingResponse;
+       Tizen::Base::DateTime __startTime;
+       Tizen::Base::DateTime __endTime;
+       Tizen::Base::String __location;
+       Tizen::Base::String __globalObjectId;
+       Tizen::Locales::TimeZone __timeZone;
+};
+
+class EmailMailboxManager
+       : public Tizen::Base::Object
+{
+public:
+       virtual ~EmailMailboxManager();
+
+       /**
+        * Returns the instance of the Mailbox Manager.
+        *
+        */
+       static EmailMailboxManager* GetInstance(void);
+
+       /**
+        * Returns the pointer to the internal map data-structure.
+        *
+        */
+       const Tizen::Base::Collection::MultiHashMap* GetMailboxMap();
+
+       /**
+        * Returns a list of all mailboxes for all accounts.
+        *
+        */
+       Tizen::Base::Collection::IList* GetMailboxesN();
+
+       /**
+        * Returns a list of mailboxes for a given account id.
+        *
+        * @param[in]   accountId                               The account id for which we need to return the mailboxes.
+        */
+       Tizen::Base::Collection::IEnumerator* GetMailboxesByAccountIdN(const int& accountId);
+
+       /**
+        * Returns a mailbox whose id is the same as the input mailboxId. Else returns null.
+        *
+        * @param[in]   mailboxId                               The mailbox id we are looking for.
+        */
+       EmailMailbox* GetMailboxById(int mailboxId);
+
+       /**
+        * Returns a list of MailListItems for a given account id and mailbox type.
+        *
+        * @param[in]   accountId                               The account id for which we need to return the headers.
+        * @param[in]   mailboxType                             The mailbox type for which we need to return the headers.
+        */
+       Tizen::Base::Collection::ArrayList* GetData(const int& accountId, email_mailbox_type_e mailboxType, bool forceUpdate = false);
+       Tizen::Base::Collection::ArrayList* GetData(EmailMailbox* pTmpMailbox);
+
+       /**
+        * Sync mails for all accounts.
+        */
+//     result DownloadEmailBody(void);
+
+       /**
+        * Downloads the body for the given mail id.
+        */
+       result DownloadEmailBody(int mailId, bool withAttachment, int& handle);
+
+       /**
+        * Downloads the attachment details for the given attachment id.
+        */
+       result DownloadAttachment(int mailId, int nth, int& handle);
+
+       /**
+        * Gets mail data from the email-service db.
+        *
+        * @param[in]   mailId                          The mail id for which we need to return the message.
+        */
+       EmailMessageItem* GetMailDataN(const int& mailId);
+
+       /**
+        * Adds email data in DB and optionally on the server.
+        *
+        * @param[in]   pMsg                            The message that needs to be updated.
+        * @param[in]   pAttachment                     The attachment related to the message.
+        * @param[in]   pMeetingReq                     The meeting request info.
+        * @param[in]   updateServer            Specifies whether server should be updated as well.
+        */
+       result AddMailMessage(EmailMessageItem* pMsg, Tizen::Base::Collection::ArrayList* pAttachmentList = null, EmailMeetingRequest* pMeetingReq = null, bool updateServer = false);
+
+       /**
+        * Sets/Updates email flags in DB and optionally on the server.
+        *
+        * @param[in]   accId                           The account id of the message.
+        * @param[in]   mailId                          The mail id of the message.
+        * @param[in]   field_type                      The field type that is to be updated.
+        * @param[in]   value                           The new value of the field.
+        * @param[in]   updateServer            Specifies whether server should be updated as well.
+        */
+       result SetFlags(int accId, int mailId, email_flags_field_type field_type, bool value, bool updateServer = false);
+       result SetFlags(Tizen::Base::Collection::ArrayList* pEmailList, email_flags_field_type field_type, bool value, bool updateServer = false);
+
+       /**
+        * Deletes an email message.
+        *
+        * @param[in]   mailboxId                       mailbox from where message is to be deleted.
+        * @param[in]   messageId                       id of message to be deleted.
+        * @param[in]   fromServer                      Indicates whether the message is to be deleted from the server.
+        */
+       void DeleteMailMessage(int mailboxId, int mailId, bool fromServer);
+
+       /**
+        * Deletes an email message.
+        *
+        * @param[in]   mailboxId                       mailbox from where message is to be deleted.
+        * @param[in]   mailId                          list of mailId's of mails to be deleted.
+        * @param[in]   count                           number of mails to be deleted.
+        * @param[in]   fromServer                      Indicates whether the message is to be deleted from the server.
+        */
+       void DeleteMailMessage(int mailboxId, int* mailId, int count, bool fromServer);
+
+       /**
+        * Moves a list of mail messages to the specified mailbox.
+        *
+        * @param[in]   mailId              The id of mail messages that need to be moved.
+        * @param[in]   targetMailboxId         The id of the target mailbox to which mails are to be moved.
+        */
+       result MoveMailMessage(int mailId, int targetMailboxId);
+
+       /**
+        * Moves a list of mail messages to the specified mailbox.
+        *
+        * @param[in]   mailId              The list of ids of mail messages that need to be moved.
+        * @param[in]   count                           The count of mails that need to be moved.
+        * @param[in]   targetMailboxId         The id of the target mailbox to which mails are to be moved.
+        */
+       result MoveMailMessage(int* mailId, int count, int targetMailboxId);
+
+       /**
+        * This functions specifies rules to block emails based on the filterValue.
+        * The filterValue is matched against either the subject field or from email address.
+        *
+        * @param[in]   filterValue                     The value used for filtering out emails.
+        * @param[in]   filterType                      Specifies whether this filter acts on subject or on email body.
+        */
+       void BlockMails(const Tizen::Base::String& filterValue, email_rule_type_t filterType);
+
+       result AddAttachment(int mailId, EmailAttachment* pAttachment);
+
+       result DeleteAttachment(int attachmentId);
+
+       result AddData(int mailId, int mailboxId);
+       result AddData(EmailMessageListItem* pMsg);
+       result MoveData(int fromMailboxId, int toMailboxId, Tizen::Base::Collection::HashMap* pMailIdMap);
+       result RemoveData(int accountId, Tizen::Base::String* pData);
+//     result RefreshData(int accountId);
+//     result RefreshData(int accountId, email_mailbox_type_e mailboxType);
+//     result RefreshData(int accountId, int mailboxId);
+//     void RefreshMailboxes();
+       void RefreshMailboxes(int accountId);
+//     void RefreshMailboxes(int accountId, int mailboxId);
+       Tizen::Base::Collection::ArrayList* GetAllAttachmentListN(int mailId);
+       Tizen::Base::Collection::ArrayList* GetAttachmentsListN(int mailId);
+       Tizen::Base::Collection::ArrayList* GetContentImagesListN(int mailId);
+
+       EmailAttachment* GetAttachmentDataN(int attachmentId);
+
+       int GetMailboxIdByType(int accId, email_mailbox_type_e type);
+       EmailMailbox* GetMailboxByType(int accId, email_mailbox_type_e type);
+
+//     void SetMailboxManagerDataChangeListener(BasePresentationModel* pBasePresentationModel);
+
+       //
+       // Sync email body for all mailboxes.
+       //
+//     result SyncHeader();
+
+       //
+       // Sync headers for a specific mailbox for a given account
+       //
+       result SyncHeader(int accountId, int mailBoxId);
+
+       // Sync mailbox list for imap accounts.
+       result SyncMailboxList(int accountId);
+
+       //
+       // Sync headers for all mailboxes for a given account
+       //
+//     result SyncHeader(int accountId);
+
+       friend class EmailSettingsProvider;
+
+private:
+       //
+       // Private constructor to enforce Singleton class.
+       //
+       EmailMailboxManager();
+
+       // Copy constructor
+       EmailMailboxManager(const EmailMailboxManager& pEmailMailboxManagerInstance);
+
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+       void CleanupInstance(void);
+       //
+       //
+       //
+       result Construct(void);
+
+       //
+       // Initializes the mailbox data, like, mailbox names and mailbox ids.
+       //
+       result InitializeMailboxes(int accountId=0);
+
+       //
+       // Initializes the header data of email messages.
+       //
+       result InitializeMailMessages(EmailMailbox* pMailbox);
+
+       //
+       // Parses the mailboxList array and stores the result in a Hashmap.
+       //
+       // @param[in]   mailboxList             The list of mailboxes that need to be processed.
+       // @param[in]   count                   The number of mailboxes contained in the list.
+       //
+       void ProcessData(email_mailbox_t** mailboxList, const int& count);
+
+       //
+       // Converts an Email Message object from native format to OSP object format.
+       //
+       // @param[in]   pSrc                                    Source object
+       // @param[out]  pDest                                   Destination object
+       //
+       void ConvertNativetoOSPEmailMessage(email_mail_data_t* pSrc, EmailMessageItem* pDest);
+
+       //
+       // Converts an Email attachment object from native format to OSP object format.
+       //
+       // @param[in]   pSrc                                    Source object
+       // @param[out]  pDest                                   Destination object
+       //
+       EmailAttachment* ConvertNativetoOSPAttachmentN(email_attachment_data_t* pSrc);
+
+       //
+       // Converts an Email Message object from OSP object format to native format.
+       //
+       // @param[in]   pSrc                                    Source object
+       //
+       email_mail_data_t* ConvertOSPtoNativeEmailMessageN(const EmailMessageItem* pSrc);
+
+       //
+       // Converts an Email attachment object from OSP object format to native format.
+       //
+       // @param[in]   pSrc                                    Source object
+       //
+       email_attachment_data_t* ConvertOSPtoNativeAttachmentN(const EmailAttachment* pSrc);
+       void ConvertOSPtoNativeAttachment(const EmailAttachment* pSrc, email_attachment_data_t& dest);
+
+       //
+       // Converts an Email meeting request object from OSP object format to native format.
+       //
+       // @param[in]   pSrc                                    Source object
+       //
+       email_meeting_request_t* ConvertOSPtoNativeMeetingRequestN(const EmailMeetingRequest* pSrc);
+
+       //
+       // Converts an Email Message List Item object from native format to OSP object format.
+       //
+       // @param[in]   pSrc                                    Source object
+       // @param[out]  pDest                                   Destination object
+       //
+       void ConvertNativetoOSPEmailMessageListItem(email_mail_list_item_t* pSrc, EmailMessageListItem* pDest);
+
+       //
+       // This method cleans up a previously allocated email_mail_data_t object.
+       //
+       // @param[in]   pObj                                    Source object to be cleaned up
+       //
+       void CleanupNativeEmailMessageObject(email_mail_data_t* pObj, bool freeObj = false);
+
+       //
+       // This method cleans up a previously allocated email_attachment_data_t object.
+       //
+       // @param[in]   pObj                                    Source object to be cleaned up
+       //
+       void CleanupNativeEmailAttachmentObject(email_attachment_data_t* pObj, bool freeObj = false);
+
+       //
+       // This method cleans up a previously allocated email_meeting_request_t object.
+       //
+       // @param[in]   pObj                                    Source object to be cleaned up
+       //
+       void CleanupNativeMeetingRequestObject(email_meeting_request_t* pObj, bool freeObj = false);
+       void operator=(const EmailMailboxManager& pEmailMailboxManagerInstance);
+
+private:
+       int __maxMailCount;
+       static EmailMailboxManager* __pInstance;
+       Tizen::Base::Collection::MultiHashMap* __pMailbox;
+//     Tizen::Base::Collection::ArrayList* __pPresentationModelInstanceList;
+};
+
+#endif /* _EM_NATIVE_MAILBOX_MANAGER_H_ */
diff --git a/inc/EmOutboxPresentationModel.h b/inc/EmOutboxPresentationModel.h
new file mode 100644 (file)
index 0000000..2817bfb
--- /dev/null
@@ -0,0 +1,51 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmOutboxPresentationModel.h
+ * @brief      Keeps the declaration of OutboxPresentationModel class
+ */
+
+#ifndef _EM_OUTBOX_PRESENTATION_MODEL_H_
+#define _EM_OUTBOX_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include "EmBasePresentationModel.h"
+
+class OutboxPresentationModel
+       : public BasePresentationModel
+{
+public:
+       static OutboxPresentationModel* GetInstance(void);
+
+       virtual void FetchData(int accountId, bool forceUpdate = false);
+
+private:
+       OutboxPresentationModel(void);
+       OutboxPresentationModel(const OutboxPresentationModel& pOutboxPresentationModelInstance);
+       virtual ~OutboxPresentationModel(void);
+
+       result Construct(void);
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+       void CleanupInstance(void);
+       void operator=(const OutboxPresentationModel& pOutboxPresentationModelInstance);
+
+       static OutboxPresentationModel* __pOutboxPresentationModelInstance;
+};
+
+#endif // _EM_OUTBOX_PRESENTATION_MODEL_H_
diff --git a/inc/EmRecipientField.h b/inc/EmRecipientField.h
new file mode 100755 (executable)
index 0000000..c4567a9
--- /dev/null
@@ -0,0 +1,121 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmRecipientField.h
+ * @brief      Defines a custom control for viewing sender/recipient addresses.
+ */
+
+#ifndef _EM_RECIPIENT_FIELD_H_
+#define _EM_RECIPIENT_FIELD_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+#include "EmAllMailsPresentationModel.h"
+
+enum MODE
+{
+       READ_WRITE_MODE = 0,
+       READ_MODE
+};
+
+class RecipientField;
+
+class ITokenChangedEventListener
+{
+public:
+
+       ITokenChangedEventListener()
+       {
+       }
+
+       virtual ~ITokenChangedEventListener()
+       {
+       }
+
+       virtual void LineCountChanged(const RecipientField& src) = 0;
+};
+
+class RecipientField
+       : public Tizen::Ui::Controls::Panel
+       , public Tizen::Ui::Controls::IExpandableEditAreaEventListener
+       , public Tizen::Ui::Controls::ITokenFilter
+       , public Tizen::Ui::IFocusEventListener
+       , public Tizen::Ui::IKeyEventListener
+{
+public:
+
+       RecipientField(void);
+       virtual ~RecipientField(void);
+
+       result Construct(const Tizen::Graphics::FloatRectangle& bounds, MODE mode = READ_WRITE_MODE);
+
+       virtual bool ReplaceToken(const Tizen::Base::String& token, Tizen::Base::String& replacement);
+
+       void AddNewToken(const Tizen::Base::String& text, bool showMsgBox = true);
+       int GetAddressFieldHeight(void);
+       int GetAddressFieldWidth(void);
+       int GetTokenCount(void);
+       void HideKeypad(void);
+       bool IsDuplicate(const Tizen::Base::String& emailAddress);
+       void SetExpandableEditAreaTitle(const Tizen::Base::String& titleText);
+       void SetTokenChangedEventListener(ITokenChangedEventListener& listener);
+       void SetAddContactButtonEventListener(Tizen::Ui::IActionEventListener& listener);
+       void SetKeyPadEventListener(Tizen::Ui::IKeypadEventListener& listener);
+       result SetFocus(void);
+
+       virtual void OnBoundsChanged(const Tizen::Graphics::Rectangle& oldRect, const Tizen::Graphics::Rectangle& newRect);
+
+       Tizen::Base::Collection::ArrayList* GetRecipientList(void);
+       Tizen::Ui::Controls::ExpandableEditArea* GetRecipientArea(void);
+
+       virtual void OnExpandableEditAreaLineAdded(Tizen::Ui::Controls::ExpandableEditArea& source, int newLineCount);
+       virtual void OnExpandableEditAreaLineRemoved(Tizen::Ui::Controls::ExpandableEditArea& source, int newLineCount);
+
+       virtual void OnFocusGained(const Tizen::Ui::Control& source);
+       virtual void OnFocusLost(const Tizen::Ui::Control& source);
+
+       virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+       virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+       virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+
+       virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
+
+       void AdjustHeight(void);
+       void SetMode(MODE newMode);
+       void SetUserEventFlagValue(bool value);
+
+private:
+
+       MODE __mode;
+       int __width;
+       float __expandedHeight;
+       bool __alreadyValidated;
+       bool __hasFocus;
+       bool __sendUserEvent;
+
+       Tizen::Base::Collection::ArrayList* __pRecipientList;
+
+       Tizen::Ui::Controls::Button* __pAddContactButton;
+       Tizen::Ui::Controls::Button* __pCountButton;
+       Tizen::Ui::Controls::ExpandableEditArea* __pRecipientArea;
+
+       ITokenChangedEventListener* __pTokenChangedEventListener;
+};
+
+#endif // _EM_RECIPIENT_FIELD_H_
diff --git a/inc/EmSearchForm.h b/inc/EmSearchForm.h
new file mode 100644 (file)
index 0000000..3865d5b
--- /dev/null
@@ -0,0 +1,175 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSearchForm.h
+ * @brief      Header for the Search Form which lets the user to search mailboxes.
+ *
+ */
+
+#ifndef _EM_SEARCH_FORM_H_
+#define _EM_SEARCH_FORM_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+#include "EmEmailApp.h"
+#include "EmNativeMailboxManager.h"
+#include "EmTypes.h"
+#include "EmSearchPresentationModel.h"
+#include "EmInboxPresentationModel.h"
+#include "EmOutboxPresentationModel.h"
+#include "EmSentboxPresentationModel.h"
+#include "EmDraftboxPresentationModel.h"
+#include "EmSpamboxPresentationModel.h"
+#include "EmTrashPresentationModel.h"
+
+class SearchForm
+       : public Tizen::Ui::Controls::Form
+       , public Tizen::Ui::Controls::IFormBackEventListener
+       , public Tizen::Ui::Controls::IGroupedListViewItemEventListener
+       , public Tizen::Ui::IActionEventListener
+       , public Tizen::Ui::IKeypadEventListener
+       , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Ui::IProgressPopupEventListener
+       , public Tizen::Ui::ITextEventListener
+       , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+       /**
+        * Constructor
+        */
+       SearchForm(void);
+
+       /**
+        * Destructor
+        */
+       virtual ~SearchForm(void);
+
+       /**
+        * Called when we need to initialize the Form
+        */
+       bool Initialize(void);
+
+       /**
+        * called when the Form has been initialized.
+        */
+       virtual result OnInitializing(void);
+
+       /**
+        * The form is about to be terminated
+        */
+       virtual result OnTerminating(void);
+
+       /**
+        * Gets called when any button gets pressed
+        * @param[in] : the source which is bein pressed.
+        * @param[in] : actionId, the action id of the button.
+        */
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+       virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+       virtual void OnProgressPopupCanceled(void);
+
+       // Called when a text is changed.
+       virtual void OnTextValueChanged(const Tizen::Ui::Control& source);
+
+       // Called when a change made to the text is canceled.
+       virtual void OnTextValueChangeCanceled(const Tizen::Ui::Control& source);
+
+       /**
+        * Called after setting as current scene. @n
+        * The UI element (Tizen::Ui::Controls::Form or Tizen::Ui::Controls::Panel)
+        * has been added to a container (Frame or Form) and is ready to update.
+        *
+        * @since               3.0
+        *
+        * @param[in]   previousSceneId         The scene ID of the deactivated scene
+        * @param[in]   currentSceneId          The scene ID of the newly activated scene
+        * @param[in]   pArgs                           A pointer to an argument list that is user-specified
+        * @remarks             The argument list must be cleaned up to free memory.
+        */
+       virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+
+       /**
+        * Called when the current scene is deactivated.
+        *
+        * @since               3.0
+        *
+        * @param[in]   currentSceneId          The scene ID of the scene being deactivated
+        * @param[in]   nextSceneId                     The scene ID of the next active scene
+        *
+        */
+       virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+       virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs);
+
+       virtual void OnKeypadWillOpen(Tizen::Ui::Control& source);
+
+       virtual void OnKeypadOpened(Tizen::Ui::Control& source);
+
+       virtual void OnKeypadClosed(Tizen::Ui::Control& source);
+
+       virtual void OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction);
+
+       virtual void OnGroupedListViewItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+       virtual void OnGroupedListViewItemSwept(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, Tizen::Ui::Controls::SweepDirection direction);
+       virtual void OnGroupedListViewContextItemStateChanged(Tizen::Ui::Controls::GroupedListView& listView, int groupIndex, int itemIndex, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+
+       virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+
+       result LoadIcons(void);
+       void InitAttachmentDownloadFailedPopup(void);
+       bool IsAttachmentDownload(const EmailMessageItem* pDetailedMail);
+       void DownloadAllAttachments(const EmailMessageItem* pDetailedMail, DownloadInitiatorMode downloadMode);
+
+private:
+
+       int __accountId;
+       int __mailboxId;
+       int __groupIndex;
+       int __itemIndex;
+       int __downloadAttachments;
+       email_mailbox_type_e __mailboxType;
+       bool __userCancelledAttachmentDownload;
+
+       Tizen::Base::Collection::HashMap* __pAttachmentDownloadHandleMap;
+
+       Tizen::Graphics::Bitmap* __pSearchSenderIcon;
+       Tizen::Graphics::Bitmap* __pSearchAllIcon;
+       Tizen::Graphics::Bitmap* __pSearchTitleIcon;
+       Tizen::Graphics::Bitmap* __pSearchAll;
+       Tizen::Graphics::Bitmap* __pSearchTitle;
+       Tizen::Graphics::Bitmap* __pSearchSender;
+       Tizen::Graphics::Bitmap* __pSearchDate;
+       Tizen::Graphics::Bitmap* __pSearchAdvanced;
+
+       Tizen::Ui::Controls::Popup* __pAttachmentDownloadFailedPopup;
+       Tizen::Ui::Controls::ProgressPopup* __pDownloadAttachmentsPopup;
+       Tizen::Ui::Controls::SearchBar* __pSearchBar;
+       Tizen::Ui::Controls::Button* __pSearchOptionsButton;
+       Tizen::Ui::Controls::ContextMenu* __pSearchOptionsContextMenu;
+       Tizen::Ui::Controls::GroupedListView* __pSearchResultGroupedListView;
+
+       SearchPresentationModel* __pPresentationModel;
+       SearchResultProvider* __pSearchResultProvider;
+
+       BasePresentationModel* GetPresentationModelForMailbox(int mailboxId);
+};
+
+#endif // _EM_SEARCH_FORM_H_
diff --git a/inc/EmSearchPresentationModel.h b/inc/EmSearchPresentationModel.h
new file mode 100755 (executable)
index 0000000..0c74fec
--- /dev/null
@@ -0,0 +1,129 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSearchPresentationModel.h
+ * @brief      Keeps the declaration of SearchPresentationModel class
+ */
+
+#ifndef _EM_SEARCH_PRESENTATION_MODEL_H_
+#define _EM_SEARCH_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FGraphics.h>
+#include <FUi.h>
+#include "EmBasePresentationModel.h"
+#include "EmBaseListViewItemProvider.h"
+#include "EmTypes.h"
+
+enum SearchFilter
+{
+       SEARCH_ALL,
+       SEARCH_TITLE,
+       SEARCH_SENDER,
+       SEARCH_DATE,
+       SEARCH_ADVANCED
+};
+
+enum TextType
+{
+       SUBJECT_TEXT,
+       RECIPIENT_TEXT,
+       MESSAGE_TEXT
+};
+
+class EnrichedTextCustomListElement
+       : public Tizen::Ui::Controls::ICustomElement
+{
+public:
+       //Constructor for the AllMailsCustomListElement class
+       EnrichedTextCustomListElement(SearchFilter searchFilter, TextType textType, const EmailMessageListItem* pMail, Tizen::Base::String searchText);
+
+       //Destructor for the AllMailsCustomListElement class
+       ~EnrichedTextCustomListElement(void)
+       {
+               //Empty Implmentation
+       }
+       // OnDraw is called when a control is drawn
+       bool OnDraw(Tizen::Graphics::Canvas& canvas, const Tizen::Graphics::Rectangle& rect, Tizen::Ui::Controls::ListItemDrawingStatus itemStatus);
+
+private:
+       SearchFilter __searchFilter;
+       TextType __textType;
+       const EmailMessageListItem* __pMail;
+       Tizen::Base::String __searchText;
+};
+
+class SearchPresentationModel
+       : public BasePresentationModel
+{
+
+public:
+
+       virtual ~SearchPresentationModel(void);
+
+       static SearchPresentationModel* GetInstance(void);
+
+       result Initialize(BasePresentationModel* pModel);
+       void PerformSearch(const Tizen::Base::String& pSearchKey, bool fullDataSearch=true);
+
+       void SetSearchFilter(SearchFilter filter);
+
+       void ClearSearchData(void);
+       BasePresentationModel* GetPresentationModel(void);
+       const Tizen::Base::String& GetSearchKey(void);
+       SearchFilter GetSearchFilter(void);
+
+private:
+
+       static SearchPresentationModel* __pInstance;
+
+       SearchFilter __searchFilter;
+       BasePresentationModel* __pModel;
+
+       Tizen::Base::String __searchKey;
+       Tizen::Base::Collection::ArrayList* __pSearchFromData;
+
+       SearchPresentationModel();
+       SearchPresentationModel(const SearchPresentationModel& pSearchPresentationModelInstance);
+       result Construct(void);
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+       void CleanupInstance(void);
+       void operator=(const SearchPresentationModel& pSearchPresentationModelInstance);
+
+       virtual void FetchData(int accountId, bool forceUpdate = false);
+};
+
+class SearchResultProvider
+       : public EmailBaseListViewItemProvider
+{
+
+public:
+
+       SearchResultProvider(void);
+       virtual ~SearchResultProvider(void);
+
+       virtual void CreateSubjectText(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth);
+       virtual void CreateRecipientText(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth, const Tizen::Graphics::FloatDimension& dim);
+       virtual void CreateMessageText(Tizen::Ui::Controls::CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth);
+
+private:
+
+       SearchPresentationModel* __pSearchModel;
+};
+
+#endif // _EM_SEARCH_PRESENTATION_MODEL_H_
diff --git a/inc/EmSentboxPresentationModel.h b/inc/EmSentboxPresentationModel.h
new file mode 100644 (file)
index 0000000..572bbca
--- /dev/null
@@ -0,0 +1,51 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmSentboxPresentationModel.h
+ * @brief                      Keeps the declaration of SentboxPresentationModel class
+ */
+
+#ifndef _EM_SENTBOX_PRESENTATION_MODEL_H_
+#define _EM_SENTBOX_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include "EmBasePresentationModel.h"
+
+class SentboxPresentationModel
+       : public BasePresentationModel
+{
+public:
+       static SentboxPresentationModel* GetInstance(void);
+
+       virtual void FetchData(int accountId, bool forceUpdate = false);
+
+private:
+       SentboxPresentationModel(void);
+       SentboxPresentationModel(const SentboxPresentationModel& pSentboxPresentationModelInstance);
+       virtual ~SentboxPresentationModel(void);
+
+       result Construct(void);
+       static void CreateInstance(void);
+       static void DestroyInstance(void);
+       void CleanupInstance(void);
+       void operator=(const SentboxPresentationModel& pSentboxPresentationModelInstance);
+
+       static SentboxPresentationModel* __pSentboxPresentationModelInstance;
+};
+
+#endif /* _EM_SENTBOX_PRESENTATION_MODEL_H_ */
diff --git a/inc/EmSetAllAsListViewItemProvider.h b/inc/EmSetAllAsListViewItemProvider.h
new file mode 100644 (file)
index 0000000..9dc46ae
--- /dev/null
@@ -0,0 +1,182 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSetAllAsListViewItemProvider.h
+ * @brief      This is the declaration of SetAllAsListViewForPopup class.
+ *                     This also contains interface which provides methods to handle change in the set all as option.
+ */
+
+#ifndef _EM_SET_ALL_AS_LISTVIEW_ITEM_PROVIDER_H_
+#define _EM_SET_ALL_AS_LISTVIEW_ITEM_PROVIDER_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+
+/**
+ * @Class ISetAllAsListViewStateChangeListener
+ * @brief Interface which notifies when there is a change in the set all as option.
+ */
+class ISetAllAsListViewStateChangeListener
+{
+public:
+
+       /**
+        * Destructor
+        */
+       virtual
+       ~ISetAllAsListViewStateChangeListener(void)
+       {
+       }
+
+       /**
+        *      This method is called when there is a change in the value of mark all as option
+        *      @param[in] selectedOption, gives the selected option, 0 for read and 1 for unread
+        */
+       virtual void OnSetAllAsOptionChanged(int selectedOption) = 0;
+};
+
+/* @Class      CustomListViewForPopup
+ * @brief: This class is a ListView Item Provider and Event Listener for the second ListView Control
+ * that appears in the Popup view.
+ */
+class SetAllAsListViewItemProvider
+       : public Tizen::Ui::Controls::IListViewItemProvider
+       , public Tizen::Ui::Controls::IListViewItemEventListener
+{
+public:
+
+       /**
+       * Constructor
+       */
+       SetAllAsListViewItemProvider(void);
+
+       /**
+       * Destructor
+       */
+       ~SetAllAsListViewItemProvider(void)
+       {
+               // Do Nothing.
+       }
+
+       // Callback Functions for IListViewItemProvider
+
+       /**
+        * Called when the ListView is about to be drawn and returns the number of total items.
+        *
+        * @since       2.0
+        *
+        * @return  The count of all items of the list
+        * @remarks  This method must be implemented so that it returns the number of total items in the list.
+        *
+        */
+       virtual int GetItemCount(void);
+
+       /**
+        * Called when items need to be loaded.
+        *
+        * @since       2.0
+        *
+        * @return  An item of the ListView
+        * @param[in] index        The index of the item
+        * @param[in] itemWidth    The width of the item
+        * @remarks  The applications that use ListView must implement this method. @n
+        *                              This method is expected to return an item which is allocated in a heap memory. @n
+        *                              The returned item can be a SimpleItem or CustomItem. @n
+        *                              Note that when the item becomes unnecessary, the ListView calls IListViewItemProvider::DeleteItem() and the application is in charge of
+        *                              deallocating the item.
+        * @see     DeleteItem()
+        */
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+       /**
+        * Called when an item becomes no longer used by the %ListView.
+        *
+        * @since       2.0
+        *
+        * @return  @c true, if the item is deallocated by this method, @n
+        *          else @c false
+        * @param[in] index        The index of the item
+        * @param[in] pItem        The pointer to the item to be deleted
+        * @param[in] itemWidth    The width of the item
+        * @remarks  Applications which use ListView must implement this method. @n
+       *                       In this method, the applications have the chance of deallocating the item. @n
+       *                       If the application deallocates the item, this method returns @c true, notifying the %ListView not to free the item. @n
+       *                       Otherwise, the item will be deallocated by %ListView.
+        * @see     CreateItem()
+        */
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       // Callback Functions for IListViewItemEventListener
+
+       /**
+        * Called when the state of an element in the ListViewItem in the ListView or GroupedListView is changed.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView      The source of the event
+        * @param[in] index         The index of the list
+        * @param[in] elementId     The element ID
+        * @param[in] status        The status of the element
+        *
+        * @remarks  This method is called when an element of the ListViewItem in the ListView is checked, unchecked, or selected. @n
+        *              When the event comes from the annex or the whole item, @c elementId is always @c -1.
+        */
+       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+
+       /**
+        * Called when the ListItem is swept.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView      The source of the event
+        * @param[in] index         The index of the list
+        * @param[in] direction     The sweep direction
+        */
+       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+
+       /**
+        * Called when the state of an element in the %ListContextItem is changed.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView          The source of the event
+        * @param[in] index                     The index of the list
+        * @param[in] elementId         The element ID
+        * @param[in] status        The status of the element
+        */
+       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+
+       /**
+        * Notifies the Current Form OnListViewItemStateChanged
+        * @brief       A public function which notifies any member implementing the IListViewStateChangeListener interface on ListViewItemStateChanged
+        * so that the view type can be updated accordingly.
+        * @param[in] IListViewStateChangeListener      Pointer to a class inherited from the IListViewStateChangeListener interface.
+        * @return        result                                                E_SUCCESS if successfully created the control else Error Code.
+        */
+       virtual void SetEventListener(ISetAllAsListViewStateChangeListener* pListener);
+
+       void SetFontValues(void);
+
+private:
+       int __fontSize;
+       int __itemHeight;
+       ISetAllAsListViewStateChangeListener* __pSetAllAsListViewStateChangeListener;
+};
+
+#endif /* _EM_SET_ALL_AS_LISTVIEW_ITEM_PROVIDER_H_ */
diff --git a/inc/EmSortByListViewItemProvider.h b/inc/EmSortByListViewItemProvider.h
new file mode 100644 (file)
index 0000000..a729490
--- /dev/null
@@ -0,0 +1,198 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSortByListViewItemProvider.h
+ * @brief      This is the declaration of CustomListViewForPopup class.
+ *                     This also contains interface which provides methods to handle change in the view type.
+ */
+
+#ifndef _EM_SORT_BY_LISTVIEW_ITEM_PROVIDER_H_
+#define _EM_SORT_BY_LISTVIEW_ITEM_PROVIDER_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+
+enum SortType
+{
+       SORT_BY_NONE = -1,
+       SORT_BY_DATE,
+       SORT_BY_SENDER,
+       SORT_BY_UNREAD,
+       SORT_BY_IMPORTANT
+};
+
+/**
+ * @Class IListViewStateChangeListener
+ * @brief Interface which notifies when there is a change in the view type.
+ */
+class IListViewStateChangeListener
+{
+public:
+
+       /**
+        * Destructor
+        */
+       virtual
+       ~IListViewStateChangeListener(void)
+       {
+       }
+
+       /**
+        *      This method is called when there is a change in the value of viewtype
+        *      @param[in] viewType, gives the selected view type
+        */
+       virtual void OnSortTypeChanged(SortType viewByType) = 0;
+};
+
+/* @Class      CustomListViewForPopup
+ * @brief: This class is a ListView Item Provider and Event Listener for the second ListView Control
+ * that appears in the Popup view.
+ */
+class SortByListViewItemProvider
+       : public Tizen::Ui::Controls::IListViewItemProvider
+       , public Tizen::Ui::Controls::IListViewItemEventListener
+{
+public:
+
+       /**
+       * Constructor
+       */
+       SortByListViewItemProvider(void);
+
+       /**
+       * Destructor
+       */
+       ~SortByListViewItemProvider(void)
+       {
+               // Do Nothing.
+       }
+
+       // Callback Functions for IListViewItemProvider
+
+       /**
+        * Called when the ListView is about to be drawn and returns the number of total items.
+        *
+        * @since       2.0
+        *
+        * @return  The count of all items of the list
+        * @remarks  This method must be implemented so that it returns the number of total items in the list.
+        *
+        */
+       virtual int GetItemCount(void);
+
+       /**
+        * Called when items need to be loaded.
+        *
+        * @since       2.0
+        *
+        * @return  An item of the ListView
+        * @param[in] index        The index of the item
+        * @param[in] itemWidth    The width of the item
+        * @remarks  The applications that use ListView must implement this method. @n
+        *                              This method is expected to return an item which is allocated in a heap memory. @n
+        *                              The returned item can be a SimpleItem or CustomItem. @n
+        *                              Note that when the item becomes unnecessary, the ListView calls IListViewItemProvider::DeleteItem() and the application is in charge of
+        *                              deallocating the item.
+        * @see     DeleteItem()
+        */
+       virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
+
+       /**
+        * Called when an item becomes no longer used by the %ListView.
+        *
+        * @since       2.0
+        *
+        * @return  @c true, if the item is deallocated by this method, @n
+        *          else @c false
+        * @param[in] index        The index of the item
+        * @param[in] pItem        The pointer to the item to be deleted
+        * @param[in] itemWidth    The width of the item
+        * @remarks  Applications which use ListView must implement this method. @n
+       *                       In this method, the applications have the chance of deallocating the item. @n
+       *                       If the application deallocates the item, this method returns @c true, notifying the %ListView not to free the item. @n
+       *                       Otherwise, the item will be deallocated by %ListView.
+        * @see     CreateItem()
+        */
+       virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
+
+       // Callback Functions for IListViewItemEventListener
+
+       /**
+        * Called when the state of an element in the ListViewItem in the ListView or GroupedListView is changed.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView      The source of the event
+        * @param[in] index         The index of the list
+        * @param[in] elementId     The element ID
+        * @param[in] status        The status of the element
+        *
+        * @remarks  This method is called when an element of the ListViewItem in the ListView is checked, unchecked, or selected. @n
+        *              When the event comes from the annex or the whole item, @c elementId is always @c -1.
+        */
+       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
+
+       /**
+        * Called when the ListItem is swept.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView      The source of the event
+        * @param[in] index         The index of the list
+        * @param[in] direction     The sweep direction
+        */
+       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction);
+
+       /**
+        * Called when the state of an element in the %ListContextItem is changed.
+        *
+        * @since       2.0
+        *
+        * @param[in] listView          The source of the event
+        * @param[in] index                     The index of the list
+        * @param[in] elementId         The element ID
+        * @param[in] status        The status of the element
+        */
+       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status);
+
+       /**
+        * Notifies the Current Form OnListViewItemStateChanged
+        * @brief       A public function which notifies any member implementing the IListViewStateChangeListener interface on ListViewItemStateChanged
+        * so that the view type can be updated accordingly.
+        * @param[in] IListViewStateChangeListener      Pointer to a class inherited from the IListViewStateChangeListener interface.
+        * @return        result                                                E_SUCCESS if successfully created the control else Error Code.
+        */
+       virtual void SetEventListener(IListViewStateChangeListener* pListener);
+
+       /**
+        * Sets one of options of view type listview to either sender or recipient.
+        * @param[bool] isViewBySender                  view by sender if its true.
+        */
+       virtual void SetViewBySenderOrRecipient(bool isViewBySender);
+
+private:
+       IListViewStateChangeListener* __pListViewItemStateChangeListener;
+       SortType __viewByType;
+       bool __isViewBySender;
+
+       int __fontSize;
+       int __itemHeight;
+};
+
+#endif // _EM_SORT_BY_LISTVIEW_ITEM_PROVIDER_H_
diff --git a/inc/EmSpamboxPresentationModel.h b/inc/EmSpamboxPresentationModel.h
new file mode 100644 (file)
index 0000000..7d3b935
--- /dev/null
@@ -0,0 +1,56 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSpamboxPresentationModel.h
+ * @brief      Keeps the declaration of SpamPresentationModel class
+ */
+
+#ifndef _EM_SPAM_BOX_PRESENTATION_MODEL_H_
+#define _EM_SPAM_BOX_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include "EmBasePresentationModel.h"
+
+class SpamPresentationModel
+       : public BasePresentationModel
+{
+
+public:
+               static SpamPresentationModel* GetInstance(void);
+
+               virtual void FetchData(int accountId, bool forceUpdate = false);
+
+private:
+               SpamPresentationModel(void);
+               virtual ~SpamPresentationModel(void);
+
+               void CleanupInstance(void);
+
+               result Construct(void);
+
+               static void CreateInstance(void);
+
+               static void DestroyInstance(void);
+
+               SpamPresentationModel(const SpamPresentationModel& pSpamPresentationModelInstance);
+               void operator=(const SpamPresentationModel& pSpamPresentationModelInstance);
+
+               static SpamPresentationModel* __pSpamPresentationModelInstance;
+};
+
+#endif // _EM_SPAM_BOX_PRESENTATION_MODEL_H_
diff --git a/inc/EmStateInfo.h b/inc/EmStateInfo.h
new file mode 100644 (file)
index 0000000..674aff0
--- /dev/null
@@ -0,0 +1,51 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmStateInfo.h
+ * @brief      Provides the implementation of the state info class
+ */
+
+#include "email-service/email-types.h"
+#include "EmBasePresentationModel.h"
+
+class StateInfo
+       : public Tizen::Base::Object
+{
+
+public:
+       int accountId, mailboxId;
+       int mailId;
+
+       bool isMailSelected;
+
+       Tizen::Base::String toFieldValue;
+       Tizen::Base::String ccFieldValue;
+       Tizen::Base::String bccFieldValue;
+       Tizen::Base::String subjectFieldValue;
+       Tizen::Base::String bodyFieldValue;
+       Tizen::Base::String attachmentsPath;
+
+       Tizen::Base::String searchText;
+
+       email_mailbox_type_e mailboxType;
+
+       BasePresentationModel* pPresentationModel;
+
+public:
+       StateInfo();
+
+}; // _EM_STATE_INFO_H_
diff --git a/inc/EmTrashPresentationModel.h b/inc/EmTrashPresentationModel.h
new file mode 100644 (file)
index 0000000..ee79df7
--- /dev/null
@@ -0,0 +1,57 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmTrashPresentationModel.h
+ * @brief      Keeps the declaration of TrashPresentationModel class
+ */
+
+#ifndef _EM_TRASH_PRESENTATION_MODEL_H_
+#define _EM_TRASH_PRESENTATION_MODEL_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include "EmBasePresentationModel.h"
+
+class TrashPresentationModel
+       : public BasePresentationModel
+{
+public:
+
+       static TrashPresentationModel* GetInstance(void);
+
+       virtual void FetchData(int accountId, bool forceUpdate = false);
+
+private:
+
+       TrashPresentationModel(void);
+       virtual ~TrashPresentationModel(void);
+
+       void CleanupInstance(void);
+
+       result Construct(void);
+
+       static void CreateInstance(void);
+
+       static void DestroyInstance(void);
+
+       TrashPresentationModel(const TrashPresentationModel& pTrashPresentationModelInstance);
+       void operator=(const TrashPresentationModel& pTrashPresentationModelInstance);
+
+       static TrashPresentationModel* __pTrashPresentationModelInstance;
+};
+
+#endif // _EM_TRASH_PRESENTATION_MODEL_H_
diff --git a/inc/EmTypes.h b/inc/EmTypes.h
new file mode 100755 (executable)
index 0000000..73e8649
--- /dev/null
@@ -0,0 +1,1841 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file                       EmTypes.h
+ * @brief                      Keeps all the constants used throughout the application
+ */
+
+#ifndef _EM_TYPES_H_
+#define _EM_TYPES_H_
+
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FUi.h>
+#include "EmEmailSettingProvider.h"
+
+class EmailSettingsProvider;
+
+namespace EmailTypesNS
+{
+enum FutureAction
+{
+       NONE,
+       FORWARD_AFTER_DOWNLOAD,
+       COMPOSE_AFTER_DOWNLOAD
+};
+}
+
+/****************\
+ *  Request IDs *
+\****************/
+
+/*--EmAccountDetailForm--*/
+extern const int IDA_ACCOUNT_DETAIL_FORM_SETTINGS;
+extern const int IDA_ACCOUNT_DETAIL_FORM_ADD_ACCOUNT;
+extern const int IDA_ACCOUNT_DETAIL_FORM_COMPOSE_EMAIL;
+extern const int IDA_ACCOUNT_DETAIL_FORM_EXPAND_COLLAPSE;
+
+/*--EmAccountSettingMainForm--*/
+extern const int IDA_ACCOUNT_SETTING_FORM_INBOX_BUTTON;
+extern const int IDA_ACCOUNT_SETTING_FORM_SENTBOX_BUTTON;
+extern const int IDA_ACCOUNT_SETTING_FORM_OUTBOX_BUTTON;
+extern const int IDA_ACCOUNT_SETTING_FORM_DRAFTS_BUTTON;
+extern const int IDA_ACCOUNT_SETTING_FORM_TRASH_BUTTON;
+extern const int IDA_ACCOUNT_SETTING_FORM_SPAMBOX_BUTTON;
+extern const int IDA_ACCOUNT_SETTING_FORM_BITMAP_ELEMENT;
+extern const int IDA_ACCOUNT_SETTING_FORM_NAME_ELEMENT;
+extern const int IDA_ACCOUNT_SETTING_FORM_ADDRESS_ELEMENT;
+extern const int IDA_ACCOUNT_SETTING_FORM_MAIL_OPTION_PROVIDER_ELEMENT;
+extern const int IDA_ACCOUNT_SETTING_FORM_COMMON_OPTION_PROVIDER_ELEMENT;
+extern const int IDA_ACCOUNT_SETTING_FORM_INBOX_OPTION_PROVIDER_ELEMENT;
+extern const int IDA_ACCOUNT_SETTING_FORM_SPAMBOX_OPTION_PROVIDER_ELEMENT;
+
+/*--EmAddAccountForm--*/
+extern const int IDA_ADD_ACCOUNT_FORM_FOOTER_NEXT;
+extern const int IDA_ADD_ACCOUNT_MANUAL_SETUP;
+extern const int IDA_SHOW_PASSWORD_CHECKED;
+extern const int IDA_SHOW_PASSWORD_UNCHECKED;
+
+/*--EmAddAddressMainForm--*/
+extern const int IDA_ADD_ADDRESS_FORM_FOOTER_DONE;
+extern const int IDA_ADD_ADDRESS_FORM_HEADER_CANCEL_BUTTON;
+extern const int IDA_ADD_ADDRESS_FORM_EDITFIELD_DONE_BUTTON;
+extern const int IDA_ADD_ADDRESS_FORM_EDITFIELD_CLOSE_BUTTON;
+extern const int IDA_ADD_ADDRESS_FORM_ADD_CONTACT_BUTTON;
+extern const int IDA_ADD_ADDRESS_FORM_STRING_ELEMENT;
+
+/*--EmAddSubjectForm--*/
+extern const int IDA_ADD_SUBJECT_FORM_FOOTER_DONE;
+extern const int IDA_ADD_SUBJECT_FORM_HEADER_CANCEL_BUTTON;
+extern const int IDA_ADD_SUBJECT_FORM_EDITFIELD_DONE_BUTTON;
+extern const int IDA_ADD_SUBJECT_FORM_EDITFIELD_CLOSE_BUTTON;
+extern const int IDA_ADD_SUBJECT_FORM_ADD_CONTACT_BUTTON;
+extern const int IDA_ADD_SUBJECT_FORM_STRING_ELEMENT;
+
+/*--EmAttachmentPanel--*/
+extern const int IDA_ATTACHMENT_PANEL_DELETE_ATTACHMENT_BUTTON;
+extern const int IDA_ATTACHMENT_PANEL_DOWNLOAD_ATTACHMENT_BUTTON;
+extern const int IDA_ATTACHMENT_PANEL_CANCEL_DOWNLOAD_BUTTON;
+
+/*--EmBaseListViewItemProvider--*/
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_REPLY_BUTTON;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_MARK_AS_READ_BUTTON;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_MARK_AS_UNREAD_BUTTON;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_FORWARD_BUTTON;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_DELETE_BUTTON;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_RECIPIENT_ELEMENT;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_MESSAGE_ELEMENT;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_DATE_ELEMENT;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_FORMAT_IMPORTANT_ELEMENT;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_ATTACH_ELEMENT;
+extern const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_EMPTY_ELEMENT;
+
+/*--EmBlockEmailsMainForm--*/
+extern const int IDA_BLOCK_EMAIL_FORM_FOOTER_DELETE_BUTTON;
+extern const int IDA_BLOCK_EMAIL_FORM_FOOTER_ADD_BUTTON;
+extern const int IDA_BLOCK_EMAIL_FORM_STRING_ELEMENT;
+extern const int IDA_BLOCK_EMAIL_FORM_HEADER_ADDRESS_BUTTON;
+extern const int IDA_BLOCK_EMAIL_FORM_HEADER_SUBJECT_BUTTON;
+
+/*--EmCustomListViewForPopup--*/
+extern const int IDA_CUSTOM_LISTVIEW_POPUP_ITEM_TITLE_STRING;
+
+/*--EmDeleteSubjectAddressForm--*/
+extern const int IDA_DELETE_SUBJECT_ADDRESS_FORM_SELECT_ALL;
+extern const int IDA_DELETE_SUBJECT_ADDRESS_FORM_FOOTER_DELETE;
+extern const int IDA_DELETE_SUBJECT_ADDRESS_FORM_ELEMENT_STRING;
+
+/*--EmDraftListForm--*/
+extern const int IDA_DRAFT_LIST_FOOTER_UPDATE;
+extern const int IDA_DRAFT_LIST_FOOTER_ACCOUNTS;
+extern const int IDA_DRAFT_LIST_FOOTER_MORE;
+extern const int IDA_DRAFT_LIST_FOOTER_CONTEXTMENU_VIEW;
+extern const int IDA_DRAFT_LIST_FOOTER_CONTEXTMENU_COMPOSE;
+extern const int IDA_DRAFT_LIST_MAIL_SUBJECT;
+extern const int IDA_DRAFT_LIST_MAIL_RECIPIENT;
+extern const int IDA_DRAFT_LIST_MAIL_MESSAGE;
+extern const int IDA_DRAFT_LIST_FORM_FORMAT_IMPORTANT;
+extern const int IDA_DRAFT_LIST_CONTEXT_BLOCK;
+extern const int IDA_DRAFT_LIST_CONTEXT_DELETE;
+extern const int IDA_DRAFT_LIST_POPUP_CLOSE;
+
+/*--EmDraftsReciSelectedForm--*/
+extern const int IDA_DRAFTS_RECI_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_DRAFTS_RECI_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmDraftListSelectedForm--*/
+extern const int IDA_DRAFT_LIST_SELECTED_FOOTER_DELETE;
+extern const int IDA_DRAFT_LIST_SELECTED_FOOTER_CANCEL;
+
+/*--DraftListUserForm--*/
+extern const int IDA_DRAFT_LIST_USER_FORM_FOOTER_UPDATE;
+extern const int IDA_DRAFT_LIST_USER_FORM_FOOTER_ACCOUNTS;
+extern const int IDA_DRAFT_LIST_USER_FORM_FOOTER_COMPOSE;
+extern const int IDA_DRAFT_LIST_USER_FORM_MAIL_SUBJECT;
+extern const int IDA_DRAFT_LIST_USER_FORM_MAIL_RECIPIENT;
+extern const int IDA_DRAFT_LIST_USER_FORM_MAIL_MESSAGE;
+extern const int IDA_DRAFT_LIST_USER_FORM_MAIL_DATE;
+extern const int IDA_DRAFT_LIST_USER_FORM_CONTEXT_DELETE;
+
+/*--DraftListUserSelectedForm--*/
+extern const int IDA_DRAFT_LIST_USER_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_DRAFT_LIST_USER_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_DRAFT_LIST_USER_SELECTED_FORM_FOOTER_UNREAD;
+extern const int IDA_DRAFT_LIST_USER_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmEmailComposerForm--*/
+extern const int IDA_COMPOSER_FORM_BUTTON_SEND;
+extern const int IDA_COMPOSER_FORM_BUTTON_CANCEL;
+extern const int IDA_HEADER_CONTEXTMENU_ATTACH_FILES;
+extern const int IDA_HEADER_CONTEXTMENU_ADD_CC_BCC;
+
+/*--EmEmailManualSetUpForm--*/
+extern const int IDA_FOOTER_MANUAL_SETUP_DONE;
+extern const int IDA_INCOMING_SERVER_TYPE;
+extern const int IDA_INCOMING_SECURE_CONNECTION;
+extern const int IDA_OUTGOING_SECURE_CONNECTION;
+extern const int IDA_INCOMING_SERVER_TYPE_CLOSED;
+extern const int IDA_INCOMING_SECURE_CONNECTION_CLOSED;
+extern const int IDA_OUTGOING_SECURE_CONNECTION_CLOSED;
+extern const int IDA_MANUAL_SETUP_FORM_EXPAND_COLLAPSE;
+
+/*--EmEmailDetailForm--*/
+extern const int IDA_EMAIL_DETAIL_FORM_FOOTER_DELETE;
+extern const int IDA_EMAIL_DETAIL_FORM_FOOTER_REPLY;
+extern const int IDA_EMAIL_DETAIL_FORM_TO_CC_EXPAND_COLLAPSE;
+extern const int IDA_EMAIL_DETAIL_FORM_ATTACHMENT_EXPAND_COLLAPSE;
+extern const int IDA_EMAIL_DETAIL_FORM_SENDEMAIL_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_BLOCK_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_DOWNLOAD_BUTTON;
+extern const int IDA_EMAIL_DETAIL_FORM_REPLYSENDER_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_REPLYALL_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_MOVE_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_MARK_UNREAD_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_ADD_TO_CALENDER_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_ADDCONTACT1_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_BLOCK1_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_MARK_READ_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_FORWARD_POPUP;
+extern const int IDA_EMAIL_DETAIL_FORM_UNBLOCK_POPUP;
+
+extern const int IDA_EMAIL_DETAIL_FORM_UPDATE_ATTACHMENT_COUNT;
+
+extern const int IDA_EMAIL_DETAIL_FORM_DELETE_CONFIRMATION_YES;
+extern const int IDA_EMAIL_DETAIL_FORM_DELETE_CONFIRMATION_NO;
+extern const int IDA_EMAIL_DETAIL_FORM_FAVORITE_BUTTON;
+
+/*--EmEmailListForm--*/
+extern const int IDA_EMAIL_LIST_FORM_UPDATE_FOOTER_BUTTON;
+extern const int IDA_EMAIL_LIST_FORM_ACCOUNTS_FOOTER_BUTTON;
+extern const int IDA_EMAIL_LIST_FORM_MORE_FOOTER_BUTTON;
+extern const int IDA_EMAIL_LIST_FORM_VIEW_FOOTER;
+extern const int IDA_EMAIL_LIST_FORM_COMPOSE_FOOTER;
+extern const int IDA_EMAIL_LIST_FORM_BTN_POPUP_CANCEL;
+extern const int IDA_EMAIL_LIST_FORM_REPLY_BUTTON;
+extern const int IDA_EMAIL_LIST_FORM_DELETE_BUTTON;
+extern const int IDA_EMAIL_LIST_FORM_MAIL_SUBJECT;
+extern const int IDA_EMAIL_LIST_FORM_MAIL_RECIPIENT;
+extern const int IDA_EMAIL_LIST_FORM_MAIL_MESSAGE;
+extern const int IDA_EMAIL_LIST_FORM_MAIL_DATE;
+extern const int IDA_EMAIL_LIST_FORM_FORMAT_IMPORTANT;
+extern const int IDA_EMAIL_LIST_FORM_MARK_AS_READ_BUTTON;
+extern const int IDA_EMAIL_LIST_FORM_MARK_AS_UNREAD_BUTTON;
+extern const int IDA_EMAIL_LIST_FORM_BLOCK_BUTTON;
+
+/*--EmEmailListReciSelectedForm--*/
+extern const int IDA_EMAIL_LIST_RECI_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_EMAIL_LIST_RECI_SELECTED_FORM_FOOTER_MOVE;
+extern const int IDA_EMAIL_LIST_RECI_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_EMAIL_LIST_RECI_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmEmailListSelectedForm--*/
+extern const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_MARK_AS_UNREAD;
+extern const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_CANCEL;
+extern const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_CONTEXTMENU_UNREAD;
+extern const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_CONTEXTMENU_CANCEL;
+
+/*--EmEmailListUserForm--*/
+extern const int IDA_EMAIL_LIST_USER_FORM_FOOTER_UPDATE;
+extern const int IDA_EMAIL_LIST_USER_FORM_FOOTER_ACCOUNTS;
+extern const int IDA_EMAIL_LIST_USER_FORM_FOOTER_COMPOSE;
+extern const int IDA_EMAIL_LIST_USER_FORM_MAIL_SUBJECT;
+extern const int IDA_EMAIL_LIST_USER_FORM_MAIL_RECIPIENT;
+extern const int IDA_EMAIL_LIST_USER_FORM_MAIL_MESSAGE;
+extern const int IDA_EMAIL_LIST_USER_FORM_MAIL_DATE;
+extern const int IDA_EMAIL_LIST_USER_FORM_REPLY_BUTTON;
+extern const int IDA_EMAIL_LIST_USER_FORM_MARK_AS_READ_BUTTON;
+extern const int IDA_EMAIL_LIST_USER_FORM_MARK_AS_UNREAD_BUTTON;
+extern const int IDA_EMAIL_LIST_USER_FORM_BLOCK_BUTTON;
+extern const int IDA_EMAIL_LIST_USER_FORM_CONTEXT_DELETE;
+extern const int IDA_EMAIL_LIST_USER_FORM_FORMAT_IMPORTANT;
+
+/*--EmEmailListUserSelectedForm--*/
+extern const int IDA_ALL_MAILS_USER_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_ALL_MAILS_USER_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_ALL_MAILS_USER_SELECTED_FORM_FOOTER_UNREAD;
+extern const int IDA_ALL_MAILS_USER_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmEmailSettingForm--*/
+extern const int IDA_EMAIL_SETTING_FORM_BUTTON_SHOW_EMAIL;
+extern const int IDA_EMAIL_SETTING_FORM_BUTTON_BLOCK_EMAIL;
+extern const int IDA_EMAIL_SETTING_FORM_ELEMENT_ACCOUNT_NAME;
+extern const int IDA_EMAIL_SETTING_FORM_ELEMENT_ACCOUNT_ADDRESS;
+extern const int IDA_EMAIL_SETTING_FORM_BUTTON_DEFAULT_ACCOUNT;
+extern const int IDA_EMAIL_SETTING_FORM_FOOTER_ADD_ACCOUNT;
+extern const int IDA_EMAIL_SETTING_FORM_ELEMENT_ACCOUNT_BITMAP;
+extern const int IDA_EMAIL_SETTING_FORM_ELEMENT_SELECTED_COLOR_BITMAP;
+extern const int IDA_EMAIL_SETTING_FORM_ELEMENT_CHOOSE_COLOR_BITMAP;
+extern const int IDA_EMAIL_SETTING_FORM_ELEMENT_STRING;
+extern const int IDA_EMAIL_SETTING_FORM_ELEMENT_STRING1;
+
+extern const int IDA_EMAIL_SETTING_FORM_BUTTON_SAVE_COLOR;
+extern const int IDA_EMAIL_SETTING_FORM_BUTTON_CANCEL_COLOR;
+
+/*--EmForwardForm--*/
+extern const int IDA_FORWARD_FORM_BUTTON_SEND;
+extern const int IDA_FORWARD_FORM_BUTTON_CANCEL;
+
+/*--EmImportantMailsForm--*/
+extern const int IDA_IMPORTANT_MAILS_FORM_UPDATE_FOOTER_BUTTON;
+extern const int IDA_IMPORTANT_MAILS_FORM_ACCOUNTS_FOOTER_BUTTON;
+extern const int IDA_IMPORTANT_MAILS_FORM_COMPOSE_FOOTER;
+extern const int IDA_IMPORTANT_MAILS_FORM_REPLY_BUTTON;
+extern const int IDA_IMPORTANT_MAILS_FORM_MARK_AS_READ_BUTTON;
+extern const int IDA_IMPORTANT_MAILS_FORM_MARK_AS_UNREAD_BUTTON;
+extern const int IDA_IMPORTANT_MAILS_FORM_BLOCK_BUTTON;
+extern const int IDA_IMPORTANT_MAILS_FORM_DELETE_BUTTON;
+extern const int IDA_IMPORTANT_MAILS_FORM_FORMAT_IMPORTANT;
+
+/*--EmInboxForm--*/
+extern const int IDA_INBOX_FORM_HEADER_SEARCH_BUTTON;
+extern const int IDA_INBOX_FORM_HEADER_UPDATE_BUTTON;
+
+extern const int IDA_INBOX_FORM_FOOTER_COMPOSE_BUTTON;
+extern const int IDA_INBOX_FORM_FOOTER_DELETE_BUTTON;
+extern const int IDA_INBOX_FORM_FOOTER_FOLDER_BUTTON;
+extern const int IDA_INBOX_FORM_FOOTER_MOVE_BUTTON;
+
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_SORT_BY;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_DELETE_ALL;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_ADD_ACCOUNT;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_SETTINGS;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_MARK_UNREAD;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_MARK_READ;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_MARK_ALL_AS;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_SET_UNFAVOURITES;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_SET_FAVOURITES;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_SET_ALL_AS;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_BLOCK;
+
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_FOLDER_VIEW;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_INBOX;
+//extern const int IDA_INBOX_FORM_CONTEXT_MENU_FAVORITES;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_DRAFTS;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_SENTBOX;
+extern const int IDA_INBOX_FORM_CONTEXT_MENU_ALL_FOLDERS;
+
+
+extern const int IDA_INBOX_FORM_ACCOUNTS_FOOTER_BUTTON;
+extern const int IDA_INBOX_FORM_BTN_POPUP_CANCEL;
+extern const int IDA_INBOX_FORM_REPLY_BUTTON;
+extern const int IDA_INBOX_FORM_MARK_AS_READ_BUTTON;
+extern const int IDA_INBOX_FORM_MARK_AS_UNREAD_BUTTON;
+extern const int IDA_INBOX_FORM_FORWARD_BUTTON;
+extern const int IDA_INBOX_FORM_DELETE_BUTTON;
+extern const int IDA_INBOX_FORM_BTN_MARK_ALL_AS_POPUP_CLOSE;
+extern const int IDA_INBOX_FORM_BTN_SET_ALL_AS_POPUP_CANCEL;
+extern const int IDA_INBOX_FORM_MAIL_SUBJECT;
+extern const int IDA_INBOX_FORM_MAIL_RECIPIENT;
+extern const int IDA_INBOX_FORM_MAIL_MESSAGE;
+extern const int IDA_INBOX_FORM_MAIL_DATE;
+extern const int IDA_INBOX_FORM_FORMAT_IMPORTANT;
+
+extern const int IDA_INBOX_FORM_DELETE_CONFIRMATION_NO;
+extern const int IDA_INBOX_FORM_DELETE_CONFIRMATION_YES;
+
+/*--EmInboxReciSelectedForm--*/
+extern const int IDA_INBOX_RECI_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_INBOX_RECI_SELECTED_FORM_FOOTER_MOVE;
+extern const int IDA_INBOX_RECI_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_INBOX_RECI_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmInboxSelectedForm--*/
+extern const int IDA_INBOX_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_INBOX_SELECTED_FORM_FOOTER_MOVE;
+extern const int IDA_INBOX_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_INBOX_SELECTED_FORM_FOOTER_MORE;
+extern const int IDA_INBOX_SELECTED_FORM_FOOTER_CONTEXTMENU_UNREAD;
+extern const int IDA_INBOX_SELECTED_FORM_FOOTER_CONTEXTMENU_CANCEL;
+
+/*--EmInboxUserForm--*/
+extern const int IDA_INBOX_USER_FORM_FOOTER_UPDATE;
+extern const int IDA_INBOX_USER_FORM_FOOTER_ACCOUNTS;
+extern const int IDA_INBOX_USER_FORM_FOOTER_COMPOSE;
+extern const int IDA_INBOX_USER_FORM_MAIL_SUBJECT;
+extern const int IDA_INBOX_USER_FORM_MAIL_RECIPIENT;
+extern const int IDA_INBOX_USER_FORM_MAIL_MESSAGE;
+extern const int IDA_INBOX_USER_FORM_MAIL_DATE;
+extern const int IDA_INBOX_USER_FORM_CONTEXT_DELETE;
+extern const int IDA_INBOX_USER_FORM_FORMAT_IMPORTANT;
+
+/*--EmInboxUserSelectedForm--*/
+extern const int IDA_INBOX_USER_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_INBOX_USER_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_INBOX_USER_SELECTED_FORM_FOOTER_UNREAD;
+extern const int IDA_INBOX_USER_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmMovemailForm--*/
+extern const int IDA_MOVE_MAIL_FORM_MOVE_OPTION;
+
+/*--EmMovemailSelectedForm--*/
+extern const int IDA_MOVE_MAIL_SELECTED_FORM_FOOTER_MOVEHERE;
+extern const int IDA_MOVE_MAIL_SELECTED_FORM_FOOTER_CANCEL;
+extern const int IDA_MOVE_MAIL_SELECTED_FORM_MOVE_OPTION;
+
+/*--EmOutboxForm--*/
+extern const int IDA_OUTBOX_FORM_FOOTER_UPDATE;
+extern const int IDA_OUTBOX_FORM_FOOTER_ACCOUNTS;
+extern const int IDA_OUTBOX_FORM_FOOTER_MORE;
+extern const int IDA_OUTBOX_FORM_FOOTER_CONTEXTMENU_VIEW;
+extern const int IDA_OUTBOX_FORM_FOOTER_CONTEXTMENU_COMPOSE;
+extern const int IDA_OUTBOX_FORM_MAIL_SUBJECT;
+extern const int IDA_OUTBOX_FORM_MAIL_RECIPIENT;
+extern const int IDA_OUTBOX_FORM_MAIL_MESSAGE;
+extern const int IDA_OUTBOX_FORM_CONTEXT_DELETE;
+extern const int IDA_OUTBOX_FORM_POPUP_CLOSE;
+
+/*--EmOutboxSelectedForm--*/
+extern const int IDA_OUTBOX_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_OUTBOX_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmOutboxUserForm--*/
+extern const int IDA_OUTBOX_USER_FORM_FOOTER_UPDATE;
+extern const int IDA_OUTBOX_USER_FORM_FOOTER_ACCOUNTS;
+extern const int IDA_OUTBOX_USER_FORM_FOOTER_COMPOSE;
+extern const int IDA_OUTBOX_USER_FORM_MAIL_SUBJECT;
+extern const int IDA_OUTBOX_USER_FORM_MAIL_RECIPIENT;
+extern const int IDA_OUTBOX_USER_FORM_MAIL_MESSAGE;
+extern const int IDA_OUTBOX_USER_FORM_CONTEXT_DELETE;
+
+/*--EmOutboxUserSelectedForm--*/
+extern const int IDA_OUTBOX_USER_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_OUTBOX_USER_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_OUTBOX_USER_SELECTED_FORM_FOOTER_UNREAD;
+extern const int IDA_OUTBOX_USER_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmRecipientField--*/
+extern const int IDA_UPDATE_TOKEN_COUNT;
+
+/*--EmReplyForm--*/
+extern const int IDA_REPLY_FORM_OK_BUTTON;
+extern const int IDA_REPLY_FORM_SEND_BUTTON;
+extern const int IDA_REPLY_FORM_CANCEL_BUTTON;
+
+/*--EmSearchPresentationModel--*/
+extern const int IDA_SEARCH_PRESENTATION_MODEL_MAIL_SUBJECT;
+extern const int IDA_SEARCH_PRESENTATION_MODEL_MAIL_RECIPIENT;
+extern const int IDA_SEARCH_PRESENTATION_MODEL_MAIL_MESSAGE;
+extern const int IDA_SEARCH_PRESENTATION_MODEL_MAIL_DATE;
+extern const int IDA_SEARCH_PRESENTATION_MODEL_FORMAT_IMPORTANT;
+extern const int IDA_SEARCH_PRESENTATION_MODEL_ATTACH;
+
+/*--EmSentboxForm--*/
+extern const int IDA_SENTBOX_FORM_UPDATE_FOOTER_BUTTON;
+extern const int IDA_SENTBOX_FORM_ACCOUNTS_FOOTER_BUTTON;
+extern const int IDA_SENTBOX_FORM_MORE_FOOTER_BUTTON;
+extern const int IDA_SENTBOX_FORM_VIEW_FOOTER;
+extern const int IDA_SENTBOX_FORM_COMPOSE_FOOTER;
+extern const int IDA_SENTBOX_FORM_BTN_POPUP_CANCEL;
+extern const int IDA_SENTBOX_FORM_REPLY_BUTTON;
+extern const int IDA_SENTBOX_FORM_BLOCK_BUTTON;
+extern const int IDA_SENTBOX_FORM_DELETE_BUTTON;
+extern const int IDA_SENTBOX_FORM_MAIL_SUBJECT;
+extern const int IDA_SENTBOX_FORM_MAIL_RECIPIENT;
+extern const int IDA_SENTBOX_FORM_MAIL_MESSAGE;
+extern const int IDA_SENTBOX_FORM_MAIL_DATE;
+extern const int IDA_SENTBOX_FORM_FORMAT_IMPORTANT;
+
+/*--EmSentboxReciSelectedForm--*/
+extern const int IDA_SENTBOX_RECI_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_SENTBOX_RECI_SELECTED_FORM_FOOTER_MOVE;
+extern const int IDA_SENTBOX_RECI_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_SENTBOX_RECI_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmSentboxSelectedForm--*/
+extern const int IDA_SENTBOX_SELECTED_FOOTER_DELETE;
+extern const int IDA_SENTBOX_SELECTED_FOOTER_MOVE;
+extern const int IDA_SENTBOX_SELECTED_FOOTER_BLOCK;
+extern const int IDA_SENTBOX_SELECTED_FOOTER_MORE;
+extern const int IDA_SENTBOX_SELECTED_FOOTER_CONTEXTMENU_UNREAD;
+extern const int IDA_SENTBOX_SELECTED_FOOTER_CONTEXTMENU_CANCEL;
+
+/*--EmSentboxUserForm--*/
+extern const int IDA_SENTBOX_USER_FORM_FOOTER_UPDATE;
+extern const int IDA_SENTBOX_USER_FORM_FOOTER_ACCOUNTS;
+extern const int IDA_SENTBOX_USER_FORM_FOOTER_COMPOSE;
+extern const int IDA_SENTBOX_USER_FORM_MAIL_SUBJECT;
+extern const int IDA_SENTBOX_USER_FORM_MAIL_RECIPIENT;
+extern const int IDA_SENTBOX_USER_FORM_MAIL_MESSAGE;
+extern const int IDA_SENTBOX_USER_FORM_MAIL_DATE;
+extern const int IDA_SENTBOX_USER_FORM_CONTEXT_REPLY;
+extern const int IDA_SENTBOX_USER_FORM_CONTEXT_DELETE;
+extern const int IDA_SENTBOX_USER_FORM_FORMAT_IMPORTANT;
+
+/*--EmSentboxUserSelectedForm--*/
+extern const int IDA_SENTBOX_USER_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_SENTBOX_USER_SELECTED_FORM_FOOTER_MOVE;
+extern const int IDA_SENTBOX_USER_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmSpamboxForm--*/
+extern const int IDA_SPAMBOX_FORM_FOOTER_DELETEALL;
+extern const int IDA_SPAMBOX_FORM_FOOTER_UPDATE;
+extern const int IDA_SPAMBOX_FORM_FOOTER_MORE;
+extern const int IDA_SPAMBOX_FORM_FOOTER_CONTEXTMENU_ACCOUNTS;
+extern const int IDA_SPAMBOX_FORM_FOOTER_CONTEXTMENU_COMPOSE;
+extern const int IDA_SPAMBOX_FORM_MAIL_SUBJECT;
+extern const int IDA_SPAMBOX_FORM_MAIL_RECIPIENT;
+extern const int IDA_SPAMBOX_FORM_MAIL_MESSAGE;
+extern const int IDA_SPAMBOX_FORM_MAIL_DATE;
+extern const int IDA_SPAMBOX_FORM_FORMAT_IMPORTANT;
+extern const int IDA_SPAMBOX_FORM_MARK_AS_READ_BUTTON;
+extern const int IDA_SPAMBOX_FORM_MARK_AS_UNREAD_BUTTON;
+extern const int IDA_SPAMBOX_FORM_DELETE_BUTTON;
+
+/*--EmSpamboxSelectedForm--*/
+extern const int IDA_SPAMBOX_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_SPAMBOX_SELECTED_FORM_FOOTER_MOVE;
+extern const int IDA_SPAMBOX_SELECTED_FORM_FOOTER_UNREAD;
+extern const int IDA_SPAMBOX_SELECTED_FORM_FOOTER_CANCEL;
+extern const int IDA_SPAMBOX_SELECTED_FORM_FORMAT_IMPORTANT;
+
+/*--EmTrashForm--*/
+extern const int IDA_TRASH_FORM_FOOTER_UPDATE;
+extern const int IDA_TRASH_FORM_FOOTER_ACCOUNTS;
+extern const int IDA_TRASH_FORM_FOOTER_MORE;
+extern const int IDA_TRASH_FORM_FOOTER_CONTEXTMENU_VIEW;
+extern const int IDA_TRASH_FORM_FOOTER_CONTEXTMENU_COMPOSE;
+extern const int IDA_TRASH_FORM_FOOTER_CONTEXTMENU_DELETEALL;
+extern const int IDA_TRASH_FORM_MAIL_SUBJECT;
+extern const int IDA_TRASH_FORM_MAIL_RECIPIENT;
+extern const int IDA_TRASH_FORM_MAIL_MESSAGE;
+extern const int IDA_TRASH_FORM_MAIL_DATE;
+extern const int IDA_TRASH_FORM_MARK_AS_READ_BUTTON;
+extern const int IDA_TRASH_FORM_MARK_AS_UNREAD_BUTTON;
+extern const int IDA_TRASH_FORM_BLOCK_BUTTON;
+extern const int IDA_TRASH_FORM_CONTEXT_DELETE;
+extern const int IDA_TRASH_FORM_FORMAT_IMPORTANT;
+extern const int IDA_TRASH_FORM_POPUP_CLOSE;
+extern const int IDA_TRASH_FORM_POPUP_DELETE;
+
+/*--EmTrashReciSelectedForm--*/
+extern const int IDA_TRASH_RECI_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_TRASH_RECI_SELECTED_FORM_FOOTER_MOVE;
+extern const int IDA_TRASH_RECI_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_TRASH_RECI_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmTrashSelectedForm--*/
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_MOVE;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_MORE;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_CONTEXTMENU_UNREAD;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_CONTEXTMENU_CANCEL;
+
+/*--EmTrashUserForm--*/
+extern const int IDA_TRASH_USER_FORM_FOOTER_UPDATE;
+extern const int IDA_TRASH_USER_FORM_FOOTER_ACCOUNTS;
+extern const int IDA_TRASH_USER_FORM_FOOTER_COMPOSE;
+extern const int IDA_TRASH_USER_FORM_MAIL_SUBJECT;
+extern const int IDA_TRASH_USER_FORM_MAIL_RECIPIENT;
+extern const int IDA_TRASH_USER_FORM_MAIL_MESSAGE;
+extern const int IDA_TRASH_USER_FORM_MAIL_DATE;
+extern const int IDA_TRASH_USER_FORM_CONTEXT_MARK_AS_READ_BUTTON;
+extern const int IDA_TRASH_USER_FORM_CONTEXT_MARK_AS_UNREAD_BUTTON;
+extern const int IDA_TRASH_USER_FORM_CONTEXT_BLOCK;
+extern const int IDA_TRASH_USER_FORM_CONTEXT_DELETE;
+extern const int IDA_TRASH_USER_FORM_FORMAT_IMPORTANT;
+
+/*--EmTrashUserSelectedForm--*/
+extern const int IDA_TRASH_USER_SELECTED_FORM_FOOTER_DELETE;
+extern const int IDA_TRASH_USER_SELECTED_FORM_FOOTER_BLOCK;
+extern const int IDA_TRASH_USER_SELECTED_FORM_FOOTER_UNREAD;
+extern const int IDA_TRASH_USER_SELECTED_FORM_FOOTER_CANCEL;
+
+/*--EmSearchForm--*/
+extern const int IDA_SEARCH_FORM_CANCEL_BUTTON;
+extern const int IDA_SEARCH_FORM_OPTIONS_BUTTON;
+extern const int IDA_SEARCH_FORM_SEARCH_ALL;
+extern const int IDA_SEARCH_FORM_SEARCH_TITLE;
+extern const int IDA_SEARCH_FORM_SEARCH_SENDER;
+extern const int IDA_SEARCH_FORM_SEARCH_DATE;
+extern const int IDA_SEARCH_FORM_SEARCH_ADVANCED;
+
+/*--EmSplitViewForm--*/
+extern const int IDA_SPLIT_VIEW_FORM_EDIT_MODE;
+extern const int IDA_SPLIT_VIEW_FORM_EMPTY_MODE;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_MODE;
+extern const int IDA_SPLIT_VIEW_FORM_SEARCH_MODE;
+extern const int IDA_SPLIT_VIEW_FORM_SEARCH_SELECTED_MODE;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_UPDATE_BODY;
+extern const int IDA_SPLIT_VIEW_FORM_UPDATE_GROUPED_LISTVIEW;
+extern const int IDA_SPLIT_VIEW_FORM_COMPOSE;
+extern const int IDA_SPLIT_VIEW_FORM_SEARCH;
+extern const int IDA_SPLIT_VIEW_FORM_ADD_ACCOUNT;
+extern const int IDA_SPLIT_VIEW_FORM_SETTINGS;
+extern const int IDA_SPLIT_VIEW_FORM_DELETE_SELECTED_MAILS;
+extern const int IDA_SPLIT_VIEW_FORM_BLOCK_SELECTED_MAILS;
+extern const int IDA_SPLIT_VIEW_FORM_DELETE_ALL;
+extern const int IDA_SPLIT_VIEW_FORM_MOVE_SELECTED_MAILS;
+extern const int IDA_SPLIT_VIEW_FORM_UPDATE_MAIL_ITEM;
+extern const int IDA_SPLIT_VIEW_FORM_SEARCH_CANCEL;
+extern const int IDA_SPLIT_VIEW_FORM_SEARCH_FILTER_ALL;
+extern const int IDA_SPLIT_VIEW_FORM_SEARCH_FILTER_TITLE;
+extern const int IDA_SPLIT_VIEW_FORM_SEARCH_FILTER_SENDER;
+extern const int IDA_SPLIT_VIEW_FORM_SEARCH_OPTIONS_BUTTON;
+extern const int IDA_SPLIT_VIEW_FORM_HIDE_SEARCH_KEYPAD;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SHOW_OPTION_MENU;
+
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_DELETE;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_REPLY;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_BLOCK;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_MARK_AS_READ;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_MARK_AS_UNREAD;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_MOVE;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_REPLYALL;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_REPLYSENDER;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FAVOURITE_ICON;
+extern const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_FORWARD;
+extern const int IDA_SPLIT_VIEW_FORM_SHOW_DOWNLOAD_FAILED_MSGBOX;
+extern const int IDA_SPLIT_VIEW_FORM_SHOW_SORT_BY_POPUP;
+extern const int IDA_SPLIT_VIEW_FORM_SHOW_MARK_ALL_AS_POPUP;
+extern const int IDA_SPLIT_VIEW_FORM_SHOW_SET_ALL_AS_POPUP;
+
+extern const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_INBOX;
+extern const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_FAVORITES;
+extern const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_DRAFTS;
+extern const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_SENTBOX;
+extern const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_ALL_FOLDERS;
+
+extern const int IDA_SPLIT_VIEW_FORM_DELETE_CONFIRMATION_NO;
+extern const int IDA_SPLIT_VIEW_FORM_DELETE_CONFIRMATION_YES;
+
+/*--EmSplitViewDetailForm--*/
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_TO_CC_BUTTON;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_FAVOURITE_BUTTON;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_ATTACH_BUTTON;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_MORE_BUTTON;
+extern const int IDA_SPLIT_VIEW_FORM_BTN_SORT_BY_POPUP_CANCEL;
+extern const int IDA_SPLIT_VIEW_FORM_BTN_MARK_ALL_AS_POPUP_CANCEL;
+extern const int IDA_SPLIT_VIEW_FORM_BTN_SET_ALL_AS_POPUP_CANCEL;
+
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_INBOX;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FAVORITES;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_DRAFTS;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SENTBOX;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_ALL_FOLDERS;
+
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_COMPOSE_BUTTON;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_DELETE_BUTTON;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_FOLDERS_BUTTON;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_MOVE_BUTTON;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_DELETE;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_REPLY;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_BLOCK;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_MARK_AS_READ;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_MARK_AS_UNREAD;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_MOVE;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_REPLYALL;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_REPLYSENDER;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_FORWARD;
+
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SORT_BY;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_DELETE_ALL;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_ADD_ACCOUNT;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SETTINGS;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_MARK_UNREAD;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_MARK_READ;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_MARK_ALL_AS;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SET_UNFAVOURITE;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SET_FAVOURITE;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SET_ALL_AS;
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_BLOCK;
+
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_UPDATE_ATTACHMENT_COUNT;
+
+extern const int IDA_SPLIT_VIEW_DETAIL_FORM_DOWNLOAD_BUTTON;
+
+/*--EmAccountConfiguration--*/
+extern const int IDA_ACCOUNT_CONFIG_FORM_FOOTER_DELETE;
+
+/*--Common--*/
+extern const int MIN_MEMORY_NEEDED;
+extern const int IDA_SHOW_VIEW_MODE_POPUP;
+extern const int IDA_SHOW_MARK_ALL_AS_POPUP;
+extern const int IDA_SHOW_SET_ALL_AS_POPUP;
+extern const int IDA_ATTACHMENT_DOWNLOAD_FAILED_OK;
+extern const int IDA_MOVE_OR_DELETE_FAILED_OK;
+
+/**********************************************************************************/
+
+/*******************\
+*  Control Names    *
+\*******************/
+
+/*--EmEmailManualSetUpForm--*/
+extern const wchar_t* IDC_MAIN_SECTIONTABLEVIEW;
+
+/************************************************************************************************/
+
+/*******************\
+*  String constants *
+\*******************/
+
+/*--Common--*/
+extern const wchar_t* IDS_TIZEN_APPID_FILEMANAGER;
+extern const wchar_t* IDS_TIZEN_APPID_CONTACTS;
+extern const wchar_t* IDS_TIZEN_APPID_IMAGEVIEWER;
+extern const wchar_t* IDS_TIZEN_APPID_MUSICPLAYER;
+extern const wchar_t* IDS_TIZEN_APPID_VIDEOPLAYER;
+extern const wchar_t* IDS_TIZEN_APPID_INTERNET;
+extern const wchar_t* IDS_TIZEN_APPID_CALENDAR;
+
+extern const wchar_t* IDS_TIZEN_OPERATIONID_SOCIAL_VIEW;
+extern const wchar_t* IDS_TIZEN_OPERATIONID_SOCIAL_PICK;
+extern const wchar_t* IDS_TIZEN_OPERATIONID_PICK;
+extern const wchar_t* IDS_TIZEN_OPERATIONID_VIEW;
+extern const wchar_t* IDS_TIZEN_OPERATIONID_COMPOSE;
+extern const wchar_t* IDS_TIZEN_OPERATIONID_SHARE_TEXT;
+extern const wchar_t* IDS_TIZEN_OPERATIONID_CONFIGURE;
+extern const wchar_t* IDS_TIZEN_OPERATIONID_ACCOUNT_ADD;
+extern const wchar_t* IDS_TIZEN_OPERATIONID_ACCOUNT_CONFIGURE;
+
+extern const wchar_t* IDS_TIZEN_APPCONTROL_KEY_ACCOUNT_ID;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_KEY_SELECTION_MODE;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_KEY_SOCIAL_EMAIL;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_KEY_ITEM_TYPE;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_KEY_RESULT_TYPE;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_KEY_SELECTED;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_KEY_PATH;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_KEY_TYPE;
+
+extern const wchar_t* IDS_TIZEN_APPCONTROL_VAL_ALL;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_VAL_MULTIPLE;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_VAL_SINGLE;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_VAL_PERSON;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_VAL_EMAIL;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_VAL_AUDIO;
+extern const wchar_t* IDS_TIZEN_APPCONTROL_VAL_VIDEO;
+
+extern const wchar_t* IDS_DELIM_SEMICOLON;
+
+//extern const wchar_t* IDS_ADDRESS_ALREADY_ADDED;
+extern const wchar_t* IDS_SAVE_FAILED;
+
+extern const wchar_t* IDS_SEARCH_SENDER;
+extern const wchar_t* IDS_SEARCH_DATE;
+extern const wchar_t* IDS_SEARCH_ADVANCED;
+
+/************************************************************************************************/
+
+/**********************\
+* Integer constants    *
+\**********************/
+
+extern const int EMAIL_DEFAULT_SIZE;
+extern const int MAX_EMAIL_BODY_LENGTH;
+extern const int MAX_EMAIL_SUBJ_LENGTH;
+
+/************************************************************************************************/
+
+/********************\
+*  Bitmap file paths *
+\********************/
+
+extern const wchar_t* IDB_WAIT_CURSOR_IMAGE_BASE;
+extern const wchar_t* IDB_DOWN_ARROW_BTN;
+extern const wchar_t* IDB_NORMAL_BACKGROUND;
+extern const wchar_t* IDB_SELECTED_BACKGROUND;
+extern const wchar_t* IDB_DOWN_ARROW_PRESS_BTN;
+extern const wchar_t* IDB_UP_ARROW_BTN;
+extern const wchar_t* IDB_UP_ARROW_PRESS_BTN;
+extern const wchar_t* IDB_DUMMY_GMAIL_BITMAP_PATH;
+extern const wchar_t* IDB_IMPORTANT;
+extern const wchar_t* IDB_UNIMPORTANT;
+extern const wchar_t* IDB_DETAIL_IMPORTANT;
+extern const wchar_t* IDB_DETAIL_UNIMPORTANT;
+extern const wchar_t* IDB_ADDCONTACT;
+extern const wchar_t* IDB_CIRCLE;
+extern const wchar_t* IDB_DELETE_ATTACHMENT;
+extern const wchar_t* IDB_DELETE_ATTACHMENT_PRESSED;
+extern const wchar_t* IDB_DOWNLOAD_ATTACHMENT;
+extern const wchar_t* IDB_DOWNLOAD_ATTACHMENT_PRESSED;
+extern const wchar_t* IDB_ATTACHMENT_ETC_ICON;
+extern const wchar_t* IDB_ATTACHMENT_MULTI_ICON;
+extern const wchar_t* IDB_FORWARDARROW;
+extern const wchar_t* IDB_FORWARDARROWPRESSED;
+extern const wchar_t* IDB_BACKWARDARROW;
+extern const wchar_t* IDB_BACKWARDARROWPRESSED;
+extern const wchar_t* IDB_MINUS;
+extern const wchar_t* IDB_DELETEMESSAGE;
+extern const wchar_t* IDB_REPLYMESSAGE;
+extern const wchar_t* IDB_FORWARDMESSAGE;
+extern const wchar_t* IDB_MORE;
+extern const wchar_t* IDB_ADD_CONTACT_CIRCLE_PRESSED;
+extern const wchar_t* IDB_ATTACHMENT_ICON;
+extern const wchar_t* IDB_DELETE_BUTTON_BACKGROUND_9PATCH;
+extern const wchar_t* IDB_INBOX_TOP_LINE;
+extern const wchar_t* IDB_COMPOSE_MORE;
+extern const wchar_t* IDB_COMPOSE_CC_BCC;
+extern const wchar_t* IDB_COMPOSE_ATTACH;
+extern const wchar_t* IDB_SORT_BY;
+extern const wchar_t* IDB_DELETE_ALL;
+extern const wchar_t* IDB_ADD_ACCOUNT;
+extern const wchar_t* IDB_SETTINGS;
+extern const wchar_t* IDB_MARK_UNREAD;
+extern const wchar_t* IDB_MOVE;
+extern const wchar_t* IDB_BLOCK;
+extern const wchar_t* IDB_ALL_ACCOUNTS;
+extern const wchar_t* IDB_HEADER_ALL_ACCOUNTS_ICON;
+extern const wchar_t* IDB_FORWARD;
+extern const wchar_t* IDB_FAVOURITES;
+
+extern const wchar_t* IDB_SEARCH;
+extern const wchar_t* IDB_SEARCH_ALL_ICON;
+extern const wchar_t* IDB_SEARCH_TITLE_ICON;
+extern const wchar_t* IDB_SEARCH_ALL;
+extern const wchar_t* IDB_SEARCH_TITLE;
+extern const wchar_t* IDB_SEARCH_SENDER;
+extern const wchar_t* IDB_SEARCH_DATE;
+extern const wchar_t* IDB_SEARCH_ADVANCED;
+
+extern const wchar_t* IDB_BUTTON_EXPAND_CLOSED;
+extern const wchar_t* IDB_BUTTON_EXPAND_OPENED;
+extern const wchar_t* IDB_BUTTON_EXPAND_CLOSED_PRESS;
+extern const wchar_t* IDB_BUTTON_EXPAND_OPENED_PRESS;
+extern const wchar_t* IDB_ATTACH_ICON;
+extern const wchar_t* IDB_ATTACH_ICON_PRESSED;
+
+extern const wchar_t* IDB_FOLDER_ICON;
+extern const wchar_t* IDB_INBOX_ICON;
+extern const wchar_t* IDB_SENTBOX_ICON;
+extern const wchar_t* IDB_DRAFTS_ICON;
+extern const wchar_t* IDB_FAVOURITES_ICON;
+extern const wchar_t* IDB_OUTBOX_ICON;
+extern const wchar_t* IDB_SPAMBOX_ICON;
+extern const wchar_t* IDB_TRASH_ICON;
+
+extern const wchar_t* IDB_NO_CONTENTS_ICON;
+
+extern const wchar_t* IDB_UNREADCOUNT_BACKGROUND;
+extern const wchar_t* IDB_UNREADCOUNT_PRESSED_BACKGROUND;
+
+/************************************************************************************************/
+
+extern const wchar_t* IDS_APPCONTROL_REQUEST_KEY_TO;
+extern const wchar_t* IDS_APPCONTROL_REQUEST_KEY_CC;
+extern const wchar_t* IDS_APPCONTROL_REQUEST_KEY_BCC;
+extern const wchar_t* IDS_APPCONTROL_REQUEST_KEY_SUBJECT;
+extern const wchar_t* IDS_APPCONTROL_REQUEST_KEY_TEXT;
+extern const wchar_t* IDS_APPCONTROL_REQUEST_KEY_ATTACH;
+extern const wchar_t* IDS_APPCONTROL_REQUEST_KEY_RETURN_RESULT;
+extern const wchar_t* IDS_APPCONTROL_REQUEST_KEY_SHARE_TEXT;
+extern const wchar_t* IDS_EMAIL_TEXT;
+
+/************************************************************************************************/
+
+/************************\
+* scene ids and form ids *
+\************************/
+extern const wchar_t* IDSCN_ADD_ACCOUNT;
+extern const wchar_t* IDSCN_INBOX;
+extern const wchar_t* IDSCN_EMAIL_COMPOSER;
+extern const wchar_t* IDSCN_EMAIL_DETAIL;
+extern const wchar_t* IDSCN_MOVEMAIL;
+extern const wchar_t* IDSCN_MOVEMAIL_SELECTED;
+extern const wchar_t* IDSCN_EMAIL_SETTING;
+extern const wchar_t* IDSCN_SETTING_SETUP_MAILBOX;
+extern const wchar_t* IDSCN_ADD_ACCOUNT_MANUAL_SETUP;
+extern const wchar_t* IDSCN_ADD_ADDRESS;
+extern const wchar_t* IDSCN_EMAIL_BLOCK;
+extern const wchar_t* IDSCN_ACCOUNT_SETTING;
+extern const wchar_t* IDSCN_ADD_SUBJECT;
+extern const wchar_t* IDSCN_DELETE_ADDRESS_SUBJECT;
+extern const wchar_t* IDSCN_SEARCH;
+extern const wchar_t* IDSCN_SPLIT_VIEW;
+extern const wchar_t* IDSCN_FOLDERS_VIEW;
+extern const wchar_t* IDSCN_ACCOUNT_CONFIG;
+
+extern const wchar_t* ADD_ACCOUNT_FORM;
+extern const wchar_t* INBOX_FORM;
+extern const wchar_t* EMAIL_COMPOSER_FORM;
+extern const wchar_t* EMAIL_DETAIL_FORM;
+extern const wchar_t* MOVEMAIL_FORM;
+extern const wchar_t* MOVEMAIL_SELECTED_FORM;
+extern const wchar_t* EMAIL_SETTING_FORM;
+extern const wchar_t* SETTING_SETUP_MAILBOX_FORM;
+extern const wchar_t* ADD_ACCOUNT_MANUAL_SETUP_FORM;
+extern const wchar_t* ADD_ADDRESS_FORM;
+extern const wchar_t* BLOCK_EMAIL_FORM;
+extern const wchar_t* ACCOUNT_SETTING_FORM;
+extern const wchar_t* ADD_SUBJECT_FORM;
+extern const wchar_t* DELETE_ADDRESS_SUBJECT_FORM;
+extern const wchar_t* SEARCH_FORM;
+extern const wchar_t* SPLIT_VIEW_FORM;
+extern const wchar_t* FOLDERS_VIEW_FORM;
+extern const wchar_t* ACCOUNT_CONFIG_FORM;
+
+/************************************************************************************************/
+
+/************************\
+* Control Names *
+\************************/
+
+/*--InboxForm--*/
+extern const wchar_t* IDC_INBOX_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_INBOX_SELECTED_LABEL;
+extern const wchar_t* IDC_INBOX_ACCOUNTS_LIST_PANEL;
+extern const wchar_t* IDC_INBOX_ACCOUNTS_LISTVIEW;
+
+extern const wchar_t* IDC_SEARCH_SEARCHBAR;
+extern const wchar_t* IDC_SEARCH_OPTIONS_BUTTON;
+extern const wchar_t* IDC_SEARCH_RESULT_GROUPEDLISTVIEW;
+
+/*-SplitViewForm-*/
+extern const wchar_t* IDC_SPLITPANEL;
+extern const wchar_t* IDC_LEFT_PANEL;
+extern const wchar_t* IDC_RIGHT_PANEL;
+
+/*--SplitViewDetailForm--*/
+extern const wchar_t* IDC_TABLE_VIEW;
+extern const wchar_t* IDC_EMPTY_MODE_PANEL;
+extern const wchar_t* IDC_SELECTED_LABEL;
+
+/*--AddAccountform--*/
+extern const wchar_t* IDC_EMAIL_EDITFIELD;
+extern const wchar_t* IDC_USERNAME_EDITFIELD;
+extern const wchar_t* IDC_PASSWORD_EDITFIELD;
+extern const wchar_t* IDC_PASSWORD_NORMAL_EDITFIELD;
+extern const wchar_t* IDC_MANUAL_SETTINGS_BUTTON;
+extern const wchar_t* IDC_SHOW_PASSWORD_CHECKBUTTON;
+
+/*--AccountConfigurationForm--*/
+extern const wchar_t* IDC_ACCOUNT_CONFIG_MAIN_SECTIONTABLEVIEW;
+
+/************************************************************************************************/
+
+// Add Account controls
+extern const wchar_t* IDL_SPLIT_VIEW_DETAIL_FORM;
+extern const wchar_t* IDL_SPLIT_VIEW_FORM;
+extern const wchar_t* IDL_LOGIN_FORM;
+extern const wchar_t* IDL_ALL_FOLDERS;
+extern const wchar_t* IDL_INBOX_LIST_FORM;
+extern const wchar_t* IDL_EMAIL_INBOX_RECI_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_INBOX_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_INBOX_USER_FORM;
+extern const wchar_t* IDL_ALL_MAILS_LIST_FORM;
+extern const wchar_t* IDL_ALL_MAILS_RECI_SELECTED_FORM;
+extern const wchar_t* IDL_ALL_MAILS_SELECTED_FORM;
+extern const wchar_t* IDL_ALL_MAILS_USER_FORM;
+extern const wchar_t* IDL_IMPORTANT_MAILS_LIST;
+extern const wchar_t* IDL_EMAIL_DRAFTS_FORM;
+extern const wchar_t* IDL_DRAFT_RECI_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_OUTBOX_FORM;
+extern const wchar_t* IDL_EMAIL_OUTBOX_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_OUTBOX_USER_FORM;
+extern const wchar_t* IDL_SENTBOX_SELECTED_FORM;
+extern const wchar_t* IDL_SENTBOX_USER_FORM;
+extern const wchar_t* IDL_SENTBOX_RECI_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_SPAMBOX_FORM;
+extern const wchar_t* IDL_EMAIL_SPAMBOX_SELECTED_FORM;
+extern const wchar_t* IDL_TRASH_FORM;
+extern const wchar_t* IDL_EMAIL_TRASH_RECI_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_TRASH_USER_FORM;
+extern const wchar_t* IDL_COMPOSE_FORM;
+extern const wchar_t* IDL_EMAIL_DRAFTS_SELECTED_FORM;
+extern const wchar_t* IDL_DRAFTS_USER_FORM;
+extern const wchar_t* IDL_EMAIL_TRASH_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_TRASH_USER_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_SENTBOX_USER_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_OUTBOX_USER_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_INBOX_USER_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_ALL_MAILS_USER_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_DRAFTS_USER_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_MOVEMAIL_FORM;
+extern const wchar_t* IDL_EMAIL_MOVEMAIL_SELECTED_FORM;
+extern const wchar_t* IDL_EMAIL_DETAIL_FORM;
+extern const wchar_t* IDL_SETUP_MAILBOX_FORM;
+extern const wchar_t* IDL_MANUAL_SETUP_FORM;
+extern const wchar_t* IDL_SETTINGS_FORM;
+extern const wchar_t* IDL_ACCOUNT_SETTINGS_MAIN_FORM;
+extern const wchar_t* IDL_DELETE_ADDRESS_SUBJECT_FORM;
+extern const wchar_t* IDL_BLOCK_FORM;
+extern const wchar_t* IDL_SEARCH_FORM;
+extern const wchar_t* IDL_ACCOUNT_CONFIG_FORM;
+extern const wchar_t* IDL_ADD_ADDRESS_FORM;
+extern const wchar_t* IDL_ADD_SUBJECT_FORM;
+
+extern const wchar_t* IDC_EMAILS_LISTVIEW;
+extern const wchar_t* IDC_ACCOUNTS_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_INBOX_SEARCHBAR;
+extern const wchar_t* IDC_MAIL_INBOX_RECI_SELECTED_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_INBOX_RECI_SELECTED_LABEL;
+extern const wchar_t* IDC_MAIL_INBOX_SELECTED_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_MAIL_INBOX_USER_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_MAIL_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_ALL_MAILS_SELECTED_COUNT_LABEL;
+extern const wchar_t* IDC_ALL_MAILS_SELECTED_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_ALL_MAILS_SELECTED_FORM_SELECTED_COUNT_LABEL;
+extern const wchar_t* IDC_ALL_MAILS_USER_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_MAIL_DRAFTS_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_DRAFTS_SEARCHBAR;
+extern const wchar_t* IDC_OUTBOX_SEARCHBAR;
+extern const wchar_t* IDC_MAIL_OUTBOX_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_MAIL_OUTBOX_SELECTED_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_OUTBOX_SELECTED_LABEL;
+extern const wchar_t* IDC_MAIL_OUTBOX_USER_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_SENT_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_SENTBOX_SEARCHBAR;
+extern const wchar_t* IDC_MAIL_SENTBOX_SELECTED_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_SENTBOX_SELECTED_LABEL;
+extern const wchar_t* IDC_MAIL_SENTBOX_USER_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_MAIL_SENTBOX_RECI_SELECTED_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_SENTBOX_RECI_SELECTED_LABEL;
+extern const wchar_t* IDC_SPAMBOX_SEARCHBAR;
+extern const wchar_t* IDC_MAIL_SPAMBOX_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_MAIL_TRASH_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_TRASH_SEARCHBAR;
+extern const wchar_t* IDC_MAIL_TRASH_RECI_SELECTED_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_TRASH_RECI_SELECTED_LABEL;
+extern const wchar_t* IDC_MAIL_TRASH_SELECTED_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_TRASH_SELECTED_LABEL;
+extern const wchar_t* IDC_MAIL_TRASH_USER_GROUPEDLISTVIEW;
+extern const wchar_t* IDC_SHOWEMAIL_LISTVIEW;
+extern const wchar_t* IDC_DEFAULTACCOUNT_LISTVIEW;
+extern const wchar_t* IDC_DETAILLISTACCOUNT_LISTVIEW;
+extern const wchar_t* IDC_SELECTEDCOLOR_ICONLISTVIEW;
+extern const wchar_t* IDC_STAR_LABEL;
+extern const wchar_t* IDC_DRAFTS_SELECTED_LABEL;
+extern const wchar_t* IDC_ALL_MAILS_SEARCHBAR;
+extern const wchar_t* IDC_OPTION_TRAY;
+extern const wchar_t* IDC_TO_BASE_PANEL;
+extern const wchar_t* IDC_CC_BASE_PANEL;
+extern const wchar_t* IDC_BCC_BASE_PANEL;
+extern const wchar_t* IDC_ATTACHMENT_BASE_PANEL;
+extern const wchar_t* IDC_MOVEMAIL_LISTVIEW;
+extern const wchar_t* IDC_MOVEMAIL_SELECTED_LISTVIEW;
+extern const wchar_t* IDC_ALL_MAILS_LABEL;
+extern const wchar_t* IDC_ALL_MAILS_USER_SEARCHBAR;
+extern const wchar_t* IDC_OUTBOX_USER_SEARCHBAR;
+extern const wchar_t* IDC_SENTBOX_USER_SEARCHBAR;
+extern const wchar_t* IDC_TRASH_USER_SEARCHBAR;
+extern const wchar_t* IDC_LABEL;
+extern const wchar_t* IDC_POPUP_LINE1_LABEL;
+extern const wchar_t* IDC_IMPORTANT_MAILS_SEARCHBAR;
+extern const wchar_t* IDC_ATTACHMENT_PANEL_GROUPITEM_TEXT;
+extern const wchar_t* IDC_DRAFTS_SEARCHBAR;
+extern const wchar_t* IDC_SETUP_MAILBOX_LISTVIEW;
+extern const wchar_t* IDC_INCOMING_SETTINGS_GROUPED_TABLE_VIEW;
+extern const wchar_t* IDC_OUTGOING_SETTINGS_GROUPED_TABLE_VIEW;
+extern const wchar_t* IDC_DELETE_ADDRESS_SUBJECT_SELECTED_LABEL;
+extern const wchar_t* IDC_DELETE_ADDRESS_SUBJECT_LISTVIEW;
+extern const wchar_t* IDC_BLOCK_ADDRESS_LISTVIEW;
+extern const wchar_t* IDC_BLOCK_SUBJECT_LISTVIEW;
+extern const wchar_t* IDC_ADD_ADDRESS_FORM_SCROLL_PANEL;
+extern const wchar_t* IDC_ADD_SUBJECT_FORM_SCROLL_PANEL;
+extern const wchar_t* IDC_ADD_ADDRESS_FORM_EDITFIELD;
+extern const wchar_t* IDC_ADD_ADDRESS_CONTACT_BUTTON;
+extern const wchar_t* IDC_ADD_SUBJECT_FORM_EDITFIELD;
+
+/************************************************************************************
+ *
+ * Control Dimensions, Offsets
+ *
+ ***********************************************************************************/
+
+extern const int GENERIC_OFFSET_16;
+extern const int W_POPUP_CLOSE_BUTTON;
+extern const int H_POPUP_CLOSE_BUTTON;
+
+extern const int H_SORT_BY_LISTVIEW_ELEMENT;
+
+extern const int W_VIEW_AS_POPUP;
+
+extern const int H_VIEW_AS_POPUP;
+
+extern const int H_MARK_ALL_AS_POPUP;
+
+extern const int W_COLOR_CODE;
+extern const int H_COLOR_CODE;
+
+extern const int X_COLOR_CODE;
+extern const int Y_COLOR_CODE;
+
+/***********************************************************************************/
+
+//All forms
+extern const int X_ORIGIN;
+extern const int Y_ORIGIN;
+extern const int POPUP_LISTVIEW_ITEM_COUNT_TWO;
+extern const int POPUP_LISTVIEW_ITEM_COUNT;
+extern const int Y_LIST_ITEM_TYPE1;
+extern const int X_POPUP_LISTVIEW;
+extern const int X_ADD_CONTACT;
+extern const int W_POPUP_LIST_ITEM_OFFSET;
+extern const int W_GENERIC_32;
+extern const int W_GENERIC_64;
+extern const int W_PROGRESS_PANEL_OFFSET;
+extern const int FONT_ADDRESSNAME_SIZE;
+extern const int WAIT_CURSUR_DIMESION;
+extern const int W_IMPORTANT ;
+extern const int H_POPUP_LIST_ITEM_OFFSET;
+extern const int W_LIST_ITEM_CHECKBOX;
+extern const int Y_ADDCONTACT_BUTTON;
+extern const int X_POPUP_CLOSE_BUTTON;
+extern const int H_OPTION_TRAY;
+extern const int Y_SEARCH_LISTVIEW;
+extern const int Y_SUBJECT_PANEL;
+extern const int W_LIST_DATE_ITEM;
+extern const int X_LIST_DATE_ITEM_OFFSET;
+extern const int X_SUBJECT_FIELD;
+extern const int W_SUBJECT_LABEL;
+extern const int X_IMPORTANT_OFFSET;
+extern const int X_CONTEXT_MENU_OFFSET;
+extern const int CONTEXT_MENU_OFFSET;
+extern const int H_DELETING_POPUP;
+extern const int LIST_ITEM_OFFSET;
+extern const int Y_LISTVIEW_SEARCH_BAR_MODE_INPUT;
+extern const int Y_ATTACHMENT_PANEL;
+extern const int Y_EMAIL_BODY_PANEL;
+extern const int H_EXPANDED_TO_BASE_PANEL;
+extern const int W_ACCOUNT_ADDRESS_ITEM;
+extern const int W_SUBJECT_FIELD;
+extern const int H_SEARCH_LISTVIEW_OFFSET;
+extern const int W_EMAIL_LABEL;
+extern const int X_ADDCONTACT_BUTTON;
+extern const int H_EMAIL_BODY_PANEL;
+extern const int H_GENERIC_32;
+extern const int H_GENERIC_64;
+extern const int H_SUBJECT_MAIN_TEXT;
+extern const int X_ACCOUNT_NAME_ITEM;
+extern const int W_ACCOUNT_NAME_ITEM;
+extern const int H_EMAIL_LABEL;
+extern const int W_ADDCONTACT_BUTTON;
+extern const int H_ADDCONTACT_BUTTON;
+extern const int X_EDITFIELD;
+extern const int Y_EDITFIELD;
+extern const int W_EDITFIELD;
+extern const int H_EDITFIELD;
+extern const int X_ADDRESS_LISTVIEW;
+extern const int Y_ADDRESS_LISTVIEW;
+extern const int X_ADDRESSITEM_LISTVIEW;
+extern const int Y_ADDRESSITEM_LISTVIEW;
+extern const int H_ADDRESSITEM_LISTVIEW;
+extern const int FONT_SIZE_ADDRESSITEM;
+extern const int X_ADDRESS_LIST_ITEM;
+extern const int Y_ADDRESS_LIST_ITEM;
+extern const int W_ADDRESS_LIST_ITEM;
+extern const int H_ADDRESS_LIST_ITEM;
+extern const int H_TO_PANEL;
+extern const int Y_CC_PANEL;
+extern const int H_SUBJECT_PANEL;
+extern const int H_SUBJECT_LABEL;
+extern const int H_SUBJECT_FIELD;
+extern const int H_ATTACHMENT_PANEL;
+extern const int Y_CC_FIELD_PANEL;
+extern const int Y_BCC_FIELD_PANEL;
+extern const int H_MANUAL_SETUP_ITEM;
+extern const int H_BCC_FIELD_PANEL;
+extern const int FONT_SIZE_SUBJECT_LABEL_TEXT;
+extern const int X_ACCORDION;
+extern const int X_ACCOUNT_ADDRESS_ITEM;
+extern const int H_ACCOUNT_ADDRESS_ITEM;
+extern const int FONT_SIZE_MAIN_TEXT;
+extern const int FONT_SIZE_ATTACH_MAIN_TEXT;
+//extern const int FONT_SIZE_DOWNLOAD_MAIN_TEXT;
+extern const int FONT_SIZE_SUB_TEXT;
+extern const int FONT_SIZE_LIST_MAIN_ITEM;
+extern const int FONT_SIZE_LIST_NAME_ITEM;
+extern const int FONT_SIZE_LIST_CONTENTS_ITEM;
+extern const int H_LIST_ITEM_1_LINE;
+extern const int H_LIST_ITEM_3_LINE;
+extern const int X_LIST_ITEM;
+extern const int LIST_SUB_ITEM_OFFSET;
+extern const int H_LIST_MAIN_ITEM;
+extern const int LIST_DATE_ITEM_OFFSET;
+extern const int H_LIST_SUB_ITEM_3_LINE;
+extern const int H_LIST_PREVIEW_ITEM_1_LINE;
+extern const int Y_ATTACHMENT_ICON;
+extern const int Y_IMPORTANT;
+extern const int H_IMPORTANT;
+extern const int H_TO_BASE_PANEL;
+extern const int H_CC_FIELD_PANEL;
+extern const int MAX_BITMAP_COUNT;
+extern const int Y_ADD_CONTACT;
+extern const int H_ATTACHMENT;
+
+// Folders Form
+extern const int H_FOLDERS_ACCOUNT_ITEM;
+extern const int H_MAILBOX_INFO_PANEL;
+extern const int H_FOLDERS_MAILBOX_ITEM;
+
+
+//EmAddAccountForm
+extern const int W_VALIDATING_POPUP;
+extern const int H_VALIDATING_POPUP;
+extern const int W_CANCEL_BUTTON;
+extern const int H_CANCEL_BUTTON;
+
+//AccountDetail Form
+extern const int X_ITEM_BITMAP;
+extern const int W_ACCOUNT_BMP;
+extern const int H_HEADER_LIST_ITEM;
+extern const int Y_ALL_ACCOUNTS_SCROLL_PANEL;
+extern const int H_MAILBOXLISTVIEW;
+extern const int W_ACCOUNT_NAME_LABEL;
+extern const int H_ALL_ACCOUNTS_SCROLL_PANEL;
+extern const int X_ACCOUNT_NAME_LABEL;
+extern const int COUNT_HEADER_LIST_ITEM;
+extern const int H_ITEM_BITMAP;
+extern const int H_ACCOUNT_EMAIL_SUBTEXT;
+extern const int W_CLIENT;
+extern const int H_CLIENT;
+extern const int H_ACCOUNT_INFO_PANEL;
+extern const int Y_ACCOUNT_NAME_LABEL;
+extern const int H_ACCOUNT_NAME_LABEL;
+extern const int X_EXPAND_BUTTON;
+extern const int W_EXPAND_BUTTON;
+//BaseFormProvider
+extern const int FONT_SIZE_GROUP_ITEM;
+extern const int H_GROUP_ITEM;
+//Trash Form
+extern const int X_POPUP_DELETE_BUTTON;
+//Account Setting main Form
+extern const int H_HORIZONTALPANEL1;
+extern const int X_MAILOPTIONLISTVIEW;
+extern const int X_ACCOUNT_BITMAP;
+extern const int FONT_SIZE_CUSTOM_ITEM;
+extern const int H_MAILBOX_PANEL;
+extern const int H_UX_EDITFIELD;
+extern const int H_INBOX_PANEL;
+extern const int Y_MAILOPTIONLISTVIEW;
+extern const int Y_SENTBOXLIST_PANEL;
+extern const int Y_OUTBOX_PANEL;
+extern const int H_MAILOPTIONLISTVIEW;
+extern const int Y_DRAFTS_PANEL;
+extern const int H_EXPANDEDHEIGHT_PANEL;
+extern const int Y_UX_EDITFIELD;
+extern const int Y_DRAFTSLIST_PANEL;
+extern const int Y_TRASH_PANEL;
+extern const int Y_MAILBOX_PANEL;
+extern const int Y_ACCORDION;
+extern const int X_INBOX_BUTTON;
+extern const int Y_TRASHLIST_PANEL;
+extern const int H_ACCORDION;
+extern const int Y_SPAMBOXLIST_PANEL;
+extern const int H_SENTBOX_PANEL;
+extern const int H_OUTBOX_PANEL;
+extern const int H_DRAFTS_PANEL;
+extern const int H_TRASH_PANEL;
+extern const int H_SPAMBOX_PANEL;
+extern const int H_HORIZONTALPANEL2;
+extern const int H_HORIZONTALPANEL3;
+extern const int H_HORIZONTALPANEL4;
+extern const int H_HORIZONTALPANEL5;
+extern const int X_UX_EDITFIELD;
+extern const int H_INBOX_LABEL;
+extern const int Y_INBOX_OPTION_LABEL;
+extern const int H_INBOX_OPTION_LABEL;
+extern const int Y_INBOX_BUTTON;
+extern const int W_INBOX_BUTTON;
+extern const int H_INBOX_BUTTON;
+extern const int Y_INBOXLIST_PANEL;
+extern const int Y_HORIZONTALPANEL1;
+extern const int Y_SENTBOX_PANEL;
+extern const int H_SENTBOX_LABEL;
+extern const int Y_SENTBOX_OPTION_LABEL;
+extern const int H_SENTBOX_OPTION_LABEL;
+extern const int X_SENTBOX_BUTTON;
+extern const int Y_SENTBOX_BUTTON;
+extern const int W_SENTBOX_BUTTON;
+extern const int H_SENTBOX_BUTTON;
+extern const int Y_HORIZONTALPANEL2;
+extern const int H_OUTBOX_LABEL;
+extern const int Y_OUTBOX_OPTION_LABEL;
+extern const int H_OUTBOX_OPTION_LABEL;
+extern const int X_OUTBOX_BUTTON;
+extern const int Y_OUTBOX_BUTTON;
+extern const int W_OUTBOX_BUTTON;
+extern const int H_OUTBOX_BUTTON;
+extern const int Y_OUTBOXLIST_PANEL;
+extern const int Y_HORIZONTALPANEL3;
+extern const int H_DRAFTS_LABEL;
+extern const int Y_DRAFTS_OPTION_LABEL;
+extern const int H_DRAFTS_OPTION_LABEL;
+extern const int X_DRAFTS_BUTTON;
+extern const int Y_DRAFTS_BUTTON;
+extern const int W_DRAFTS_BUTTON;
+extern const int H_DRAFTS_BUTTON;
+extern const int Y_HORIZONTALPANEL4;
+extern const int H_TRASH_LABEL;
+extern const int Y_TRASH_OPTION_LABEL;
+extern const int H_TRASH_OPTION_LABEL;
+extern const int X_TRASH_BUTTON;
+extern const int Y_TRASH_BUTTON;
+extern const int W_TRASH_BUTTON;
+extern const int H_TRASH_BUTTON;
+extern const int Y_HORIZONTALPANEL5;
+extern const int Y_SPAMBOX_PANEL;
+extern const int H_SPAMBOX_LABEL;
+extern const int Y_SPAMBOX_OPTION_LABEL;
+extern const int H_SPAMBOX_OPTION_LABEL;
+extern const int X_SPAMBOX_BUTTON;
+extern const int Y_SPAMBOX_BUTTON;
+extern const int W_SPAMBOX_BUTTON;
+extern const int H_SPAMBOX_BUTTON;
+extern const int H_INBOX_LISTVIEW;
+extern const int H_SENTBOX_LISTVIEW;
+extern const int H_OUTBOX_LISTVIEW;
+extern const int H_DRAFTS_LISTVIEW;
+extern const int H_TRASH_LISTVIEW;
+extern const int H_SPAMBOX_LISTVIEW;
+extern const int Y_ACCOUNT_BITMAP;
+extern const int W_ACCOUNT_BITMAP;
+extern const int H_ACCOUNT_BITMAP;
+extern const int Y_ACCOUNT_ADDRESS_ITEM;
+extern const int Y_ACCOUNT_NAME_ITEM;
+extern const int H_ACCOUNT_SETTINGS_NAME_ITEM;
+extern const int H_ACCOUNTCUSTOM_ITEM;
+extern const int X_COMMON_CUSTOM_ITEM;
+extern const int Y_COMMON_CUSTOM_ITEM;
+extern const int W_COMMON_CUSTOM_ITEM;
+extern const int H_COMMON_CUSTOM_ITEM;
+extern const int FONT_SIZE_ADDRESS_ITEM;
+extern const int FONT_SIZE_NAME_ITEM;
+extern const int FONT_SIZE_MAILBOX_LABEL;
+extern const int LIST_ITEM_LEFT_MARGIN;
+//EmailSetting Form
+extern const wchar_t* IDC_SECTIONTABLEVIEW;
+extern const wchar_t* IDC_COLOR_PICKER_SCROLLPANEL;
+extern const wchar_t* IDC_COLOR_PICKER;
+extern const wchar_t* IDC_DONE_BUTTON;
+extern const wchar_t* IDC_CANCEL_BUTTON;
+extern const wchar_t* IDC_PANEL;
+extern const wchar_t* IDC_SELECTED_COLOR_LABEL;
+//EmailSetting Form
+extern const int W_SELECTEDCOLOR_ITEM;
+extern const int Y_SCROLLPANEL;
+extern const int H_HORIZONTALSPACE_PANEL4;
+extern const int Y_SHOW_EMAILPANEL;
+extern const int H_COLOR_ICONLISTVIEW;
+extern const int X_SELECTEDCOLOR_LABEL;
+extern const int W_SELECTEDCOLOR_LABEL;
+extern const int IDCLR_COLORPICKER_TWOFIVEFIVE;
+extern const int IDCLR_COLORPICKER_THREEFOUR;
+extern const int Y_HORIZONTALSPACE_PANEL2;
+extern const int Y_SHOW_EMAILLIST_PANEL;
+extern const int H_EXPANDEDLISTVIEW;
+extern const int Y_HORIZONTALSPACE_PANEL3;
+extern const int Y_BLOCK_EMAIL_PANEL;
+extern const int Y_HORIZONTALSPACE_PANEL4;
+extern const int Y_ACCOUNTLIST_PANEL;
+extern const int X_DEFAULT_SENDING_BUTTON;
+extern const int W_HORIZONTALSPACE_PANEL1;
+extern const int H_DEFAULT_SENDING_ACCOUNTPANEL;
+extern const int H_SHOW_EMAILPANEL;
+extern const int H_HORIZONTALSPACE_PANEL2;
+extern const int H_HORIZONTALSPACE_PANEL3;
+extern const int H_BLOCK_EMAIL_PANEL;
+extern const int H_ACCOUNTLIST_PANEL;
+extern const int H_DEFAULT_SENDING_CUSTOMITEM;
+extern const int H_HORIZONTALSPACE_PANEL1;
+extern const int X_DEFAULT_SENDING_ACCOUNTPANEL;
+extern const int H_DEFAULT_SENDING_ACCOUNTLABEL;
+extern const int Y_DEFAULT_SENDING_ADDRESSLABEL;
+extern const int H_DEFAULT_SENDING_ADDRESSLABEL;
+extern const int Y_DEFAULT_SENDING_BUTTON;
+extern const int W_DEFAULT_SENDING_BUTTON;
+extern const int H_DEFAULT_SENDING_BUTTON;
+extern const int X_DEFAULT_ACCOUNTLIST_PANEL;
+extern const int Y_DEFAULT_ACCOUNTLIST_PANEL;
+extern const int X_HORIZONTALSPACE_PANEL2;
+extern const int X_SHOW_EMAILPANEL;
+extern const int H_SHOW_EMAIL_LABEL;
+extern const int X_SHOW_EMAIL_BUTTON;
+extern const int Y_SHOW_EMAIL_BUTTON;
+extern const int W_SHOW_EMAIL_BUTTON;
+extern const int H_SHOW_EMAIL_BUTTON;
+extern const int X_SHOW_EMAILLIST_PANEL;
+extern const int X_HORIZONTALSPACE_PANEL3;
+extern const int X_BLOCK_EMAIL_PANEL;
+extern const int W_BLOCK_EMAIL_PANEL;
+extern const int H_BLOCK_EMAIL_BUTTON;
+extern const int X_HORIZONTALSPACE_PANEL4;
+extern const int X_ACCOUNTLIST_PANEL;
+extern const int H_ACCOUNTLIST_LISTVIEW;
+extern const int H_DEFAULT_SENDING_ACCOUNTLISTVIEW;
+extern const int H_SHOW_EMAIL_LISTVIEW;
+extern const int Y_SELECTEDCOLOR_LABEL;
+extern const int H_SELECTEDCOLOR_LABEL;
+extern const int Y_COLOR_ICONLISTVIEW;
+extern const int W_COLOR_ICONLISTVIEW;
+extern const int W_COLOR_ICON;
+extern const int H_COLOR_ICON;
+extern const int Y_COLOR_PANEL;
+extern const int W_COLOR_PANEL;
+extern const int H_COLOR_PANEL;
+extern const int H_SAVECANCEL_PANEL;
+extern const int H_COLORPICKER_PANEL;
+extern const int Y_ACCOUNT_SETTINGS_NAME_ITEM;
+extern const int H_ACCOUNT_NAME_ITEM;
+extern const int Y_ACCOUNT_SETTINGS_ADDRESS_ITEM;
+extern const int X_ACCOUNT_BITMAP_ITEM;
+extern const int Y_ACCOUNT_BITMAP_ITEM;
+extern const int W_ACCOUNT_BITMAP_ITEM;
+extern const int H_ACCOUNT_BITMAP_ITEM;
+extern const int X_SELECTEDCOLOR_ITEM;
+extern const int Y_SELECTEDCOLOR_ITEM;
+extern const int H_SELECTEDCOLOR_ITEM;
+extern const int X_CHOOSE_COLOR_ITEM;
+extern const int Y_CHOOSE_COLOR_ITEM;
+extern const int W_CHOOSE_COLOR_ITEM;
+extern const int H_CHOOSE_COLOR_ITEM;
+extern const int X_DEFAULTACCOUNT_ITEM;
+extern const int Y_DEFAULTACCOUNT_ITEM;
+extern const int H_DEFAULTACCOUNT_ITEM;
+extern const int X_RECENTEMAIL_ITEM;
+extern const int Y_RECENTEMAIL_ITEM;
+extern const int H_RECENTEMAIL_ITEM;
+extern const int Y_SHOW_RECENTMAIL_LABEL;
+extern const int H_SHOW_RECENTMAIL_LABEL;
+extern const int HORIZONTAL_ICON_SPACING;
+extern const int VERTICAL_ICON_SPACING;
+extern const int INTEGER_TWENTYFIVE;
+extern const int IDCLR_COLORPICKER_SIXFOUR;
+extern const int IDCLR_COLORPICKER_THREETWO;
+extern const int IDCLR_COLORPICKER_TWOFOURZERO;
+extern const int IDCLR_COLORPICKER_ONESIXZERO;
+
+extern const int X_SAVECOLOR_BUTTON;
+extern const int Y_SAVECOLOR_BUTTON;
+extern const int W_SAVECOLOR_BUTTON;
+extern const int H_SAVECOLOR_BUTTON;
+extern const int X_CANCELCOLOR_BUTTON;
+extern const int Y_CANCELCOLOR_BUTTON;
+extern const int W_CANCELCOLOR_BUTTON;
+extern const int H_CANCELCOLOR_BUTTON;
+//BlockEmailSubjectForm
+extern const int X_SUBJECT_LIST_ITEM;
+extern const int Y_SUBJECT_LIST_ITEM;
+extern const int H_SUBJECT_LIST_ITEM;
+extern const int FONT_SUBJECTNAME_SIZE ;
+//DeleteSubjectAddress
+extern const int H_SELECTED_LABEL;
+//EmailDetailForm
+extern const int Y_EMAIL_DETAIL_FORM_SCROLL_PANEL;
+extern const int Y_CCLABEL;
+extern const int Y_DOWNARROWBUTTON;
+extern const int FONT_SIZE_INBOX_TOP_NAME;
+extern const int H_DATETIMELABEL;
+extern const int FONT_SIZE_INBOX_TOP_MAIN;
+extern const int Y_STAROFFLABEL;
+extern const int Y_BUTTONADDCONTACT;
+extern const int W_CCLABEL;
+extern const int H_SUBJECTPANEL;
+extern const int Y_TOFIELDACCORDIONPANEL;
+extern const int Y_CCFIELDACCORDIONPANEL;
+extern const int W_DATETIMELABEL;
+extern const int X_MORECONTEXTMENU;
+extern const int X_ITEM;
+extern const int X_STAROFFLABEL;
+extern const int X_DOWNARROWBUTTON;
+extern const int Y_REPLYCONTEXTMENU;
+extern const int X_BUTTONADDCONTACT;
+extern const int W_BUTTONADDCONTACT;
+extern const int H_BUTTONADDCONTACT;
+extern const int X_BUTTONSEND;
+extern const int Y_BUTTONSEND;
+extern const int W_BUTTONSEND;
+extern const int H_BUTTONSEND;
+extern const int X_BUTTONBLOCK;
+extern const int Y_BUTTONBLOCK;
+extern const int W_BUTTONBLOCK;
+extern const int H_BUTTONBLOCK;
+extern const int X_REPLYCONTEXTMENU;
+extern const int Y_DELETECONTEXTMENU;
+extern const int Y_MORECONTEXTMENU;
+extern const int H_SUBJECTLABEL;
+extern const int X_SUBJECTLABEL;
+extern const int Y_SUBJECTLABEL;
+extern const int X_SENDERLABEL;
+extern const int Y_SENDERLABEL_OFFSET_FROM_SUBJECT_LABEL;
+extern const int W_SENDERLABEL;
+extern const int H_SENDERLABEL;
+extern const int X_DATETIMELABEL;
+extern const int Y_DATETIMELABEL_OFFSET_FROM_SUBJECT_LABEL;
+extern const int W_SUBJECTLABEL;
+extern const int H_TOFIELDPANEL;
+extern const int W_DOWNARROWBUTTON;
+extern const int H_DOWNARROWBUTTON;
+extern const int W_STAROFFLABEL;
+extern const int H_STAROFFLABEL;
+extern const int H_CCFIELDPANEL;
+extern const int H_CCLABEL;
+extern const int FONT_SIZE_CCLABEL;
+extern const int H_LIST;
+extern const int H_LIST1;
+extern const int Y_ITEM;
+extern const int W_ITEM;
+extern const int H_ITEM;
+extern const int X_ITEM1;
+extern const int Y_ITEM1;
+extern const int W_ITEM1;
+extern const int H_ITEM1;
+extern const int FONT_SIZE_ITEM1;
+extern const int H_ITEM2;
+extern const int FONT_SIZE_SUBJECT_LABEL;
+extern const int FONT_SIZE_DATETIME_LABEL;
+extern const int Y_DIVIDERPANEL1;
+extern const int H_DIVIDERPANEL1;
+extern const int H_TOFIELDACCORDIONPANEL;
+extern const int H_CCFIELDACCORDIONPANEL;
+extern const int H_ATTACHMENTPANEL;
+extern const int H_EXPANDED_ATTACHMENTPANEL;
+extern const int H_WEB_PANEL_OFFSET;
+//ToFieldPanel
+extern const int H_RECIPIENT_AREA;
+extern const int Y_RECIPIENT_AREA;
+extern const int W_RECIPIENT_AREA;
+extern const int W_CONTRACTED_RECIPIENT_AREA;
+extern const int X_ADD_CONTACT_BUTTON;
+extern const int COUNT_LINE;
+extern const int X_RECIPIENT_AREA;
+extern const int Y_READMODE_RECIPIENT_AREA;
+extern const int W_TO_LABEL;
+extern const int H_TO_LABEL;
+extern const int Y_COUNT_LABEL;
+extern const int W_COUNT_LABEL;
+extern const int H_COUNT_LABEL;
+extern const int Y_ADD_CONTACT_BUTTON;
+extern const int W_ADD_CONTACT_BUTTON;
+extern const int H_ADD_CONTACT_BUTTON;
+//SearchOptionTrayPanel
+extern const int H_SEARCH_OPTION_TRAY_BUTTON;
+extern const int W_SEARCH_OPTION_TRAY_BUTTON;
+extern const int X_OPTION_TRAY_CONTEXT_BUTTON;
+extern const int X_OPTION_TRAY_SENDER_BUTTON;
+extern const int X_OPTION_TRAY_RECIPIENT_BUTTON;
+extern const int X_OPTION_TRAY_SUBJECT_BUTTON;
+extern const int Y_SEARCH_OPTION_TRAY_BUTTON;
+extern const int FONT_SIZE_OPTION_TRAY_BUTTON_TEXT;
+//OptionTrayPanel
+extern const int W_OPTION_TRAY_BUTTON;
+extern const int X_OPTION_TRAY_SECURITY_BUTTON;
+extern const int X_OPTION_TRAY_ATTACH_BUTTON;
+extern const int X_OPTION_TRAY_CC_BUTTON;
+extern const int Y_OPTION_TRAY_BUTTON;
+extern const int H_OPTION_TRAY_BUTTON;
+//Progress Panel
+extern const int DURATION_FOR_EACH_IMAGE;
+extern const int REPEAT_COUNT;
+//Attachment Panel
+extern const int X_ATTACHMENT_IMAGE;
+extern const int W_ATTACHMENT_IMAGE;
+extern const int W_ATTACHMENT_NAME_OFFSET;
+extern const int X_ATTACHMENT_NAME;
+extern const int W_ATTACHMENT_ETC_IMAGE;
+extern const int X_ATTACHMENT_DELETE_BUTTON_OFFSET;
+extern const int X_ATTACHMENT_DOWNLOAD_CANCEL_BUTTON_OFFSET;
+//CustomListViewForPopup
+extern const int FONT_SIZE_CUSTOM_POPUP;
+//EmailSettingPresentationModel
+extern const int COUNT_SHOWN_EMAIL;
+//EmailComposerForm
+extern const unsigned long MAX_MAIL_SIZE;
+extern const int MAX_ATTACHMENT_COUNT;
+extern const int X_MORE_CONTEXT_MENU_COMPOSER;
+extern const int Y_MORE_CONTEXT_MENU_COMPOSER;
+
+//String constants
+extern const wchar_t* IDS_EMAIL_OPT_SECURITY;
+extern const wchar_t* IDS_EMAIL_OPT_VIEW;
+extern const wchar_t* IDS_EMAIL_BODY_YESTERDAY;
+extern const wchar_t* IDS_EMAIL_OPT_DELETE_ALL;
+extern const wchar_t* IDS_EMAIL_BODY_TODAY;
+extern const wchar_t* IDS_EMAIL_BODY_SHOW_EMAILS;
+extern const wchar_t* IDS_EMAIL_SK_COMPOSE;
+extern const wchar_t* IDS_COM_BODY_SEND;
+extern const wchar_t* IDS_EMAIL_BODY_NO_TEXT;
+extern const wchar_t* IDS_EMAIL_OPT_ADD_TO_CONTACT;
+extern const wchar_t* IDS_EMAIL_OPT_ADD_CC_BCC;
+extern const wchar_t* IDS_COM_POP_CLOSE;
+extern const wchar_t* IDS_EMAIL_POP_DELETING_ING;
+extern const wchar_t* IDS_EMAIL_HEADER_DELETE;
+extern const wchar_t* IDS_EMAIL_SK_REPLY_ALL;
+extern const wchar_t* IDS_EMAIL_BODY_SPAMBOX;
+extern const wchar_t* IDS_EMAIL_OPT_REPLY_TO_SENDER;
+extern const wchar_t* IDS_EMAIL_OPT_BLOCK;
+extern const wchar_t* IDS_EMAIL_BODY_DRAFTS;
+extern const wchar_t* IDS_EMAIL_BODY_SIGNATURE;
+extern const wchar_t* IDS_EMAIL_OPT_UNREAD;
+extern const wchar_t* IDS_EMAIL_BODY_INBOX;
+extern const wchar_t* IDS_EMAIL_BODY_CC_BCC;
+extern const wchar_t* IDS_EMAIL_BODY_ADD_ADDRESS;
+extern const wchar_t* IDS_COM_POP_SENT;
+extern const wchar_t* IDS_EMAIL_BODY_CC;
+extern const wchar_t* IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING;
+extern const wchar_t* IDS_EMAIL_BODY_BLOCK_EMAILS;
+extern const wchar_t* IDS_EMAIL_SK3_DONE;
+extern const wchar_t* IDS_EMAIL_BODY_TO_MRECIPENT;
+extern const wchar_t* IDS_EMAIL_OPT_EMAIL;
+extern const wchar_t* IDS_EMAIL_HEADER_ACCOUNT_SETTINGS;
+extern const wchar_t* IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF;
+extern const wchar_t* IDS_EMAIL_OPT_RECIPIENT;
+extern const wchar_t* IDS_EMAIL_OPT_SEND_EMAIL;
+extern const wchar_t* IDS_EMAIL_HEADER_OUTBOX;
+extern const wchar_t* IDS_EMAIL_HEADER_ADD_SUBJECT;
+extern const wchar_t* IDS_EMAIL_BODY_ADDRESS;
+extern const wchar_t* IDS_EMAIL_BODY_KEEP_IN_SERVER;
+extern const wchar_t* IDS_EMAIL_OPT_MARK_AS_UNREAD;
+extern const wchar_t* IDS_EMAIL_POP_MOVING_ING;
+extern const wchar_t* IDS_EMAIL_SK_MOVE;
+extern const wchar_t* IDS_EMAIL_BODY_REPLY_WITH_BODY;
+extern const wchar_t* IDS_EMAIL_BODY_BCC;
+extern const wchar_t* IDS_EMAIL_OPT_SENDER;
+extern const wchar_t* IDS_EMAIL_HEADER_EMAIL_SETTINGS;
+extern const wchar_t* IDS_COM_SK_ADD;
+extern const wchar_t* IDS_EMAIL_BODY_FORWARD_WITH_FILES;
+extern const wchar_t* IDS_EMAIL_OPT_REPLY;
+extern const wchar_t* IDS_EMAIL_OPT_ADD_TO_CALENDAR;
+extern const wchar_t* IDS_EMAIL_OPT_ATTACH_FILES;
+extern const wchar_t* IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT;
+extern const wchar_t* IDS_EMAIL_BODY_OLDER_M_HISTORY;
+extern const wchar_t* IDS_EMAIL_OPT_DATE;
+extern const wchar_t* IDS_EMAIL_BODY_LAST_WEEK;
+extern const wchar_t* IDS_EMAIL_MBODY_MAILBOX_LIST;
+extern const wchar_t* IDS_EMAIL_SK3_CANCEL;
+extern const wchar_t* IDS_EMAIL_BODY_ADD_SIGNATURE;
+extern const wchar_t* IDS_EMAIL_BODY_MAILBOX_SETUP;
+extern const wchar_t* IDS_EMAIL_BODY_SENTBOX;
+extern const wchar_t* IDS_EMAIL_OPT_ATTACH;
+extern const wchar_t* IDS_EMAIL_OPT_IMPORTANT;
+extern const wchar_t* IDS_EMAIL_OPT_MARK_AS_READ;
+extern const wchar_t* IDS_EMAIL_BODY_SUBJECT;
+extern const wchar_t* IDS_EMAIL_BODY_NO_SUBJECT;
+extern const wchar_t* IDS_EMAIL_BODY_NOT_USED;
+extern const wchar_t* IDS_EMAIL_BODY_RECENT;
+extern const wchar_t* IDS_EMAIL_BODY_ACCOUNT;
+extern const wchar_t* IDS_EMAIL_HEADER_ALL_EMAILS;
+
+extern const wchar_t* BITMAP_EXTENSION;
+extern const Tizen::Graphics::Color COLOR_SEARCH_RESULT_TEXT;
+extern const Tizen::Graphics::Color COLOR_SEARCH_OPTION_TRAY_PANEL;
+extern const Tizen::Graphics::Color COLOR_SEARCH_OPTION_UNSELECTED;
+extern const Tizen::Graphics::Color COLOR_BLACK;
+extern const Tizen::Graphics::Color COLOR_LIST_BG_NORMAL;
+extern const Tizen::Graphics::Color COLOR_LIST_BG_PRESSED;
+extern const Tizen::Graphics::Color COLOR_LISTITEM_DIVIDERLINE;
+extern const Tizen::Graphics::Color COLOR_READ_MAILS;
+extern const Tizen::Graphics::Color COLOR_UNREAD_MAILS;
+extern const Tizen::Graphics::Color COLOR_NAME_TEXT;
+extern const Tizen::Graphics::Color COLOR_NAME_TEXT_1_LINE;
+extern const Tizen::Graphics::Color COLOR_CONTENTS_TEXT;
+extern const Tizen::Graphics::Color COLOR_GROUP_ITEM;
+extern const Tizen::Graphics::Color COLOR_TEMP_TEXT_ELEMENT;
+extern const Tizen::Graphics::Color COLOR_GOOGLE;
+extern const Tizen::Graphics::Color COLOR_YAHOO;
+extern const Tizen::Graphics::Color COLOR_FORM_BACKGROUND;
+extern const Tizen::Graphics::Color COLOR_SUBJECTLABEL_TEXT;
+extern const Tizen::Graphics::Color COLOR_DATE_TIME_LABEL_TEXT;
+extern const Tizen::Graphics::Color COLOR_HORIZONTAL_PANEL;
+extern const Tizen::Graphics::Color COLOR_BG_SELECT_ALL;
+extern const Tizen::Graphics::Color COLOR_LIST_UNREAD_COUNT_BG_NORMAL;
+extern const Tizen::Graphics::Color COLOR_LIST_UNREAD_COUNT_BG_PRESSED;
+extern const Tizen::Graphics::Color COLOR_SEARCH_OPTION_SELECTED;
+
+// EmailDetailForm
+extern const Tizen::Graphics::Color INBOX_TOP_MAIN_TEXT_COLOR;
+
+extern const wchar_t* EMAIL_APP_DATA_SECTION;
+extern const wchar_t* EMAIL_BLOCKED_ADDRESS_SECTION;
+extern const wchar_t* EMAIL_BLOCKED_SUBJECT_SECTION;
+extern const wchar_t* EMAIL_GENERAL_SETTINGS_SECTION;
+extern const wchar_t* EMAIL_GENERAL_SHOW_EMAIL;
+extern const wchar_t* EMAIL_GENERAL_THREADED;
+extern const wchar_t* EMAIL_GENERAL_SENDING_ACCOUNT;
+extern const wchar_t* EMAIL_ACCOUNTS_SETTING_SECTION;
+extern const wchar_t* EMAIL_ACCOUNTS_REPLY_WITH_BODY;
+extern const wchar_t* EMAIL_ACCOUNTS_FORWARD_WITH_FILES;
+extern const wchar_t* EMAIL_ACCOUNTS_BCC_MYSELF;
+extern const wchar_t* EMAIL_ACCOUNTS_ADD_SIGNATURE;
+
+extern const int NOTIFICATION_POLL_INTERVAL;
+extern const RequestId IDA_SYNC_HEADERS;
+extern const RequestId IDA_SYNC_HEADERS_ERROR;
+extern const RequestId IDA_SYNC_BODY;
+extern const RequestId IDA_SYNC_BODY_ERROR;
+extern const RequestId IDA_NOTI_DELETE_FINISHED;
+extern const RequestId IDA_NOTI_MAIL_MOVE_FINISHED;
+extern const RequestId IDA_NOTI_MAIL_MOVE_FAIL;
+extern const RequestId IDA_VALIDATE_AND_CREATE_ACCOUNT_FINISH;
+extern const RequestId IDA_VALIDATE_AND_CREATE_ACCOUNT_FAIL;
+extern const RequestId IDA_NOTI_MAIL_ADD;
+extern const RequestId IDA_NOTI_DOWNLOAD_BODY_FINISH;
+extern const RequestId IDA_NOTI_DOWNLOAD_BODY_FAIL;
+extern const RequestId IDA_NOTI_DOWNLOAD_ATTACH_START;
+extern const RequestId IDA_NOTI_DOWNLOAD_ATTACH_FINISH;
+extern const RequestId IDA_NOTI_DOWNLOAD_ATTACH_FAIL;
+extern const RequestId IDA_NOTI_DOWNLOAD_FINISH;
+extern const RequestId IDA_NOTI_MAIL_UPDATE;
+extern const RequestId IDA_NOTI_MAIL_FIELD_UPDATE;
+extern const RequestId IDA_VALIDATE_ACCOUNT_FINISH;
+extern const RequestId IDA_VALIDATE_ACCOUNT_FAIL;
+extern const RequestId IDA_SYNC_IMAP_MAILBOX_LIST_FINISH;
+extern const RequestId IDA_SYNC_IMAP_MAILBOX_LIST_FAIL;
+extern const RequestId IDA_SYNC_BODY_FOR_MAILID;
+extern const RequestId IDA_SYNC_BODY_FOR_MAILID_ERROR;
+extern const int IDA_COLOR_CODE;
+extern const int IDA_TOFIELDPANEL_ADD_CONTACT_BUTTON;
+extern const int IDA_TOFIELDPANEL_EXPAND_BUTTON;
+
+// --> composerform requests
+extern const RequestId IDA_SHOW_MAX_SIZE_EXCEEDED_MESSAGE_BOX;
+extern const RequestId IDA_SHOW_DUPLICATE_FILES_MESSAGE_BOX;
+extern const RequestId IDA_SHOW_MAX_NUMBER_OF_ATTACHMENTS_MESSAGE_BOX;
+
+// --> recipientpanel requests
+extern const RequestId IDA_SHOW_INVALID_ADDRESS_MESSAGE_BOX;
+extern const RequestId IDA_SHOW_DUPLICATE_ADDRESS_MESSAGE_BOX;
+
+// --> attachmentpanel requests
+extern const RequestId IDA_LAUNCH_IMAGE_VIEWER_APPCONTROL;
+extern const RequestId IDA_LAUNCH_CALENDAR_APPCONTROL;
+extern const RequestId IDA_LAUNCH_CONTACTS_APPCONTROL;
+extern const RequestId IDA_LAUNCH_VIDEO_PLAYER_APPCONTROL;
+extern const RequestId IDA_EMAIL_APP_FOREGROUND;
+
+// <-- Email Settings Related Constants
+extern const wchar_t*  IDSCN_ADD_ADDRESS;
+extern const wchar_t*  IDSCN_ACCOUNT_SETTING;
+extern const wchar_t*  IDSCN_ADD_SUBJECT;
+extern const wchar_t*  IDSCN_DELETE_ADDRESS_SUBJECT;
+
+extern const wchar_t*  IDS_SAVE;
+extern const wchar_t*          IDS_CANCEL;
+extern const wchar_t*          IDS_RECENT25;
+extern const wchar_t*          IDS_RECENT50;
+extern const wchar_t*          IDS_RECENT75;
+extern const wchar_t*          IDS_RECENT100;
+extern const wchar_t*          IDS_RECENT125;
+extern const wchar_t*          IDS_RECENT150;
+extern const wchar_t*          IDS_RECENT175;
+extern const wchar_t*          IDS_RECENT200;
+extern const wchar_t*          IDS_DEFAULT_SIGNATURE;
+// --> Email Settings Related Constants
+
+// <--
+extern const wchar_t* IDS_GMAIL_LOGO_FILE;
+extern const wchar_t* IDS_YAHOO_LOGO_FILE;
+extern const wchar_t* IDS_HOTMAIL_LOGO_FILE;
+extern const wchar_t* IDS_NAVER_LOGO_FILE;
+extern const wchar_t* IDS_SAMSUNG_LOGO_FILE;
+extern const wchar_t* IDS_DEFAULT_LOGO_FILE;
+// -->
+
+/*--EmAddAccountForm--*/
+extern const wchar_t* IDS_SAMSUNG_MAIL;
+extern const wchar_t* IDS_GMAIL_MAIL;
+extern const wchar_t* IDS_YAHOO_MAIL;
+extern const wchar_t* IDS_HOTMAIL;
+extern const wchar_t* IDS_NAVER;
+extern const wchar_t* IDS_LIVE;
+
+/*--EmAccountDetailForm--*/
+extern const wchar_t* IDS_MAILBOXLIST_BUTTON_ID_PREFIX;
+extern const wchar_t* IDS_MAILBOXLIST_PANEL_ID_PREFIX;
+extern const wchar_t* IDS_LISTVIEW;
+
+/*--EmEmailManualSetUpForm--*/
+extern const wchar_t* IDS_ITEM_CLOSED;
+extern const wchar_t* IDS_ITEM_OPEN;
+
+/*--EmAccountSettingMainForm--*/
+extern const wchar_t* IDS_MAIL_OPTIONS_LIST_VIEW;
+extern const wchar_t* IDS_SCN_ADD_SUBJECT;
+extern const wchar_t* IDS_SUBJECT_PANEL;
+extern const wchar_t* IDS_PANEL_ID2;
+extern const wchar_t* IDS_PANEL_ID3;
+extern const wchar_t* IDS_PANEL_ID4;
+extern const wchar_t* IDS_PANEL_ID5;
+extern const wchar_t* IDS_PANEL_ID6;
+extern const wchar_t* IDS_PANEL_ID7;
+extern const wchar_t* IDS_PANEL_ID8;
+extern const wchar_t* IDS_PANEL_ID9;
+extern const wchar_t* IDS_PANEL_ID10;
+extern const wchar_t* IDS_PANEL_ID11;
+extern const wchar_t* IDS_PANEL_ID12;
+extern const wchar_t* IDS_PANEL_ID13;
+extern const wchar_t* IDS_PANEL_ID14;
+extern const wchar_t* IDS_PANEL_ID15;
+extern const wchar_t* IDS_PANEL_ID16;
+extern const wchar_t* IDS_PANEL_ID17;
+
+/*--EmEmailDetailForm--*/
+extern const wchar_t* IDS_EMAIL_BODY_SUBJECT_PANEL;
+extern const wchar_t* IDS_TO_FIELD_PANEL;
+extern const wchar_t* IDS_CC_FIELD_PANEL;
+extern const wchar_t* IDS_WEB_PANEL;
+extern const wchar_t* IDS_UNBLOCK;
+
+/*--EmEmailListForm--*/
+extern const wchar_t* IDS_VIEW_AS_LISTVIEW;
+extern const wchar_t* IDS_NO_SUBJECT;
+extern const wchar_t* IDS_NO_RECIPIENTS;
+extern const wchar_t* IDS_NO_PREVIEW_TEXT;
+
+/*---EmFoldersForm--*/
+extern const wchar_t* IDS_FOLDERS;
+
+
+class AccountColorCustomListElement
+       : public Tizen::Ui::Controls::ICustomElement
+{
+public:
+       //Constructor for the AllMailsCustomListElement class
+       AccountColorCustomListElement(void)
+       {
+               //Empty Implmentation
+       }
+       //Destructor for the AllMailsCustomListElement class
+       ~AccountColorCustomListElement(void)
+       {
+               //Empty Implmentation
+       }
+       // OnDraw is called when a control is drawn
+       bool OnDraw(Tizen::Graphics::Canvas& canvas, const Tizen::Graphics::Rectangle& rect, Tizen::Ui::Controls::ListItemDrawingStatus itemStatus);
+       //!This sets the account id of the mail in the all mails form
+       /*!
+        * @fn         SetAccountId(const int accId);
+        * @parameters Takes the accid of the specific mail item as parameters
+        * @return     returns no value
+        */
+       void SetAccountId(const int accountId);
+private:
+       int __accountId;
+       EmailSettingsProvider* __pAccountsManager;
+};
+
+/***********************************************************
+ *
+ *   Strings which need translation...
+ *
+ ***********************************************************
+"Mark all as"
+
+***********************************************************/
+
+
+
+/***********************************************************
+ *
+ *   Stuff to be removed....
+ *
+ ***********************************************************/
+extern const int INTEGER_ONE;
+extern const int INTEGER_TWO;
+extern const int INTEGER_THREE;
+extern const int INTEGER_FIVE;
+extern const int INTEGER_FOURONE;
+
+extern const int X_CONTEXT_MENU;
+extern const int Y_CONTEXT_MENU;
+
+extern const wchar_t* IDB_WHITE;
+extern const wchar_t* IDB_BROWN;
+extern const wchar_t* IDB_GREEN;
+extern const wchar_t* IDB_PURPLE;
+extern const wchar_t* IDB_RED;
+extern const wchar_t* IDB_YELLOW;
+extern const wchar_t* IDB_PINK;
+extern const wchar_t* IDB_BLUE;
+extern const wchar_t* IDB_BLACK;
+extern const wchar_t* IDB_MULTIPLE;
+
+#endif /* _EM_TYPES_H_ */
diff --git a/inc/EmUtils.h b/inc/EmUtils.h
new file mode 100755 (executable)
index 0000000..a833363
--- /dev/null
@@ -0,0 +1,101 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file                       EmUtils.h
+ * @brief                      Keeps the declaration for Utility functions,
+ * declaration of the various Utility function which may be used throughout the application
+ */
+
+#ifndef _EM_UTILS_H_
+#define _EM_UTILS_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FLocales.h>
+#include "EmTypes.h"
+/**
+ * Keeps the static methods used throughout the application
+ */
+class Utils
+{
+public:
+       static void CleanUp(void);
+       static int  CompareDatesAndGetKey(const Tizen::Base::DateTime& currentDate, const Tizen::Base::DateTime& msgDate);
+       static Tizen::Base::String ExtractUserNameFromEmailAddress(const Tizen::Base::String& emailAddress);
+       static void     ExtractEmailIdFromFullAddress(const Tizen::Base::String& inputStr, Tizen::Base::String& outputStr);
+       static void ExtractAliasFromFullAddress(const Tizen::Base::String& inputStr, Tizen::Base::String& outputStr);
+       static void StringToChar(const Tizen::Base::String* pSrc, char** pPtrDest);
+       static bool ValidateEmailAddress(const Tizen::Base::String& emailAddress);
+       static bool     IsImageFile(Tizen::Base::String fileName);
+//     static void AddJob(int accountId, int handle);
+       static void BuildEmailIdStringFromFullAddress(const Tizen::Base::String& fullEmailAddress, Tizen::Base::String& outputStr);
+       static void BuildEmailIdStringFromArray(const Tizen::Base::Collection::ArrayList* pAddressList, Tizen::Base::String& outputStr);
+       static void BuildEmailIdStringFromCSV(const Tizen::Base::String inputStr, Tizen::Base::String& outputStr);
+//     static void CancelJob(void);
+//     static void ClearJob(void);
+       static void RemoveDuplicateEmailId(Tizen::Base::String& emailIds);
+       static const Tizen::Base::Collection::IMap* ParseExtraData(const Tizen::Base::Collection::IMap* pExtraData);
+
+       static Tizen::Graphics::Bitmap* LoadResourceBitmapN(const Tizen::Base::String& filePath);
+       static Tizen::Graphics::Bitmap* GetFavoriteIconOff(void);
+       static Tizen::Graphics::Bitmap* GetFavoriteIconOn(void);
+       static Tizen::Graphics::Bitmap* GetDetailFormFavoriteIconOff(void);
+       static Tizen::Graphics::Bitmap* GetDetailFormFavoriteIconOn(void);
+       static Tizen::Graphics::Bitmap* GetAttachmentIcon(void);
+       static Tizen::Graphics::Bitmap* GetAttachmentEtcIcon(void);
+       static Tizen::Graphics::Bitmap* GetProcessIcon(int index);
+       static Tizen::Locales::DateTimeFormatter* GetTimeFormatter(void);
+       static Tizen::Locales::DateTimeFormatter* GetDateFormatter(void);
+       static Tizen::Locales::DateTimeFormatter* GetDetailFormTimeFormatter(void);
+       static Tizen::Base::String GetResourceString(const Tizen::Base::String& stringId);
+       static Tizen::Base::String GetDomainName(const Tizen::Base::String& emailAddress);
+       static int GetFontSize(void);
+       static int GetItemHeight(void);
+private:
+       /**
+        * Constructor
+        * Intentionally declared it in private scope as all the methods in this class are static, so creating object is not required
+        */
+       Utils();
+
+       /**
+        * Destructor
+        * Intentionally declared it in private scope as all the methods in this class are static, so creating/destroying object is not required
+        */
+       virtual ~Utils();
+
+       static void SetFontValues(void);
+
+       static int __accountId;
+       static int __jobHandle;
+       static int __fontSize;
+       static int __itemHeight;
+
+       static Tizen::Graphics::Bitmap* __pFavoriteIconOff;
+       static Tizen::Graphics::Bitmap* __pFavoriteIconOn;
+       static Tizen::Graphics::Bitmap* __pDetailFormFavoriteIconOff;
+       static Tizen::Graphics::Bitmap* __pDetailFormFavoriteIconOn;
+       static Tizen::Graphics::Bitmap* __pAttachmentIcon;
+       static Tizen::Graphics::Bitmap* __pAttachmentEtcIcon;
+       static Tizen::Graphics::Bitmap* __pProcessIcon[30];
+       static Tizen::Locales::DateTimeFormatter* __pTimeFormatter;
+       static Tizen::Locales::DateTimeFormatter* __pDateFormatter;
+       static Tizen::Locales::DateTimeFormatter* __pDetailFormTimeFormatter;
+};
+
+#endif /* _EM_UTILS_H_ */
diff --git a/manifest.xml b/manifest.xml
new file mode 100755 (executable)
index 0000000..f26e53c
--- /dev/null
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+    <Id>vxqbrefica</Id>
+    <Version>1.0.0</Version>
+    <Type>C++App</Type>
+    <Requirements>
+        <Feature Name="http://tizen.org/feature/platform.core.cpu.arch.armv7">true</Feature>
+        <Feature Name="http://tizen.org/feature/platform.core.cpu.arch.x86">true</Feature>
+        <Feature Name="http://tizen.org/feature/platform.core.fpu.arch.vfpv3">true</Feature>
+    </Requirements>
+    <Apps>
+        <ApiVersion>2.1</ApiVersion>
+        <Privileges>
+            <Privilege>http://tizen.org/privilege/web.service</Privilege>
+            <Privilege>http://tizen.org/privilege/account.write</Privilege>
+            <Privilege>http://tizen.org/privilege/application.launch</Privilege>
+            <Privilege>http://tizen.org/privilege/notification</Privilege>
+            <Privilege>http://tizen.org/privilege/messaging.write</Privilege>
+        </Privileges>
+        <UiApp HwAcceleration="On" LaunchingHistoryVisible="True" Main="True" MenuIconVisible="True" Name="Email" SubMode="True">
+            <UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="720"/>
+            <UiTheme SystemTheme="White"/>
+            <DisplayNames>
+                <DisplayName Locale="eng-GB">Email</DisplayName>
+                <DisplayName Locale="ara-AE">بريد إلكتروني</DisplayName>
+                <DisplayName Locale="aze-AZ">Elektron poçtlar</DisplayName>
+                <DisplayName Locale="bul-BG">Email</DisplayName>
+                <DisplayName Locale="hye-AM">Էլ.փոստ</DisplayName>
+                <DisplayName Locale="eus-ES">Posta elektroniko mezuak</DisplayName>
+                <DisplayName Locale="cat-ES">Correu electrònic</DisplayName>
+                <DisplayName Locale="zho-CN">电子邮件</DisplayName>
+                <DisplayName Locale="zho-HK">電子郵件</DisplayName>
+                <DisplayName Locale="zho-SG">电邮</DisplayName>
+                <DisplayName Locale="zho-TW">電子郵件</DisplayName>
+                <DisplayName Locale="hrv-HR">Email</DisplayName>
+                <DisplayName Locale="ces-CZ">E-mail</DisplayName>
+                <DisplayName Locale="dan-DK">E-mail</DisplayName>
+                <DisplayName Locale="nld-NL">E-mail</DisplayName>
+                <DisplayName Locale="eng-PH">Email</DisplayName>
+                <DisplayName Locale="eng-US">Email</DisplayName>
+                <DisplayName Locale="est-EE">E-post</DisplayName>
+                <DisplayName Locale="fin-FI">Sähköposti</DisplayName>
+                <DisplayName Locale="fas-AF">Email</DisplayName>
+                <DisplayName Locale="fra-FR">Email</DisplayName>
+                <DisplayName Locale="fra-CA">Courriel</DisplayName>
+                <DisplayName Locale="glg-ES">Correo electrónico</DisplayName>
+                <DisplayName Locale="kat-GE">ელ-ფოსტა</DisplayName>
+                <DisplayName Locale="deu-DE">E-Mail</DisplayName>
+                <DisplayName Locale="ell-GR">Email</DisplayName>
+                <DisplayName Locale="hin-IN">ईमेल</DisplayName>
+                <DisplayName Locale="hun-HU">E-mail</DisplayName>
+                <DisplayName Locale="isl-IS">Tölvupóstur</DisplayName>
+                <DisplayName Locale="gle-IE">R-phost</DisplayName>
+                <DisplayName Locale="ita-IT">E-mail</DisplayName>
+                <DisplayName Locale="jpn-JP">Eメール</DisplayName>
+                <DisplayName Locale="kaz-KZ">Эл. пошта</DisplayName>
+                <DisplayName Locale="kor-KR">이메일</DisplayName>
+                <DisplayName Locale="lav-LV">E-pasts</DisplayName>
+                <DisplayName Locale="lit-LT">El. paštas</DisplayName>
+                <DisplayName Locale="mkd-MK">E-mail</DisplayName>
+                <DisplayName Locale="nob-NO">E-post</DisplayName>
+                <DisplayName Locale="pol-PL">E-mail</DisplayName>
+                <DisplayName Locale="por-PT">E-mail</DisplayName>
+                <DisplayName Locale="por-BR">E-mail</DisplayName>
+                <DisplayName Locale="ron-RO">Email</DisplayName>
+                <DisplayName Locale="rus-RU">E-mail</DisplayName>
+                <DisplayName Locale="srp-RS">E-pošta</DisplayName>
+                <DisplayName Locale="slk-SK">E-mail</DisplayName>
+                <DisplayName Locale="slv-SI">E-pošta</DisplayName>
+                <DisplayName Locale="spa-ES">Correo electrónico</DisplayName>
+                <DisplayName Locale="spa-MX">Correo</DisplayName>
+                <DisplayName Locale="swe-SE">E-post</DisplayName>
+                <DisplayName Locale="tha-TH">Email</DisplayName>
+                <DisplayName Locale="tur-TR">E-posta</DisplayName>
+                <DisplayName Locale="ukr-UA">Email</DisplayName>
+                <DisplayName Locale="urd-IN">Email</DisplayName>
+                <DisplayName Locale="uzb-UZ">E-pochta</DisplayName>
+            </DisplayNames>
+            <Icons>
+                <Icon Section="MainMenu" Type="Xhigh">mainmenu.png</Icon>
+            </Icons>
+            <AppControls>
+                <AppControl>
+                    <Operation>http://tizen.org/appcontrol/operation/compose</Operation>
+                    <Uri>mailto</Uri>
+                </AppControl>
+                 <AppControl>
+                    <Operation>http://tizen.org/appcontrol/operation/share_text</Operation>
+                </AppControl>
+            </AppControls>
+            <Accounts>
+                <AccountProvider MultipleAccountsSupport="True">
+                    <Icons>
+                        <Icon Section="Account">mainmenu.png</Icon>
+                        <Icon Section="AccountSmall">mainmenu.png</Icon>
+                    </Icons>
+                    <DisplayNames>
+                        <DisplayName Locale="eng-GB">Email</DisplayName>
+                    </DisplayNames>
+                </AccountProvider>
+            </Accounts>
+            <LaunchConditions/>
+        </UiApp>
+    </Apps>
+</Manifest>
diff --git a/packaging/apps.Email.spec b/packaging/apps.Email.spec
new file mode 100755 (executable)
index 0000000..d7fd604
--- /dev/null
@@ -0,0 +1,82 @@
+Name:       apps.Email
+Summary:    Email application
+Version:    1.0.0
+Release:    1
+Group:      TO_BE/FILLED_IN
+License:    TO BE FILLED IN
+Source0:    %{name}-%{version}.tar.gz
+BuildRequires:  cmake
+BuildRequires:  pkgconfig(osp-appfw)
+BuildRequires:  pkgconfig(osp-uifw)
+BuildRequires:  osp-appfw-internal-devel
+BuildRequires:  pkgconfig(osp-uifw)
+BuildRequires:  osp-uifw-internal-devel
+BuildRequires:  pkgconfig(osp-media)
+BuildRequires:  osp-media-internal-devel
+BuildRequires:  pkgconfig(osp-messaging)
+BuildRequires:  pkgconfig(osp-web)
+BuildRequires:  pkgconfig(osp-social)
+BuildRequires:  osp-messaging-internal-devel
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(dbus-1)
+BuildRequires:  pkgconfig(email-service)
+BuildRequires:  pkgconfig(osp-image)
+BuildRequires:  pkgconfig(osp-image-core)
+BuildRequires:  pkgconfig(osp-shell)
+BuildRequires:  pkgconfig(osp-json)
+BuildRequires:  hash-signer
+
+Requires: osp-installer
+
+%description
+Verification application: Email
+
+%prep
+%setup -q
+
+%build
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+%ifarch %{ix86}
+%if 0%{?simulator}
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%endif
+%else
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%endif
+
+# Call make instruction with smp support
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+cp LICENSE.Flora %{buildroot}/usr/share/license/%{name}
+%make_install
+###### for package signing step ######
+PKG_ID=vxqbrefica
+%define tizen_sign 1
+%define tizen_sign_base /usr/apps/${PKG_ID}
+%define tizen_sign_level platform
+%define tizen_author_sign 1
+%define tizen_dist_sign 1
+
+
+%post
+/sbin/ldconfig
+PKG_ID=vxqbrefica
+echo "/usr/etc/package-manager/backend/tpk -i /usr/apps/"${PKG_ID}
+/usr/etc/package-manager/backend/tpk -i /usr/apps/${PKG_ID}
+cp -f /usr/lib/osp/osp-ui-app-loader /usr/apps/${PKG_ID}/bin/Email
+
+%postun
+/sbin/ldconfig
+PKG_ID=vxqbrefica
+echo "/usr/etc/package-manager/backend/tpk -u "${PKG_ID}
+/usr/etc/package-manager/backend/tpk -u ${PKG_ID}
+
+%files
+%defattr(-,root,root,-)
+/usr/apps/*
+/usr/share/license/%{name}
diff --git a/res/.workflow b/res/.workflow
new file mode 100755 (executable)
index 0000000..b7228a4
Binary files /dev/null and b/res/.workflow differ
diff --git a/res/ara-AE.xml b/res/ara-AE.xml
new file mode 100755 (executable)
index 0000000..16cdcae
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">إبقاء في الخادم</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">إلغاء التحديد كمفضلة</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">الصادرة</text>
+    <text id="IDS_COM_POP_CLOSE">إغلاق</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">إرسال بريد إلكتروني</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">منفذ الصادر</text>
+    <text id="IDS_COM_POP_DELETE_Q">مسح؟</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">المجلدات</text>
+    <text id="IDS_EMAIL_OPT_VIEW">عرض</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">إضافة Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">بدون محتويات</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">الحماية</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">تحويل مع الملفات</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">يتعذر الإرفاق. الحد الأقصى لعدد الملفات يبلغ %d ملف</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">إعدادات الوارد</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">أمس</text>
+    <text id="IDS_COM_SK_NEXT">التالي</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">قائمة صندوق البريد</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">البريد العشوائي</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">المرسلة</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">الحساب موجود مسبقا</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">كل الرسائل الإلكترونية</text>
+    <text id="IDS_EMAIL_OPT_REPLY">رد</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">المستقبل</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">نوع خادم البريد الوارد</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">عنوان البريد الإلكتروني غير صالح</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">نقل</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">إضافة عنوان</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">لم يتم تحديد بريد إلكتروني</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">مسح الكل</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">جاري النقل...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">العنوان</text>
+    <text id="IDS_COM_POP_ERROR">خطأ</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">إلغاء</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">حساب الإرسال الافتراضي</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">ضبط الحساب</text>
+    <text id="IDS_EMAIL_OPT_ALL">الكل</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">التوصيل الآمن</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">تحذير</text>
+    <text id="IDS_EMAIL_BODY_RECENT">الحالي</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">تم الإرسال</text>
+    <text id="IDS_EMAIL_BODY_INBOX">الواردة</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">كل الحسابات</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">حجب الإيميلات</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">تمييز الكل كـ</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">ضعني في سطر مخفية دوما</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">إضافة التوقيع</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">هام</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">منفذ الوارد</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">حذف</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">التعيين كمفضلة</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">فشل المسح</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">يتعذر الإرفاق. يبلغ الحد الأقصى لحجم الملفات %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">تنزيل الرسالة كاملة</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">عرض كلمة المرور</text>
+    <text id="IDS_EMAIL_OPT_DATE">التاريخ</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">المرسل</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">قراءة</text>
+    <text id="IDS_EMAIL_BODY_TODAY">اليوم</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">الحساب</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">الضبط</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">الموضوع</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">إعداد يدوي</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">أخرى</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">غير مستخدمة</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">عرض كل المجلدات</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">عرض رسائل البريد الإلكتروني</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">إلحاق</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">جاري المسح...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">رسالة</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">إلغاء التحديد كمفضلة</text>
+    <text id="IDS_EMAIL_SK3_DONE">تمت</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">رد على المرسل</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">إلى</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">أوضاع البريد الإلكتروني</text>
+    <text id="IDS_EMAIL_POP_ALERT">تنبيه</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">مسح الكل؟</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">المسودات</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d مرفقات</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">الرد مع النص</text>
+    <text id="IDS_EMAIL_BODY_BCC">نسخة مخفية</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">خادم الصادر</text>
+    <text id="IDS_COM_OPT_SELECTED">محدد</text>
+    <text id="IDS_COM_BODY_SEND">إرسال</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">تحديد كغير مقروء</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">مرسل من الهاتف المحمول Samsung</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">بحث</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">اسم المستخدم</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">إعداد صندوق البريد</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">حفظ في المسودات؟</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">إضافة إلى تقويم</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">لا يوجد عنوان</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">الأسبوع الأخير</text>
+    <text id="IDS_COM_POP_PASSWORD">كلمة المرور</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">أقدم</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">لم تتم إضافة مستلمين. أدخل المستلمين</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">إنشاء</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">إضافة إلى جهة اتصال</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">عنوان البريد الإلكتروني</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">فشل النقل</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">مراجعة الحساب...</text>
+    <text id="IDS_COM_SK_ADD">إضافة</text>
+    <text id="IDS_COM_SK_MORE">المزيد</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">بريد إلكتروني</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">تحديد كمقروء</text>
+    <text id="IDS_EMAIL_BODY_CC">نسخة</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">إضافة موضوع</text>
+    <text id="IDS_EMAIL_BODY_TRASH">سلة المحذوفات</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">لا يوجد نص</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">رد على الكل</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">يتعذر إضافة حساب</text>
+    <text id="IDS_EMAIL_OPT_TITLE">العنوان</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">إضافة حسابات</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">المفضلة</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">يتعذر إرسال بريد إلكتروني</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">لا يوجد موضوع</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">إعدادات البريد الصادر</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">غير مقروء</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">خادم الوارد</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">التوقيع</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">إرفاق ملفات</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">تعيين الكل كـ</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">حجب</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">موجود مسبقا</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">تحويل</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">محجوب مسبقا</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">سيتم حذف جميع البيانات المتعلقة بهذا الحساب. متابعة؟</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">اسم الحساب</text>
+    <text id="IDS_COM_SK_UPDATE">تحديث</text>
+    <text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">تم بلوغ الحد الأقصى لعدد المستلمين (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">تم الوصول إلى أقصى عدد من الحروف</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">جار تنزيل المرفق...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">يتعذر التنزيل</text>
+<text id="IDS_COM_SK_OK">موافق</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">إضافة حساب</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">الذاكرة لا تكفي</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">يتعذر الحفظ في مسودات</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">مستلم مكرر</text>
+</string_table>
diff --git a/res/aze-AZ.xml b/res/aze-AZ.xml
new file mode 100755 (executable)
index 0000000..f51a61a
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Serverdə saxla</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Sevimli kimi sil</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Göndərilənlər qutusu</text>
+    <text id="IDS_COM_POP_CLOSE">Bağla</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Elektron məktubu göndər</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Gedənlər portu</text>
+    <text id="IDS_COM_POP_DELETE_Q">Silinsin?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Qovluqlar</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Bax</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Kk (Bkk) əlavə edin</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Kk/Bkk</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Məzmun yoxdur</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Təhlükəsizlik</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Fayllarla ötür</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Əlavə etmək mümkün deyil. Faylların maksimum sayı %d-dir</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Gələn parametrlər</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Dünən</text>
+    <text id="IDS_COM_SK_NEXT">Növbəti</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Poçt qutusu siyahısı</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spam qutusu</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Göndərilənlər</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Hesab artıq mövcuddur</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Bütün e-poçtlar</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Cavab ver</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Qəbul edən</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Daxilolan poçt serveri növü</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Yanlış E-poçt ünvanı</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Apar</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Ünvan əlavə edin</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Heç bir e-poçt seçilməmişdir</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Hamısı silindi</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Göndərilmə...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Ünvan</text>
+    <text id="IDS_COM_POP_ERROR">Xəta</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Ləğv et</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Susmaya görə göndərmə hesabı</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Hesab parametrləri</text>
+    <text id="IDS_EMAIL_OPT_ALL">Hamısını</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Təhlükəsiz rabitə</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Xəbərdarlıq</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Sonuncu</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Göndərildi</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Gələnlər</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Bütün hesablar</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Epoçtları blok edin</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Hamısını nişanla</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Həmişə özümə Bkk et</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Mənim isim kartımı əlavə et</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Vacib</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Gələnlər portu</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Sil</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Sevimlr kimi təyin et</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Silmək mümkün olmadı</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Əlavə etmək mümkün deyil. Faylların maksimum ölçüsü %d MB-dır</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Mesajı bütünlüklə yüklə</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Parolu göstərin</text>
+    <text id="IDS_EMAIL_OPT_DATE">Tarix</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Göndərən</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Oxunmuş</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Bu gün</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Hesab</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Parametrlər</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Mövzu</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Əl ilə qurşdırma</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Digərləri</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">İstifadə edilməmişdir</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Bütün qovluqları göstər</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">E-poçtları göstər</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Əlavə et</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Silinmə</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mesaj</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Sevimli kimi sil</text>
+    <text id="IDS_EMAIL_SK3_DONE">Bitdi</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Göndərənə cavab ver</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Kimə</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Epoçt parametrləri</text>
+    <text id="IDS_EMAIL_POP_ALERT">Xəbərdarlıq zəngi</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Hamısı silinsin?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Qaralamalar</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d qoşma</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Əsas hissə ilə cavab yaz</text>
+    <text id="IDS_EMAIL_BODY_BCC">Gizli surəti</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Gedən server</text>
+    <text id="IDS_COM_OPT_SELECTED">Seçilmişi</text>
+    <text id="IDS_COM_BODY_SEND">Göndər</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Oxunmamış kimi işarələ</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Samsung Mobile-dən göndərildi</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Axtarış</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">İstifadəçinin adı</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Poçt qutusu qurulması</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Qaralamada saxlansın?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Təqvimə əlavə edin</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Ünvan yoxdur</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Keçən həftə</text>
+    <text id="IDS_COM_POP_PASSWORD">Şifrə</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Köhnə</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Qəbul edən əlavə edilmədi. Qəbul edənləri daxil et</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Yarat</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Kontakta əlavə edin</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Elektron poçtu ünvanı</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Keçmə alınmadı</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Hesab təsdiqlənir...</text>
+    <text id="IDS_COM_SK_ADD">Əlavə et</text>
+    <text id="IDS_COM_SK_MORE">Daha çox</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Elektron poçtlar</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Oxunulmuş kimi nişanla</text>
+    <text id="IDS_EMAIL_BODY_CC">Surəti</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Mövzu əlavə et</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Tullantı</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Mətn yoxdur</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Hamıya cvb verin</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Hesab əlavə etmək mümkün deyil</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Başlıq</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Hesab əlavə et</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Sevimlilər</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Epoçt göndərmək mümkün deyil</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Mövzu yoxdur</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Gedən parametrlər</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Oxunmamış</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Gələn server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">İmza</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Fayllar əlavə et</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Hamısını qur</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokirovka et</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Artıq var</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Ötürün</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Artıq kilidləndi</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Bu hesabla bağlı bütün məlumatlar silinəcək. Davam edilsin?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Hesabın adı</text>
+    <text id="IDS_COM_SK_UPDATE">Yenilə</text>
+    <text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Qəbul edənlərin sayı maksimuma (%d) çatıb</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Simvol sayı maksimuma çatıb</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Əlavə yüklənir...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Yükləmək mümkün deyildir</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Hesab əlavə edin</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Yaddaş kifayət etmir</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Qaralamalarda saxlamaq mümkün deyil</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Duplikat qəbul edən</text>
+</string_table>
diff --git a/res/bul-BG.xml b/res/bul-BG.xml
new file mode 100755 (executable)
index 0000000..4ac7435
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Запази в сървъра</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Демарк. от предпоч.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Изxодяща кyтия</text>
+    <text id="IDS_COM_POP_CLOSE">Затваряне</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Изпращане на еmail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Порт изходящи</text>
+    <text id="IDS_COM_POP_DELETE_Q">Изтриване?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Папки</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Преглед</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Добави ЯК/СК</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">ЯК/СК</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Няма съдържание</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Защита</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Препращане с файловете</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Не може да се прикачи. Максималният брой файлове е %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Настройки за входящи</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Вчера</text>
+    <text id="IDS_COM_SK_NEXT">Следващ</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Списък с пощенски кутии</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Кутия за спам</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Кутия изпратени</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Акаунтът вече съществува</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Всички email-и</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Отговор</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Получател</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Тип сървър за входяща поща</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Невалиден имейл адрес</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Мести</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Добавяне на адрес</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Не е избран email</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Изтриване на всички</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Преместване</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Адрес</text>
+    <text id="IDS_COM_POP_ERROR">Грешка</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Отмени</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Акаунт аза изпращане по подразбиране</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Настройки на акаунт</text>
+    <text id="IDS_EMAIL_OPT_ALL">Всички</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Защитена връзка</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Предупреждение</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Последни</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Изпратен</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Входяща кутия</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Всички акаунти</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Блокиране на email-и</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Марк. всички като</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Винаги СК до мене</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Добави подпис</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Важно</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Порт входящи</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Изтриване</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Зад. като Предпочит.</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Неуспешно изтриване</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Не може да се прикачи. Максималният размер на файловете е %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Изтегляне на цялото съобщение</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Показване на паролата</text>
+    <text id="IDS_EMAIL_OPT_DATE">Дата</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Подател</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Прочетени</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Днес</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Акаунт</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Настройки</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Тема</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Ръчна настройка</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Други</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Не се използва</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Показване на всички папки</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Покажи имейлите</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Прикачване</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Изтриване...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Съобщение</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Демарк. от предпоч.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Готово</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Отговор до подателя</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">До</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Email настройки</text>
+    <text id="IDS_EMAIL_POP_ALERT">Сигнал</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Изтриване на всички?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Чернови</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d прикачени файла</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Отговор с тялото</text>
+    <text id="IDS_EMAIL_BODY_BCC">Скрито копие</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Изходящ сървър</text>
+    <text id="IDS_COM_OPT_SELECTED">Избрани</text>
+    <text id="IDS_COM_BODY_SEND">Изпращане</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Маркирай като нечетено</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Изпратено от Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Търси</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Потребителско име</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Настройки на пощенска кутия</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Запис в чернови?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Добави в календара</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Няма адрес</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Последна седмица</text>
+    <text id="IDS_COM_POP_PASSWORD">Парола</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">По-стари</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Няма добавени получатели. Въведете получатели</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Писане</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Добави към запис</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Email адрес</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Неуспешно преместване</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Потвърждаване на акаунта...</text>
+    <text id="IDS_COM_SK_ADD">Добави</text>
+    <text id="IDS_COM_SK_MORE">Още</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Маркирай като прочетено</text>
+    <text id="IDS_EMAIL_BODY_CC">Копие</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Добави тема</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Боклук</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Няма текст</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Отг. на всички</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Не може да се добави акаунт</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Заглавие</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Добавяне на акаунти</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Предпочитани</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Не може да се изпрати email</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Няма тема</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Изходящи настройки</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Непрочетени</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Входящ сървър</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Подпис</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Прикачване на файлове</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Зад. всички като</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Блокиране</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Вече съществува</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Препращане</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Вече блокиран</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Ще бъдат изтрити всички данни, свързани с този акаунт. Продължаване?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Име на акаунт</text>
+    <text id="IDS_COM_SK_UPDATE">Актуализация</text>
+    <text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Достигнат е максималният брой получатели (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Достигнат максимален брой знаци</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Изтегляне на приложение...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Не може да се изтегли</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Добавяне на акаунт</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Няма достатъчно памет</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Не може да се запише в Чернови</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Повтарящ се получател</text>
+</string_table>
diff --git a/res/cat-ES.xml b/res/cat-ES.xml
new file mode 100755 (executable)
index 0000000..b44a4f9
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Mantenir a servidor</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Desmarcar preferit</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Bústia de sortida</text>
+    <text id="IDS_COM_POP_CLOSE">Tancar</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Enviar correu electrònic</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port sortida</text>
+    <text id="IDS_COM_POP_DELETE_Q">Esborrar?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Carpetes</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Veure</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Afegir a/c o c/o</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">A/c - C/o</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">No hi ha continguts</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Seguretat</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Reenvia amb arxius</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Error d'adjunció. El nombre màxim de fitxers és %d MB</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Ajustaments d'entrada</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Ahir</text>
+    <text id="IDS_COM_SK_NEXT">Següent</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Llista de bústies</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Safata de correu brossa</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Enviats</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">El compte ja existeix</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Tots els correus electrònics</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Respondre</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinatari</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tipus de servidor de correu electrònic d'entrada</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Adreça correu electrònic no vàlida</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Moure</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Afegir adreça</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">No s'ha seleccionat cap correu electrònic</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Esborrar-ho tot</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Movent...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adreça</text>
+    <text id="IDS_COM_POP_ERROR">Error</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancel·lar</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Compte d'enviament predeterminat</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Ajustaments del compte</text>
+    <text id="IDS_EMAIL_OPT_ALL">Tot</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Connexió segura</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Advertiment</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recent</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Enviat</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Bústia d'entrada</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Tots els comptes</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloquejar correus electrònics</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Marcar tots com a</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Afegir-me sempre c/o</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Afegir signatura</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Important</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port entrada</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Esborrar</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Definir com Preferits</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Error en esborrar</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Error d'adjunció. La mida màxima de fitxers és %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Descarregar missatge complet</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Mostrar contrasenya</text>
+    <text id="IDS_EMAIL_OPT_DATE">Data</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Remitent</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Llegit</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Avui</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Compte</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Ajustaments</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Assumpte</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configuració manual</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Altres</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">No s'ha utilitzat</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Mostrar totes les carpetes</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Mostrar correus electrònics</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Adjuntar</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Esborrant...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Missatge</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Desmarcar preferit</text>
+    <text id="IDS_EMAIL_SK3_DONE">Finalit.</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Respondre al remitent</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">A</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Config corr elect</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alerta</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Esborrar-ho tot?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Esborranys</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d fitxers adjunts</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Respon amb el cos</text>
+    <text id="IDS_EMAIL_BODY_BCC">Aco</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Servidor de sortida</text>
+    <text id="IDS_COM_OPT_SELECTED">Seleccionat</text>
+    <text id="IDS_COM_BODY_SEND">Enviar</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marcar com a no llegit</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Enviat des de Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Cercar</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nom d'usuari</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configuració de bústia</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Desar a Esborranys?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Afegir al calendari</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Sense adreça</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Setmana passada</text>
+    <text id="IDS_COM_POP_PASSWORD">Contrasenya</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Més antic</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">No s'han afegit destinataris. Introdueixi'n</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Redactar</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Afegir a contacte</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Adreça de correu electrònic</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Error en moure</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">S'està validant el compte...</text>
+    <text id="IDS_COM_SK_ADD">Afegir</text>
+    <text id="IDS_COM_SK_MORE">Més</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Correu electrònic</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marcar com a llegit</text>
+    <text id="IDS_EMAIL_BODY_CC">Ac</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Afegir assumpte</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Paperera</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Sense text</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Respondre a tots</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">No es pot afegir el compte</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Títol</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Afegir comptes</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Preferits</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">No es pot enviar el missatge</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Sense assumpte</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Ajustaments de sortida</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Sense llegir</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Servidor d'entrada</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signatura</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Adjuntar fitxers</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Def tots com a</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloquejar</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Ja existeix</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Endavant</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Ja està bloquejat</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">S'esborraran totes les dades relacionades amb aquest compte. Continuar?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nom del compte</text>
+    <text id="IDS_COM_SK_UPDATE">Actualitzar</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">S'ha assolit el nombre màxim de destinataris (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">S'ha assolit el nombre màxim de caràcters</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">S'està descarregant un fitxer adjunt...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">No es pot descarregar</text>
+<text id="IDS_COM_SK_OK">Acceptar</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Afegir compte</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">No hi ha prou memòria</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">No es pot desar a Esborranys</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinatari duplicat</text>
+</string_table>
diff --git a/res/ces-CZ.xml b/res/ces-CZ.xml
new file mode 100755 (executable)
index 0000000..11495af
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Zachovat na serveru</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Zruš. ozn. jako obl.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Odchozí</text>
+    <text id="IDS_COM_POP_CLOSE">Zavřít</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Odeslat e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Odchozí port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Odstranit?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Složky</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Zobrazit</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Přidat příjemce Kopie/Skrytá</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Kopie/Skrytá</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Žádný obsah</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Zabezpečení</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Přeposlat se soubory</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Nelze připojit. Maximální počet souborů je %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Příchozí nastavení</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Včera</text>
+    <text id="IDS_COM_SK_NEXT">Další</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Seznam schránek</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Nevyžádaná pošta</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Odeslané</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Účet již existuje</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Všechny e-maily</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Odpověď</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Příjemce</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Typ serveru příchozí pošty</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Neplatná e-mailová adresa</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Přesun</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Přidat adresu</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nebyl vybrán žádný e-mail</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Odstranit vše</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Probíhá přesouvání</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresa</text>
+    <text id="IDS_COM_POP_ERROR">Chyba</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Zrušit</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Výchozí účet pro odesílání</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Nastavení účtu</text>
+    <text id="IDS_EMAIL_OPT_ALL">Vše</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Zabezpečené připojení</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Upozornění</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Poslední</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Odesláno</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Doručené</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Všechny účty</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokovat e-maily</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Označit vše jako</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Vždy poslat skrytou kopii sobě</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Přidat podpis</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Důležité</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Příchozí port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Odstranit</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Nast. jako Oblíbené</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Odstranění se nezdařilo</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Nelze připojit. Maximální velikost souborů je %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Stáhnout celou zprávu</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Zobrazit heslo</text>
+    <text id="IDS_EMAIL_OPT_DATE">Datum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Odesílatel</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Přečtené</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Dnes</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Účet</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Nastavení</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Předmět</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Ruční nastavení</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Jiné</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Nepoužito</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Zobrazit všechny složky</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Zobrazit e-maily</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Připojit</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Odstraňování...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Zpráva</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Zruš. ozn. jako obl.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Hotovo</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Odpovědět odesilateli</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Do</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Nastavení e-mailu</text>
+    <text id="IDS_EMAIL_POP_ALERT">Upozornění</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Odstranit vše?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Koncepty</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">Přílohy (%d)</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Odpovědět se zprávou</text>
+    <text id="IDS_EMAIL_BODY_BCC">BCC</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Server odchozí pošty</text>
+    <text id="IDS_COM_OPT_SELECTED">Vybráno</text>
+    <text id="IDS_COM_BODY_SEND">Odeslat</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Označit jako nepřečtenou</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Odesláno ze Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Hledat</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Uživatelské jméno</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Nastavení poštovní schránky</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Uložit do konceptů</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Přidat do Kalendáře</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Bez adresy</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Poslední týden</text>
+    <text id="IDS_COM_POP_PASSWORD">Heslo</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Starší</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nebyli přidání žádní příjemci. Zadejte příjemce</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Vytvořit</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Přidat do kontaktu</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-mailová adresa</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Přesunutí se nezdařilo</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Probíhá ověření účtu...</text>
+    <text id="IDS_COM_SK_ADD">Přidat</text>
+    <text id="IDS_COM_SK_MORE">Další</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Označit jako přečtené</text>
+    <text id="IDS_EMAIL_BODY_CC">CC</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Přidat předmět</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Koš</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Bez textu</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Odpověd. všem</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Účet nelze přidat</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Název</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Přidat účty</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Oblíbené</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">E-mail se nepodařilo odeslat</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Bez předmětu</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Nastavení odchozí pošty</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Nepřečteno</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Server příchozí pošty</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Podpis</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Připojit soubory</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Nastavit vše jako</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokovat</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Již existuje</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Předat</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Již zablokováno</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Všechna data související s tímto účtem budou odstraněna. Chcete pokračovat?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Název účtu</text>
+    <text id="IDS_COM_SK_UPDATE">Aktualizovat</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Bylo dosaženo maximálního počtu příjemců (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Bylo dosaženo maximálního počtu znaků</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Stahování přílohy...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Nelze stáhnout</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Přidat účet</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Nedostatek paměti</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Nepodařilo se uložit do Konceptů</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Duplicitní příjemce</text>
+</string_table>
diff --git a/res/dan-DK.xml b/res/dan-DK.xml
new file mode 100755 (executable)
index 0000000..bff9344
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Behold serverkopi</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Fjern mark. som for.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Udbakke</text>
+    <text id="IDS_COM_POP_CLOSE">Luk</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Send e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port for udgående</text>
+    <text id="IDS_COM_POP_DELETE_Q">Slet?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Mapper</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Vis</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Tilføj Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Intet indhold</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Sikkerhed</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Videresend med filer</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Kan ikke tilknytte. Maks. antal filer er %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Indstillinger for indgående</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">I går</text>
+    <text id="IDS_COM_SK_NEXT">Næste</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Liste over postkasse</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spambakke</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Sendte meddelelser</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Konto findes allerede</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Alle e-mails</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Svar</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Modtager</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Type af server til indgående post</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Ugyldig e-mailadresse</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Flyt</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Tilføj adresse</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Ingen e-mail valgt</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Slet alle</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Flytter ...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresse</text>
+    <text id="IDS_COM_POP_ERROR">Fejl</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Annullér</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Standard afsendelseskonto</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Kontoindstillinger</text>
+    <text id="IDS_EMAIL_OPT_ALL">Alle</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Sikker forbindelse</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Advarsel</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Seneste</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Sendt</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Indbakke</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Alle konti</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokér e-mails</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Markér alle som</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Send altid Bcc til mig selv</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Tilføj signatur</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Vigtig</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port for indgående</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Slet</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Indst. som Favoritter</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Sletning mislykkedes</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Kan ikke tilknytte. Maks. størrelse for filer er %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Download fuld meddelelse</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Vis adgangskode</text>
+    <text id="IDS_EMAIL_OPT_DATE">Dato</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Afsender</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Læst</text>
+    <text id="IDS_EMAIL_BODY_TODAY">I dag</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Konto</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Indstillinger</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Emne</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manuel opsætning</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Andre</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Ikke brugt</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Vis alle mapper</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Vis e-mails</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Vedhæft</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Sletter ...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Meddelelse</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Fjern mark. som for.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Udført</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Besvar afsender</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Til</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-mail-indstil.</text>
+    <text id="IDS_EMAIL_POP_ALERT">Advarsel</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Slet alle?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Udkast</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d vedhæftninger</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Svar med brødtekst</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Udgående server</text>
+    <text id="IDS_COM_OPT_SELECTED">Valgte</text>
+    <text id="IDS_COM_BODY_SEND">Send</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Markér som ulæst</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Sendt fra Samsung mobil</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Søg</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Brugernavn</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Opsætning af postkasse</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Gem i Udkast?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Føj til kalender</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Ingen adresse</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Sidste uge</text>
+    <text id="IDS_COM_POP_PASSWORD">Adgangskode</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Ældre</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Ingen modtagere tilføjet. Indtast modtagere</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Skriv</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Føj til kontakt</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-mailadresse</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Flytning mislykkedes</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validerer konto...</text>
+    <text id="IDS_COM_SK_ADD">Tilføj</text>
+    <text id="IDS_COM_SK_MORE">Flere</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Markér som læst</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Tilføj emne</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Affald</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Ingen tekst</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Svar alle</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Der kan ikke tilføjes konto</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Titel</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Tilføj konti</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoritter</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Kunne ikke sende e-mail</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Intet emne</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Udgående indstillinger</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Ulæst</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Indgående server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signatur</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Vedhæft filer</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Indstil alle som</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokér</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Findes allerede</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Videresend</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Allerede blokeret</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Alle data relateret til denne konto bliver slettet. Fortsæt?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Kontonavn</text>
+    <text id="IDS_COM_SK_UPDATE">Opdatér</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Det maksimale antal modtagere (%d) er nået</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Det maksimale antal tegn er nået</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Downloader vedhæftning...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Kunne ikke hente</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Tilføj konto</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Ikke nok hukommelse</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Kunne ikke gemme i Udkast</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Kopierede modtagere</text>
+</string_table>
diff --git a/res/deu-DE.xml b/res/deu-DE.xml
new file mode 100755 (executable)
index 0000000..0585cf5
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Auf Server behalten</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Favoriten aufheben</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Postausgang</text>
+    <text id="IDS_COM_POP_CLOSE">Schließen</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">E-Mail senden</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Ausgangs-Port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Löschen?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Ordner</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Anzeigen</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Cc/Bcc hinzufügen</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Kein Inhalt</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Sicherheit</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Mit Dateien weiterleiten</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Anhängen nicht möglich. Maximale Dateianzahl ist %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Anmeldeinformationen</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Gestern</text>
+    <text id="IDS_COM_SK_NEXT">Weiter</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Mailbox-Liste</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spamordner</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Gesendete Nachrichten</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Konto existiert bereits</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Alle E-Mails</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Antworten</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Empfänger</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Posteingangsserver-Typ</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Ungültige E-Mail-Adresse</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Verschieben</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Adresse hinzufügen</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Keine E-Mail ausgewählt</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Alle löschen</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Verschiebevorgang aktiv...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresse</text>
+    <text id="IDS_COM_POP_ERROR">Fehler</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Abbrechen</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Standardkonto – Senden</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Kontoeinstellungen</text>
+    <text id="IDS_EMAIL_OPT_ALL">Alle</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Sichere Verbindung</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Warnung</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Kürzlich</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Gesendet</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Posteingang</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Alle Konten</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">E-Mails sperren</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Alle mark. als</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Mich immer Bcc setzen</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Signatur anfügen</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Wichtig</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Eingangsport</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Löschen</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Als Favoriten festlg.</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Löschen fehlgeschlagen</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Anhängen nicht möglich. Maximale Dateigröße ist %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Vollständige Nachricht herunterladen</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Passwort anzeigen</text>
+    <text id="IDS_EMAIL_OPT_DATE">Datum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Absender</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Gelesen</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Heute</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Konto</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Einstellungen</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Betreff</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manuelles Einrichten</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Sonstiges</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Nicht verwendet</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Alle Ordner anzeigen</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">E-Mails anzeigen</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Anhängen</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Löschen...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Nachricht</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Favoriten aufheben</text>
+    <text id="IDS_EMAIL_SK3_DONE">OK</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Antwort an Absender</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">An</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-Mail Einstellungen</text>
+    <text id="IDS_EMAIL_POP_ALERT">Signal</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Alle löschen?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Entwürfe</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d Anhänge</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Mit Text antworten</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Ausgangsserver</text>
+    <text id="IDS_COM_OPT_SELECTED">Ausgewählt</text>
+    <text id="IDS_COM_BODY_SEND">Senden</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Als ungelesen markieren</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Von Samsung Mobile gesendet</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Suche</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Benutzername</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Einrichtung der Mailbox</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">In Entwürfe speichern</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Zu Kalender hinzufügen</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Keine Adresse</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Letzte Woche</text>
+    <text id="IDS_COM_POP_PASSWORD">Passwort</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Älter</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Keine Empfänger hinzugefügt. Empfänger hinzufügen.</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Verfassen</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Zu Kontakt hinzufügen</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-Mail-Adresse</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Verschieben fehlgeschlagen</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Konto wird validiert...</text>
+    <text id="IDS_COM_SK_ADD">Hinzufügen</text>
+    <text id="IDS_COM_SK_MORE">Optionen</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-Mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Als gelesen markieren</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Betreff hinzufügen</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Papierkorb</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Kein Text</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Allen antworten</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Konto kann nicht hinzugefügt werden</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Titel</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Konten hinzufügen</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoriten</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">E-Mail kann nicht gesendet werden.</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Kein Betreff</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Ausgangsserver</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Ungelesen</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Eingangsserver</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signatur</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Dateien anhängen</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Alle festleg. als</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Sperren</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Bereits vorhanden</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Weiterleiten</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Bereits gesperrt</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Alle mit diesem Konto verbundenen Daten werden gelöscht. Fortfahren?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Kontoname</text>
+    <text id="IDS_COM_SK_UPDATE">Aktual.</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maximale Anzahl an Empfängern (%d) erreicht</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Maximal zulässige Zeichenanzahl erreicht.</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Anhang wird heruntergeladen...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Download nicht möglich</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Konto hinzufügen</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Speicher voll</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Kann nicht in Entwürfe gespeichert werden</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Doppelter Empfänger</text>
+</string_table>
diff --git a/res/ell-GR.xml b/res/ell-GR.xml
new file mode 100755 (executable)
index 0000000..87a85fe
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Φύλαξη στο διακομιστή</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Κατάρ. ως αγαπημένων</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Εξερχόμενα</text>
+    <text id="IDS_COM_POP_CLOSE">Κλείσιμο</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Αποστολή email</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Θύρα εξερχόμενων</text>
+    <text id="IDS_COM_POP_DELETE_Q">Διαγραφή;</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Φάκελοι</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Προβολή</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Προσθήκη Κοιν./Ιδιαιτ. κοιν.</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Κ./Ιδ.κ.</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Κανένα περιεχόμενο</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Ασφάλεια</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Προώθηση με αρχεία</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Δεν είναι δυνατή η επισύναψη. Ο μέγιστος αριθμός αρχείων είναι %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Ρυθμίσεις εισερχομ.</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Xθές</text>
+    <text id="IDS_COM_SK_NEXT">Επόμενο</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Λίστα φακέλου αλληλογρ.</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Φάκελος ανεπιθύμητης αλληλογραφίας</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Απεσταλμένα</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Ο λογαριασμός υπάρχει ήδη</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Όλα τα email</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Απάντηση</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Παραλήπτης</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Τύπος διακομιστή εισερχόμενων email</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Μη έγκυρη διεύθυνση email</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Μετακίνηση</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Προσθήκη διεύθυνσης</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Δεν επιλέχθηκε email</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Διαγραφή όλων</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Μετακίνηση...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Διεύθυνση</text>
+    <text id="IDS_COM_POP_ERROR">Σφάλμα</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Άκυρο</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Προεπιλεγμένος λογαριασμός αποστολής</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Ρυθμίσεις λογαριασμού</text>
+    <text id="IDS_EMAIL_OPT_ALL">Όλα</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Ασφαλής σύνδεση</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Προειδοποίηση</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Πρόσφατα</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Εστάλη</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Εισερχόμενα</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Όλοι οι λογαριασμοί</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Αποκλεισμός μηνυμάτων email</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Επισήμ. όλων ως</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Να γίνεται πάντα Ιδ.Κοιν. σε εμένα</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Προσθήκη υπογραφής</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Σημαντικό</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Θύρα εισερχόμενων</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Διαγραφή</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Ορισμός ως Αγαπημένων</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Αποτυχία διαγραφής</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Δεν είναι δυνατή η επισύναψη. Το μέγιστο όριο μεγέθους των αρχείων είναι %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Λήψη πλήρους μηνύματος</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Εμφάνιση κωδικού πρόσβασης</text>
+    <text id="IDS_EMAIL_OPT_DATE">Ημερομηνία</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Αποστολέας</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Ανάγνωση</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Σήμερα</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Λογαριασμός</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Ρυθμίσεις</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Θέμα</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Μη αυτόματη ρύθμιση</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Άλλα</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Δεν χρησιμοποιείται</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Προβολή όλων των φακέλων</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Εμφάνιση email</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Επισύναψη</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Διαγραφή...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Μήνυμα</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Κατάρ. ως αγαπημένων</text>
+    <text id="IDS_EMAIL_SK3_DONE">Τέλος</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Απάντηση σε αποστολέα</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Προς</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Ρυθμίσεις email</text>
+    <text id="IDS_EMAIL_POP_ALERT">Ειδοποίηση</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Διαγραφή όλων;</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Πρόχειρο</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d συνημμένα</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Απαν.με κύριο κείμενο</text>
+    <text id="IDS_EMAIL_BODY_BCC">Ιδιαίτερη κοινοποίηση</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Διακομιστής εξερχομένων</text>
+    <text id="IDS_COM_OPT_SELECTED">Επιλεγμένο</text>
+    <text id="IDS_COM_BODY_SEND">Αποστ.</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Σήμανση ως μη αναγνωσμένο</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Αποστολή από κινητό Samsung</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Αναζήτηση</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Όνομα χρήστη</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Ρύθμιση φακέλου αλληλογραφίας</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Αποθήκευση στα πρόχειρα</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Προσθήκη στο ημερολόγιο</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Καμία διεύθυνση</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Προηγούμενη εβδομάδα</text>
+    <text id="IDS_COM_POP_PASSWORD">Κωδικός πρόσβασης</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Παλαιότερο</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Δεν έχουν προστεθεί παραλήπτες. Εισάγετε παραλήπτες</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Σύνθεση</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Προσθήκη σε επαφή</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Διεύθυνση Email</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Αποτυχία μετακίνησης</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Επαλήθευση λογαριασμού...</text>
+    <text id="IDS_COM_SK_ADD">Προσθήκη</text>
+    <text id="IDS_COM_SK_MORE">Περισσότ.</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Σήμανση ως αναγνωσμένου</text>
+    <text id="IDS_EMAIL_BODY_CC">Κοιν.</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Προσθήκη θέματος</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Απορρίμματα</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Χωρίς κείμενο</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Απάντ. σε όλους</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Δεν είναι δυνατή η προσθήκη του λογαριασμού</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Τίτλος</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Προσθήκη λογαριασμών</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Αγαπημένα</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Δεν ήταν δυνατή η αποστολή email</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Χωρίς θέμα</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Ρυθμίσεις εξερχομένων</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Μη αναγνωσμένο</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Διακομιστής εισερχομένων</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Υπογραφή</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Επισύναψη αρχείων</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Ρύθμιση όλων ως</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Αποκλεισμός</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Υπάρχει ήδη</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Προώθηση</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Είναι ήδη μπλοκαρισμένο</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Θα γίνει διαγραφή όλων των δεδομένων που έχουν σχέση με αυτόν τον λογαριασμό. Συνέχεια;</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Όνομα λογαριασμού</text>
+    <text id="IDS_COM_SK_UPDATE">Ενημέρωση</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Συμπληρώθηκε ο μέγιστος αριθμός παραληπτών (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Ο μέγιστος αριθμός χαρακτήρων συμπληρώθηκε</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Λήψη συνημμένου...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Δεν είναι δυνατή η λήψη</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Προσθήκη λογαριασμού</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Ανεπαρκής μνήμη</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Δεν ήταν δυνατή η αποθήκευση στα Πρόχειρα</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Διπλότυπος παραλήπτης</text>
+</string_table>
diff --git a/res/eng-GB.xml b/res/eng-GB.xml
new file mode 100755 (executable)
index 0000000..537a079
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Keep in server</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Unmark as favourites</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Outbox</text>
+    <text id="IDS_COM_POP_CLOSE">Close</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Send email</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Outgoing port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Delete?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Folders</text>
+    <text id="IDS_EMAIL_OPT_VIEW">View</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Add Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">No content</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Security</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Forward with files</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Unable to attach. Maximum number of files is %d.</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Incoming settings</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Yesterday</text>
+    <text id="IDS_COM_SK_NEXT">Next</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Mailbox list</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spambox</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Sentbox</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Account already exists</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">All emails</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Reply</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Recipient</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Incoming mail server type</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Invalid email address</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Move</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Add address</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">No email selected</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Delete all</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Moving...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Address</text>
+    <text id="IDS_COM_POP_ERROR">Error</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancel</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Default sending account</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Account settings</text>
+    <text id="IDS_EMAIL_OPT_ALL">All</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Secure connection</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Warning</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recent</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Sent</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Inbox</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">All accounts</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Block emails</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Mark all as</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Always Bcc myself</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Add signature</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Important</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Incoming port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Delete</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Set as Favourites</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Delete failed</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Unable to attach. Maximum size of files is %d MB.</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Download full message</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Show password</text>
+    <text id="IDS_EMAIL_OPT_DATE">Date</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Sender</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Read</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Today</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Account</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Settings</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Subject</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manual setup</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Others</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Not used</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Show all folders</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Show emails</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Attach</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Deleting...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Message</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Unmark as favourites</text>
+    <text id="IDS_EMAIL_SK3_DONE">Done</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Reply to sender</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">To</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Email settings</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alert</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Delete all?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Drafts</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d attachments</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Reply with body</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Outgoing server</text>
+    <text id="IDS_COM_OPT_SELECTED">Selected</text>
+    <text id="IDS_COM_BODY_SEND">Send</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Mark as unread</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Sent from Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Search</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Username</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Mailbox setup</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Save in Drafts?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Add to Calendar</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">No address</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Last week</text>
+    <text id="IDS_COM_POP_PASSWORD">Password</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Older</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">No recipients added. Enter recipients.</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Compose</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Add to contact</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Email address</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Moving failed</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validating account...</text>
+    <text id="IDS_COM_SK_ADD">Add</text>
+    <text id="IDS_COM_SK_MORE">More</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Mark as read</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Add subject</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Recycle bin</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">No text</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Reply all</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Unable to add account</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Title</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Add accounts</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favourites</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Unable to send email</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">No subject</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Outgoing settings</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Unread</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Incoming server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signature</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Attach files</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Set all as</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Block</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Already exists</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Forward</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Already blocked</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">All data related to this account will be deleted. Continue?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Account name</text>
+    <text id="IDS_COM_SK_UPDATE">Update</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maximum number of recipients (%d) reached</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Maximum number of characters reached</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Downloading attachment...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Unable to download</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Add account</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Not enough memory</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Unable to save in Drafts</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Duplicated recipient</text>
+</string_table>
diff --git a/res/eng-PH.xml b/res/eng-PH.xml
new file mode 100755 (executable)
index 0000000..66556b5
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Keep in server</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Unmark as favorites</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Outbox</text>
+    <text id="IDS_COM_POP_CLOSE">Close</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Send Email</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Outgoing port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Delete?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Folders</text>
+    <text id="IDS_EMAIL_OPT_VIEW">View</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Add Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">No contents</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Security</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Forward with files</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Unable to attach. Maximum number of files is %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Incoming settings</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Yesterday</text>
+    <text id="IDS_COM_SK_NEXT">Next</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Mailbox list</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spambox</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Sentbox</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Account already exists</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">All Emails</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Reply</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Recipient</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Incoming mail server type</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Invalid Email address</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Move</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Add address</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">No Email selected</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Delete all</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Moving...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Address</text>
+    <text id="IDS_COM_POP_ERROR">Error</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancel</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Default sending account</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Account settings</text>
+    <text id="IDS_EMAIL_OPT_ALL">All</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Secure connection</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Warning</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recent</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Sent</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Inbox</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">All accounts</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Block Emails</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Mark all as</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Always Bcc myself</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Add signature</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Important</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Incoming port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Delete</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Set as Favorites</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Delete failed</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Unable to attach. Maximum size of files is %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Download full message</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Show password</text>
+    <text id="IDS_EMAIL_OPT_DATE">Date</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Sender</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Read</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Today</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Account</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Settings</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Subject</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manual set-up</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Others</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Not used</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Show all folders</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Show Emails</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Attach</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Deleting...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Message</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Unmark as favorites</text>
+    <text id="IDS_EMAIL_SK3_DONE">Done</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Reply to sender</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">To</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Email settings</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alert</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Delete all?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Drafts</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d attachments</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Reply with body</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Outgoing server</text>
+    <text id="IDS_COM_OPT_SELECTED">Selected</text>
+    <text id="IDS_COM_BODY_SEND">Send</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Mark as unread</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Sent from Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Search</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Username</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Mailbox setup</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Save in Drafts?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Add to Calendar</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">No address</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Last week</text>
+    <text id="IDS_COM_POP_PASSWORD">Password</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Older</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">No recipients added. Enter recipients</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Compose</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Add to contact</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Email address</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Moving failed</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validating account...</text>
+    <text id="IDS_COM_SK_ADD">Add</text>
+    <text id="IDS_COM_SK_MORE">More</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Mark as read</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Add subject</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Trash</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">No text</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Reply all</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Unable to add account</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Title</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Add accounts</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favorites</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Unable to send email</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">No subject</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Outgoing settings</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Unread</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Incoming server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signature</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Attach files</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Set all as</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Block</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Already exists</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Forward</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Already blocked</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">All data related to this account will be deleted. Continue?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Account name</text>
+    <text id="IDS_COM_SK_UPDATE">Update</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maximum number of recipients (%d) reached</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Maximum number of characters reached</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Downloading attachment...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Unable to download</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Add account</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Not enough memory</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Unable to save in Drafts</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Duplicated recipient</text>
+</string_table>
diff --git a/res/eng-US.xml b/res/eng-US.xml
new file mode 100755 (executable)
index 0000000..52d1cb5
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Keep in server</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Unmark as favorites</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Outbox</text>
+    <text id="IDS_COM_POP_CLOSE">Close</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Send email</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Outgoing port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Delete?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Folders</text>
+    <text id="IDS_EMAIL_OPT_VIEW">View</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Add Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">No contents</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Security</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Forward with files</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Unable to attach. Maximum number of files is %d.</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Incoming settings</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Yesterday</text>
+    <text id="IDS_COM_SK_NEXT">Next</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Mailbox list</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spambox</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Sentbox</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Account already exists</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">All emails</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Reply</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Recipient</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Incoming mail server type</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Invalid email address</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Move</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Add address</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">No email selected</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Delete all</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Moving...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Address</text>
+    <text id="IDS_COM_POP_ERROR">Error</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancel</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Default sending account</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Account settings</text>
+    <text id="IDS_EMAIL_OPT_ALL">All</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Secure connection</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Warning</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recent</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Sent</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Inbox</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">All accounts</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Block emails</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Mark all as</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Always Bcc myself</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Add signature</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Important</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Incoming port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Delete</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Set as Favorites</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Delete failed</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Unable to attach. Maximum size of files is %d MB.</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Download full message</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Show password</text>
+    <text id="IDS_EMAIL_OPT_DATE">Date</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Sender</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Read</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Today</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Account</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Settings</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Subject</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manual setup</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Others</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Not used</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Show all folders</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Show emails</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Attach</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Deleting...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Message</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Unmark as favorites</text>
+    <text id="IDS_EMAIL_SK3_DONE">Done</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Reply to sender</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">To</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Email settings</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alert</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Delete all?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Drafts</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d attachments</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Reply with body</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Outgoing server</text>
+    <text id="IDS_COM_OPT_SELECTED">Selected</text>
+    <text id="IDS_COM_BODY_SEND">Send</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Mark as unread</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Sent from Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Search</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">User name</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Mailbox setup</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Save in Drafts?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Add to Calendar</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">No address</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Last week</text>
+    <text id="IDS_COM_POP_PASSWORD">Password</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Older</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">No recipients added. Enter recipients.</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Compose</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Add to contact</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Email address</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Moving failed</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validating account...</text>
+    <text id="IDS_COM_SK_ADD">Add</text>
+    <text id="IDS_COM_SK_MORE">More</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Mark as read</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Add subject</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Trash</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">No text</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Reply all</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Unable to add account</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Title</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Add accounts</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favorites</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Unable to send email</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">No subject</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Outgoing settings</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Unread</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Incoming server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signature</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Attach files</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Set all as</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Block</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Already exists</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Forward</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Already blocked</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">All data related to this account will be deleted. Continue?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Account name</text>
+    <text id="IDS_COM_SK_UPDATE">Update</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maximum number of recipients (%d) reached</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Maximum number of characters reached</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Downloading attachment...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Unable to download</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Add account</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Not enough memory</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Unable to save in Drafts</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Duplicated recipient</text>
+</string_table>
diff --git a/res/est-EE.xml b/res/est-EE.xml
new file mode 100755 (executable)
index 0000000..6f05e75
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Säilita serveris</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Tüh. lemmikute märg.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Väljundkaust</text>
+    <text id="IDS_COM_POP_CLOSE">Sulge</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Saada e-kiri</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Väljuv port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Kustutada?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Kaustad</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Kuva</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Lisa koopia/pimekoopia</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Koopia/pimekoopia</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Sisusid ei ole</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Turvalisus</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Edasta koos failidega</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Ei saa manustada. Failide maksimaalne arv on %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Saabuvate seaded</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Eile</text>
+    <text id="IDS_COM_SK_NEXT">Järgmine</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Postkastiloend</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Rämpspost</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Saadetud sõnumite postkast</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Konto on juba olemas</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Kõik e-kirjad</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Vasta</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Adressaat</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Sissetuleva posti serveri tüüp</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Vale e-posti aadress</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Teisalda</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Lisa aadress</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Ühtegi e-kirja pole valitud</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Kustuta kõik</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Teisaldamine...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Aadress</text>
+    <text id="IDS_COM_POP_ERROR">Tõrge</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Tühista</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Vaikimisi saatmiskonto</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Konto seaded</text>
+    <text id="IDS_EMAIL_OPT_ALL">Kõik</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Turvaline ühendus</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Hoiatus</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Hiljutised</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Saadetud</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Sisendkaust</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Kõik kontod</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokeeri e-kirjad</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Märgi kõik kui</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Pimekoopia alati mulle</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Lisa allkiri</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Tähtis</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Sissetulev port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Kustuta</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Määra lemmikuteks</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">BT-peakomplekt sees</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Ei saa manustada. Failide maksimaalne suurus on %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Laadi terve sõnum alla</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Kuva parool</text>
+    <text id="IDS_EMAIL_OPT_DATE">Kuupäev</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Saatja</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Loetud</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Täna</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Konto</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Seaded</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Teema</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Käsitsi seadistamine</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Muud</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Pole kasutusel</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Näita kõiki kaustu</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Kuva e-kirjad</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Manusta</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Kustutamine...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Sõnum</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Tüh. lemmikute märg.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Valmis</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Vasta saatjale</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Saaja</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-posti seaded</text>
+    <text id="IDS_EMAIL_POP_ALERT">Märguanne</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Kustutada kõik?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Mustandid</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d manust</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Vasta koos kehaga</text>
+    <text id="IDS_EMAIL_BODY_BCC">Pimekoopia</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Väljaminev server</text>
+    <text id="IDS_COM_OPT_SELECTED">Valitud</text>
+    <text id="IDS_COM_BODY_SEND">Saada</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Märgi kui lugemata</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Saadetud asukohast Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Otsi</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Kasutajanimi</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Postkasti seadistamine</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Salvestada mustanditesse?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Lisa kalendrisse</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Aadress puudub</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Eelmine nädal</text>
+    <text id="IDS_COM_POP_PASSWORD">Parool</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Vanemad</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Adressaate pole lisatud. Sisestage adressaadid</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Koosta</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Lisa kontaktile</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-posti aadress</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Teisaldamine nurjus</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Konto valideerimine...</text>
+    <text id="IDS_COM_SK_ADD">Lisa</text>
+    <text id="IDS_COM_SK_MORE">Veel</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-post</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Märgi loetuks</text>
+    <text id="IDS_EMAIL_BODY_CC">Koopia</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Lisa teema</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Rämpspost</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Tekstita</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Vasta kõigile</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Kontot ei saa lisada</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Pealkiri</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Lisa kontod</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Lemmikud</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">E-kirja ei saa saata</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Teema puudub</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Väljuvad seaded</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Lugemata</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Sissetulev server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Allkiri</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Manusta faile</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Määra kõik kui</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokeeri</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Juba olemas</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Edasta</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">On juba blokeeritud</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Kõik selle kontoga seotud andmed kustutatakse. Kas jätkata?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Konto nimi</text>
+    <text id="IDS_COM_SK_UPDATE">Värskenda</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maksimaalne adressaatide arv (%d) on saavutatud</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Lubatud arv märke on täis</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Manuse allalaadimine...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Ei saa alla laadida</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Lisa konto</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Mälu pole piisavalt</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Ei saa salvestada mustanditesse</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Mitu adressaati</text>
+</string_table>
diff --git a/res/eus-ES.xml b/res/eus-ES.xml
new file mode 100755 (executable)
index 0000000..5b87537
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Zerbitzarian gorde</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Kendu gogokoen marka</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Irteera postontzia</text>
+    <text id="IDS_COM_POP_CLOSE">Itxi</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Mezu elektronikoa bidali</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Irteera ataka</text>
+    <text id="IDS_COM_POP_DELETE_Q">Ezabatu?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Karpetak</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Ikusi</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Gehitu Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Ez dago edukirik</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Segurtasuna</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Fitxategiekin birbidali</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Ezin da erantsi. Gehieneko fitxategi kopurua %d da</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Sarrerako ezarpenak</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Atzo</text>
+    <text id="IDS_COM_SK_NEXT">Hurrengoa</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Postontzi zerrenda</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spam postontzia</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Bi. pos.</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Kontua dagoeneko bada</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Posta elektroniko guztiak</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Erantzun</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Hartzailea</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Sarrera posta zerbitzari mota</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Helbide elektroniko baliogabea</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Mugitu</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Gehitu helbidea</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Ez da posta mezurik aukeratu</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Dena(k) ezabatu</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Mugitzen...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Helbidea</text>
+    <text id="IDS_COM_POP_ERROR">Akatsa</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Ezeztatu</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Lehenetsitako bidaltze kontua</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Kontuaren konfigurazioa</text>
+    <text id="IDS_EMAIL_OPT_ALL">Guztia(k)</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Konexio segurua</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Oharra</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Berriki</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Bidalitakoak</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Sarrera postontzia</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Kontu guztiak</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokeatu mezu elektronikoak</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Mark. denak honela</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Beti Bcc niri</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Sinadura gehitu</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Garrantzitsua</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Sarrera ataka</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Ezabatu</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Ezarri Gogoko gisa</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Akatsa ezabatzerakoan</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Ezin da erantsi. Fitxategien gehienezko neurria %d MB da</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Deskargatu mezu osoa</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Erakutsi pasahitza</text>
+    <text id="IDS_EMAIL_OPT_DATE">Data</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Igorlea</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Irakurri</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Gaur</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Kontua</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Ezarpenak</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Gaia</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Eskuzko konfigurazioa</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Besteak</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Erabili gabe</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Erakutsi karpeta guztiak</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Erakutsi mezu elektronikoak</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Erantsi</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Ezabatzen...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mezua</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Kendu gogokoen marka</text>
+    <text id="IDS_EMAIL_SK3_DONE">Amaituta</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Igorleari erantzun</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Hartzailea</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Posta ezarpenak</text>
+    <text id="IDS_EMAIL_POP_ALERT">Abisua</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Dena ezabatu?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Zirriborroa</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d eranskin</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Gorputzdun erantzuna</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Irteerako zerbitzaria</text>
+    <text id="IDS_COM_OPT_SELECTED">Aukeratutakoa(k)</text>
+    <text id="IDS_COM_BODY_SEND">Bidali</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Ez irakurria bezala markatu</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Samsung Mobiletik bidalita</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Bilatu</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Erabiltzaile izena</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Postontzi konfigurazioa</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Zirriborroetan gorde?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Gehitu egutegira</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Ez dago helbiderik</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Azkeneko astea</text>
+    <text id="IDS_COM_POP_PASSWORD">Pasahitza</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Zaharragoa</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Ez da hartzailerik gehitu. Adierazi hartzaileak</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Sortu</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Kontaktuari gehitu</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Posta elektronikoaren helbidea</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Errorea mugitzerakoan</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Kontua baliozkotzen...</text>
+    <text id="IDS_COM_SK_ADD">Gehitu</text>
+    <text id="IDS_COM_SK_MORE">Gehiago</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Posta elektroniko mezuak</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Irakurria bezala markatu</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Gehitu gaia</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Zakarrontzia</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Testurik ez</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Denei erantzun</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Ezin da kontua gehitu</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Izenburua</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Gehitu kontuak</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Gogokoenak</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Ezin da mezu elektronikoa bidali</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Gairik gabe</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Irteera ezarpenak</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Irakurri gabea</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Sarrerako zerbitzaria</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Sinadura</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Fitxategiak erantsi</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Ezarri honela</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokeatu</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Dagoeneko badago</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Birbidali</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Dagoeneko blokeatuta</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Kontu honi buruzko datu guztiak ezabatuko dira. Jarraitu?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Kontuaren izena</text>
+    <text id="IDS_COM_SK_UPDATE">Eguneratu</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Gehienezko hartzaile kopurura (%d) iritsi zara</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Gehienezko karaktere kopurura heldu zara</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Eranskina deskargatzen...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Ezin da deskargatu</text>
+<text id="IDS_COM_SK_OK">Ados</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Kontua gehitu</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Ez dago memoria nahikoa</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Ezin da Zirriborroetan gorde</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Hartzaile bikoiztua</text>
+</string_table>
diff --git a/res/fin-FI.xml b/res/fin-FI.xml
new file mode 100755 (executable)
index 0000000..efee76e
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Säilytä palvelimella</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Poista suos. merk.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Lähtevät</text>
+    <text id="IDS_COM_POP_CLOSE">Sulje</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Lähetä sähköpostiviesti</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Lähtevän portti</text>
+    <text id="IDS_COM_POP_DELETE_Q">Poistetaanko?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Kansiot</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Näytä</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Lisää kopio/piilokopio</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Ei sisältöjä</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Turvallisuus</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Välitä tiedos. kanssa</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Ei voi liittää. Tiedostojen enimmäismäärä on %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Saapuvat asetukset</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Eilen</text>
+    <text id="IDS_COM_SK_NEXT">Seuraava</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Postilaatikkoluettelo</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Roskapostilaatikko</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Lähetetyt</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Tili on jo olemassa</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Kaikki sähköpostit</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Vastaa</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Vastaanottaja</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Saapuvan postin palvelimen tyyppi</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Virheellinen sähköpostiosoite</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Siirrä</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Lisää osoite</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Yhtään sähköpostiviestiä ei ole valittu</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Poista kaikki</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Siirretään...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Osoite</text>
+    <text id="IDS_COM_POP_ERROR">Virhe</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Peruuta</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Oletuslähetystili</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Tilin asetukset</text>
+    <text id="IDS_EMAIL_OPT_ALL">Kaikki</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Suojattu yhteys</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Varoitus</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Viimeisimmät</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Lähetetty</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Saapuneet</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Kaikki tilit</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Torju sähköpostiviestit</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Merk. k. tilaan</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Itselle aina piilokopio</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Lisää allekirjoitus</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Tärkeä</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Saapuvan portti</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Poista</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Aseta suosikeiksi</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Poisto epäonnistui</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Ei voi liittää. Tiedostojen enimmäiskoko on %d kt</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Lataa koko viesti</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Näytä salasana</text>
+    <text id="IDS_EMAIL_OPT_DATE">Päivämäärä</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Lähettäjä</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Luettu</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Tänään</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Tili</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Asetukset</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Aihe</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manuaalinen asennus</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Muut</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Ei käytössä</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Näytä kaikki kansiot</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Näytä sähköpostiviestit</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Liitä</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Poistetaan...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Viesti</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Poista suos. merk.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Valmis</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Vastaa lähettäjälle</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Vastaanottaja</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Sähköpostiaset.</text>
+    <text id="IDS_EMAIL_POP_ALERT">Hälytys</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Poistetaanko kaikki?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Luonnokset</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d liitettä</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Vastaa tekstin kanssa</text>
+    <text id="IDS_EMAIL_BODY_BCC">Piilokopio</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Lähtevien viestien palvelin</text>
+    <text id="IDS_COM_OPT_SELECTED">Valittu</text>
+    <text id="IDS_COM_BODY_SEND">Lähetä</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Merkitse lukemattomaksi</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Lähetetty Samsung Mobilesta</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Etsi</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Käyttäjän nimi</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Postilaatikon asennus</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Tallenna Luonnoksiin</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Lisää kalenteriin</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Ei osoitetta</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Viime viikko</text>
+    <text id="IDS_COM_POP_PASSWORD">Salasana</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Vanhempi</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Vastaanottajia ei lisätty. Anna vastaanottajat</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Luo</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Lisää yhteystietoon</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Sähköpostiosoite</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Siirto epäonnistui</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Tarkistetaan tiliä...</text>
+    <text id="IDS_COM_SK_ADD">Lisää</text>
+    <text id="IDS_COM_SK_MORE">Lisää</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Sähköposti</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Merkitse luetuksi</text>
+    <text id="IDS_EMAIL_BODY_CC">Kopio</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Lisää aihe</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Roskakori</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Ei tekstiä</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Vastaa kaikkiin</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Tiliä ei voi lisätä</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Otsikko</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Lisää tilejä</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Suosikit</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Sähköpostia ei voi lähettää</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Ei aihetta</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Lähtevät asetukset</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Lukematon</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Saapuvien viestien palvelin</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Allekirjoitus</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Liitä tiedostot</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Aseta k. tilaan</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Estä</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">On jo olemassa</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Lähetä edelleen</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Valmiiksi estetty</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Kaikki tähän tiliin liittyvät tiedot poistetaan. Jatketaanko?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Tilin nimi</text>
+    <text id="IDS_COM_SK_UPDATE">Päivitä</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Vastaanottajien enimmäismäärä (%d) on saavutettu</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Merkkien enimmäismäärä saavutettu</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Ladataan liitettä...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Lataus ei onnistu</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Lisää tili</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Ei tarpeeksi muistia</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Ei voi tallentaa luonnoksiin</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Vastaanottaja esiintyy kahdesti</text>
+</string_table>
diff --git a/res/fra-CA.xml b/res/fra-CA.xml
new file mode 100755 (executable)
index 0000000..4f21574
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Garder sur le serveur</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Suppr. des favoris</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Boite d'envoi</text>
+    <text id="IDS_COM_POP_CLOSE">Fermer</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Envoyer un courriel</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port sortant</text>
+    <text id="IDS_COM_POP_DELETE_Q">Supprimer ?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Dossiers</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Afficher</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Ajouter Cc/Cci</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Cci</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Aucun contenu</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Sécurité</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Transférer fichiers</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Impossible d'ajouter la pièce jointe. Le nombre maximum de fichiers est %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Paramètres des messages entrants</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Hier</text>
+    <text id="IDS_COM_SK_NEXT">Suivant</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Liste messagerie</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Boite des spams</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Messages envoyés</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Ce compte existe déjà</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Tous les courriels</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Répondre</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinataire</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Type de serveur de courriel entrant</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Adresse courriel incorrecte</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Déplacer</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Ajouter l'adresse</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Aucun courriel sélectionné</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Tout supprimer</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Déplacement...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresse</text>
+    <text id="IDS_COM_POP_ERROR">Erreur</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Annuler</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Compte d'envoi par défaut</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Paramètres du compte</text>
+    <text id="IDS_EMAIL_OPT_ALL">Tous</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Connexion sécurisée</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Avertissement</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Récent</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Envoyé</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Boite de réception</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Tous les comptes</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloquer les courriels</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Tt marquer comme</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Toujours me mettre en Cci</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Ajouter une signature</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Important</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port entrant</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Supprimer</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Définir comme favoris</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Échec de suppression</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Impossible d'ajouter la pièce jointe. La taille maximale des fichiers est de %d Ko</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Télécharger l'intégralité du message</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Afficher le mot de passe</text>
+    <text id="IDS_EMAIL_OPT_DATE">Date</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Expéditeur</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lu</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Aujourd'hui</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Compte</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Paramètres</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Objet</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configuration manuelle</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Autres</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Non utilisé</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Afficher tous les dossiers</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Afficher les courriels</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Joindre</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Suppression ...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Message</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Suppr. des favoris</text>
+    <text id="IDS_EMAIL_SK3_DONE">OK</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Répondre à l'expéditeur</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">À</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Paramètres courriel</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alerte</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Tout supprimer ?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Brouillons</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d pièces jointes</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Inclure le corps du texte dans la réponse</text>
+    <text id="IDS_EMAIL_BODY_BCC">Cci</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Serveur sortant</text>
+    <text id="IDS_COM_OPT_SELECTED">Sélectionné</text>
+    <text id="IDS_COM_BODY_SEND">Envoyer</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marquer comme Non lu</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Envoyé depuis un mobile Samsung</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Recherche</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nom d'utilisateur</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configuration messagerie</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Enregistrer dans Brouillons ?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Ajouter au calendrier</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Aucune adresse</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Dernière semaine</text>
+    <text id="IDS_COM_POP_PASSWORD">Mot de passe</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Ancien</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Aucun destinataire ajouté. Sélectionnez-en</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Rédiger</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Ajouter aux contacts</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Adresse courriel</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Échec du déplacement</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validation du compte...</text>
+    <text id="IDS_COM_SK_ADD">Ajouter</text>
+    <text id="IDS_COM_SK_MORE">Plus</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Courriel</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marqué comme lu</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Ajouter un objet</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Corbeille</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Aucun texte</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Répondre à tous</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Impossible d'ajouter le compte</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Titre</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Ajouter des comptes</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoris</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Impossible d'envoyer le courriel</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Aucun objet</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Paramètres sortants</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Non lu</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Serveur entrant</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signature</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Joindre des fichiers</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Tt définir comme</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloquer</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Existe déjà</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Transférer</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Déjà bloqué</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Toutes les données associées à ce compte seront supprimées. Continuer ?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nom du compte</text>
+    <text id="IDS_COM_SK_UPDATE">Mettre à jour</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Nombre maximum de destinataires (%d) atteint</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Nb. max. de caractères atteint</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Téléchargement de la pièce jointe...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Téléchargement impossible</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Ajouter un compte</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Mémoire insuffisante</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Impossible d'enregistrer dans Brouillons</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinataire en double</text>
+</string_table>
diff --git a/res/fra-FR.xml b/res/fra-FR.xml
new file mode 100755 (executable)
index 0000000..b186694
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Conserver sur le serveur</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Suppr. des favoris</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Boîte d'envoi</text>
+    <text id="IDS_COM_POP_CLOSE">Fermer</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Envoyer un e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port sortant</text>
+    <text id="IDS_COM_POP_DELETE_Q">Supprimer ?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Dossiers</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Afficher</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Ajouter Cc/Cci</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Cci</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Aucun fichier</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Sécurité</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Transférer fichiers</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Impossible d'ajouter la pièce jointe. Le nombre maximum de fichiers est %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Paramètres entrants</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Hier</text>
+    <text id="IDS_COM_SK_NEXT">Suivant</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Liste messagerie</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Boîte des spams</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Messages envoyés</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Ce compte existe déjà</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Tous les e-mails</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Répondre</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinataire</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Type de serveur d'e-mail entrant</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">E-mail incorrect</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Déplacer</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Ajouter adresse</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Aucun e-mail sélectionné</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Tout supprimer</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Déplacement...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresse</text>
+    <text id="IDS_COM_POP_ERROR">Erreur</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Annuler</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Compte d'envoi par défaut</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Paramètres du compte</text>
+    <text id="IDS_EMAIL_OPT_ALL">Tout</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Connexion sécurisée</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Avertissement</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Récent</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Envoyé(s)</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Boîte de réception</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Tous les comptes</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloquer les e-mails</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Tt marquer comme</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Toujours me mettre en copie</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Ajouter une signature</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Important</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port entrant</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Supprimer</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Définir comme favoris</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Échec de suppression</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Impossible d'ajouter la pièce jointe. La taille maximale des fichiers est de %d Ko</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Télécharger l'intégralité du message</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Afficher le mot de passe</text>
+    <text id="IDS_EMAIL_OPT_DATE">Date</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Expéditeur</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lu</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Aujourd'hui</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Compte</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Paramètres</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Objet</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configuration manuelle</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Autres</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Non utilisé</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Afficher tous les dossiers</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Afficher e-mails</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Joindre</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Suppression...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Message</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Suppr. des favoris</text>
+    <text id="IDS_EMAIL_SK3_DONE">OK</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Répondre à l'expéditeur</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">A</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Paramètres e-mail</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alerte</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Tout supprimer ?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Brouillons</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d pièces jointes</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Répondre avec le corps</text>
+    <text id="IDS_EMAIL_BODY_BCC">Cci</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Serveur sortant</text>
+    <text id="IDS_COM_OPT_SELECTED">Sélectionné</text>
+    <text id="IDS_COM_BODY_SEND">Envoyer</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marquer comme Non lu</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Envoyé depuis un mobile Samsung</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Rechercher</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nom d'utilisateur</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configuration messagerie</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Enregistrer dans Brouillons ?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Ajouter au calendrier</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Aucune adresse</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Dernière semaine</text>
+    <text id="IDS_COM_POP_PASSWORD">Mot de passe</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Ancien</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Aucun destinataire ajouté. Sélectionnez</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Rédiger</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Ajouter aux contacts</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Adresse e-mail</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Échec du déplacement</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validation du compte...</text>
+    <text id="IDS_COM_SK_ADD">Ajouter</text>
+    <text id="IDS_COM_SK_MORE">Plus</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marqué comme lu</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Ajouter objet</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Corbeille</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Aucun texte</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Répondre à tous</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Impossible d'ajouter le compte</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Titre</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Ajouter des comptes</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoris</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Impossible d'envoyer l'e-mail</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Aucun objet</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Paramètres sortants</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Non lu</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Serveur entrant</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signature</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Joindre des fichiers</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Tt définir comme</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloquer</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Existe déjà</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Transférer</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Déjà bloqué</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Toutes les données associées à ce compte seront supprimées. Continuer ?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nom du compte</text>
+    <text id="IDS_COM_SK_UPDATE">MàJ</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Nombre maximum de destinataires (%d) atteint</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Nb. max. de caractères atteint</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Téléchargement de la pièce jointe...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Téléchargement impossible</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Ajouter compte</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Mémoire insuffisante</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Impossible d'enregistrer dans Brouillons</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinataire en double</text>
+</string_table>
diff --git a/res/gle-IE.xml b/res/gle-IE.xml
new file mode 100755 (executable)
index 0000000..ca2fdc5
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Coinnigh san fhreastalaí</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Bain mar cheanáin</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Bosca amach</text>
+    <text id="IDS_COM_POP_CLOSE">Dún</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Seol r-phost</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port amach</text>
+    <text id="IDS_COM_POP_DELETE_Q">Scrios?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Fillteáin</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Amharc air</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Cuir Cc/Bcc leis</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Níl inneachar ann</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Slándáil</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Ar aghaidh le comhaid</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Ní féidir cur i ceangal. Is %d uaslíon na gcomhad</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Socruithe isteach</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Inné</text>
+    <text id="IDS_COM_SK_NEXT">Ar aghaidh</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Liosta bosca poist</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Bosca Turscair</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Bosca seolta</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Cuntas ann cheana</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Gach r-phost</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Freagair</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Faighteoir</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Cineál freastalaí r-phoist isteach</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Seoladh r-phoist neamhbhailí</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Bog</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Cuir seoladh leis</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Níl r-phost roghnaithe</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Scrios gach</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Ag bogadh...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Seoladh</text>
+    <text id="IDS_COM_POP_ERROR">Earráid</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cuir ar ceal</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Cuntas seolta réamhshocraithe</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Socruithe cuntais</text>
+    <text id="IDS_EMAIL_OPT_ALL">Gach</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Nasc slán</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Rabhadh</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Deireanach</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Seolta</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Bosca Isteach</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Gach cuntas</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blocáil r-phoist</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Marcáil gach mar</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Cuir Bcc chugam féin i gcónaí</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Cuir síniú leis</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Tábhachtach</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port isteach</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Scrios</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Socraigh mar Cheanáin</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Theip ar scriosadh</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Ní féidir cuir i gceangal. Is %d MB uasmhéid na gcomhad</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Íoslódáil an teachtaireacht iomlán</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Taispeáin pasfhocal</text>
+    <text id="IDS_EMAIL_OPT_DATE">Dáta</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Seoltóir</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Léite</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Inniu</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Cuntas</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Socruithe</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Ábhar</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Socrú de láimh</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Cinn Eile</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Neamhúsáidte</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Taispeáin gach fillteán</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Taispeáin r-phoist</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Cuir i gceangail</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Ag scriosadh...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Teachtaireacht</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Bain mar cheanáin</text>
+    <text id="IDS_EMAIL_SK3_DONE">Déanta</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Freagair ar an seoltóir</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Chuig</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Socruithe r-phoist</text>
+    <text id="IDS_EMAIL_POP_ALERT">Foláireamh</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Scrios gach?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Dréachtaí</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d ceangaltán</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Freagair &amp; corpthéacs</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Freastalaí amach</text>
+    <text id="IDS_COM_OPT_SELECTED">Roghnaithe</text>
+    <text id="IDS_COM_BODY_SEND">Seol</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marcáil mar neamhléite</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Seolta ó Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Cuardaigh</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Ainm úsáideora</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Socrú bosca poist</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Sábháil i nDréachtaí?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Cuir le Féilire</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Níl seoladh ann</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">An tseachtain seo caite</text>
+    <text id="IDS_COM_POP_PASSWORD">Pasfhocal</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Níos sine</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Níor cuireadh faighteoir leis. Iontráil faighteoirí</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Cum</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Cuir le teagmhálaí</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Seoladh r-phoist</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Theip ar bhogadh</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Cuntas á dheimhniú...</text>
+    <text id="IDS_COM_SK_ADD">Cuir leis</text>
+    <text id="IDS_COM_SK_MORE">Tuilleadh</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">R-phost</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marcáil mar léite</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Cuir ábhar leis</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Bruscar</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Níl téacs ann</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Freagair gach</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Ní féidir cuntas a chur leis</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Teideal</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Cuir cuntais leis</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Ceanáin</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Ní féidir r-phost a sheoladh</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Níl ábhar ann</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Socruithe amach</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Neamhléite</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Freastalaí isteach</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Síniú</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Ceangail comhaid</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Socraigh gach mar</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Cuir bac air</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Ann cheana</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Seol ar aghaidh</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Cuireadh bac air cheana</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Scriosfar gach sonra a bhaineann leis an gcuntas seo. Ar aghaidh?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Ainm an chuntais</text>
+    <text id="IDS_COM_SK_UPDATE">Nuashonraigh</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Uaslíon na bhfaighteoirí (%d) bainte amach</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Uaslíon na gcarachtar bainte amach</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Ceangaltán á íoslódáil...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Ní féidir íoslódáil</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Cuir cuntas leis</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Easpa cuimhne</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Ní féidir sábháil i nDréachtaí</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Faighteoir dúbláilte</text>
+</string_table>
diff --git a/res/glg-ES.xml b/res/glg-ES.xml
new file mode 100755 (executable)
index 0000000..6e59f18
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Gardar no servidor</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Desmarc. como favor.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Caixa de saída</text>
+    <text id="IDS_COM_POP_CLOSE">Pechar</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Enviar correo electrónico</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Porto saínte</text>
+    <text id="IDS_COM_POP_DELETE_Q">Eliminar?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Carpetas</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Ver</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Engadir Cc/Cco</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Cco</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Sen contidos</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Seguridade</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Reenviar con arquivos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Non se pode achegar. O número máximo de arquivos é %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Axustes de entrada</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Onte</text>
+    <text id="IDS_COM_SK_NEXT">Seguinte</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Lista caixas de correo</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Caixa de correo non desexado</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Enviadas</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">A conta xa existe</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Todos os correos electrónicos</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Responder</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinatario</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tipo de servidor de correo entrante</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Enderezo de correo electrónico non válido</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Mover</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Engadir enderezo</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Non hai correos electrónicos seleccionados</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Eliminar todo</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Movendo...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Enderezo</text>
+    <text id="IDS_COM_POP_ERROR">Erro</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancelar</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Conta de envío predeterminada</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Configuración de conta</text>
+    <text id="IDS_EMAIL_OPT_ALL">Todo</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Conexión segura</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Aviso</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recente</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Enviada</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Caixa de entrada</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Todas as contas</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloquear correos electrónicos</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Marcar todo como</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Sempre Bcc a min mesmo</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Engadir sinatura</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Importante</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Porto entrante</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Eliminar</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Def. como Favoritos</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Erro ao eliminar</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Non se pode achegar. O tamaño máximo dos arquivos é de %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Descargar mensaxe completa</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Mostrar contrasinal</text>
+    <text id="IDS_EMAIL_OPT_DATE">Data</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Remitente</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lido</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Hoxe</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Conta</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Axustes</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Asunto</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configuración manual</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Outros</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Sen utilizar</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Amosar todas as carpetas</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Amosar correos electrónicos</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Achegar</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Eliminando...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mensaxe</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Desmarc. como favor.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Fin.</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Responder ao remitente</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Para</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Axustes do correo</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alerta</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Eliminar todo?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Borradores</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d adxuntos</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Responder con corpo</text>
+    <text id="IDS_EMAIL_BODY_BCC">Cco</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Servidor saínte</text>
+    <text id="IDS_COM_OPT_SELECTED">Seleccionado</text>
+    <text id="IDS_COM_BODY_SEND">Enviar</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marcar como Non lida</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Enviado desde Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Buscar</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nome de usuario</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configuración da caixa de correo</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Gardar en Borradores?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Engadir a Calendario</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Sen enderezo</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Última semana</text>
+    <text id="IDS_COM_POP_PASSWORD">Contrasinal</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Máis antigo</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Non se engadiron destinatarios. Introduce destinatarios</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Redactar</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Engadir a contacto</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Enderezo de correo electrónico</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Erro ao mover</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Confirmando conta...</text>
+    <text id="IDS_COM_SK_ADD">Engadir</text>
+    <text id="IDS_COM_SK_MORE">Máis</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Correo electrónico</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marcado como lida</text>
+    <text id="IDS_EMAIL_BODY_CC">Copia</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Engadir tema</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Papeleira</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Sen texto</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Volver repr todo</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Non se pode engadir conta</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Título</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Engadir contas</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoritos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Non se pode enviar o correo electrónico.</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Sen asunto</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Axustes de saída</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Non lidas</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Servidor entrante</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Firma</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Incluír arquivos</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Definir todo como</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloquear</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Xa existe</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Reenviar</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Xa bloqueado</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Eliminaranse todos os datos relacionados con esta conta. Continuar?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nome de conta</text>
+    <text id="IDS_COM_SK_UPDATE">Actualizar</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Alcanzouse o número máximo de destinatarios (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Número máximo de caracteres alcanzado</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Descargando documento adxunto...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Non se pode descargar</text>
+<text id="IDS_COM_SK_OK">Aceptar</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Engadir conta</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Non hai suficiente memoria</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Non se pode gardar en Borrador</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinatario duplicado</text>
+</string_table>
diff --git a/res/hin-IN.xml b/res/hin-IN.xml
new file mode 100755 (executable)
index 0000000..39b2b6e
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">सर्वर में रखें</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">पसंदीदा के रूप में अचिह्नित करें</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">आउटबॉक्स</text>
+    <text id="IDS_COM_POP_CLOSE">बंद करें</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">ईमेल भेजें</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">जाने वाला पोर्ट</text>
+    <text id="IDS_COM_POP_DELETE_Q">हटाएँ?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">फोल्डर्स</text>
+    <text id="IDS_EMAIL_OPT_VIEW">देखें</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Cc/Bcc जोड़ें</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">कोई सामग्री नहीं</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">सुरक्षा</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">फ़ाइल्‍स के साथ आगे बढ़ें</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">संलग्न करने में अक्षम। फ़ाइलों की अधिकतम संख्या %d है</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">इनकमिंग सेटिंग्स</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">बीता हुआ कल</text>
+    <text id="IDS_COM_SK_NEXT">अगला</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">मेलबॉक्स सूची</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">स्‍पैमबॉक्‍स</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">सेंटबॉक्स</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">खाता पहले ही मौजूद है</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">सभी ईमेल्स</text>
+    <text id="IDS_EMAIL_OPT_REPLY">जवाब दें</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">प्राप्तकर्त्ता</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">इनकमिंग मेल सर्वर प्रकार</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">अमान्य ईमेल पता</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">ले जाएँ</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">पता ज़ोडे</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">कोई ईमेल चयनित नहीं</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">सभी हटाएँ</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">ले जा रहा है…</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">पता</text>
+    <text id="IDS_COM_POP_ERROR">त्रुटी</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">रद्द</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">भेज़ने का डिफ़ॉल्ट खाता</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">खाता सेटिंग्स</text>
+    <text id="IDS_EMAIL_OPT_ALL">सभी</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">सुरक्षित कनेक्शन</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">चेतावनी</text>
+    <text id="IDS_EMAIL_BODY_RECENT">हाल ही का</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">भेजा</text>
+    <text id="IDS_EMAIL_BODY_INBOX">इनबॉक्स</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">सभी खाते</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">ईमेल्स अवरुद्ध करें</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">सभी को इस रूप में मार्क करें</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">हमेशा मुझें Bcc करें</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">हस्‍ताक्षर जोड़ें</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">महत्वपूर्ण</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">आने वाला पोर्ट</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">हटाएँ</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">पसंदीदा के जैसे सेट करें</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">हटाना विफल</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">संलग्न करने में अक्षम। फ़ाइलों का अधिकतम आकार %d MB है</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">पूरा Message डाउनलोड करें</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">पासवर्ड दिखाएँ</text>
+    <text id="IDS_EMAIL_OPT_DATE">तिथि</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">प्रेषक</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">पठित</text>
+    <text id="IDS_EMAIL_BODY_TODAY">आज</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">खाता</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">सेटिंग्स</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">विषय</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">मैन्युअल सेटअप</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">अन्य</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">उपयोग नही हुआ</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">सभी फ़ोल्‍डर दिखाएँ</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">ईमेल्‍स दिखाएँ</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">जोड़ें</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">हटाया जा रहा है…</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">सन्देश</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">पसंदीदा के रूप में अचिह्नित करें</text>
+    <text id="IDS_EMAIL_SK3_DONE">हो गया</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">प्रेषक को जवाब दें</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">को</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">ईमेल सेटिंग</text>
+    <text id="IDS_EMAIL_POP_ALERT">सतर्क</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">सभी हटाएँ?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">ड्राफ़्टस</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d अटैचमेंट्स</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">मुख्य भाग के साथ जवाब दें</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">जानेवाला सर्वर</text>
+    <text id="IDS_COM_OPT_SELECTED">चुना गया</text>
+    <text id="IDS_COM_BODY_SEND">भेजें</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">अपठित के रूप में चिन्हित करें</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">सैमसंग मोबाइल से भेजा गया</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">खोजें</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">उपभोक्ता नाम</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">मेलबॉक्स सेटअप</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">ड्राफ़्ट्‍स में सुरक्षित?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">कैलेंडर में जोड़ें</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">कोई पता नहीं</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">पिछला सप्ताह</text>
+    <text id="IDS_COM_POP_PASSWORD">पासवर्ड</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">पुराना</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">कोई प्राप्तकर्ता जोड़ा नहीं गया। प्राप्तकर्ता दर्ज करें</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">लिखें</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">संपर्क में जोड़ें</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">ईमेल पता</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">ले जाना विफल हुआ</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">खाता मान्य किया जा रहा है...</text>
+    <text id="IDS_COM_SK_ADD">जोड़ें</text>
+    <text id="IDS_COM_SK_MORE">अधिक</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">ईमेल</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">पठित के रूप में चिन्हित करें</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">विषय जोड़ें</text>
+    <text id="IDS_EMAIL_BODY_TRASH">रिसाईकल बिन</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">कोई टेक्स्ट नहीं</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">सभी को जवाब दे</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">खाता जोड़ने में अक्षम</text>
+    <text id="IDS_EMAIL_OPT_TITLE">शीर्षक</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">खाते जोड़ें</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">पसंदीदा</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">ईमेल भेजने में अक्षम</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">कोई विषय नहीं</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">आऊटगोईंग सेटिंग</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">अपठित</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">आनेवाला सर्वर</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">हस्ताक्षर</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">फ़ाइलें अटैच करें</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">सभी को इस रूप में सेट करें</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">ब्लॉक करें</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">पहले से ही मौजूद</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">आगे भेजें</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">पहले से ब्‍लॉक</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">इस खाते से संबंधित सभी डेटा हटाया जाएगा। जारी रखें?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">खाता नाम</text>
+    <text id="IDS_COM_SK_UPDATE">अपडेट</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">प्राप्तकर्ताओं की अधिकतम संख्या (%d) तक पहुँच गया</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">वर्णो की संख्‍या अधिकतम पहुँची</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">संलग्न डाउनलोड हो रहा है...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">डाउनलोड करने में अक्षम</text>
+<text id="IDS_COM_SK_OK">ओके</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">खाता जोड़ें</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">पर्याप्‍त मेमोरी नहीं</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">प्रारूपों में सहेजने में अक्षम</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">डुप्लीकेट प्राप्तकर्त्ता</text>
+</string_table>
diff --git a/res/hrv-HR.xml b/res/hrv-HR.xml
new file mode 100755 (executable)
index 0000000..c2bd8f9
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Ostavi na poslužitelju</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Odznači kao favorite</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Odlazne poruke</text>
+    <text id="IDS_COM_POP_CLOSE">Prekid</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Pošalji email</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Odlazni ulaz</text>
+    <text id="IDS_COM_POP_DELETE_Q">Obrisati?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Mape</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Prikaz</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Dodaj Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Nema sadržaja</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Sigurnost</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Proslijedi s datotekama</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Nemoguće pridružiti. Maks. broj datoteka: %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Dolazne postavke</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Jučer</text>
+    <text id="IDS_COM_SK_NEXT">Dalje</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Popis sandučića</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spam poruke</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Poslane poruke</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Račun već postoji</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Sve email poruke</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Odgovori</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Primatelj</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Vrsta poslužitelja dolazne pošte</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Neispravna email adresa</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Premjesti</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Dodaj adresu</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nije odabran email</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Obriši sve</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Premještanje...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresa</text>
+    <text id="IDS_COM_POP_ERROR">Greška</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Prekid</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Zadani račun slanja</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Postavke računa</text>
+    <text id="IDS_EMAIL_OPT_ALL">Sve</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Sigurna veza</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Upozorenje</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Nedavno</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Poslano</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Dolazne poruke</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Svi računi</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokiraj email</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Označi sve kao</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Uvijek Bcc meni</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Dodaj potpis</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Važno</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Dolazni ulaz</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Obriši</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Postavi kao Favorite</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Brisanje neuspješno</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Nemoguće pridružiti. Maks. veličina datoteka: %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Skidanje cijele poruke</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Prikaži šifru</text>
+    <text id="IDS_EMAIL_OPT_DATE">Datum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Pošiljatelj</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Čitaj</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Danas</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Račun</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Postavke</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Naslov</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Ručno postavljanje</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Ostalo</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Ne koristi se</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Prikaži sve mape</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Prikaži emailove</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Dodaj</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Brisanje...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Poruka</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Odznači kao favorite</text>
+    <text id="IDS_EMAIL_SK3_DONE">OK</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Odgovori pošiljatelju</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Za</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Email postavke</text>
+    <text id="IDS_EMAIL_POP_ALERT">Obavijest</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Obrisati sve?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Priprema</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d privitaka</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Odgovor sa sadržajem</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Odlazni poslužitelj</text>
+    <text id="IDS_COM_OPT_SELECTED">Odabrano</text>
+    <text id="IDS_COM_BODY_SEND">Pošalji</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Označi kao nepročitano</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Poslano preko Samsung Mobile uređaja</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Traži</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Korisničko ime</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Postavljanje sandučića</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Spremiti u Pripremu?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Dodaj u kalendar</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nema adrese</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Zadnji tjedan</text>
+    <text id="IDS_COM_POP_PASSWORD">Šifra</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Starije</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nema dodanih primatelja. Unesite primatelje</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Novo</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Dodaj kontaktu</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Email adresa</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Premještanje neuspješno</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Provjera računa...</text>
+    <text id="IDS_COM_SK_ADD">Dodaj</text>
+    <text id="IDS_COM_SK_MORE">Više</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Označi kao pročitano</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Dodaj naslov</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Smeće</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Nema teksta</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Odgovori svima</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Nemoguće dodati račun</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Naslov</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Dodaj račune</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoriti</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Nemoguće poslati email</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Bez naslova</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Odlazne postavke</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Nepročitano</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Dolazni poslužitelj</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Potpis</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Pridruži datoteke</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Sve postavi kao</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokiraj</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Već postoji</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Proslijedi</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Već blokirano</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Svi podaci vezani za ovaj račun bit će obrisani. Nastavak?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Ime računa</text>
+    <text id="IDS_COM_SK_UPDATE">Učitaj</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maksimalni broj primatelja (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Maks. broj znakova</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Skidanje privitka...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Nemoguće skinuti</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Dodaj račun</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Memorija nedovoljna</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Nemoguće spremiti u Pripremu</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Primatelji su duplicirani</text>
+</string_table>
diff --git a/res/hun-HU.xml b/res/hun-HU.xml
new file mode 100755 (executable)
index 0000000..02e9dc5
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">A szerveren marad</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Kedvencjelölés törl.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Kimenő posta</text>
+    <text id="IDS_COM_POP_CLOSE">Bezárás</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">E-mail küldése</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Kimenő port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Törli?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Mappák</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Megtekint</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Másolat/Titkos másolat hozzáadása</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Másolat/Titkos másolat</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Nincs tartalomjegyzék</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Biztonság</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Továbbküldés fájlokkal</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Nem csatolható. A fájlok maximális száma %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Bejövő beállításai</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Tegnap</text>
+    <text id="IDS_COM_SK_NEXT">Tovább</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Postafióklista</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Levélszemét</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Elküldött</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Ilyen nevű fiók már van</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Összes e-mail</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Válaszol</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Címzett</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Bejövő posta szerverének típusa</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Érvénytelen e-mail cím</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Áthelyez</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Cím hozzáadása</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nincs e-mail kijelölve</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Összes törlése</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Áthelyezés...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Cím</text>
+    <text id="IDS_COM_POP_ERROR">Hiba</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Mégse</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Alapértelmezett küldő fiók</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Fiókbeállítások</text>
+    <text id="IDS_EMAIL_OPT_ALL">Mind</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Biztonságos kapcs.</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Figyelmeztetés</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Legutóbbi</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Elküldve</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Bejövő posta</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Minden fiók</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">E-mailek blokkolása</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Ö. megjel. mint</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Mindig küldök magamnak titkos másolatot</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Aláírás hozzáadása</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Fontos</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Bejövő port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Töröl</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Beállítás Kedvencként</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Törlés sikertelen</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Nem csatolható. A maximális fájlméret %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Egész üzenet letöltése</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Jelszó megjelenítése</text>
+    <text id="IDS_EMAIL_OPT_DATE">Dátum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Küldő</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Elolvasva</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Ma</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Fiók</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Beállítások</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Tárgy</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Kézi beállítás</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Egyéb</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Nincs használatban</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Összes mappa megjelenítése</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">E-mailek megjelenítése</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Csatolás</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Törlés...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Üzenet</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Kedvencjelölés törl.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Kész</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Válasz a feladónak</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Címzett</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-mail beállítások</text>
+    <text id="IDS_EMAIL_POP_ALERT">Jelzés</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Törli az összeset?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Piszkozatok</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d melléklet</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Válasz eredeti üzenettel</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Kimenő szerver</text>
+    <text id="IDS_COM_OPT_SELECTED">Kiválasztott</text>
+    <text id="IDS_COM_BODY_SEND">Küldés</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Olvasatlanként megjelölve</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Az üzenetet Samsung mobileszközről küldték</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Keresés</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Felhasználónév</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Postafiók beállítása</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Menti piszkozatként?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Hozzáadás a Naptárhoz</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nincs cím</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Utolsó hét</text>
+    <text id="IDS_COM_POP_PASSWORD">Jelszó</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Régebbi</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nem adott meg címzettet. Adja meg a címzetteket</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Üz.írás</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Hozzáadás névjegyhez</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-mail cím</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Az áthelyezés sikertelen</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Fiók ellenőrzése...</text>
+    <text id="IDS_COM_SK_ADD">Hozzáad</text>
+    <text id="IDS_COM_SK_MORE">Egyebek</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Megjelölés olvasottként</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Tárgy hozzáadása</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Kuka</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Nincs szöveg</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Válasz mind.-nek</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Nem adható hozzá fiók</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Cím</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Fiókok hozzáadása</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Kedvencek</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Nem lehet elküldeni az e-mailt</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Üres tárgymező</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Kimenő beállítások</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Olvasatlan</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Bejövő szerver</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Aláírás</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Fájlok csatolása</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Összes beá. mint</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Letiltás</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Már létezik</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Továbbküldés</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Már blokkolva</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">A fiókhoz kapcsolódó minden adatot törölni fog. Folytatja?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Fiók neve</text>
+    <text id="IDS_COM_SK_UPDATE">Frissítés</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Elérte a címzettek maximális számát (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Nincs hely több karakternek</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Melléklet letöltése...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Nem lehet letölteni</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Fiók hozzáadása</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Kevés a memória</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Nem lehet a Piszkozatokba menteni</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Kétszer előforduló címzett</text>
+</string_table>
diff --git a/res/hye-AM.xml b/res/hye-AM.xml
new file mode 100755 (executable)
index 0000000..128c5d1
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Պատճենը պահպանել սերվերում</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Սիրվածների նշ. հանել</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Ելքային փոստարկղ</text>
+    <text id="IDS_COM_POP_CLOSE">Փակել</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Ուղարկել էլ. փոստ</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Ելքային պորտ</text>
+    <text id="IDS_COM_POP_DELETE_Q">Ջնջե՞լ</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Թղթապանակներ</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Դիտել</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Ավելացնել Պճ/Ծպճ</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Պճ/Ծպճ</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Պարունակության բացակայություն</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Անվտանգություն</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Ուղրկլ ֆյլրի հետ միսն</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Անհնար է կցել: Ֆայլերի առավելագույն քանակը %d է</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Մուտքային դրվածքներ</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Երեկ</text>
+    <text id="IDS_COM_SK_NEXT">Հաջորդ</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Փոստարկղի ցանկ</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Սպամի արկղ</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Ուղարկվածներ</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Հաշիվը արդեն գոյություն ունի</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Էլ. փոստի բոլոր հաղորդագրությունները</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Պտսխանել</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Ստացող</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Մտից փոստի սերվերի տեսակը</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Անվավեր էլ. փոստի հասցե</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Տեղափոխել</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Ավելացնել հասցե</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Ոչ մի էլփոստ չի ընտրվել</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Ջնջել բոլորը</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Տեղափոխում...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Հասցե</text>
+    <text id="IDS_COM_POP_ERROR">Սխալ</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Չեղարկել</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Կանխադրված ուղարկման հաշիվ</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Հաշվի կայանքներ</text>
+    <text id="IDS_EMAIL_OPT_ALL">Բոլոր</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Անվտանգ միացում</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Զգուշացում</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Վերջերս</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Ուղարկված է</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Մուտքային հաղորդագրությունների արկղ</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Բոլոր հաշիվները</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Արգելել էլ-նամակներ</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Նշել բոլորը որպես</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Միշտ Ծպճ ինքս ինձ</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Ավելացնել ստորագրություն</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Կարևոր</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Մուտքային պորտ</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Ջնջել</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Դնել որպես Սիրվածներ</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Ջնջումը ձախողվեց</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Անհնար է կցել: Ֆայլերի առավելագույն չափը %d ԿԲ է</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Ներբեռնել ամբողջ հաղորդագրությունը</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Ցույց տալ գաղտնաբառը</text>
+    <text id="IDS_EMAIL_OPT_DATE">Ամսաթիվ</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Ուղարկող</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Կարդացված</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Այսօր</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Հաշիվ</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Պարամետրեր</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Թեմա</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Ձեռքով նախադրում</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Այլ</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Չի օգտագործվում</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Ցույց տալ բոլոր թղթապանակները</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Ցույց տալ էլ-նամակները</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Կցել</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Ջնջվում է...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Հաղորդագրություն</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Սիրվածների նշ. հանել</text>
+    <text id="IDS_EMAIL_SK3_DONE">Պատրաստ</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Պատասխանել ուղարկողին</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Ում</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Էլփոստի դրվածքներ</text>
+    <text id="IDS_EMAIL_POP_ALERT">Ազդանշան</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Ջնջե՞լ բոլորը</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Սևագրեր</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d կցուրդ</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Պտսխնլ կմախքի հետ մսն</text>
+    <text id="IDS_EMAIL_BODY_BCC">Թաքնված պատճեն</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Ելքային սերվեր</text>
+    <text id="IDS_COM_OPT_SELECTED">Ընտրված</text>
+    <text id="IDS_COM_BODY_SEND">Ուղարկում</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Նշել որպես Չընթերցված</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Ուղարկվել է Samsung Mobile-ից</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Որոնել</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Օգտվողի անուն</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Փոստարկղի նախադրում</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Պահպանե՞լ Սևագրերում</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Ավելացնել Օրացույցում</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Հասցե չկա</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Վերջին շաբաթ</text>
+    <text id="IDS_COM_POP_PASSWORD">Գաղտնաբառ</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Ավելի հին</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Հասցեատերեր չեն ավելացվել: Մուտքագրել հասցեատերեր</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Կազմել</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Ավելացնել կոնտակտում</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Էլ. փոստի հասցե</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Տեղափոխումը ձախողվեց</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Հաշիվը վավերացվում է...</text>
+    <text id="IDS_COM_SK_ADD">Ավելացնել</text>
+    <text id="IDS_COM_SK_MORE">Ավելին</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Էլ.փոստ</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Նշել որպես կարդացած</text>
+    <text id="IDS_EMAIL_BODY_CC">Պատճեն</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Ավելացնել թեմա</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Աղբարկղ</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Չկա տեքստ</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Պտսխանել բոլորին</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Անհնար է հաշիվ ավելացնել</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Վերնագիր</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Ավելացնել հաշիվներ</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Սիրվածները</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Անհնար է էլ-նամակ ուղարկել</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Թեմա չկա</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Ելից դրվածքներ</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Չկարդացած</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Մուտքային սերվեր</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Ստորագրություն</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Կցել ֆայլեր</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Սահմանել բոլորը որպես</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Արգելափակել</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Արդեն գոյություն ունի</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Վերահասցեավորել</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Արդեն արգելափակված է</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Այս հաշվին առնչվող բոլոր տվյալները կվերացվեն. շարունակե՞լ:</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Հաշվի անուն</text>
+    <text id="IDS_COM_SK_UPDATE">Թարմացնել</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Հասել է հասցեատերերի առավելագույն քանակին (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Հասել եք նիշերի առավելագույն քանակին</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Ներբեռնվում է կցուրդ...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Հնարավոր չէ ներբեռնել</text>
+<text id="IDS_COM_SK_OK">Ընդունել</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Հաշվի ավելացում</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Չկա բավական հիշողություն</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Անհնար է պահպանել «Սևագրեր»-ում</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Կրկնակված հասցեատեր</text>
+</string_table>
diff --git a/res/isl-IS.xml b/res/isl-IS.xml
new file mode 100755 (executable)
index 0000000..446a0f5
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Geyma á netþjóni</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Ekki uppáhald</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Úthólf</text>
+    <text id="IDS_COM_POP_CLOSE">Loka</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Senda tölvupóst</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Gátt út</text>
+    <text id="IDS_COM_POP_DELETE_Q">Á að eyða?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Möppur</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Birta</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Bæta við afriti/földu afriti</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Af./Fal.</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Efni vantar</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Öryggi</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Framsenda með skrám</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Mistókst að hengja við. Hámarksfjöldi skráa er %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Móttökustillingar</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Í gær</text>
+    <text id="IDS_COM_SK_NEXT">Næsta</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Pósthólfslisti</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Ruslpóstur</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Sent</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Reikningurinn er þegar til</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Allur tölvupóstur</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Svara</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Viðtakandi</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Gerð þjóns móttekins pósts</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Ógilt netfang</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Flytja</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Bæta við heimilisfangi</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Enginn tölvupóstur valinn</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Eyða öllu</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Verið er að flytja...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Heimilisfang</text>
+    <text id="IDS_COM_POP_ERROR">Villa</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Hætta við</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Sjálfgefið pósthólf til að senda frá</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Reikningsstillingar</text>
+    <text id="IDS_EMAIL_OPT_ALL">Allt</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Örugg tenging</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Viðvörun</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Nýlegt</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Sent</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Innhólf</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Allir reikningar</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Útiloka tölvupóst</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Merkja allt sem</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Senda alltaf falið afrit á mig</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Bæta við undirskrift</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Mikilvægt</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Gátt inn</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Eyða</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Velja sem uppáhald</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Ekki tókst að eyða</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Mistókst að hengja við. Hámarksstærð skráa er %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Sækja öll skilaboðin</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Sýna lykilorð</text>
+    <text id="IDS_EMAIL_OPT_DATE">Dagsetning</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Sendandi</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lesið</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Í dag</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Reikningur</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Stillingar</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Efni</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Handvirk uppsetning</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Aðrir</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Ekki notað</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Sýna allar möppur</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Sýna skeyti</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Hengja við</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Verið er að eyða...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Skilaboð</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Ekki uppáhald</text>
+    <text id="IDS_EMAIL_SK3_DONE">Lokið</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Svara sendingu</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Til</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Tölvupóststill.</text>
+    <text id="IDS_EMAIL_POP_ALERT">Áminning</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Eyða öllu?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Drög</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d viðhengi</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Svara með meginmáli</text>
+    <text id="IDS_EMAIL_BODY_BCC">Falið afrit</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Út-netþjónn</text>
+    <text id="IDS_COM_OPT_SELECTED">Valið</text>
+    <text id="IDS_COM_BODY_SEND">Senda</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Merkja sem ólesið</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Sent úr Samsung-farsíma</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Leit</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Notandanafn</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Uppsetning pósthólfs</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Viltu vista í Drögum?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Setja í Dagbók</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Ekkert netfang</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Síðasta vika</text>
+    <text id="IDS_COM_POP_PASSWORD">Aðgangsorð</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Eldri</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Engum viðtakendum bætt við. Bættu við viðtakendum</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Skrifa</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Bæta við tengilið</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Netfang</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Ekki tókst að flytja</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Staðfesti áskrift...</text>
+    <text id="IDS_COM_SK_ADD">Bæta við</text>
+    <text id="IDS_COM_SK_MORE">Meira</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Tölvupóstur</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Merkja sem lesið</text>
+    <text id="IDS_EMAIL_BODY_CC">Afrit</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Bæta við efni</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Rusl</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Enginn texti</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Svara öllum</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Mistókst að bæta við áskrift</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Titill</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Bæta við reikningum</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Eftirlæti</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Mistókst að senda skeyti</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Ekkert efni</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Sendingastillingar</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Ólesið</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Inn-netþjónn</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Undirritun</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Hengja skrár við</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Velja öll sem</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Læsa</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Er þegar til</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Framsenda</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Er þegar lokað</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Öllum gögnum sem tengjast áskriftinni verður eytt. Viltu halda áfram?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Heiti stillinga</text>
+    <text id="IDS_COM_SK_UPDATE">Uppfæra</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Hámarksfjölda viðtakenda (%d) náð</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Hámarksfjölda stafa hefur verið náð</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Sæki viðhengi...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Mistókst að hlaða niður</text>
+<text id="IDS_COM_SK_OK">Í lagi</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Bæta við reikningi</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Ekki er nægt minni</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Mistókst að vista í Drög</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Viðtakandi kemur tvisvar fyrir</text>
+</string_table>
diff --git a/res/ita-IT.xml b/res/ita-IT.xml
new file mode 100755 (executable)
index 0000000..c4b7065
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Conserva sul server</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Desel. come preferiti</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">In uscita</text>
+    <text id="IDS_COM_POP_CLOSE">Chiudi</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Invia e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Porta in uscita</text>
+    <text id="IDS_COM_POP_DELETE_Q">Eliminare?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Cartelle</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Visualizza</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Aggiungi Cc/Ccn</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Ccn</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Nessun contenuto</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Sicurezza</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Inoltra con allegati</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Impossibile allegare. Numero massimo file %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Impostazioni Posta in arrivo</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Ieri</text>
+    <text id="IDS_COM_SK_NEXT">Avanti</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Elenco caselle di posta</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Cartella spam</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Inviati</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Account già esistente</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Tutte le e-mail</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Rispondi</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinatario</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tipo server e-mail in arrivo</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Indirizzo e-mail non valido</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Sposta</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Aggiungi indirizzo</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nessuna e-mail selezionata</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Elimina tutto</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Spostamento...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Indirizzo</text>
+    <text id="IDS_COM_POP_ERROR">Errore</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Annulla</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Account di invio predefinito</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Impostazioni account</text>
+    <text id="IDS_EMAIL_OPT_ALL">Tutti</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Connessione protetta</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Avviso</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recenti</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Inviato</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Ricevuti</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Tutti gli account</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blocca e-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Segna tutti come</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Sempre Ccn a me stesso</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Aggiungi firma</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Importante</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Porta in arrivo</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Elimina</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Impos. come preferito</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Eliminazione non riuscita</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Impossibile allegare. Dimensioni massime file %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Scarica messaggio completo</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Mostra password</text>
+    <text id="IDS_EMAIL_OPT_DATE">Data</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Mittente</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Letta</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Oggi</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Account</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Impostazioni</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Oggetto</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configurazione manuale</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Altro</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Non attivo</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Mostra tutte le cartelle</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Mostra e-mail</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Allega</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Eliminazione...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Messaggio</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Desel. come preferiti</text>
+    <text id="IDS_EMAIL_SK3_DONE">Fatto</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Rispondi al mittente</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">A</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Impostaz. e-mail</text>
+    <text id="IDS_EMAIL_POP_ALERT">Avviso</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Eliminare tutto?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Bozze</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d allegati</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Rispondi con msg. origin.</text>
+    <text id="IDS_EMAIL_BODY_BCC">Ccn</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Server posta in uscita</text>
+    <text id="IDS_COM_OPT_SELECTED">Selezionato</text>
+    <text id="IDS_COM_BODY_SEND">Invia</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Segna come non letto</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Inviato da Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Cerca</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nome utente</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configurazione casella di posta</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Salvare in Bozze?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Aggiungi in Agenda</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nessun indirizzo</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Ultima settimana</text>
+    <text id="IDS_COM_POP_PASSWORD">Password</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Precedenti</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nessun destinatario aggiunto. Immettere i destinatari</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Componi</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Aggiungi a contatto</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Indirizzo e-mail</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Spostamento non riuscito</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Convalida account...</text>
+    <text id="IDS_COM_SK_ADD">Aggiungi</text>
+    <text id="IDS_COM_SK_MORE">Altro</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Segna come letto</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Aggiungi oggetto</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Cestino</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Nessun testo</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Rispondi a tutti</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Impossibile aggiungere account</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Titolo</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Aggiungi account</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Preferiti</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Impossibile inviare e-mail</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Nessun oggetto</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Impostazioni Posta in uscita</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Non letto</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Server posta in arrivo</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Firma</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Allega file</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Imp. tutti come</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blocca</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Già esiste</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Inoltra</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Già bloccato</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Tutti i dati relativi a questo account verranno eliminati. Continuare?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nome account</text>
+    <text id="IDS_COM_SK_UPDATE">Aggiorna</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Raggiunto numero massimo di destinatari (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Raggiunto numero massimo di caratteri</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Download allegato...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Impossibile eseguire download</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Aggiungi account</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Memoria insufficiente</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Impossibile salvare in Bozze</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinatario duplicato</text>
+</string_table>
diff --git a/res/jpn-JP.xml b/res/jpn-JP.xml
new file mode 100755 (executable)
index 0000000..d5390e9
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">サーバーに保存</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">お気に入りを解除</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">送信トレイ</text>
+    <text id="IDS_COM_POP_CLOSE">閉じる</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Eメール送信</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">外部​ポート</text>
+    <text id="IDS_COM_POP_DELETE_Q">削除しますか?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">フォルダ</text>
+    <text id="IDS_EMAIL_OPT_VIEW">ビュー</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Cc/Bccを追加</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">コンテンツがありません。</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">セキュリティ</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">添付ファイル付きで転送</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">添付できません。ファイルの最大件数は%d件です。</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">受信設定</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">昨日</text>
+    <text id="IDS_COM_SK_NEXT">次へ</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">メールボックスリスト</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">スパムボックス</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">送信済トレイ</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">アカウントは既に存在します。</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">全てのEメール</text>
+    <text id="IDS_EMAIL_OPT_REPLY">返信</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">宛先</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">受信メールサーバータイプ</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Eメールアドレスが正しくありません。</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">移動</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">住所を追加</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Eメールが選択されていません。</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">全て削除</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">移動中...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">住所</text>
+    <text id="IDS_COM_POP_ERROR">エラー</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">キャンセル</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">初期送信アカウント</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">アカウント設定</text>
+    <text id="IDS_EMAIL_OPT_ALL">全て</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">セキュアコネクション</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">警告</text>
+    <text id="IDS_EMAIL_BODY_RECENT">最近</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">送信完了</text>
+    <text id="IDS_EMAIL_BODY_INBOX">受信トレイ</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">全てのアカウント</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Eメールをブロック</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">全てチェック</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">必ず自分にBccを送信</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">署名を追加</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">重要</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">受信​ポート</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">削除</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">お気に入りに設定</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">削除できませんでした。</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">添付できません。ファイルの最大サイズは%dKBです。</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">メッセージ​全体​を​ダウンロード</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">パスワードを表示</text>
+    <text id="IDS_EMAIL_OPT_DATE">日付</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">送信元</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">既読</text>
+    <text id="IDS_EMAIL_BODY_TODAY">今日</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">アカウント</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">設定</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">件名</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">手動設定</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">その他</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">未使用</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">全てのフォルダを表示</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Eメールを表示</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">添付</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">削除中...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">メッセージ</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">お気に入りを解除</text>
+    <text id="IDS_EMAIL_SK3_DONE">完了</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">送信元に返信</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">宛先</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Eメール設定</text>
+    <text id="IDS_EMAIL_POP_ALERT">通知</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">全て削除しますか?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">下書き</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d件の添付ファイル</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">引用返信</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">送信サーバー</text>
+    <text id="IDS_COM_OPT_SELECTED">選択済み</text>
+    <text id="IDS_COM_BODY_SEND">送信</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">未読に変更</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Samsung Mobileから送信</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">検索</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">ユーザー名</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">メールボックスの設定</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">下書きに保存しますか?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">カレンダーに追加</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">アドレスがありません。</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">先週</text>
+    <text id="IDS_COM_POP_PASSWORD">パスワード</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">古い順</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">宛先は追加されませんでした。宛先を入力してください。</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">作成</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">電話帳に追加</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Eメールアドレス</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">移動に失敗しました。</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">アカウント​の​認証中...</text>
+    <text id="IDS_COM_SK_ADD">追加</text>
+    <text id="IDS_COM_SK_MORE">その他</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Eメール</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">既読に変更</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">件名を追加</text>
+    <text id="IDS_EMAIL_BODY_TRASH">ゴミ箱</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">テキスト​が​ありません</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">全員に返信</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">アカウントを追加できません。</text>
+    <text id="IDS_EMAIL_OPT_TITLE">タイトル</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">アカウント​を​追加​します</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">お気に入り</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Eメール​を​送信​できません</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">件名なし</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">送信設定</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">未読</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">受信サーバー</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">署名</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">ファイルを添付</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">全て設定</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">ブロック</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">既に登録されています。</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">転送</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">既にブロックされています。</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">この​アカウント​に​関する​全て​の​データ​が​削除​され​ます。​続行​しますか?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">アカウント名</text>
+    <text id="IDS_COM_SK_UPDATE">更新</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">宛先が最大件数(%d)に達しました。</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">最大文字数に達しました。</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">添付ファイルをダウンロード中...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">ダウンロードできません。</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">アカウント追加</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">メモリが不足しています。</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">下書き​に​保存​できません</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">宛先が重複しています。</text>
+</string_table>
diff --git a/res/kat-GE.xml b/res/kat-GE.xml
new file mode 100755 (executable)
index 0000000..3d3a9af
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">სერვერზე შენახვა</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">ფავორიტის მოხსნა</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">გასული</text>
+    <text id="IDS_COM_POP_CLOSE">დახურვა</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">ელ. წერილის გაგზავნა</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">გამავალის პორტი</text>
+    <text id="IDS_COM_POP_DELETE_Q">წაიშალოს?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">საქაღალდეები</text>
+    <text id="IDS_EMAIL_OPT_VIEW">ნახვა</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">დაამატეთ ასლი/ბრმა ასლი</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">ასლი/ბრმა ასლი</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">შინაარსი ცარიელია</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">უსაფრთხოება</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">გადაგზავნა ფაილებით</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">ვერ მიამაგრებთ. ფაილების მაქსიმალური რაოდენობაა %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">შემომავალის პარამეტრები</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">გუშინ</text>
+    <text id="IDS_COM_SK_NEXT">შემდეგი</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">საფოსტო ყუთების სია</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">სპამების ყუთი</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">გაგზავნილი წერილების ყუთი</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">ანგარიში უკვე არსებობს</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">ყველა ელ.ფოსტა</text>
+    <text id="IDS_EMAIL_OPT_REPLY">პასუხი</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">მიმღები</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">შემომავალი ფოსტის სერვერის ტიპი</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">ელ.ფოსტა არასწორია</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">გადატანა</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">მისამართის დამატება</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">ელ.ფოსტა არ არის შერჩეული</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">ყველას წაშლა</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">გადატანა...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">მისამართი</text>
+    <text id="IDS_COM_POP_ERROR">შეცდომა</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">გაუქმება</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">ნაგულისხმევი გაგზავნის ანგარიში</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">ანგარიშის პარამეტრები</text>
+    <text id="IDS_EMAIL_OPT_ALL">ყველა</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">დაცული კავშირი</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">გაფრთხილება</text>
+    <text id="IDS_EMAIL_BODY_RECENT">ბოლოდროინდელი</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">გაგზავნილია</text>
+    <text id="IDS_EMAIL_BODY_INBOX">შემოსულები</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">ყველა ანგარიში</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">ელ.წერილების დაბლოკვა</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">ყველა აღინიშნოს</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">ყოველთვის მსურს მივიღო ბრმა ასლი</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">ხელმოწერის ჩასმა</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">მნიშვნელოვანი</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">შემომავალის პორტი</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">წაშლა</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">ფავორიტებად დაყენება</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">წაშლა არ მოხერხდა</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">ვერ მიამაგრებთ. ფაილების მაქსიმალური ზომაა %d კბ</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">მთლიანი წერილის ჩამოტვირთვა</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">გამოჩნდეს პაროლი</text>
+    <text id="IDS_EMAIL_OPT_DATE">თარიღი</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">გამგზავნი</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">წაკითხვა</text>
+    <text id="IDS_EMAIL_BODY_TODAY">დღეს</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">ანგარიში</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">პარამეტრები</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">თემა</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">მექანიკურად მოწყობა</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">სხვები</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">არ გამოიყენება</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">ყველა საქაღალდის ჩვენება</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">ელ.წერილების ჩვენება</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">მიმაგრება</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">წაშლა...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">შეტყობინება</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">ფავორიტის მოხსნა</text>
+    <text id="IDS_EMAIL_SK3_DONE">შესრულდა</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">პასუხი გამომგზავნს</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">ვის</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">ელ.ფოსტის პარამეტ.</text>
+    <text id="IDS_EMAIL_POP_ALERT">გაფრთხილება</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">ყველა წაიშალოს?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">მონახაზი</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d მიმაგრებული ფაილი</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">პასუხი თავდაპირვ. წერილით</text>
+    <text id="IDS_EMAIL_BODY_BCC">ბრმა ასლი</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">გამავალი წერილების სერვერი</text>
+    <text id="IDS_COM_OPT_SELECTED">შერჩეული</text>
+    <text id="IDS_COM_BODY_SEND">გაგზავნა</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">წაკითხულად აღნიშვნა</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">გაიგზავნა Samsung Mobile–დან</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">ძიება</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">მომხმარებლის სახელი</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">საფოსტო ყუთის დაყენება</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">შევინახო მონახაზად?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">კალენდარში დამატება</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">მისამართი არ არის</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">გასული კვირა</text>
+    <text id="IDS_COM_POP_PASSWORD">პაროლი</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">შედარებით ძველი</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">მიმღებები ვერ დაემატა. ჩაწერეთ მიმღებები</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">შედგენა</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">კონტაქტზე დამატება</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">ელ. ფოსტის მისამართი</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">გადატანა ვერ შესრულდა</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">სრულდება ანგარიშის ავტორიზაცია...</text>
+    <text id="IDS_COM_SK_ADD">დამატება</text>
+    <text id="IDS_COM_SK_MORE">კიდევ</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">ელ-ფოსტა</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">აღნიშვნა წაკითხულად</text>
+    <text id="IDS_EMAIL_BODY_CC">ასლი</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">თემის დამატება</text>
+    <text id="IDS_EMAIL_BODY_TRASH">ურნა</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">ტექსტი არ არის</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">პასუხი ყველას</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">ანგარიშის დამატება შეუძლებელია</text>
+    <text id="IDS_EMAIL_OPT_TITLE">სათაური</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">ანგარიშების დამატება</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">ფავორიტები</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">ელ.წერილის გაგზავნა შეუძლებელია</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">არ არის თემა</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">გასაგზავნი წერილების პარამეტრები</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">წაუკითხავი</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">შემომავალი წერილების სერვერი</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">ხელმოწერა</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">ფაილების მიმაგრება</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">ყველა გახდეს</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">დაბლოკვა</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">უკვე არის</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">გადამისამართება</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">უკვე დაბლოკილია</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">ამ ანგარიშთან დაკავშირებული ყველა მონაცემი წაიშლება. განაგრძობთ?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">ანგარიშის დასახელება</text>
+    <text id="IDS_COM_SK_UPDATE">განახლება</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">მიღწეულია მიმღებთა მაქსიმალური რაოდენობა (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">მიღწეულია სიმბოლოების მაქსიმალური რაოდენობა</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">იტვირთება მიმაგრებული ფაილი...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">ვერ ჩამოტვირთავთ</text>
+<text id="IDS_COM_SK_OK">კი</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">ანგარიშის დამატება</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">მეხსიერება არ არის საკმარისი</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">ვერ შეინახავთ მონახაზებში</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">გამეორებული მიმღები</text>
+</string_table>
diff --git a/res/kaz-KZ.xml b/res/kaz-KZ.xml
new file mode 100755 (executable)
index 0000000..91b72b1
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Серверге сақтау</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Таңд-р. рет. бел-меу</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Жіберілген</text>
+    <text id="IDS_COM_POP_CLOSE">Жабу</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Email жіберу</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Шығыс порты</text>
+    <text id="IDS_COM_POP_DELETE_Q">Өшіресіз бе?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Қалталар</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Көрініс</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Көшірме/жасырын көшірме қосу</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Көшірме/Жасырын көшірме</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Мазмұн жоқ</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Қауіпсіздік</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Файлдармен қайта жіберу</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Тіркеу мүмкін емес. Ең үлкен файлдар өлшемі – %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Кіріс қоңырау параметрлері</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Кеше</text>
+    <text id="IDS_COM_SK_NEXT">Сосын</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Пошта жәшіктері тізімі</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Спам қалтасы</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Жөнелтілгендер</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Есеп кітапшасы қолданыста бар</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Барлық электрондық пошта хабарламалары</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Жауап беру</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Қабылдаушы</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Келген пошта серверінің түрі</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Электрондық пошта мекен-жайы жарамсыз</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Ауыстыру</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Мекенжайды қосу</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Электрондық пошта таңдалмады</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Барлық жойылды</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Орналастырылды</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Мекен-жай</text>
+    <text id="IDS_COM_POP_ERROR">Қате</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Тоқтату</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Әдепкі жіберу есептік жазбасы</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Шот баптаулары</text>
+    <text id="IDS_EMAIL_OPT_ALL">Барлығы</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Байланысты қорғау</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Ескерту</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Соңғы</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Жіберілген</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Кірген хабарламалар</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Барлық есептік жазбалар</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Электрондық пошталарды бұғаттау</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Брл.бсқ. белгілеу</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Мені әрдайым жасырын көшірмеге</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Қолтаңбаны қосу</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Маңызды</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Кіріс порты</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Жою</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Таңдаулы етіп орнату</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Жою үстінде үзіліп кетті</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Тіркеу мүмкін емес. Ең үлкен файлдар өлшемі – %d КБ</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Хабарды толығымен жүктеу</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Құпиясөзді көрсету</text>
+    <text id="IDS_EMAIL_OPT_DATE">Күні</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Жөнелтуші</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Оқылған</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Бүгін</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Шот</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Қондырғылар</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Нысан</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Қолмен орнату</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Басқалар</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Пайдаланылмаған</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Барлық қалтаны көрсету</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Электрондық пошта хабарларын көрсету</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Қосымша</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Жойылуда...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Хабарлама</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Таңд-р. рет. бел-меу</text>
+    <text id="IDS_EMAIL_SK3_DONE">Дайын</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Жіберушіге жауап жазу</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Кімге</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Эл. пошта парам-рі</text>
+    <text id="IDS_EMAIL_POP_ALERT">Қоңырау</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Бәрін жоясыз ба?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Жоспарлар</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d тіркеме</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Жаупта негізгі мәтін</text>
+    <text id="IDS_EMAIL_BODY_BCC">ҚК</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Шығыс серверы</text>
+    <text id="IDS_COM_OPT_SELECTED">Таңдалды</text>
+    <text id="IDS_COM_BODY_SEND">Жіберу</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Оқылмады деп белгілеу</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Samsung Mobile желісінен жіберілді</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Іздеу</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Тұтынушы аты</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Пошта жәшігін орнату</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Жоспарларға сақтау</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Күнтізбеге қосу</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Мекен-жай жоқ</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Соңғы апта</text>
+    <text id="IDS_COM_POP_PASSWORD">Кілтсөз</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Ескірек</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Ешқандай алушы қосылмады. Алушылар енгізіңіз</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Жазу</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Контактілерге қосу</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Email адресі</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Орналастырылмады</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Жазба тексерілуде...</text>
+    <text id="IDS_COM_SK_ADD">Қосу</text>
+    <text id="IDS_COM_SK_MORE">Көбірек</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Эл. пошта</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Оқутын таңбаланған</text>
+    <text id="IDS_EMAIL_BODY_CC">Ек</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Тақырып қосу</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Керексіз элементтер</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Мәтін жоқ</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Барл-на жуп беру</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Жазбаны қосу мүмкін емес</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Тақырыбы</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Есептік жазбалар қосу</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Таңдаулылар</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Электрондық поштаны жіберу мүмкін емес</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Нысаны жоқ</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Шығыс параметрлері</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Оқылмаған</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Кіріс сервері</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Қолтаңба</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Файлдарды қосу</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Брл.бсқ. орнату</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Құлыптау</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Қолданыста бар</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Қайта жіберу</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Блокталып қойған</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Бұл есептік жазбаға қатысты барлық деректер жойылады. Жалғастыру керек пе?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Есептік жазба аты</text>
+    <text id="IDS_COM_SK_UPDATE">Жаңарту</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Ең көп алушылар санына (%d) жетті</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Таңбалардың ен көп саны артты</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Тіркеме жүктелуде...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Қотару мүмкін емес</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Тіркелгі қосу</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Жадында орын аз</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Алғаш жазылғандарға сақтау мүмкін емес</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Қайталанатын алушы</text>
+</string_table>
diff --git a/res/kor-KR.xml b/res/kor-KR.xml
new file mode 100755 (executable)
index 0000000..a3fab3f
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">서버에 저장</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">즐겨찾기 표시 해제</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">발신대기함</text>
+    <text id="IDS_COM_POP_CLOSE">닫기</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">이메일 보내기</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">전송 포트‏</text>
+    <text id="IDS_COM_POP_DELETE_Q">삭제할까요?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">폴더</text>
+    <text id="IDS_EMAIL_OPT_VIEW">보기</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">참조/숨은참조 추가</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">참조/숨은참조</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">내용이 없습니다</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">보안</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">전달시 첨부파일 포함</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">첨부할 수 없습니다. 첨부할 수 있는 파일 수는 %d개입니다.</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">수신 설정</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">어제</text>
+    <text id="IDS_COM_SK_NEXT">다음</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">메일함 목록</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">스팸메시지함</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">발신함</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">사용 중인 계정입니다</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">모든 이메일</text>
+    <text id="IDS_EMAIL_OPT_REPLY">답장</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">수신인</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">수신 메일 서버 종류</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">이메일 주소가 바르지 않습니다</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">이동</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">주소 추가</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">선택된 이메일이 없습니다</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">모두 삭제</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">이동 중...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">주소</text>
+    <text id="IDS_COM_POP_ERROR">오류가 발생하였습니다</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">취소</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">기본 전송 계정</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">계정 설정</text>
+    <text id="IDS_EMAIL_OPT_ALL">전체</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">보안 연결</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">경고</text>
+    <text id="IDS_EMAIL_BODY_RECENT">최근 검색 결과</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">전송되었습니다</text>
+    <text id="IDS_EMAIL_BODY_INBOX">수신함</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">모든 계정</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">이메일 차단</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">모두를 표시</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">나를 항상 숨은참조에 포함</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">서명 추가</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">중요</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">수신 포트</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">삭제</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">즐겨찾기로 설정</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">삭제하지 못하였습니다</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">첨부할 수 없습니다. 첨부할 수 있는 파일 크기는 %dKB까지 입니다.</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">전체 메시지 다운로드</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">비밀번호 표시</text>
+    <text id="IDS_EMAIL_OPT_DATE">날짜</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">발신인</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">읽음</text>
+    <text id="IDS_EMAIL_BODY_TODAY">오늘</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">계정</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">설정</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">제목</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">수동 설정</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">기타</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">사용 안 함</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">모든 폴더 보기</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">이메일 표시</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">첨부</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">삭제 중...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">메시지</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">즐겨찾기 표시 해제</text>
+    <text id="IDS_EMAIL_SK3_DONE">완료</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">발신인에게 회신</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">수신인</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">이메일 설정</text>
+    <text id="IDS_EMAIL_POP_ALERT">알림</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">모두 삭제할까요?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">임시보관함</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d개의 첨부파일</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">본문 포함하여 회신</text>
+    <text id="IDS_EMAIL_BODY_BCC">숨은참조</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">보내는 메일 서버</text>
+    <text id="IDS_COM_OPT_SELECTED">단일 선택</text>
+    <text id="IDS_COM_BODY_SEND">전송</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">읽지 않음으로 표시</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">삼성 모바일에서 전송하였습니다</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">검색</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">사용자 이름</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">메일함 설정</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">임시보관함에 저장할까요?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">일정에 추가</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">저장된 주소가 없습니다</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">마지막 주</text>
+    <text id="IDS_COM_POP_PASSWORD">비밀번호</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">오래된</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">추가된 수신인이 없습니다. 수신인을 입력하세요.</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">작성</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">연락처에 추가</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">이메일 주소</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">이동하지 못하였습니다</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">계정 확인 중...</text>
+    <text id="IDS_COM_SK_ADD">추가</text>
+    <text id="IDS_COM_SK_MORE">더보기</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">이메일</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">읽음으로 표시</text>
+    <text id="IDS_EMAIL_BODY_CC">참조</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">제목 추가</text>
+    <text id="IDS_EMAIL_BODY_TRASH">휴지통</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">메시지 내용이 없습니다</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">전체 회신</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">계정을 추가할 수 없습니다</text>
+    <text id="IDS_EMAIL_OPT_TITLE">제목</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">계정 추가</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">즐겨찾기</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">이메일을 전송할 수 없습니다</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">제목이 없습니다</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">발신 설정</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">읽지 않음</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">받는 메일 서버</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">서명</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">파일 첨부</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">모두를 설정</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">차단</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">이미 저장되어 있습니다</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">전달</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">이미 차단되어 있습니다</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">이 계정과 관련된 모든 데이터가 삭제됩니다. 계속할까요?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">계정 이름</text>
+    <text id="IDS_COM_SK_UPDATE">업데이트</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">추가할 수 있는 수신인(%d명)을 초과하였습니다</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">입력 가능한 최대 글자수를 초과하였습니다</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">첨부파일 다운로드 중...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">다운로드할 수 없습니다</text>
+<text id="IDS_COM_SK_OK">확인</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">계정 추가</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">저장 공간이 부족합니다</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">임시보관함에 저장할 수 없습니다</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">수신인이 중복 입력되었습니다</text>
+</string_table>
diff --git a/res/lav-LV.xml b/res/lav-LV.xml
new file mode 100755 (executable)
index 0000000..10d9cdb
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Saglabāt serverī</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Noņemt no izlases</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Izsūtne</text>
+    <text id="IDS_COM_POP_CLOSE">Aizvērt</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Sūtīt e-pasta ziņu</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Izejošais ports</text>
+    <text id="IDS_COM_POP_DELETE_Q">Vai dzēst?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Mapes</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Skatīt</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Pievienot kopiju/diskrēto kopiju</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Nav satura</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Drošība</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Pārsūtīt ar failiem</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Nevar pievienot. Maksimālais failu skaits ir %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Ienākošie iestatījumi</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Vakar</text>
+    <text id="IDS_COM_SK_NEXT">Nāk.</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Pastkastes saraksts</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Surogātpasts</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Nosūtītās ziņas</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Konts jau pastāv</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Visas e-pasta ziņas</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Atbildēt</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Adresāts</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Ienākošā pasta servera tips</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Nederīga e-pasta adrese</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Pārvietot</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Adreses pievienošana</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nav izvēlēts neviens e-pasts</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Dzēst visu</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Pārvieto...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adrese</text>
+    <text id="IDS_COM_POP_ERROR">Kļūda</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Atcelt</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Noklusējuma sūtīšanas konts</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Konta iestatījumi</text>
+    <text id="IDS_EMAIL_OPT_ALL">Visas</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Drošs savienojums</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Brīdinājums</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Pēdējie</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Nosūtīts</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Iesūtne</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Visi konti</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloķēt e-pasta ziņas</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Atzīmēt visu kā</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Vienmēr sūtīt man diskrēto kopiju</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Pievienot parakstu</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Svarīgs</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Ienākošais ports</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Dzēst</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Iestatīt kā izlasi</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Neizdevās izdzēst</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Nevar pievienot. Maksimālais failu lielums ir %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Lejupielādēt pilnu ziņu</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Rādīt paroli</text>
+    <text id="IDS_EMAIL_OPT_DATE">Datums</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Sūtītājs</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lasītās ziņas</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Šodien</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Konts</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Iestatījumi</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Tēma</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manuāla iestatīšana</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Citi</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Netiek izmantots</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Parādīt visas mapes</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Rādīt e-pasta ziņas</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Pievienot</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Dzēš...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Ziņa</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Noņemt no izlases</text>
+    <text id="IDS_EMAIL_SK3_DONE">Gatavs</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Atbildēt sūtītājam</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Kam</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-pasta iestat.</text>
+    <text id="IDS_EMAIL_POP_ALERT">Brīdinājums</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Vai dzēst visu?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Melnraksti</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d pielikumi</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Atbildēt ar tekstu</text>
+    <text id="IDS_EMAIL_BODY_BCC">Diskrētā kopija</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Izejošais serveris</text>
+    <text id="IDS_COM_OPT_SELECTED">Izvēlēts</text>
+    <text id="IDS_COM_BODY_SEND">Sūtīt</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Atzīmēt kā nelasītu</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Sūtīts no Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Meklēt</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Lietotājvārds</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Pastkastes iestatīšana</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Vai saglabāt mapē Melnraksti?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Pievienot kalendāram</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nav adreses</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Pēdējā nedēļa</text>
+    <text id="IDS_COM_POP_PASSWORD">Parole</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Vecāka</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nav pievienots neviens adresāts. Ievadiet adresātus</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Izveidot</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Pievienot kontaktam</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-pasta adrese</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Pārvietošana neizdevās</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validē kontu...</text>
+    <text id="IDS_COM_SK_ADD">Pievienot</text>
+    <text id="IDS_COM_SK_MORE">Citi</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-pasts</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Atzīmēt kā izlasītus</text>
+    <text id="IDS_EMAIL_BODY_CC">Kopija</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Pievienot tēmu</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Atkritne</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Nav teksta</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Atbildēt visiem</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Nevar pievienot kontu</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Nosaukums</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Kontu pievienošana</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Izlases</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Nevar nosūtīt e-pasta ziņu</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Nav tēmas</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Izejošo ziņu iestatījumi</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Nelasīts</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Ienākošs serveris</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Paraksts</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Pievienot failus</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Iestatīt visu kā</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloķēt</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Jau pastāv</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Pārsūtīt</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Jau ir bloķēts</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Visi ar šo kontu saistītie dati tiks izdzēsti. Vai turpināt?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Konta nosaukums</text>
+    <text id="IDS_COM_SK_UPDATE">Atjaunināt</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Sasniegts maksimālais adresātu skaits (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Sasniegts maksimālais rakstzīmju skaits</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Lejupielādē pielikumu...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Nevar lejupielādēt</text>
+<text id="IDS_COM_SK_OK">Labi</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Konta pievienošana</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Atmiņa pilna</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Nevar saglabāt mapē Melnraksti</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Adresāta dublikāts</text>
+</string_table>
diff --git a/res/lit-LT.xml b/res/lit-LT.xml
new file mode 100755 (executable)
index 0000000..bf652c8
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Laikyti serveryje</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Panaik.mėgstam.žym.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Siunčiamos žinutės</text>
+    <text id="IDS_COM_POP_CLOSE">Uždaryti</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Siųsti el. laišką</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Siunčiamo pašto prievadas</text>
+    <text id="IDS_COM_POP_DELETE_Q">Ar trinti?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Aplankai</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Rodyti</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Pridėti Cc /Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Nėra turinio</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Sauga</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Persiųsti su failais</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Neįmanoma pridėti. Maksimalus failų skaičius yra %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Gaunamųjų nustatymai</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Vakar</text>
+    <text id="IDS_COM_SK_NEXT">Kitas</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Pašto dėžučių sąrašas</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Nepageidaujamų žinučių dėžutė</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Išsiųstų žinučių dėžutė</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Abonentas jau yra</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Visi el. laiškai</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Atsakyti</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Gavėjas</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Gaunamų laiškų serverio tipas</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Neteisingas el. pašto adresas</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Perkelti</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Pridėti adresą</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nepasirinktas el. paštas</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Trinti viską</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Perkeliama...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresas</text>
+    <text id="IDS_COM_POP_ERROR">Klaida</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Atšaukti</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Numatytoji siuntimo paskyra</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Paskyros nustatymai</text>
+    <text id="IDS_EMAIL_OPT_ALL">Visos</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Saugus ryšys</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Perspėjimas</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Paskutiniai</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Išsiųsta</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Gautos žinutės</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Visos paskyros</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokuoti el. laiškus</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Žymėti viską kaip</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Visada siųsti nematomą kopiją (Bcc) sau</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Pridėti parašą</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Svarbu</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Gaunamo pašto prievadas</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Trinti</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Nustat.kaip parankin.</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Ištrinti nepavyko</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Neįmanoma pridėti. Maksimalus failų dydis yra %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Atsisiųsti visą žinutę</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Rodyti slaptažodį</text>
+    <text id="IDS_EMAIL_OPT_DATE">Data</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Siuntėjas</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Skaityti</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Šiandien</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Paskyra</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Nustatymai</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Tema</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Rankinis nustatymas</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Kiti</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Nenaudojama</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Rodyti visus aplankus</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Rodyti el. laiškus</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Pridėti</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Trinama...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Žinutė</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Panaik.mėgstam.žym.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Atlikta</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Atsakyti siuntėjui</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Kam</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">El. pašto nustat.</text>
+    <text id="IDS_EMAIL_POP_ALERT">Įspėjimas</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Ar trinti viską?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Juodraščiai</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">Priedai: %d</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Ats. su gautu turiniu</text>
+    <text id="IDS_EMAIL_BODY_BCC">Nematoma kopija</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Siunčiamo pašto serveris</text>
+    <text id="IDS_COM_OPT_SELECTED">Pasirinkta</text>
+    <text id="IDS_COM_BODY_SEND">Siųsti</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Žymėti kaip neperskaitytą</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Siųsta iš „Samsung Mobile“</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Ieškoti</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Naudotojo vardas</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Pašto dėžutės sąranka</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Ar įrašyti į Juodraščius?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Pridėti į kalendorių</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nėra adreso</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Praėjusią savaitę</text>
+    <text id="IDS_COM_POP_PASSWORD">Slaptažodis</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Senesnis</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nėra pridėtų gavėjų. Įveskite gavėjus</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Sukurti</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Įtraukti adresatą</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">El. pašto adresas</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Perkelti nepavyko</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Tikrinama paskyra...</text>
+    <text id="IDS_COM_SK_ADD">Pridėti</text>
+    <text id="IDS_COM_SK_MORE">Daugiau</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">El. paštas</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Pažymėti kaip perskaitytą</text>
+    <text id="IDS_EMAIL_BODY_CC">Kopija</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Pridėti temą</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Šiukšlinė</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Nėra teksto</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Atsakyti visiems</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Neįmanoma pridėti paskyros</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Pavadinimas</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Pridėti paskyras</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Mėgstamiausieji</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Neįmanoma išsiųsti el. laiško</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Nėra temos</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Siunčiamo pašto nustatymai</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Neperskaityta</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Gaunamo pašto serveris</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Parašas</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Pridėti failus</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Nust. viską kaip</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokuoti</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Jau yra</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Persiųsti</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Jau užblokuota</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Bus ištrinti visi su šia paskyra susiję duomenys. Tęsti?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Paskyros pavadinimas</text>
+    <text id="IDS_COM_SK_UPDATE">Atnaujinti</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Pasiektas didžiausias gavėjų (%d) skaičius</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Pasiektas didžiausias simbolių skaičius</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Atsisiunčiamas priedas...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Negalima atsisiųsti</text>
+<text id="IDS_COM_SK_OK">Gerai</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Pridėti paskyrą</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Nepakanka atminties</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Neįmanoma įrašyti į Juodraščius</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Du tokie pat gavėjai</text>
+</string_table>
diff --git a/res/mkd-MK.xml b/res/mkd-MK.xml
new file mode 100755 (executable)
index 0000000..12c6340
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Чувај на серверот</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Одозн. како омилени</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Излезно сандаче</text>
+    <text id="IDS_COM_POP_CLOSE">Затвори</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Прати e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Порт за излезна пошта</text>
+    <text id="IDS_COM_POP_DELETE_Q">Да се избрише?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Папки</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Прикажи</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Додај Копија/Н.к.</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Коп/Н.к.</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Нема содржини</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Сигурност</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Препрати со фајловите</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Не може да се приложи. Максималниот број фајлови е %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Опции за прием</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Вчера</text>
+    <text id="IDS_COM_SK_NEXT">Следно</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Листа на сандачиња</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Несакана пошта</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Пратени</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Сметката веќе постои</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Сите email пораки</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Одговори</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Примател</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Тип сервер за дојдовна пошта</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Погрешна email адреса</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Премести</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Додај адреса</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Не е избран email</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Избриши сè</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Се преместува...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Адреса</text>
+    <text id="IDS_COM_POP_ERROR">Грешка</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Откажи</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Основна сметка за праќање</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Опции за сметката</text>
+    <text id="IDS_EMAIL_OPT_ALL">Сите</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Безбедна врска</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Предупредување</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Последни</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Пратено</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Влезно сандаче</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Сите сметки</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Блокирај email-пораки</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Озн. ги сите како</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Секогаш Bcc за мене</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Додавај потпис</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Важен настан</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Порт за дојдовна пошта</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Избриши</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Постави како Омилени</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Неуспешно бришење</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Не може да се приложи. Максимална големина на фајловите е %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Преземи цела порака</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Прикажи лозинка</text>
+    <text id="IDS_EMAIL_OPT_DATE">Датум</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Праќач</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Прочитани</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Денес</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Сметка</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Опции</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Наслов</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Рачно поставување</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Други</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Не користи</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Прикажи ги сите папки</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Покажи email-и</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Приложи</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Се брише...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Порака</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Одозн. како омилени</text>
+    <text id="IDS_EMAIL_SK3_DONE">Готово</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Одговори на праќачот</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">До</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Опции за email</text>
+    <text id="IDS_EMAIL_POP_ALERT">Известување</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Избриши сè?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Незавршени</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d прилози</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Одговор со примената порака</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Сервер за праќање</text>
+    <text id="IDS_COM_OPT_SELECTED">Избраните</text>
+    <text id="IDS_COM_BODY_SEND">Прати</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Означи како непрочитана</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Пратено од Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Побарај</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Корисничко име</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Конфигурација за сандаче</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Сочувај во Незавршени?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Додај во календар</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Нема адреса</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Последна седмица</text>
+    <text id="IDS_COM_POP_PASSWORD">Лозинка</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Постаро</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Не се додадени приматели. Внесете приматели</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Состави</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Додај на запис</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Адреса на Е-пошта</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Неуспешно преместување</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Сметката се проверува...</text>
+    <text id="IDS_COM_SK_ADD">Додај</text>
+    <text id="IDS_COM_SK_MORE">Повеќе</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Означи како прочитано</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Додај наслов</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Ѓубре</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Без текст</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Одговори на сите</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Не може да се додаде сметка</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Наслов</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Додај сметки</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Омилени</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Не може да се прати email</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Нема наслов</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Појдовни опции</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Непрочитано</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Сервер за прием</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Потпис</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Приложи фајлови</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Одр. ги сите како</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Блокирај</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Веќе постои</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Препрати</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Веќе е блокирано</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Ќе се избришат сите податоци поврзани со оваа сметка. Продолжи?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Име на сметка</text>
+    <text id="IDS_COM_SK_UPDATE">Ажурирај</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Достигнат е максималниот број приматели (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Достигнат е максималниот број знаци</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Се презема прилог...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Не може да се преземе</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Додај сметка</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Нема доволно меморија</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Не може да се сочува во Незавршени</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Дуплиран примател</text>
+</string_table>
diff --git a/res/nld-NL.xml b/res/nld-NL.xml
new file mode 100755 (executable)
index 0000000..5955a9c
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Op server bewaren</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Mark. als fav. ophef</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Postvak UIT</text>
+    <text id="IDS_COM_POP_CLOSE">Sluiten</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">E-mail verzenden</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Poort uitgaande e-mail</text>
+    <text id="IDS_COM_POP_DELETE_Q">Verwijderen?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Mappen</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Tonen</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">CC/BCC toevoegen</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Geen inhoud</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Beveiliging</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Doorsturen met bestanden</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Kan niet toevoegen. Maximumaantal bestanden is %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Instellingen inkomende e-mail</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Gisteren</text>
+    <text id="IDS_COM_SK_NEXT">Volgende</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Mailboxlijst</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Ongewenste berichten</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Verzonden berichten</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Account bestaat al</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Alle e-mailberichten</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Antwoord</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Ontvanger</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Servertype inkomende e-mail</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Ongeldig e-mailadres</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Verplaatsen</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Adres toevoegen</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Geen e-mail geselecteerd</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Alles verwijderen</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Verplaatsen...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adres</text>
+    <text id="IDS_COM_POP_ERROR">Fout</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Annuleren</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Standaardaccount voor verzenden</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Accountinstellingen</text>
+    <text id="IDS_EMAIL_OPT_ALL">Alles</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Veilige verbinding</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Waarschuwing</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recent</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Verzonden</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Postvak IN</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Alle accounts</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">E-mail blokkeren</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Alles marker. als</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Altijd BCC aan mijzelf</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Handtekening toevoegen</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Belangrijk</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Poort inkomende e-mail</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Wissen</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Inst. als Favorieten</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Verwijderen mislukt</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Kan niet toevoegen. Maximumgrootte van bestanden is %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Volledig bericht downloaden</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Wachtwoord tonen</text>
+    <text id="IDS_EMAIL_OPT_DATE">Datum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Afzender</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Gelezen</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Vandaag</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Account</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Instellingen</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Onderwerp</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Handmatige instelling</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Overige</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Niet gebruikt</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Alle mappen weergeven</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">E-mails tonen</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Bijvoegen</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Verwijderen...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Bericht</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Mark. als fav. ophef</text>
+    <text id="IDS_EMAIL_SK3_DONE">Gereed</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Afzender beantwoorden</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Aan</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-mailinstellingen</text>
+    <text id="IDS_EMAIL_POP_ALERT">Signaal</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Alles verwijderen?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Concepten</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d bijlagen</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Beantwoorden met oorspronkelijke tekst</text>
+    <text id="IDS_EMAIL_BODY_BCC">BCC</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Uitgaande server</text>
+    <text id="IDS_COM_OPT_SELECTED">Geselecteerd</text>
+    <text id="IDS_COM_BODY_SEND">Verzenden</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Markeren als Ongelezen</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Verzonden vanaf Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Zoeken</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Gebruikersnaam</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Mailbox instellen</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Opslaan in Concepten?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Toevoegen aan agenda</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Geen adres</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Laatste week</text>
+    <text id="IDS_COM_POP_PASSWORD">Wachtwoord</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Ouder</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Geen ontvangers toegevoegd. Geef ontvangers in</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Opstellen</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Toevoegen aan contactpersoon</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-mailadres</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Verplaatsen is mislukt</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Account controleren...</text>
+    <text id="IDS_COM_SK_ADD">Toevoegen</text>
+    <text id="IDS_COM_SK_MORE">Meer</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Markeren als gelezen</text>
+    <text id="IDS_EMAIL_BODY_CC">CC</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Onderwerp toevoegen</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Prullenbak</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Geen tekst</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Allen beantw.</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Kan account niet toevoegen</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Titel</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Accounts toevoegen</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favorieten</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Kan e-mail niet verzenden</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Geen onderwerp</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Instellingen uitgaande e-mail</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Ongelezen</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Inkomende server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Handtekening</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Bijlagen toevoegen</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Alles instel. als</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokkeren</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Bestaat al</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Doorsturen</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Al geblokkeerd</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Alle gegevens die met dit account samenhangen, worden verwijderd. Doorgaan?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Accountnaam</text>
+    <text id="IDS_COM_SK_UPDATE">Bijwerken</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maximumaantal ontvangers (%d) bereikt</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Maximumaantal tekens bereikt</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Bijlage downloaden...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Kan niet downloaden</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Account toevoegen</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Onvoldoende geheugen</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Kan niet opslaan in Concepten</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Dubbele ontvanger</text>
+</string_table>
diff --git a/res/nob-NO.xml b/res/nob-NO.xml
new file mode 100755 (executable)
index 0000000..35eab38
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Behold på server</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Fjern fav.markering</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Utboks</text>
+    <text id="IDS_COM_POP_CLOSE">Lukk</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Send e-post</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Utgående port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Slette?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Mapper</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Vis</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Legg til Kopi/Blindkopi</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Kopi/Blindkopi</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Ikke noe innhold</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Sikkerhet</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Videresend med filer</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Kan ikke legge ved. Maksimalt antall filer er %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Innkommende innstillinger</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">I går</text>
+    <text id="IDS_COM_SK_NEXT">Neste</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Postboksliste</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Søppelpost</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Sendte meldinger</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Kontoen finnes allerede</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Alle e-postmeldinger</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Svar</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Mottaker</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Servertype for innkommende e-post</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Ugyldig e-postadresse</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Flytt</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Legg til adresse</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Ingen e-post valgt</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Slett alle</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Flytter...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresse</text>
+    <text id="IDS_COM_POP_ERROR">Feil</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Avbryt</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Standard sendekonto</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Kontoinnstillinger</text>
+    <text id="IDS_EMAIL_OPT_ALL">Alle</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Sikker tilkobling</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Advarsel</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Nylige</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Sendt</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Innboks</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Alle kontoer</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokker e-poster</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Merk alle som</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Alltid send blindkopi til meg selv</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Legg til signatur</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Viktig</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Innkommende port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Slett</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Angi som Favoritter</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Kunne ikke slette</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Kan ikke legge ved. Maksimal filstørrelse er %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Last ned fullstendig melding</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Vis passord</text>
+    <text id="IDS_EMAIL_OPT_DATE">Dato</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Avsender</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lest</text>
+    <text id="IDS_EMAIL_BODY_TODAY">I dag</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Konto</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Kontoinnstillinger</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Emne</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manuelt oppsett</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Andre</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Brukes ikke</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Vis alle mapper</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Vis e-poster</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Legg ved</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Sletter...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Melding</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Fjern fav.markering</text>
+    <text id="IDS_EMAIL_SK3_DONE">Utført</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Svar til avsender</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Til</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-postinnst.</text>
+    <text id="IDS_EMAIL_POP_ALERT">Varsling</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Slette alle?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Utkast</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d vedlegg</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Svar med brødtekst</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bko</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Utgående server</text>
+    <text id="IDS_COM_OPT_SELECTED">Valgt</text>
+    <text id="IDS_COM_BODY_SEND">Send</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marker som ulest</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Sendt fra en Samsung Mobil</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Søk</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Brukernavn</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Konfigurering av postkasse</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Lagre i Utkast?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Legg til kalender</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Ingen adresse</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Siste uke</text>
+    <text id="IDS_COM_POP_PASSWORD">Passord</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Eldre</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Ingen mottakere lagt til. Angi mottakere</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Opprett</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Legg til kontakt</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-postadresse</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Flyttingen mislyktes</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validerer konto...</text>
+    <text id="IDS_COM_SK_ADD">Legg til</text>
+    <text id="IDS_COM_SK_MORE">Mer</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-post</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marker som lest</text>
+    <text id="IDS_EMAIL_BODY_CC">Kopi</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Legg til emne</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Søppel</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Ingen tekst</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Svar alle</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Kan ikke legge til konto</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Tittel</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Legg til kontoer</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoritter</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Kan ikke sende e-post</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Intet emne</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Utgående innstillinger</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Ulest</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Innkommende server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signatur</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Legg ved filer</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Angi alle som</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokker</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Finnes allerede</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Videresend</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Allerede blokkert</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Alle data forbundet med denne kontoen slettes. Fortsette?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Kontonavn</text>
+    <text id="IDS_COM_SK_UPDATE">Oppdater</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maksimalt antall mottakere (%d) er nådd</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Nådd maksimalt antall tegn</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Laster ned vedlegg...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Kan ikke laste ned</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Legg til konto</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Ikke nok minne</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Kan ikke lagre i Utkast</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Duplisert mottaker</text>
+</string_table>
diff --git a/res/pol-PL.xml b/res/pol-PL.xml
new file mode 100755 (executable)
index 0000000..b7367a1
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Zachowaj kopię na serwerze</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Usuń zaz. jako Ulub.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Skrzynka nadawcza</text>
+    <text id="IDS_COM_POP_CLOSE">Zamknij</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Wyślij e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port poczty wychodzącej</text>
+    <text id="IDS_COM_POP_DELETE_Q">Usunąć?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Katalogi</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Podgląd</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Dodaj DW/UDW</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">DW/UDW</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Brak zawartości</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Bezpieczeństwo</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Przesyłaj dalej z plikami</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Nie można dołączyć. Maksymalna liczba plików to %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Ustawienia poczty przychodzącej</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Wczoraj</text>
+    <text id="IDS_COM_SK_NEXT">Dalej</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Lista skrzynek pocztowych</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Skrzynka spamu</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Elementy wysłane</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Konto już istnieje</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Wszystkie wiad. e-mail</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Odpowiedz</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Odbiorca</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Typ serwera poczty przychodzącej</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Nieprawidłowy adres e-mail</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Przenieś</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Dodaj adres</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nie wybrano wiadomości e-mail</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Usuń wszystko</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Przenoszenie...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adres</text>
+    <text id="IDS_COM_POP_ERROR">Błąd</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Anuluj</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Domyślne konto wysyłania</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Ustawienia konta</text>
+    <text id="IDS_EMAIL_OPT_ALL">Wszystkie</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Bezpieczne połączenie</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Ostrzeżenie</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Ostatnie</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Wysłano</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Skrzynka odbiorcza</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Wszystkie konta</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Zablokuj e-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Oznacz wsz. jako</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Zawsze wysyłaj kopię UDW do mnie</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Dodaj podpis</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Ważne</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port poczty przychodzącej</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Usuń</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Ustaw jako Ulubione</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Błąd usuwania</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Nie można dołączyć. Maksymalny rozmiar plików to %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Pobierz wiadomość</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Wyświetl hasło</text>
+    <text id="IDS_EMAIL_OPT_DATE">Data</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Nadawca</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Przeczytane</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Dzisiaj</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Konto</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Ustawienia</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Temat</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Konfiguracja ręczna</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Inne</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Ręcznie</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Pokaż wszystkie katalogi</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Pokaż e-maile</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Dołącz</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Usuwanie...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Wiadomość</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Usuń zaz. jako Ulub.</text>
+    <text id="IDS_EMAIL_SK3_DONE">OK</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Odpowiedz nadawcy</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Do</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Ustawienia e-mail</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alarm</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Usunąć wszystko?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Wersje robocze</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">Załączników: %d</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Odp. z oryg. wiadomością</text>
+    <text id="IDS_EMAIL_BODY_BCC">UDW</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Serwer SMTP</text>
+    <text id="IDS_COM_OPT_SELECTED">Wybrany</text>
+    <text id="IDS_COM_BODY_SEND">Wyślij</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Zaznacz jako nieprzeczytane</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Wysłane z telefonu Samsung</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Szukaj</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nazwa użytkownika</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Konfiguracja skrzynki pocztowej</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Zapisać w wersjach roboczych?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Dodaj do kalendarza</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Brak adresu</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Ostatni tydzień</text>
+    <text id="IDS_COM_POP_PASSWORD">Hasło</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Starsze</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nie dodano żadnych odbiorców. Wprowadź odbiorców</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Utwórz</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Dodaj do kontaktów</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Adres email</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Błąd przenoszenia</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Walidacja konta...</text>
+    <text id="IDS_COM_SK_ADD">Dodaj</text>
+    <text id="IDS_COM_SK_MORE">Więcej</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Zaznacz jako przeczytane</text>
+    <text id="IDS_EMAIL_BODY_CC">DW</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Dodaj temat</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Kosz</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Brak tekstu</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Odpow. wszystk.</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Nie można dodać konta</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Tytuł</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Dodaj konta</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Ulubione</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Nie można wysłać e-mail</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Brak tematu</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Ustawienia poczty wych.</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Nieprzeczytane</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Serwer POP3/IMAP4</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Podpis</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Dołącz pliki</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Ustaw wszys. jako</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokuj</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Już istnieje</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Przekaż</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Już zablokowane</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Wszystkie dane powiązane z tym kontem zostaną usunięte. Kontynuować?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nazwa konta</text>
+    <text id="IDS_COM_SK_UPDATE">Uaktualnij</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Osiągnięto maksymalną liczbę odbiorców (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Osiągnięto maksymalną liczbę znaków</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Pobieranie załącznika...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Nie można pobrać</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Dodaj konto</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Brak pamięci</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Nie można zapisać w wersjach roboczych</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Powtórzony odbiorca</text>
+</string_table>
diff --git a/res/por-BR.xml b/res/por-BR.xml
new file mode 100755 (executable)
index 0000000..f8753d0
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Deixar no servidor</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Desm. como favoritos</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Saída</text>
+    <text id="IDS_COM_POP_CLOSE">Fechar</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Enviar e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Porta de envio</text>
+    <text id="IDS_COM_POP_DELETE_Q">Apagar?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Pastas</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Ver</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Adicionar Cc/Cco</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Cco</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Sem conteúdo</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Segurança</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Encaminhar c/ arquivos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Impossível anexar.  Número máximo de arquivos é %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Configurações de entrada</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Ontem</text>
+    <text id="IDS_COM_SK_NEXT">Próximo</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Lista caixas de correio</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Caixa de Spam</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Enviadas</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Conta já existente</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Todos e-mails</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Responder</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinatário</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tipo de servidor de recepção de e-mail</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Endereço de e-mail inválido</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Mover</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Adicionar endereço</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nenhum e-mail selecionado</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Apagar tudo</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Movendo…</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Endereço</text>
+    <text id="IDS_COM_POP_ERROR">Erro</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancelar</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Conta de envio padrão</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Configurações de conta</text>
+    <text id="IDS_EMAIL_OPT_ALL">Todos</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Conexão segura</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Aviso</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recente</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Enviado</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Caixa de entrada</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Todas as contas</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloquear e-mails</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Marcar tudo como</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Sempre com Cco para mim</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Adicionar assinatura</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Importante</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Porta de recepção</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Apagar</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Def. como Favoritos</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Erro ao apagar</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Impossível anexar. Tamanho máximo dos arquivos é de %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Baixar mensagem completa</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Exibir senha</text>
+    <text id="IDS_EMAIL_OPT_DATE">Data</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Remetente</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lido</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Hoje</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Conta</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Configurações</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Assunto</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configuração manual</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Outros</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Não utilizado</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Mostrar todas as pastas</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Mostrar e-mails</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Anexar</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Apagando…</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mensagem</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Desm. como favoritos</text>
+    <text id="IDS_EMAIL_SK3_DONE">OK</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Responder para remetente</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Para</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Config. de e-mail</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alerta</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Apagar tudo?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Rascunhos</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d anexos</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Responder com corpo</text>
+    <text id="IDS_EMAIL_BODY_BCC">Cco</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Servidor de saída</text>
+    <text id="IDS_COM_OPT_SELECTED">Selecionado</text>
+    <text id="IDS_COM_BODY_SEND">Enviar</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marcar como não lida</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Enviado por Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Pesquisar</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Usuário</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configuração de caixas de correio</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Salvar nos Rascunhos?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Adicionar à Agenda</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nenhum endereço</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Última semana</text>
+    <text id="IDS_COM_POP_PASSWORD">Senha</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Mais antigo</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nenhum destinatário adicionado. Insira destinatários</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Escrever</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Adicionar aos contatos</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Endereço de e-mail</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Erro ao mover</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validando conta...</text>
+    <text id="IDS_COM_SK_ADD">Adicionar</text>
+    <text id="IDS_COM_SK_MORE">Mais</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marcar como lida</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Adicionar assunto</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Lixo</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Sem texto</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Resp. a todos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Impossível adicionar conta</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Título</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Adicionar contas</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoritos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Impossível enviar e-mail</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Sem assunto</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Configurações de saída</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Não lida</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Servidor de entrada</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Assinatura</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Anexar ficheiros</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Definir tudo como</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloquear</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Já existe</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Encaminhar</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Já bloqueado</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Todos os dados relacionados a esta conta serão apagados. Continuar?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nome da conta</text>
+    <text id="IDS_COM_SK_UPDATE">Atualizar</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Número máximo de destinatários (%d) atingido</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Número máximo de caracteres atingido</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Baixando anexo...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Impossível baixar</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Adicionar conta</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Memória insuficiente</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Impossível salvar em Rascunhos</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinatário duplicado</text>
+</string_table>
diff --git a/res/por-PT.xml b/res/por-PT.xml
new file mode 100755 (executable)
index 0000000..45c8edd
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Manter cópia no servidor</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Desmarcar como fav</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Caixa de saída</text>
+    <text id="IDS_COM_POP_CLOSE">Fechar</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Enviar e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Porta de envio</text>
+    <text id="IDS_COM_POP_DELETE_Q">Eliminar?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Pastas</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Ver</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Adicionar Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Sem conteúdo</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Segurança</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Reencam. com ficheiros</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Impossível anexar. O número máximo de ficheiros é %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Definições de recepção</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Ontem</text>
+    <text id="IDS_COM_SK_NEXT">Seguinte</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Lista caixas de correio</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Caixa de Spam</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Itens enviados</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Conta já existente</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Todos os e-mails</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Responder</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinatário</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tipo de servidor de correio recebido</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Endereço de e-mail inválido</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Mover</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Adicionar endereço</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nenhum e-mail seleccionado</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Eliminar tudo</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">A mover...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Endereço</text>
+    <text id="IDS_COM_POP_ERROR">Erro</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancelar</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Conta de envio padrão</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Definições da conta</text>
+    <text id="IDS_EMAIL_OPT_ALL">Tudo</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Ligação segura</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Aviso</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recente</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Enviada</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Caixa de Entrada</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Todas as contas</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloquear e-mails</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Marcar tudo como</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Sempre com Bcc para mim</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Adicionar assinatura</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Importante</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Porta de recepção</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Eliminar</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Def. como Favoritos</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Falha ao apagar</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Impossível anexar. O tamanho máximo dos ficheiros é %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Transferir mensagem completa</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Mostrar palavra-passe</text>
+    <text id="IDS_EMAIL_OPT_DATE">Data</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Remetente</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lida</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Hoje</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Conta</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Definições</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Assunto</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configuração manual</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Outros</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Não utilizado</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Mostrar todas as pastas</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Mostrar e-mails</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Anexar</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">A eliminar...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mensagem</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Desmarcar como fav</text>
+    <text id="IDS_EMAIL_SK3_DONE">Concluído</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Responder para remetente</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Para</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Definições e-mail</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alerta</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Eliminar tudo?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Rascunhos</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d anexos</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Responder com corpo</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Servidor de envio</text>
+    <text id="IDS_COM_OPT_SELECTED">Seleccionado</text>
+    <text id="IDS_COM_BODY_SEND">Enviar</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marcar como não lida</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Enviado de Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Procurar</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nome de utilizador</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configuração da caixa de correio</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Guardar nos Rascunhos?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Adicionar à Agenda</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nenhum endereço</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Última semana</text>
+    <text id="IDS_COM_POP_PASSWORD">Palavra-passe</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Mais antigo</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nenhum destinatário adicionado. Introduzir destinatários</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Escrever</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Adicionar a contacto</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Endereço de e-mail</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Falha ao mover</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">A validar conta...</text>
+    <text id="IDS_COM_SK_ADD">Adicionar</text>
+    <text id="IDS_COM_SK_MORE">Mais</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marcar como lida</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Adicionar assunto</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Lixo</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Sem texto</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Respond. a todos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Impossível adicionar conta</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Título</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Adicionar contas</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoritos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Impossível enviar e-mail</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Sem assunto</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Definições de saída</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Não lida</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Servidor de recepção</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Assinatura</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Anexar ficheiros</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Definir tudo como</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloquear</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Já existe</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Reencaminhar</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Já bloqueado</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Todos os dados relacionados com esta conta serão eliminados. Continuar?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nome da conta</text>
+    <text id="IDS_COM_SK_UPDATE">Actuali.</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Número máximo de destinatários (%d) atingido</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Número máximo de caracteres atingido.</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">A transferir anexo...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Impossível transferir</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Adicionar conta</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Cartão SD cheio</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Impossível guardar em Rascunhos</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinatário duplicado</text>
+</string_table>
diff --git a/res/ron-RO.xml b/res/ron-RO.xml
new file mode 100755 (executable)
index 0000000..76c412e
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Păstrare copie pe server</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Deselectare ca pref.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">În curs de trimitere</text>
+    <text id="IDS_COM_POP_CLOSE">Închidere</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Trimitere email</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port expediere</text>
+    <text id="IDS_COM_POP_DELETE_Q">Ştergeţi?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Directoare</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Vizualizare</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Adăugare Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Conţinuturi inexistente</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Securitate</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Redir. cu fişiere</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Imposibil de ataşat. Numărul maxim de fişiere este %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Setări de intrare</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Ieri</text>
+    <text id="IDS_COM_SK_NEXT">Următor</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Listă cutii poştale</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Casetă cu mesaje nedorite</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Mesaje trimise</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Contul există deja</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Toate emailurile</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Răspuns</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinatar</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tip server primire e-mail</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Adresă e-mail invalidă</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Mutare</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Adăugare adresă</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nu a fost selectat niciun e-mail</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Ştergere toate</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Mutare</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresă</text>
+    <text id="IDS_COM_POP_ERROR">Eroare</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Anulare</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Cont implicit de trimitere</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Setări cont</text>
+    <text id="IDS_EMAIL_OPT_ALL">Toate</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Conexiune securizată</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Avertisment</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Recente</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Trimis</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Mesaje primite</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Toate conturile</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blocare e-mailuri</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Marcare toate ca</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Trimite întotdeauna copie Bcc către mine</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Adăugare semnătură</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Important</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port primire</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Ştergere</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Setare ca Preferate</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Ştergerea nu a reuşit</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Imposibil de ataşat. Dimensiunea maximă a fişierelor este de %d KO</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Descărcare mesaj complet</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Afişare parolă</text>
+    <text id="IDS_EMAIL_OPT_DATE">Dată</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Expeditor</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Citite</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Azi</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Cont</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Setări</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Subiect</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configurare manuală</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Altele</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Neutilizat</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Afişare integrală foldere</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Afişare e-mailuri</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Ataşare</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Se şterge...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mesaj</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Deselectare ca pref.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Gata</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Răspuns către expeditor</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Către</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Setări e-mail</text>
+    <text id="IDS_EMAIL_POP_ALERT">Avertizare</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Ştergeţi tot?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Ciorne</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d ataşări</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Răspuns cu mesaj corp</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Server ieşire</text>
+    <text id="IDS_COM_OPT_SELECTED">Selectat</text>
+    <text id="IDS_COM_BODY_SEND">Trimitere</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marcare ca Necitit</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Trimis de pe Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Căutare</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nume utilizator</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configurare cutie poştală</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Salvaţi în Ciorne?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Adăugare la calendar</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nicio adresă</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Ultima săptămână</text>
+    <text id="IDS_COM_POP_PASSWORD">Parolă</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Mai vechi</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nu a fost adăugat niciun destinatar. Introduceţi destinatari</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Compunere</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Adăugare la contacte</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Adresă de email</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Mutarea nu a reuşit</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Se validează contul...</text>
+    <text id="IDS_COM_SK_ADD">Adaugă</text>
+    <text id="IDS_COM_SK_MORE">Mai multe</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marcare ca citit</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Adăugare subiect</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Coş de gunoi</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Nici un text</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Răspuns pt. toţi</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Imposibil de adăugat contul</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Titlu</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Adăugare conturi</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favorite</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Imposibil de trimis e-mailul</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Niciun subiect</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Setări de ieşire</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Necitit</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Server intrare</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Semnătură</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Ataşare fişiere</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Setare toate ca</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blocare</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Există deja</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Transfer</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Este deja blocat</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Toate datele asociate acestui cont vor fi şterse. Continuaţi?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nume cont</text>
+    <text id="IDS_COM_SK_UPDATE">Actualizare</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Numărul maxim de destinatari (%d) a fost atins</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Adăugare la marcaje</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Se descarcă ataşarea...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Imposibil de descărcat</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Adăugare cont</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Memorie plină</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Imposibil de salvat în Ciorne</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinatar dublat</text>
+</string_table>
diff --git a/res/rus-RU.xml b/res/rus-RU.xml
new file mode 100755 (executable)
index 0000000..a57ceda
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Хранить копии на сервере</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Удал. из избранного</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Исходящие</text>
+    <text id="IDS_COM_POP_CLOSE">Закрыть</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Отправить E-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Порт сервера исх. почты</text>
+    <text id="IDS_COM_POP_DELETE_Q">Удалить?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Папки</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Просмотреть</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Добавить копию или скрытую копию</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Копия/скрытая копия</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Нет содержимого</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Безопасность</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Пересылать с файлами</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Невозможно вложить. Максимальное количество файлов: %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Параметры: входящие</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Вчера</text>
+    <text id="IDS_COM_SK_NEXT">Далее</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Список почтового ящика</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Спам</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Отправленные</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Учетная запись уже существует</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Все сообщения</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Ответить</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Получатель</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Тип сервера входящей почты</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Неправильный адрес эл. почты</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Переместить</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Добавить адрес</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Сообщение электронной почты не выбрано</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Удалить все</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Перемещение...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Адрес</text>
+    <text id="IDS_COM_POP_ERROR">Ошибка</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Отмена</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Учетная запись для отправки по умолчанию</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Параметры учетной записи</text>
+    <text id="IDS_EMAIL_OPT_ALL">Все</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Безопасное соединение</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Предупреждение</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Последние</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Отправлено</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Входящие</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Все учетные записи</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Блокировка E-mail сообщений</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Пометить все как</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Всегда отправлять себе скрытую копию</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Добавлять подпись</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Важное</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Порт сервера вх. почты</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Удалить</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Добавить в избранное</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Сбой удаления</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Невозможно вложить. Максимальный размер файлов: %d КБ</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Загрузить все сообщение</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Показать пароль</text>
+    <text id="IDS_EMAIL_OPT_DATE">Дата</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Отправитель</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Прочитанные</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Сегодня</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Учетная запись</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Настройки</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Тема</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Настройка вручную</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Прочее</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Не используется</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Показать все папки</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Показать электронную почту</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Вложить</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Удаление...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Сообщение</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Удал. из избранного</text>
+    <text id="IDS_EMAIL_SK3_DONE">Готово</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Ответить отправителю</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Кому</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Настройки эл.почты</text>
+    <text id="IDS_EMAIL_POP_ALERT">Сигнал</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Удалить все?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Черновики</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">Вложений: %d</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Текст сообщения при ответе</text>
+    <text id="IDS_EMAIL_BODY_BCC">СК</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Исходящий сервер</text>
+    <text id="IDS_COM_OPT_SELECTED">Выбрано</text>
+    <text id="IDS_COM_BODY_SEND">Отправить</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Пометить как непрочитанное</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Отправлено с Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Поиск</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Имя пользователя</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Настройка почтового ящика</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Сохранить в черновиках?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Добавить в календарь</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Нет адреса</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Последняя неделя</text>
+    <text id="IDS_COM_POP_PASSWORD">Пароль</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Старые</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Получатели не введены. Введите получателей</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Создать</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Добавить к контакту</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-mail</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Сбой перемещения</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Проверка учетной записи...</text>
+    <text id="IDS_COM_SK_ADD">Добавить</text>
+    <text id="IDS_COM_SK_MORE">Опции</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Пометить как прочитанное</text>
+    <text id="IDS_EMAIL_BODY_CC">Копия</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Добавить тему</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Корзина</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Нет текста</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Ответить всем</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Не удается добавить учетную запись</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Название</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Добавить учетные записи</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Избранное</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Не удается отправить сообщение электронной почты</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Нет темы</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Исходящая почта</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Непрочитанные</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Входящий сервер</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Подпись</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Вложить файлы</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Задать все как</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Блокировать</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Уже существует</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Переслать</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Уже заблокировано</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Все данные, относящиеся к этой учетной записи, будут удалены. Продолжить?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Имя учетной записи</text>
+    <text id="IDS_COM_SK_UPDATE">Обновить</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Достигнуто максимальное число получателей (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Достигнуто максимальное число символов</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Загрузка вложения...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Невозможно выполнить загрузку</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Добавить уч. запись</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Недостаточно памяти</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Не удается сохранить как черновик</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Повторяющийся получатель</text>
+</string_table>
diff --git a/res/screen-density-high/00_button_sweep_delete.png b/res/screen-density-high/00_button_sweep_delete.png
new file mode 100755 (executable)
index 0000000..57de8a3
Binary files /dev/null and b/res/screen-density-high/00_button_sweep_delete.png differ
diff --git a/res/screen-density-xhigh/00_Nocontents_text.png b/res/screen-density-xhigh/00_Nocontents_text.png
new file mode 100755 (executable)
index 0000000..3d68f0a
Binary files /dev/null and b/res/screen-density-xhigh/00_Nocontents_text.png differ
diff --git a/res/screen-density-xhigh/00_badge_34x34.png b/res/screen-density-xhigh/00_badge_34x34.png
new file mode 100755 (executable)
index 0000000..326ca8c
Binary files /dev/null and b/res/screen-density-xhigh/00_badge_34x34.png differ
diff --git a/res/screen-density-xhigh/00_button_sweep_delete.png b/res/screen-density-xhigh/00_button_sweep_delete.png
new file mode 100755 (executable)
index 0000000..a1826a9
Binary files /dev/null and b/res/screen-density-xhigh/00_button_sweep_delete.png differ
diff --git a/res/screen-density-xhigh/00_icon_more.png b/res/screen-density-xhigh/00_icon_more.png
new file mode 100755 (executable)
index 0000000..49a6d06
Binary files /dev/null and b/res/screen-density-xhigh/00_icon_more.png differ
diff --git a/res/screen-density-xhigh/00_icon_more_dim.png b/res/screen-density-xhigh/00_icon_more_dim.png
new file mode 100755 (executable)
index 0000000..adc28b2
Binary files /dev/null and b/res/screen-density-xhigh/00_icon_more_dim.png differ
diff --git a/res/screen-density-xhigh/00_icon_more_press.png b/res/screen-density-xhigh/00_icon_more_press.png
new file mode 100755 (executable)
index 0000000..3a13509
Binary files /dev/null and b/res/screen-density-xhigh/00_icon_more_press.png differ
diff --git a/res/screen-density-xhigh/00_icon_select_all_dim_web.png b/res/screen-density-xhigh/00_icon_select_all_dim_web.png
new file mode 100755 (executable)
index 0000000..d427c9b
Binary files /dev/null and b/res/screen-density-xhigh/00_icon_select_all_dim_web.png differ
diff --git a/res/screen-density-xhigh/00_icon_select_all_press_web.png b/res/screen-density-xhigh/00_icon_select_all_press_web.png
new file mode 100755 (executable)
index 0000000..9fd2ec5
Binary files /dev/null and b/res/screen-density-xhigh/00_icon_select_all_press_web.png differ
diff --git a/res/screen-density-xhigh/00_icon_select_all_web.png b/res/screen-density-xhigh/00_icon_select_all_web.png
new file mode 100755 (executable)
index 0000000..56e3fbb
Binary files /dev/null and b/res/screen-density-xhigh/00_icon_select_all_web.png differ
diff --git a/res/screen-density-xhigh/00_index_list_bg.png b/res/screen-density-xhigh/00_index_list_bg.png
new file mode 100755 (executable)
index 0000000..6f6aa04
Binary files /dev/null and b/res/screen-density-xhigh/00_index_list_bg.png differ
diff --git a/res/screen-density-xhigh/00_input_bg.png b/res/screen-density-xhigh/00_input_bg.png
new file mode 100755 (executable)
index 0000000..d5c11f5
Binary files /dev/null and b/res/screen-density-xhigh/00_input_bg.png differ
diff --git a/res/screen-density-xhigh/00_list_bar_press_1x80.png b/res/screen-density-xhigh/00_list_bar_press_1x80.png
new file mode 100755 (executable)
index 0000000..1dc6e15
Binary files /dev/null and b/res/screen-density-xhigh/00_list_bar_press_1x80.png differ
diff --git a/res/screen-density-xhigh/00_list_bar_press_1x90.png b/res/screen-density-xhigh/00_list_bar_press_1x90.png
new file mode 100755 (executable)
index 0000000..fe01174
Binary files /dev/null and b/res/screen-density-xhigh/00_list_bar_press_1x90.png differ
diff --git a/res/screen-density-xhigh/00_list_expandable_2_bg.png b/res/screen-density-xhigh/00_list_expandable_2_bg.png
new file mode 100755 (executable)
index 0000000..a66b980
Binary files /dev/null and b/res/screen-density-xhigh/00_list_expandable_2_bg.png differ
diff --git a/res/screen-density-xhigh/00_list_expandable_bg.png b/res/screen-density-xhigh/00_list_expandable_bg.png
new file mode 100755 (executable)
index 0000000..d466c20
Binary files /dev/null and b/res/screen-density-xhigh/00_list_expandable_bg.png differ
diff --git a/res/screen-density-xhigh/00_list_img_check.png b/res/screen-density-xhigh/00_list_img_check.png
new file mode 100755 (executable)
index 0000000..c954b08
Binary files /dev/null and b/res/screen-density-xhigh/00_list_img_check.png differ
diff --git a/res/screen-density-xhigh/00_list_photo_default.png b/res/screen-density-xhigh/00_list_photo_default.png
new file mode 100755 (executable)
index 0000000..2d15281
Binary files /dev/null and b/res/screen-density-xhigh/00_list_photo_default.png differ
diff --git a/res/screen-density-xhigh/00_list_thumbnail_bg.png b/res/screen-density-xhigh/00_list_thumbnail_bg.png
new file mode 100755 (executable)
index 0000000..88522c5
Binary files /dev/null and b/res/screen-density-xhigh/00_list_thumbnail_bg.png differ
diff --git a/res/screen-density-xhigh/00_sweep_list_bg.png b/res/screen-density-xhigh/00_sweep_list_bg.png
new file mode 100755 (executable)
index 0000000..1606042
Binary files /dev/null and b/res/screen-density-xhigh/00_sweep_list_bg.png differ
diff --git a/res/screen-density-xhigh/00_winset_title_line.png b/res/screen-density-xhigh/00_winset_title_line.png
new file mode 100755 (executable)
index 0000000..2be73aa
Binary files /dev/null and b/res/screen-density-xhigh/00_winset_title_line.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_accounts.png b/res/screen-density-xhigh/01_controlbar_icon_accounts.png
new file mode 100755 (executable)
index 0000000..768d8db
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_accounts.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_change_group.png b/res/screen-density-xhigh/01_controlbar_icon_change_group.png
new file mode 100755 (executable)
index 0000000..0d3938b
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_change_group.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_create_folder.png b/res/screen-density-xhigh/01_controlbar_icon_create_folder.png
new file mode 100755 (executable)
index 0000000..a13c41f
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_create_folder.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_favorite.png b/res/screen-density-xhigh/01_controlbar_icon_favorite.png
new file mode 100755 (executable)
index 0000000..aa13cf9
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_favorite.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_forward.png b/res/screen-density-xhigh/01_controlbar_icon_forward.png
new file mode 100755 (executable)
index 0000000..a1fca43
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_forward.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_reply.png b/res/screen-density-xhigh/01_controlbar_icon_reply.png
new file mode 100755 (executable)
index 0000000..4bdadbd
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_reply.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_send.png b/res/screen-density-xhigh/01_controlbar_icon_send.png
new file mode 100755 (executable)
index 0000000..2a31a6f
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_send.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_set_as.png b/res/screen-density-xhigh/01_controlbar_icon_set_as.png
new file mode 100755 (executable)
index 0000000..1673ad9
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_set_as.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_store.png b/res/screen-density-xhigh/01_controlbar_icon_store.png
new file mode 100755 (executable)
index 0000000..a5cb24d
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_store.png differ
diff --git a/res/screen-density-xhigh/01_controlbar_icon_tag.png b/res/screen-density-xhigh/01_controlbar_icon_tag.png
new file mode 100755 (executable)
index 0000000..5b57cf7
Binary files /dev/null and b/res/screen-density-xhigh/01_controlbar_icon_tag.png differ
diff --git a/res/screen-density-xhigh/01_controllbar_icon_add_tag.png b/res/screen-density-xhigh/01_controllbar_icon_add_tag.png
new file mode 100755 (executable)
index 0000000..2fb4713
Binary files /dev/null and b/res/screen-density-xhigh/01_controllbar_icon_add_tag.png differ
diff --git a/res/screen-density-xhigh/01_header_icon_add.png b/res/screen-density-xhigh/01_header_icon_add.png
new file mode 100755 (executable)
index 0000000..43c4984
Binary files /dev/null and b/res/screen-density-xhigh/01_header_icon_add.png differ
diff --git a/res/screen-density-xhigh/01_header_icon_cancel.png b/res/screen-density-xhigh/01_header_icon_cancel.png
new file mode 100755 (executable)
index 0000000..4fb54c3
Binary files /dev/null and b/res/screen-density-xhigh/01_header_icon_cancel.png differ
diff --git a/res/screen-density-xhigh/01_header_icon_delete.png b/res/screen-density-xhigh/01_header_icon_delete.png
new file mode 100755 (executable)
index 0000000..f02f45c
Binary files /dev/null and b/res/screen-density-xhigh/01_header_icon_delete.png differ
diff --git a/res/screen-density-xhigh/01_header_icon_done.png b/res/screen-density-xhigh/01_header_icon_done.png
new file mode 100755 (executable)
index 0000000..d771640
Binary files /dev/null and b/res/screen-density-xhigh/01_header_icon_done.png differ
diff --git a/res/screen-density-xhigh/01_header_icon_edit.png b/res/screen-density-xhigh/01_header_icon_edit.png
new file mode 100755 (executable)
index 0000000..ea2535d
Binary files /dev/null and b/res/screen-density-xhigh/01_header_icon_edit.png differ
diff --git a/res/screen-density-xhigh/01_header_icon_others.png b/res/screen-density-xhigh/01_header_icon_others.png
new file mode 100755 (executable)
index 0000000..4fc9dfa
Binary files /dev/null and b/res/screen-density-xhigh/01_header_icon_others.png differ
diff --git a/res/screen-density-xhigh/01_list_reorder_bg_above.png b/res/screen-density-xhigh/01_list_reorder_bg_above.png
new file mode 100755 (executable)
index 0000000..e28d15b
Binary files /dev/null and b/res/screen-density-xhigh/01_list_reorder_bg_above.png differ
diff --git a/res/screen-density-xhigh/01_list_reorder_bg_below.png b/res/screen-density-xhigh/01_list_reorder_bg_below.png
new file mode 100755 (executable)
index 0000000..7c59977
Binary files /dev/null and b/res/screen-density-xhigh/01_list_reorder_bg_below.png differ
diff --git a/res/screen-density-xhigh/05_email_icon_attach_30x30.png b/res/screen-density-xhigh/05_email_icon_attach_30x30.png
new file mode 100755 (executable)
index 0000000..22b5366
Binary files /dev/null and b/res/screen-density-xhigh/05_email_icon_attach_30x30.png differ
diff --git a/res/screen-density-xhigh/05_email_icon_attach_40x40.png b/res/screen-density-xhigh/05_email_icon_attach_40x40.png
new file mode 100755 (executable)
index 0000000..0ef777c
Binary files /dev/null and b/res/screen-density-xhigh/05_email_icon_attach_40x40.png differ
diff --git a/res/screen-density-xhigh/27_textinput_predictive_btn_arrow_down.png b/res/screen-density-xhigh/27_textinput_predictive_btn_arrow_down.png
new file mode 100755 (executable)
index 0000000..41932ca
Binary files /dev/null and b/res/screen-density-xhigh/27_textinput_predictive_btn_arrow_down.png differ
diff --git a/res/screen-density-xhigh/27_textinput_predictive_btn_arrow_up.png b/res/screen-density-xhigh/27_textinput_predictive_btn_arrow_up.png
new file mode 100755 (executable)
index 0000000..2fdda91
Binary files /dev/null and b/res/screen-density-xhigh/27_textinput_predictive_btn_arrow_up.png differ
diff --git a/res/screen-density-xhigh/A01_2_Icon_others.png b/res/screen-density-xhigh/A01_2_Icon_others.png
new file mode 100755 (executable)
index 0000000..7b5e638
Binary files /dev/null and b/res/screen-density-xhigh/A01_2_Icon_others.png differ
diff --git a/res/screen-density-xhigh/B15_double_tap_02.png b/res/screen-density-xhigh/B15_double_tap_02.png
new file mode 100755 (executable)
index 0000000..289e908
Binary files /dev/null and b/res/screen-density-xhigh/B15_double_tap_02.png differ
diff --git a/res/screen-density-xhigh/Black.png b/res/screen-density-xhigh/Black.png
new file mode 100755 (executable)
index 0000000..ebeaa02
Binary files /dev/null and b/res/screen-density-xhigh/Black.png differ
diff --git a/res/screen-density-xhigh/Blue.png b/res/screen-density-xhigh/Blue.png
new file mode 100755 (executable)
index 0000000..52bcc44
Binary files /dev/null and b/res/screen-density-xhigh/Blue.png differ
diff --git a/res/screen-density-xhigh/Brown.png b/res/screen-density-xhigh/Brown.png
new file mode 100755 (executable)
index 0000000..3e0a69b
Binary files /dev/null and b/res/screen-density-xhigh/Brown.png differ
diff --git a/res/screen-density-xhigh/Green.png b/res/screen-density-xhigh/Green.png
new file mode 100755 (executable)
index 0000000..c8e33f5
Binary files /dev/null and b/res/screen-density-xhigh/Green.png differ
diff --git a/res/screen-density-xhigh/M02_arrow_expand.png b/res/screen-density-xhigh/M02_arrow_expand.png
new file mode 100755 (executable)
index 0000000..399ab64
Binary files /dev/null and b/res/screen-density-xhigh/M02_arrow_expand.png differ
diff --git a/res/screen-density-xhigh/M02_arrow_expand_dim.png b/res/screen-density-xhigh/M02_arrow_expand_dim.png
new file mode 100755 (executable)
index 0000000..eda2fef
Binary files /dev/null and b/res/screen-density-xhigh/M02_arrow_expand_dim.png differ
diff --git a/res/screen-density-xhigh/M02_arrow_expand_press.png b/res/screen-density-xhigh/M02_arrow_expand_press.png
new file mode 100755 (executable)
index 0000000..5e435f0
Binary files /dev/null and b/res/screen-density-xhigh/M02_arrow_expand_press.png differ
diff --git a/res/screen-density-xhigh/M02_btn_Unread email.png b/res/screen-density-xhigh/M02_btn_Unread email.png
new file mode 100755 (executable)
index 0000000..82835a2
Binary files /dev/null and b/res/screen-density-xhigh/M02_btn_Unread email.png differ
diff --git a/res/screen-density-xhigh/M02_btn_Unread email_press.png b/res/screen-density-xhigh/M02_btn_Unread email_press.png
new file mode 100755 (executable)
index 0000000..82835a2
Binary files /dev/null and b/res/screen-density-xhigh/M02_btn_Unread email_press.png differ
diff --git a/res/screen-density-xhigh/M02_btn_attachment_delete.png b/res/screen-density-xhigh/M02_btn_attachment_delete.png
new file mode 100755 (executable)
index 0000000..65ce52a
Binary files /dev/null and b/res/screen-density-xhigh/M02_btn_attachment_delete.png differ
diff --git a/res/screen-density-xhigh/M02_btn_attachment_delete_press.png b/res/screen-density-xhigh/M02_btn_attachment_delete_press.png
new file mode 100755 (executable)
index 0000000..74efa9c
Binary files /dev/null and b/res/screen-density-xhigh/M02_btn_attachment_delete_press.png differ
diff --git a/res/screen-density-xhigh/M02_btn_circle_bg.png b/res/screen-density-xhigh/M02_btn_circle_bg.png
new file mode 100755 (executable)
index 0000000..74cf5ca
Binary files /dev/null and b/res/screen-density-xhigh/M02_btn_circle_bg.png differ
diff --git a/res/screen-density-xhigh/M02_btn_circle_bg_01.png b/res/screen-density-xhigh/M02_btn_circle_bg_01.png
new file mode 100755 (executable)
index 0000000..23b80f0
Binary files /dev/null and b/res/screen-density-xhigh/M02_btn_circle_bg_01.png differ
diff --git a/res/screen-density-xhigh/M02_btn_circle_bg_press.png b/res/screen-density-xhigh/M02_btn_circle_bg_press.png
new file mode 100755 (executable)
index 0000000..9408a25
Binary files /dev/null and b/res/screen-density-xhigh/M02_btn_circle_bg_press.png differ
diff --git a/res/screen-density-xhigh/M02_btn_play.png b/res/screen-density-xhigh/M02_btn_play.png
new file mode 100755 (executable)
index 0000000..79c2e5f
Binary files /dev/null and b/res/screen-density-xhigh/M02_btn_play.png differ
diff --git a/res/screen-density-xhigh/M02_button_05_dim.png b/res/screen-density-xhigh/M02_button_05_dim.png
new file mode 100755 (executable)
index 0000000..f375553
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_05_dim.png differ
diff --git a/res/screen-density-xhigh/M02_button_05_normal.png b/res/screen-density-xhigh/M02_button_05_normal.png
new file mode 100755 (executable)
index 0000000..f375553
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_05_normal.png differ
diff --git a/res/screen-density-xhigh/M02_button_05_press.png b/res/screen-density-xhigh/M02_button_05_press.png
new file mode 100755 (executable)
index 0000000..236f1be
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_05_press.png differ
diff --git a/res/screen-density-xhigh/M02_button_06_dim.png b/res/screen-density-xhigh/M02_button_06_dim.png
new file mode 100755 (executable)
index 0000000..93626cd
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_06_dim.png differ
diff --git a/res/screen-density-xhigh/M02_button_06_normal.png b/res/screen-density-xhigh/M02_button_06_normal.png
new file mode 100755 (executable)
index 0000000..93626cd
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_06_normal.png differ
diff --git a/res/screen-density-xhigh/M02_button_06_press.png b/res/screen-density-xhigh/M02_button_06_press.png
new file mode 100755 (executable)
index 0000000..d2446e7
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_06_press.png differ
diff --git a/res/screen-density-xhigh/M02_button_delete.png b/res/screen-density-xhigh/M02_button_delete.png
new file mode 100755 (executable)
index 0000000..7e3d02a
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_delete.png differ
diff --git a/res/screen-density-xhigh/M02_button_download.png b/res/screen-density-xhigh/M02_button_download.png
new file mode 100755 (executable)
index 0000000..8a6899d
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_download.png differ
diff --git a/res/screen-density-xhigh/M02_button_download_press.png b/res/screen-density-xhigh/M02_button_download_press.png
new file mode 100755 (executable)
index 0000000..e607aca
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_download_press.png differ
diff --git a/res/screen-density-xhigh/M02_button_expand.png b/res/screen-density-xhigh/M02_button_expand.png
new file mode 100755 (executable)
index 0000000..32ae2b5
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_expand.png differ
diff --git a/res/screen-density-xhigh/M02_button_expand_closed.png b/res/screen-density-xhigh/M02_button_expand_closed.png
new file mode 100755 (executable)
index 0000000..bbb5354
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_expand_closed.png differ
diff --git a/res/screen-density-xhigh/M02_button_expand_closed_press.png b/res/screen-density-xhigh/M02_button_expand_closed_press.png
new file mode 100755 (executable)
index 0000000..0386401
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_expand_closed_press.png differ
diff --git a/res/screen-density-xhigh/M02_button_expand_opened.png b/res/screen-density-xhigh/M02_button_expand_opened.png
new file mode 100755 (executable)
index 0000000..ca1208d
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_expand_opened.png differ
diff --git a/res/screen-density-xhigh/M02_button_expand_opened_02.png b/res/screen-density-xhigh/M02_button_expand_opened_02.png
new file mode 100755 (executable)
index 0000000..600156c
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_expand_opened_02.png differ
diff --git a/res/screen-density-xhigh/M02_button_expand_opened_press.png b/res/screen-density-xhigh/M02_button_expand_opened_press.png
new file mode 100755 (executable)
index 0000000..02e9ea5
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_expand_opened_press.png differ
diff --git a/res/screen-density-xhigh/M02_button_expand_opened_press_02.png b/res/screen-density-xhigh/M02_button_expand_opened_press_02.png
new file mode 100755 (executable)
index 0000000..56f15ea
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_expand_opened_press_02.png differ
diff --git a/res/screen-density-xhigh/M02_button_expand_press.png b/res/screen-density-xhigh/M02_button_expand_press.png
new file mode 100755 (executable)
index 0000000..6df4ece
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_expand_press.png differ
diff --git a/res/screen-density-xhigh/M02_button_sweep.png b/res/screen-density-xhigh/M02_button_sweep.png
new file mode 100755 (executable)
index 0000000..6f39fb5
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_sweep.png differ
diff --git a/res/screen-density-xhigh/M02_button_sweep_delete (copy).png b/res/screen-density-xhigh/M02_button_sweep_delete (copy).png
new file mode 100755 (executable)
index 0000000..87d7185
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_sweep_delete (copy).png differ
diff --git a/res/screen-density-xhigh/M02_button_sweep_delete.png b/res/screen-density-xhigh/M02_button_sweep_delete.png
new file mode 100755 (executable)
index 0000000..ed20cd9
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_sweep_delete.png differ
diff --git a/res/screen-density-xhigh/M02_button_sweep_delete_copy.png b/res/screen-density-xhigh/M02_button_sweep_delete_copy.png
new file mode 100755 (executable)
index 0000000..87d7185
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_sweep_delete_copy.png differ
diff --git a/res/screen-density-xhigh/M02_button_sweep_dim.png b/res/screen-density-xhigh/M02_button_sweep_dim.png
new file mode 100755 (executable)
index 0000000..c53e775
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_sweep_dim.png differ
diff --git a/res/screen-density-xhigh/M02_button_sweep_press.png b/res/screen-density-xhigh/M02_button_sweep_press.png
new file mode 100755 (executable)
index 0000000..451bf38
Binary files /dev/null and b/res/screen-density-xhigh/M02_button_sweep_press.png differ
diff --git a/res/screen-density-xhigh/M02_contact_style.png b/res/screen-density-xhigh/M02_contact_style.png
new file mode 100755 (executable)
index 0000000..b5d6ac8
Binary files /dev/null and b/res/screen-density-xhigh/M02_contact_style.png differ
diff --git a/res/screen-density-xhigh/M02_contact_style_press.png b/res/screen-density-xhigh/M02_contact_style_press.png
new file mode 100755 (executable)
index 0000000..01c4172
Binary files /dev/null and b/res/screen-density-xhigh/M02_contact_style_press.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_add_calendar.png b/res/screen-density-xhigh/M02_controlbar_icon_add_calendar.png
new file mode 100755 (executable)
index 0000000..632c998
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_add_calendar.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_add_folder.png b/res/screen-density-xhigh/M02_controlbar_icon_add_folder.png
new file mode 100755 (executable)
index 0000000..2eb5255
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_add_folder.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_block.png b/res/screen-density-xhigh/M02_controlbar_icon_block.png
new file mode 100755 (executable)
index 0000000..c86f178
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_block.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_cancel.png b/res/screen-density-xhigh/M02_controlbar_icon_cancel.png
new file mode 100755 (executable)
index 0000000..25ade98
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_cancel.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_compose.png b/res/screen-density-xhigh/M02_controlbar_icon_compose.png
new file mode 100755 (executable)
index 0000000..20b71f7
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_compose.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_delete.png b/res/screen-density-xhigh/M02_controlbar_icon_delete.png
new file mode 100755 (executable)
index 0000000..5f7aea8
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_delete.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_delete_all.png b/res/screen-density-xhigh/M02_controlbar_icon_delete_all.png
new file mode 100755 (executable)
index 0000000..5cb7824
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_delete_all.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_edit.png b/res/screen-density-xhigh/M02_controlbar_icon_edit.png
new file mode 100755 (executable)
index 0000000..ed90f86
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_edit.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_forward.png b/res/screen-density-xhigh/M02_controlbar_icon_forward.png
new file mode 100755 (executable)
index 0000000..a1fca43
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_forward.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_mark_as_unread.png b/res/screen-density-xhigh/M02_controlbar_icon_mark_as_unread.png
new file mode 100755 (executable)
index 0000000..fdb2eae
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_mark_as_unread.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_more.png b/res/screen-density-xhigh/M02_controlbar_icon_more.png
new file mode 100755 (executable)
index 0000000..651c8e1
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_more.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_move.png b/res/screen-density-xhigh/M02_controlbar_icon_move.png
new file mode 100755 (executable)
index 0000000..78824ca
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_move.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_reply.png b/res/screen-density-xhigh/M02_controlbar_icon_reply.png
new file mode 100755 (executable)
index 0000000..4bdadbd
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_reply.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_resend.png b/res/screen-density-xhigh/M02_controlbar_icon_resend.png
new file mode 100755 (executable)
index 0000000..7855940
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_resend.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_sort_by.png b/res/screen-density-xhigh/M02_controlbar_icon_sort_by.png
new file mode 100755 (executable)
index 0000000..0c17352
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_sort_by.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_update.png b/res/screen-density-xhigh/M02_controlbar_icon_update.png
new file mode 100755 (executable)
index 0000000..524b7ca
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_update.png differ
diff --git a/res/screen-density-xhigh/M02_controlbar_icon_view_mode.png b/res/screen-density-xhigh/M02_controlbar_icon_view_mode.png
new file mode 100755 (executable)
index 0000000..1796d86
Binary files /dev/null and b/res/screen-density-xhigh/M02_controlbar_icon_view_mode.png differ
diff --git a/res/screen-density-xhigh/M02_email_Flag_Active.png b/res/screen-density-xhigh/M02_email_Flag_Active.png
new file mode 100755 (executable)
index 0000000..3d93fd1
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_Flag_Active.png differ
diff --git a/res/screen-density-xhigh/M02_email_Flag_Active_press.png b/res/screen-density-xhigh/M02_email_Flag_Active_press.png
new file mode 100755 (executable)
index 0000000..7590172
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_Flag_Active_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_Flag_Clear.png b/res/screen-density-xhigh/M02_email_Flag_Clear.png
new file mode 100755 (executable)
index 0000000..8d08871
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_Flag_Clear.png differ
diff --git a/res/screen-density-xhigh/M02_email_Flag_Clear_press.png b/res/screen-density-xhigh/M02_email_Flag_Clear_press.png
new file mode 100755 (executable)
index 0000000..18a62d2
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_Flag_Clear_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_Flag_Complete.png b/res/screen-density-xhigh/M02_email_Flag_Complete.png
new file mode 100755 (executable)
index 0000000..0633c5f
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_Flag_Complete.png differ
diff --git a/res/screen-density-xhigh/M02_email_btn_icon_contact.png b/res/screen-density-xhigh/M02_email_btn_icon_contact.png
new file mode 100755 (executable)
index 0000000..d45348c
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_btn_icon_contact.png differ
diff --git a/res/screen-density-xhigh/M02_email_btn_icon_contact_press.png b/res/screen-density-xhigh/M02_email_btn_icon_contact_press.png
new file mode 100755 (executable)
index 0000000..d45348c
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_btn_icon_contact_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_btn_icon_down.png b/res/screen-density-xhigh/M02_email_btn_icon_down.png
new file mode 100755 (executable)
index 0000000..942c16c
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_btn_icon_down.png differ
diff --git a/res/screen-density-xhigh/M02_email_btn_icon_down_press.png b/res/screen-density-xhigh/M02_email_btn_icon_down_press.png
new file mode 100755 (executable)
index 0000000..1ea6794
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_btn_icon_down_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_btn_list_nomal.png b/res/screen-density-xhigh/M02_email_btn_list_nomal.png
new file mode 100755 (executable)
index 0000000..4dffc9b
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_btn_list_nomal.png differ
diff --git a/res/screen-density-xhigh/M02_email_btn_list_press.png b/res/screen-density-xhigh/M02_email_btn_list_press.png
new file mode 100755 (executable)
index 0000000..0ff9d21
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_btn_list_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_Encryption.png b/res/screen-density-xhigh/M02_email_icon_Encryption.png
new file mode 100755 (executable)
index 0000000..82b19b5
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_Encryption.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_Encryption_press.png b/res/screen-density-xhigh/M02_email_icon_Encryption_press.png
new file mode 100755 (executable)
index 0000000..f83cbb6
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_Encryption_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_attach.png b/res/screen-density-xhigh/M02_email_icon_attach.png
new file mode 100755 (executable)
index 0000000..7621ce7
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_attach.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_attach_press.png b/res/screen-density-xhigh/M02_email_icon_attach_press.png
new file mode 100755 (executable)
index 0000000..49d7a83
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_attach_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_favorite_off.png b/res/screen-density-xhigh/M02_email_icon_favorite_off.png
new file mode 100755 (executable)
index 0000000..7986bbe
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_favorite_off.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_favorite_on.png b/res/screen-density-xhigh/M02_email_icon_favorite_on.png
new file mode 100755 (executable)
index 0000000..48f4573
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_favorite_on.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_forward.png b/res/screen-density-xhigh/M02_email_icon_forward.png
new file mode 100755 (executable)
index 0000000..245169f
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_forward.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_forward_press.png b/res/screen-density-xhigh/M02_email_icon_forward_press.png
new file mode 100755 (executable)
index 0000000..4ea3c85
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_forward_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_index_close.png b/res/screen-density-xhigh/M02_email_icon_index_close.png
new file mode 100755 (executable)
index 0000000..d5d1f49
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_index_close.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_lock.png b/res/screen-density-xhigh/M02_email_icon_lock.png
new file mode 100755 (executable)
index 0000000..215e0f7
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_lock.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_lock_press.png b/res/screen-density-xhigh/M02_email_icon_lock_press.png
new file mode 100755 (executable)
index 0000000..7829a53
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_lock_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_advanced.png b/res/screen-density-xhigh/M02_email_icon_popup_advanced.png
new file mode 100755 (executable)
index 0000000..85362cc
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_advanced.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_advanced_press.png b/res/screen-density-xhigh/M02_email_icon_popup_advanced_press.png
new file mode 100755 (executable)
index 0000000..1f345f6
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_advanced_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_all.png b/res/screen-density-xhigh/M02_email_icon_popup_all.png
new file mode 100755 (executable)
index 0000000..929cd98
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_all.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_all_press.png b/res/screen-density-xhigh/M02_email_icon_popup_all_press.png
new file mode 100755 (executable)
index 0000000..0de4137
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_all_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_date.png b/res/screen-density-xhigh/M02_email_icon_popup_date.png
new file mode 100755 (executable)
index 0000000..4e477ef
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_date.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_date_press.png b/res/screen-density-xhigh/M02_email_icon_popup_date_press.png
new file mode 100755 (executable)
index 0000000..7c883bf
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_date_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_sender.png b/res/screen-density-xhigh/M02_email_icon_popup_sender.png
new file mode 100755 (executable)
index 0000000..34df142
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_sender.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_sender_press.png b/res/screen-density-xhigh/M02_email_icon_popup_sender_press.png
new file mode 100755 (executable)
index 0000000..c921611
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_sender_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_title.png b/res/screen-density-xhigh/M02_email_icon_popup_title.png
new file mode 100755 (executable)
index 0000000..1415601
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_title.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_popup_title_press.png b/res/screen-density-xhigh/M02_email_icon_popup_title_press.png
new file mode 100755 (executable)
index 0000000..c307de8
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_popup_title_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_priority.png b/res/screen-density-xhigh/M02_email_icon_priority.png
new file mode 100755 (executable)
index 0000000..ab6a39c
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_priority.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_priority_press.png b/res/screen-density-xhigh/M02_email_icon_priority_press.png
new file mode 100755 (executable)
index 0000000..79f46e4
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_priority_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_reply.png b/res/screen-density-xhigh/M02_email_icon_reply.png
new file mode 100755 (executable)
index 0000000..3fead12
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_reply.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_reply_press.png b/res/screen-density-xhigh/M02_email_icon_reply_press.png
new file mode 100755 (executable)
index 0000000..77cfe29
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_reply_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_sign.png b/res/screen-density-xhigh/M02_email_icon_sign.png
new file mode 100755 (executable)
index 0000000..3fb01d5
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_sign.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_sign_press.png b/res/screen-density-xhigh/M02_email_icon_sign_press.png
new file mode 100755 (executable)
index 0000000..1b16c74
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_sign_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_title_down.png b/res/screen-density-xhigh/M02_email_icon_title_down.png
new file mode 100755 (executable)
index 0000000..ce06f6d
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_title_down.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_title_folders.png b/res/screen-density-xhigh/M02_email_icon_title_folders.png
new file mode 100755 (executable)
index 0000000..b20e7dc
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_title_folders.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_title_refresh.png b/res/screen-density-xhigh/M02_email_icon_title_refresh.png
new file mode 100755 (executable)
index 0000000..e91d2e4
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_title_refresh.png differ
diff --git a/res/screen-density-xhigh/M02_email_icon_title_up.png b/res/screen-density-xhigh/M02_email_icon_title_up.png
new file mode 100755 (executable)
index 0000000..d29e9b2
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_icon_title_up.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_AOL.png b/res/screen-density-xhigh/M02_email_list_icon_AOL.png
new file mode 100755 (executable)
index 0000000..e8d472c
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_AOL.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_YahooMail.png b/res/screen-density-xhigh/M02_email_list_icon_YahooMail.png
new file mode 100755 (executable)
index 0000000..341474a
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_YahooMail.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_addaccount.png b/res/screen-density-xhigh/M02_email_list_icon_addaccount.png
new file mode 100755 (executable)
index 0000000..32aa16d
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_addaccount.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_allaccount.png b/res/screen-density-xhigh/M02_email_list_icon_allaccount.png
new file mode 100755 (executable)
index 0000000..6105cf2
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_allaccount.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_exchange.png b/res/screen-density-xhigh/M02_email_list_icon_exchange.png
new file mode 100755 (executable)
index 0000000..78d03bd
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_exchange.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_gmail.png b/res/screen-density-xhigh/M02_email_list_icon_gmail.png
new file mode 100755 (executable)
index 0000000..151e3f5
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_gmail.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_hotmail.png b/res/screen-density-xhigh/M02_email_list_icon_hotmail.png
new file mode 100755 (executable)
index 0000000..644a1c3
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_hotmail.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_naver.png b/res/screen-density-xhigh/M02_email_list_icon_naver.png
new file mode 100755 (executable)
index 0000000..3c3c38f
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_naver.png differ
diff --git a/res/screen-density-xhigh/M02_email_list_icon_samsung.png b/res/screen-density-xhigh/M02_email_list_icon_samsung.png
new file mode 100755 (executable)
index 0000000..15fd926
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_list_icon_samsung.png differ
diff --git a/res/screen-density-xhigh/M02_email_minus.png b/res/screen-density-xhigh/M02_email_minus.png
new file mode 100755 (executable)
index 0000000..5026a7b
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_minus.png differ
diff --git a/res/screen-density-xhigh/M02_email_minus_press.png b/res/screen-density-xhigh/M02_email_minus_press.png
new file mode 100755 (executable)
index 0000000..01f8d32
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_minus_press.png differ
diff --git a/res/screen-density-xhigh/M02_email_popup_bubble_tail_top.png b/res/screen-density-xhigh/M02_email_popup_bubble_tail_top.png
new file mode 100755 (executable)
index 0000000..ed771ad
Binary files /dev/null and b/res/screen-density-xhigh/M02_email_popup_bubble_tail_top.png differ
diff --git a/res/screen-density-xhigh/M02_function_attach.png b/res/screen-density-xhigh/M02_function_attach.png
new file mode 100755 (executable)
index 0000000..8fa7872
Binary files /dev/null and b/res/screen-density-xhigh/M02_function_attach.png differ
diff --git a/res/screen-density-xhigh/M02_function_ccbcc.png b/res/screen-density-xhigh/M02_function_ccbcc.png
new file mode 100755 (executable)
index 0000000..437934e
Binary files /dev/null and b/res/screen-density-xhigh/M02_function_ccbcc.png differ
diff --git a/res/screen-density-xhigh/M02_function_security.png b/res/screen-density-xhigh/M02_function_security.png
new file mode 100755 (executable)
index 0000000..f1f5d9e
Binary files /dev/null and b/res/screen-density-xhigh/M02_function_security.png differ
diff --git a/res/screen-density-xhigh/M02_help_bg.png b/res/screen-density-xhigh/M02_help_bg.png
new file mode 100755 (executable)
index 0000000..5144879
Binary files /dev/null and b/res/screen-density-xhigh/M02_help_bg.png differ
diff --git a/res/screen-density-xhigh/M02_icon_favorite_off_01.png b/res/screen-density-xhigh/M02_icon_favorite_off_01.png
new file mode 100755 (executable)
index 0000000..ea37003
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_favorite_off_01.png differ
diff --git a/res/screen-density-xhigh/M02_icon_favorite_off_02.png b/res/screen-density-xhigh/M02_icon_favorite_off_02.png
new file mode 100755 (executable)
index 0000000..3a9fcb4
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_favorite_off_02.png differ
diff --git a/res/screen-density-xhigh/M02_icon_favorite_on.png b/res/screen-density-xhigh/M02_icon_favorite_on.png
new file mode 100755 (executable)
index 0000000..1d100a9
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_favorite_on.png differ
diff --git a/res/screen-density-xhigh/M02_icon_favorite_on_01.png b/res/screen-density-xhigh/M02_icon_favorite_on_01.png
new file mode 100755 (executable)
index 0000000..f36d000
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_favorite_on_01.png differ
diff --git a/res/screen-density-xhigh/M02_icon_favorite_on_02.png b/res/screen-density-xhigh/M02_icon_favorite_on_02.png
new file mode 100755 (executable)
index 0000000..f09c852
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_favorite_on_02.png differ
diff --git a/res/screen-density-xhigh/M02_icon_next.png b/res/screen-density-xhigh/M02_icon_next.png
new file mode 100755 (executable)
index 0000000..90bd89a
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_next.png differ
diff --git a/res/screen-density-xhigh/M02_icon_next_press.png b/res/screen-density-xhigh/M02_icon_next_press.png
new file mode 100755 (executable)
index 0000000..c455e5b
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_next_press.png differ
diff --git a/res/screen-density-xhigh/M02_icon_previous.png b/res/screen-density-xhigh/M02_icon_previous.png
new file mode 100755 (executable)
index 0000000..4890a26
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_previous.png differ
diff --git a/res/screen-density-xhigh/M02_icon_previous_press.png b/res/screen-density-xhigh/M02_icon_previous_press.png
new file mode 100755 (executable)
index 0000000..cb39eb6
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_previous_press.png differ
diff --git a/res/screen-density-xhigh/M02_icon_upper folder.png b/res/screen-density-xhigh/M02_icon_upper folder.png
new file mode 100755 (executable)
index 0000000..050c295
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_upper folder.png differ
diff --git a/res/screen-density-xhigh/M02_icon_upper folder_press.png b/res/screen-density-xhigh/M02_icon_upper folder_press.png
new file mode 100755 (executable)
index 0000000..050c295
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_upper folder_press.png differ
diff --git a/res/screen-density-xhigh/M02_icon_upper_folder.png b/res/screen-density-xhigh/M02_icon_upper_folder.png
new file mode 100755 (executable)
index 0000000..050c295
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_upper_folder.png differ
diff --git a/res/screen-density-xhigh/M02_icon_upper_folder_press.png b/res/screen-density-xhigh/M02_icon_upper_folder_press.png
new file mode 100755 (executable)
index 0000000..050c295
Binary files /dev/null and b/res/screen-density-xhigh/M02_icon_upper_folder_press.png differ
diff --git a/res/screen-density-xhigh/M02_inbox_top_line.png b/res/screen-density-xhigh/M02_inbox_top_line.png
new file mode 100755 (executable)
index 0000000..7cec4fb
Binary files /dev/null and b/res/screen-density-xhigh/M02_inbox_top_line.png differ
diff --git a/res/screen-density-xhigh/M02_logo_bg.png b/res/screen-density-xhigh/M02_logo_bg.png
new file mode 100755 (executable)
index 0000000..8a95432
Binary files /dev/null and b/res/screen-density-xhigh/M02_logo_bg.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_Aleadsymbol.png b/res/screen-density-xhigh/M02_rich_text_bar_Aleadsymbol.png
new file mode 100755 (executable)
index 0000000..77fb7bb
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_Aleadsymbol.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_Aleadsymbol_press.png b/res/screen-density-xhigh/M02_rich_text_bar_Aleadsymbol_press.png
new file mode 100755 (executable)
index 0000000..c6defea
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_Aleadsymbol_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_Indent.png b/res/screen-density-xhigh/M02_rich_text_bar_Indent.png
new file mode 100755 (executable)
index 0000000..20759aa
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_Indent.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_Indent_press.png b/res/screen-density-xhigh/M02_rich_text_bar_Indent_press.png
new file mode 100755 (executable)
index 0000000..e4447df
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_Indent_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_Outdent.png b/res/screen-density-xhigh/M02_rich_text_bar_Outdent.png
new file mode 100755 (executable)
index 0000000..0c91c2d
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_Outdent.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_Outdent_press.png b/res/screen-density-xhigh/M02_rich_text_bar_Outdent_press.png
new file mode 100755 (executable)
index 0000000..882526f
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_Outdent_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_align_all_center.png b/res/screen-density-xhigh/M02_rich_text_bar_align_all_center.png
new file mode 100755 (executable)
index 0000000..67665d1
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_align_all_center.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_align_all_center_press.png b/res/screen-density-xhigh/M02_rich_text_bar_align_all_center_press.png
new file mode 100755 (executable)
index 0000000..1aa7117
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_align_all_center_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_align_center.png b/res/screen-density-xhigh/M02_rich_text_bar_align_center.png
new file mode 100755 (executable)
index 0000000..180a883
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_align_center.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_align_center_press.png b/res/screen-density-xhigh/M02_rich_text_bar_align_center_press.png
new file mode 100755 (executable)
index 0000000..94e7313
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_align_center_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_align_left.png b/res/screen-density-xhigh/M02_rich_text_bar_align_left.png
new file mode 100755 (executable)
index 0000000..b64b92a
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_align_left.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_align_left_press.png b/res/screen-density-xhigh/M02_rich_text_bar_align_left_press.png
new file mode 100755 (executable)
index 0000000..49ca62a
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_align_left_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_align_right.png b/res/screen-density-xhigh/M02_rich_text_bar_align_right.png
new file mode 100755 (executable)
index 0000000..2431a2f
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_align_right.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_align_right_press.png b/res/screen-density-xhigh/M02_rich_text_bar_align_right_press.png
new file mode 100755 (executable)
index 0000000..47c4bb3
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_align_right_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_bold.png b/res/screen-density-xhigh/M02_rich_text_bar_bold.png
new file mode 100755 (executable)
index 0000000..3729522
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_bold.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_bold_press.png b/res/screen-density-xhigh/M02_rich_text_bar_bold_press.png
new file mode 100755 (executable)
index 0000000..cf84090
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_bold_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_btn_01.png b/res/screen-density-xhigh/M02_rich_text_bar_btn_01.png
new file mode 100755 (executable)
index 0000000..a9442ac
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_btn_01.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_btn_01_dim.png b/res/screen-density-xhigh/M02_rich_text_bar_btn_01_dim.png
new file mode 100755 (executable)
index 0000000..2c3316d
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_btn_01_dim.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_btn_01_press.png b/res/screen-density-xhigh/M02_rich_text_bar_btn_01_press.png
new file mode 100755 (executable)
index 0000000..95e8421
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_btn_01_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_btn_02.png b/res/screen-density-xhigh/M02_rich_text_bar_btn_02.png
new file mode 100755 (executable)
index 0000000..c5966de
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_btn_02.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_btn_02_dim.png b/res/screen-density-xhigh/M02_rich_text_bar_btn_02_dim.png
new file mode 100755 (executable)
index 0000000..8b72988
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_btn_02_dim.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_btn_02_press.png b/res/screen-density-xhigh/M02_rich_text_bar_btn_02_press.png
new file mode 100755 (executable)
index 0000000..303c940
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_btn_02_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor.png b/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor.png
new file mode 100755 (executable)
index 0000000..c3d15dc
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor_text.png b/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor_text.png
new file mode 100755 (executable)
index 0000000..3a70b80
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor_text.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor_text_press.png b/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor_text_press.png
new file mode 100755 (executable)
index 0000000..6765982
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_fontbgcolor_text_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_fontcolor.png b/res/screen-density-xhigh/M02_rich_text_bar_fontcolor.png
new file mode 100755 (executable)
index 0000000..19192a7
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_fontcolor.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_fontcolor_press.png b/res/screen-density-xhigh/M02_rich_text_bar_fontcolor_press.png
new file mode 100755 (executable)
index 0000000..752355f
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_fontcolor_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_fontsize.png b/res/screen-density-xhigh/M02_rich_text_bar_fontsize.png
new file mode 100755 (executable)
index 0000000..6e3cb3a
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_fontsize.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_fontsize_press.png b/res/screen-density-xhigh/M02_rich_text_bar_fontsize_press.png
new file mode 100755 (executable)
index 0000000..77f0a71
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_fontsize_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_insert.png b/res/screen-density-xhigh/M02_rich_text_bar_insert.png
new file mode 100755 (executable)
index 0000000..4a543f0
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_insert.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_insert_press.png b/res/screen-density-xhigh/M02_rich_text_bar_insert_press.png
new file mode 100755 (executable)
index 0000000..3dbee48
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_insert_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_italic.png b/res/screen-density-xhigh/M02_rich_text_bar_italic.png
new file mode 100755 (executable)
index 0000000..775181d
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_italic.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_italic_press.png b/res/screen-density-xhigh/M02_rich_text_bar_italic_press.png
new file mode 100755 (executable)
index 0000000..a31a529
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_italic_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_numbering.png b/res/screen-density-xhigh/M02_rich_text_bar_numbering.png
new file mode 100755 (executable)
index 0000000..227ec84
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_numbering.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_numbering_press.png b/res/screen-density-xhigh/M02_rich_text_bar_numbering_press.png
new file mode 100755 (executable)
index 0000000..83cfa03
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_numbering_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_que_left.png b/res/screen-density-xhigh/M02_rich_text_bar_que_left.png
new file mode 100755 (executable)
index 0000000..03ff4d5
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_que_left.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_que_right.png b/res/screen-density-xhigh/M02_rich_text_bar_que_right.png
new file mode 100755 (executable)
index 0000000..0d0d9ea
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_que_right.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_redo.png b/res/screen-density-xhigh/M02_rich_text_bar_redo.png
new file mode 100755 (executable)
index 0000000..daf57fe
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_redo.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_redo_press.png b/res/screen-density-xhigh/M02_rich_text_bar_redo_press.png
new file mode 100755 (executable)
index 0000000..d9d0d5c
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_redo_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_underline.png b/res/screen-density-xhigh/M02_rich_text_bar_underline.png
new file mode 100755 (executable)
index 0000000..0cf5ef5
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_underline.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_underline_press.png b/res/screen-density-xhigh/M02_rich_text_bar_underline_press.png
new file mode 100755 (executable)
index 0000000..4e63ff7
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_underline_press.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_undo.png b/res/screen-density-xhigh/M02_rich_text_bar_undo.png
new file mode 100755 (executable)
index 0000000..bdeca9f
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_undo.png differ
diff --git a/res/screen-density-xhigh/M02_rich_text_bar_undo_press.png b/res/screen-density-xhigh/M02_rich_text_bar_undo_press.png
new file mode 100755 (executable)
index 0000000..63cdcee
Binary files /dev/null and b/res/screen-density-xhigh/M02_rich_text_bar_undo_press.png differ
diff --git a/res/screen-density-xhigh/M02_shadow_01.png b/res/screen-density-xhigh/M02_shadow_01.png
new file mode 100755 (executable)
index 0000000..8f75d8d
Binary files /dev/null and b/res/screen-density-xhigh/M02_shadow_01.png differ
diff --git a/res/screen-density-xhigh/M02_shadow_02.png b/res/screen-density-xhigh/M02_shadow_02.png
new file mode 100755 (executable)
index 0000000..7351259
Binary files /dev/null and b/res/screen-density-xhigh/M02_shadow_02.png differ
diff --git a/res/screen-density-xhigh/M02_title_button.png b/res/screen-density-xhigh/M02_title_button.png
new file mode 100755 (executable)
index 0000000..5adf893
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_button.png differ
diff --git a/res/screen-density-xhigh/M02_title_button_press.png b/res/screen-density-xhigh/M02_title_button_press.png
new file mode 100755 (executable)
index 0000000..c92145e
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_button_press.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_folder.png b/res/screen-density-xhigh/M02_title_icon_folder.png
new file mode 100755 (executable)
index 0000000..8aac0fb
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_folder.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_folder_press_web.png b/res/screen-density-xhigh/M02_title_icon_folder_press_web.png
new file mode 100755 (executable)
index 0000000..df2ff4f
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_folder_press_web.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_folder_web.png b/res/screen-density-xhigh/M02_title_icon_folder_web.png
new file mode 100755 (executable)
index 0000000..3f25b0f
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_folder_web.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_refresh.png b/res/screen-density-xhigh/M02_title_icon_refresh.png
new file mode 100755 (executable)
index 0000000..29d80fa
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_refresh.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_refresh_press_web.png b/res/screen-density-xhigh/M02_title_icon_refresh_press_web.png
new file mode 100755 (executable)
index 0000000..ceb19a6
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_refresh_press_web.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_refresh_web.png b/res/screen-density-xhigh/M02_title_icon_refresh_web.png
new file mode 100755 (executable)
index 0000000..0d1eb3a
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_refresh_web.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_search.png b/res/screen-density-xhigh/M02_title_icon_search.png
new file mode 100755 (executable)
index 0000000..6bebef3
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_search.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_search_web.png b/res/screen-density-xhigh/M02_title_icon_search_web.png
new file mode 100755 (executable)
index 0000000..631d28f
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_search_web.png differ
diff --git a/res/screen-density-xhigh/M02_title_icon_search_web_press.png b/res/screen-density-xhigh/M02_title_icon_search_web_press.png
new file mode 100755 (executable)
index 0000000..82fc383
Binary files /dev/null and b/res/screen-density-xhigh/M02_title_icon_search_web_press.png differ
diff --git a/res/screen-density-xhigh/M02_toolbar_Next.png b/res/screen-density-xhigh/M02_toolbar_Next.png
new file mode 100755 (executable)
index 0000000..3d0ef00
Binary files /dev/null and b/res/screen-density-xhigh/M02_toolbar_Next.png differ
diff --git a/res/screen-density-xhigh/M02_toolbar_Previous.png b/res/screen-density-xhigh/M02_toolbar_Previous.png
new file mode 100755 (executable)
index 0000000..6031430
Binary files /dev/null and b/res/screen-density-xhigh/M02_toolbar_Previous.png differ
diff --git a/res/screen-density-xhigh/Multiple.png b/res/screen-density-xhigh/Multiple.png
new file mode 100755 (executable)
index 0000000..445f296
Binary files /dev/null and b/res/screen-density-xhigh/Multiple.png differ
diff --git a/res/screen-density-xhigh/Pink.png b/res/screen-density-xhigh/Pink.png
new file mode 100755 (executable)
index 0000000..992d0f5
Binary files /dev/null and b/res/screen-density-xhigh/Pink.png differ
diff --git a/res/screen-density-xhigh/Purple.png b/res/screen-density-xhigh/Purple.png
new file mode 100755 (executable)
index 0000000..68d22dc
Binary files /dev/null and b/res/screen-density-xhigh/Purple.png differ
diff --git a/res/screen-density-xhigh/Red.png b/res/screen-density-xhigh/Red.png
new file mode 100755 (executable)
index 0000000..928903a
Binary files /dev/null and b/res/screen-density-xhigh/Red.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/00_Nocontents_text.png b/res/screen-density-xhigh/Tizen2_1/00_Nocontents_text.png
new file mode 100755 (executable)
index 0000000..3d68f0a
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/00_Nocontents_text.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/00_icon_more.png b/res/screen-density-xhigh/Tizen2_1/00_icon_more.png
new file mode 100755 (executable)
index 0000000..49a6d06
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/00_icon_more.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/00_icon_more_dim.png b/res/screen-density-xhigh/Tizen2_1/00_icon_more_dim.png
new file mode 100755 (executable)
index 0000000..adc28b2
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/00_icon_more_dim.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/00_icon_more_press.png b/res/screen-density-xhigh/Tizen2_1/00_icon_more_press.png
new file mode 100755 (executable)
index 0000000..3a13509
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/00_icon_more_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_dim_web.png b/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_dim_web.png
new file mode 100755 (executable)
index 0000000..d427c9b
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_dim_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_press_web.png b/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_press_web.png
new file mode 100755 (executable)
index 0000000..9fd2ec5
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_press_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_web.png b/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_web.png
new file mode 100755 (executable)
index 0000000..56e3fbb
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/00_icon_select_all_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/01_controlbar_icon_favorite.png b/res/screen-density-xhigh/Tizen2_1/01_controlbar_icon_favorite.png
new file mode 100755 (executable)
index 0000000..aa13cf9
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/01_controlbar_icon_favorite.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/05_email_icon_attach_40x40.png b/res/screen-density-xhigh/Tizen2_1/05_email_icon_attach_40x40.png
new file mode 100755 (executable)
index 0000000..0ef777c
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/05_email_icon_attach_40x40.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/A01_2_Icon_others.png b/res/screen-density-xhigh/Tizen2_1/A01_2_Icon_others.png
new file mode 100755 (executable)
index 0000000..7b5e638
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/A01_2_Icon_others.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_btn_circle_bg_01.png b/res/screen-density-xhigh/Tizen2_1/M02_btn_circle_bg_01.png
new file mode 100755 (executable)
index 0000000..23b80f0
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_btn_circle_bg_01.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_btn_circle_bg_press.png b/res/screen-density-xhigh/Tizen2_1/M02_btn_circle_bg_press.png
new file mode 100755 (executable)
index 0000000..9408a25
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_btn_circle_bg_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_button_expand_closed.png b/res/screen-density-xhigh/Tizen2_1/M02_button_expand_closed.png
new file mode 100755 (executable)
index 0000000..bbb5354
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_button_expand_closed.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_button_expand_closed_press.png b/res/screen-density-xhigh/Tizen2_1/M02_button_expand_closed_press.png
new file mode 100755 (executable)
index 0000000..0386401
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_button_expand_closed_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_button_expand_opened.png b/res/screen-density-xhigh/Tizen2_1/M02_button_expand_opened.png
new file mode 100755 (executable)
index 0000000..ca1208d
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_button_expand_opened.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_button_expand_opened_press.png b/res/screen-density-xhigh/Tizen2_1/M02_button_expand_opened_press.png
new file mode 100755 (executable)
index 0000000..02e9ea5
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_button_expand_opened_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image.png b/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image.png
new file mode 100755 (executable)
index 0000000..a4d0e43
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image_frame.png b/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image_frame.png
new file mode 100755 (executable)
index 0000000..139e46a
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image_frame.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image_frame_press.png b/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image_frame_press.png
new file mode 100755 (executable)
index 0000000..a07b1d0
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_contact_default_image_frame_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_email_btn_icon_contact.png b/res/screen-density-xhigh/Tizen2_1/M02_email_btn_icon_contact.png
new file mode 100755 (executable)
index 0000000..d45348c
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_email_btn_icon_contact.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_all.png b/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_all.png
new file mode 100755 (executable)
index 0000000..929cd98
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_all.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_all_press.png b/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_all_press.png
new file mode 100755 (executable)
index 0000000..0de4137
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_all_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_sender.png b/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_sender.png
new file mode 100755 (executable)
index 0000000..34df142
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_sender.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_title.png b/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_title.png
new file mode 100755 (executable)
index 0000000..1415601
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_email_icon_popup_title.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_function_attach.png b/res/screen-density-xhigh/Tizen2_1/M02_function_attach.png
new file mode 100755 (executable)
index 0000000..8fa7872
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_function_attach.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_SMS.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_SMS.png
new file mode 100755 (executable)
index 0000000..7a89871
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_SMS.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_attach.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_attach.png
new file mode 100755 (executable)
index 0000000..cb05a72
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_attach.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_attach_web.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_attach_web.png
new file mode 100755 (executable)
index 0000000..c227420
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_attach_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_button_download.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_button_download.png
new file mode 100755 (executable)
index 0000000..d044383
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_button_download.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_composer_attach.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_composer_attach.png
new file mode 100755 (executable)
index 0000000..0b4c799
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_composer_attach.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_event.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_event.png
new file mode 100755 (executable)
index 0000000..f59ac80
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_event.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_excel.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_excel.png
new file mode 100755 (executable)
index 0000000..92b1cdf
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_excel.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_forward.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_forward.png
new file mode 100755 (executable)
index 0000000..68ff2b1
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_forward.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_jump_left.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_jump_left.png
new file mode 100755 (executable)
index 0000000..5cb3e91
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_jump_left.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_jump_top.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_jump_top.png
new file mode 100755 (executable)
index 0000000..7082fe2
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_jump_top.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_pdf.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_pdf.png
new file mode 100755 (executable)
index 0000000..8ae49b4
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_pdf.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_priority.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_priority.png
new file mode 100755 (executable)
index 0000000..4c3ce16
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_priority.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_reply.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_reply.png
new file mode 100755 (executable)
index 0000000..719a8de
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_reply.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_search_advanced.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_search_advanced.png
new file mode 100755 (executable)
index 0000000..6877744
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_search_advanced.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_search_date.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_search_date.png
new file mode 100755 (executable)
index 0000000..3d83825
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_search_date.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_search_sender.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_search_sender.png
new file mode 100755 (executable)
index 0000000..410da35
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_search_sender.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_search_title.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_search_title.png
new file mode 100755 (executable)
index 0000000..7075418
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_search_title.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_text.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_text.png
new file mode 100755 (executable)
index 0000000..96bd33b
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_text.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_voicemail.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_voicemail.png
new file mode 100755 (executable)
index 0000000..4609286
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_voicemail.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_icon_word.png b/res/screen-density-xhigh/Tizen2_1/M02_icon_word.png
new file mode 100755 (executable)
index 0000000..9a32599
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_icon_word.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_inbox_button_divider.png b/res/screen-density-xhigh/Tizen2_1/M02_inbox_button_divider.png
new file mode 100755 (executable)
index 0000000..2b9924f
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_inbox_button_divider.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_inbox_scroll.png b/res/screen-density-xhigh/Tizen2_1/M02_inbox_scroll.png
new file mode 100755 (executable)
index 0000000..97752c8
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_inbox_scroll.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_bg.png b/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_bg.png
new file mode 100755 (executable)
index 0000000..482611c
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_bg.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_bg.psd b/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_bg.psd
new file mode 100755 (executable)
index 0000000..1346c91
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_bg.psd differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_line.png b/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_line.png
new file mode 100755 (executable)
index 0000000..107a099
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_inbox_top_line.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_list_icon_all_accounts.png b/res/screen-density-xhigh/Tizen2_1/M02_list_icon_all_accounts.png
new file mode 100755 (executable)
index 0000000..e89de51
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_list_icon_all_accounts.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_photo_mark_01.png b/res/screen-density-xhigh/Tizen2_1/M02_photo_mark_01.png
new file mode 100755 (executable)
index 0000000..bef25fa
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_photo_mark_01.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_photo_mark_02.png b/res/screen-density-xhigh/Tizen2_1/M02_photo_mark_02.png
new file mode 100755 (executable)
index 0000000..88ff97b
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_photo_mark_02.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_add_account.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_add_account.png
new file mode 100755 (executable)
index 0000000..53508a5
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_add_account.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_advanced.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_advanced.png
new file mode 100755 (executable)
index 0000000..5049b23
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_advanced.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_all.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_all.png
new file mode 100755 (executable)
index 0000000..20098ba
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_all.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_block.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_block.png
new file mode 100755 (executable)
index 0000000..e16341e
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_block.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_date.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_date.png
new file mode 100755 (executable)
index 0000000..91f308c
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_date.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_delete_all.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_delete_all.png
new file mode 100755 (executable)
index 0000000..5836388
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_delete_all.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_mark_as_unread.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_mark_as_unread.png
new file mode 100755 (executable)
index 0000000..e1d5cf1
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_mark_as_unread.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_move.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_move.png
new file mode 100755 (executable)
index 0000000..78824ca
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_move.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_sender.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_sender.png
new file mode 100755 (executable)
index 0000000..feedcdf
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_sender.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_sort_by.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_sort_by.png
new file mode 100755 (executable)
index 0000000..e346abe
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_sort_by.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_title.png b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_title.png
new file mode 100755 (executable)
index 0000000..5787171
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_popup_icon_title.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_title_icon_exchange.png b/res/screen-density-xhigh/Tizen2_1/M02_title_icon_exchange.png
new file mode 100755 (executable)
index 0000000..33d34d9
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_title_icon_exchange.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_title_icon_google.png b/res/screen-density-xhigh/Tizen2_1/M02_title_icon_google.png
new file mode 100755 (executable)
index 0000000..401fa2d
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_title_icon_google.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_title_icon_hotmail.png b/res/screen-density-xhigh/Tizen2_1/M02_title_icon_hotmail.png
new file mode 100755 (executable)
index 0000000..1ba476f
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_title_icon_hotmail.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/M02_title_icon_yahoomail.png b/res/screen-density-xhigh/Tizen2_1/M02_title_icon_yahoomail.png
new file mode 100755 (executable)
index 0000000..886c0b3
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/M02_title_icon_yahoomail.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/U01_icon_folder.png b/res/screen-density-xhigh/Tizen2_1/U01_icon_folder.png
new file mode 100755 (executable)
index 0000000..f425327
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/U01_icon_folder.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/I01_search_list_icon_favorite.png b/res/screen-density-xhigh/Tizen2_1/common/I01_search_list_icon_favorite.png
new file mode 100644 (file)
index 0000000..c6ded02
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/I01_search_list_icon_favorite.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/I01_search_list_icon_favorite_press.png b/res/screen-density-xhigh/Tizen2_1/common/I01_search_list_icon_favorite_press.png
new file mode 100644 (file)
index 0000000..5711ec2
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/I01_search_list_icon_favorite_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off.png b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off.png
new file mode 100755 (executable)
index 0000000..e7a45d8
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off_74x74.png b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off_74x74.png
new file mode 100755 (executable)
index 0000000..7ae6160
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off_74x74.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off_74x74_dim.png b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off_74x74_dim.png
new file mode 100755 (executable)
index 0000000..959b381
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_off_74x74_dim.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on.png b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on.png
new file mode 100755 (executable)
index 0000000..9f596da
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on_74x74.png b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on_74x74.png
new file mode 100755 (executable)
index 0000000..fcab252
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on_74x74.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on_74x74_dim.png b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on_74x74_dim.png
new file mode 100755 (executable)
index 0000000..d16dc35
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_icon_favorite_on_74x74_dim.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_list_bubble_bg.png b/res/screen-density-xhigh/Tizen2_1/common/M02_list_bubble_bg.png
new file mode 100755 (executable)
index 0000000..84e1386
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_list_bubble_bg.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_list_bubble_bg_press.png b/res/screen-density-xhigh/Tizen2_1/common/M02_list_bubble_bg_press.png
new file mode 100755 (executable)
index 0000000..ef845ca
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_list_bubble_bg_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder.png
new file mode 100755 (executable)
index 0000000..8aac0fb
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_dim_web.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_dim_web.png
new file mode 100755 (executable)
index 0000000..db02583
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_dim_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_press_web.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_press_web.png
new file mode 100755 (executable)
index 0000000..df2ff4f
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_press_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_web.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_web.png
new file mode 100755 (executable)
index 0000000..3f25b0f
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_folder_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh.png
new file mode 100755 (executable)
index 0000000..29d80fa
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_dim_web.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_dim_web.png
new file mode 100755 (executable)
index 0000000..80d871e
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_dim_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_press_web.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_press_web.png
new file mode 100755 (executable)
index 0000000..ceb19a6
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_press_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_web.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_web.png
new file mode 100755 (executable)
index 0000000..0d1eb3a
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_refresh_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search.png
new file mode 100755 (executable)
index 0000000..6bebef3
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search_web.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search_web.png
new file mode 100755 (executable)
index 0000000..631d28f
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search_web.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search_web_press.png b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search_web_press.png
new file mode 100755 (executable)
index 0000000..82fc383
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/common/M02_title_icon_search_web_press.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_drafts.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_drafts.png
new file mode 100755 (executable)
index 0000000..d2ed105
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_drafts.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_favourites.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_favourites.png
new file mode 100755 (executable)
index 0000000..01d007f
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_favourites.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder.png
new file mode 100755 (executable)
index 0000000..3ea835d
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder_minus.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder_minus.png
new file mode 100755 (executable)
index 0000000..eb7f857
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder_minus.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder_plus.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder_plus.png
new file mode 100755 (executable)
index 0000000..8d9b044
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_folder_plus.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_inbox.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_inbox.png
new file mode 100755 (executable)
index 0000000..211f399
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_inbox.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_outbox.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_outbox.png
new file mode 100755 (executable)
index 0000000..de6a9f3
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_outbox.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_priority_sender_inbox.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_priority_sender_inbox.png
new file mode 100755 (executable)
index 0000000..1f20222
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_priority_sender_inbox.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_sentbox.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_sentbox.png
new file mode 100755 (executable)
index 0000000..a979a2a
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_sentbox.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_spambox.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_spambox.png
new file mode 100755 (executable)
index 0000000..82962f0
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_spambox.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_trash.png b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_trash.png
new file mode 100755 (executable)
index 0000000..77d2702
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/folder/M02_folder_icon_trash.png differ
diff --git a/res/screen-density-xhigh/Tizen2_1/popup_icon/M02_popup_icon_setting.png b/res/screen-density-xhigh/Tizen2_1/popup_icon/M02_popup_icon_setting.png
new file mode 100755 (executable)
index 0000000..340f146
Binary files /dev/null and b/res/screen-density-xhigh/Tizen2_1/popup_icon/M02_popup_icon_setting.png differ
diff --git a/res/screen-density-xhigh/U01_icon_excel.png b/res/screen-density-xhigh/U01_icon_excel.png
new file mode 100755 (executable)
index 0000000..109b7de
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_excel.png differ
diff --git a/res/screen-density-xhigh/U01_icon_html.png b/res/screen-density-xhigh/U01_icon_html.png
new file mode 100755 (executable)
index 0000000..78646b4
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_html.png differ
diff --git a/res/screen-density-xhigh/U01_icon_music.png b/res/screen-density-xhigh/U01_icon_music.png
new file mode 100755 (executable)
index 0000000..43d7798
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_music.png differ
diff --git a/res/screen-density-xhigh/U01_icon_pdf.png b/res/screen-density-xhigh/U01_icon_pdf.png
new file mode 100755 (executable)
index 0000000..2480d81
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_pdf.png differ
diff --git a/res/screen-density-xhigh/U01_icon_ppt.png b/res/screen-density-xhigh/U01_icon_ppt.png
new file mode 100755 (executable)
index 0000000..42c1100
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_ppt.png differ
diff --git a/res/screen-density-xhigh/U01_icon_ring_tone.png b/res/screen-density-xhigh/U01_icon_ring_tone.png
new file mode 100755 (executable)
index 0000000..5e6d2c5
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_ring_tone.png differ
diff --git a/res/screen-density-xhigh/U01_icon_rss.png b/res/screen-density-xhigh/U01_icon_rss.png
new file mode 100755 (executable)
index 0000000..1b566e2
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_rss.png differ
diff --git a/res/screen-density-xhigh/U01_icon_swf.png b/res/screen-density-xhigh/U01_icon_swf.png
new file mode 100755 (executable)
index 0000000..ee50e85
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_swf.png differ
diff --git a/res/screen-density-xhigh/U01_icon_text.png b/res/screen-density-xhigh/U01_icon_text.png
new file mode 100755 (executable)
index 0000000..c937ef8
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_text.png differ
diff --git a/res/screen-density-xhigh/U01_icon_upper_folder.png b/res/screen-density-xhigh/U01_icon_upper_folder.png
new file mode 100755 (executable)
index 0000000..050c295
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_upper_folder.png differ
diff --git a/res/screen-density-xhigh/U01_icon_upper_folder_focus.png b/res/screen-density-xhigh/U01_icon_upper_folder_focus.png
new file mode 100755 (executable)
index 0000000..050c295
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_upper_folder_focus.png differ
diff --git a/res/screen-density-xhigh/U01_icon_video.png b/res/screen-density-xhigh/U01_icon_video.png
new file mode 100755 (executable)
index 0000000..a8e832a
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_video.png differ
diff --git a/res/screen-density-xhigh/U01_icon_word.png b/res/screen-density-xhigh/U01_icon_word.png
new file mode 100755 (executable)
index 0000000..b399bad
Binary files /dev/null and b/res/screen-density-xhigh/U01_icon_word.png differ
diff --git a/res/screen-density-xhigh/White.png b/res/screen-density-xhigh/White.png
new file mode 100755 (executable)
index 0000000..15779f1
Binary files /dev/null and b/res/screen-density-xhigh/White.png differ
diff --git a/res/screen-density-xhigh/Yellow.png b/res/screen-density-xhigh/Yellow.png
new file mode 100755 (executable)
index 0000000..daeaf8f
Binary files /dev/null and b/res/screen-density-xhigh/Yellow.png differ
diff --git a/res/screen-density-xhigh/btn_normal.png b/res/screen-density-xhigh/btn_normal.png
new file mode 100755 (executable)
index 0000000..a5afcfb
Binary files /dev/null and b/res/screen-density-xhigh/btn_normal.png differ
diff --git a/res/screen-density-xhigh/btn_selected.png b/res/screen-density-xhigh/btn_selected.png
new file mode 100755 (executable)
index 0000000..5fa2c5c
Binary files /dev/null and b/res/screen-density-xhigh/btn_selected.png differ
diff --git a/res/screen-density-xhigh/composer_attachment_etc.png b/res/screen-density-xhigh/composer_attachment_etc.png
new file mode 100755 (executable)
index 0000000..57e9570
Binary files /dev/null and b/res/screen-density-xhigh/composer_attachment_etc.png differ
diff --git a/res/screen-density-xhigh/composer_attachment_sound.png b/res/screen-density-xhigh/composer_attachment_sound.png
new file mode 100755 (executable)
index 0000000..8f327b7
Binary files /dev/null and b/res/screen-density-xhigh/composer_attachment_sound.png differ
diff --git a/res/screen-density-xhigh/composer_attachment_vcalender.png b/res/screen-density-xhigh/composer_attachment_vcalender.png
new file mode 100755 (executable)
index 0000000..5bc9826
Binary files /dev/null and b/res/screen-density-xhigh/composer_attachment_vcalender.png differ
diff --git a/res/screen-density-xhigh/composer_attachment_vcard.png b/res/screen-density-xhigh/composer_attachment_vcard.png
new file mode 100755 (executable)
index 0000000..4ed5743
Binary files /dev/null and b/res/screen-density-xhigh/composer_attachment_vcard.png differ
diff --git a/res/screen-density-xhigh/composer_attachment_video.png b/res/screen-density-xhigh/composer_attachment_video.png
new file mode 100755 (executable)
index 0000000..d9ceb7d
Binary files /dev/null and b/res/screen-density-xhigh/composer_attachment_video.png differ
diff --git a/res/screen-density-xhigh/email_viewer_attach_multi.png b/res/screen-density-xhigh/email_viewer_attach_multi.png
new file mode 100755 (executable)
index 0000000..594d31d
Binary files /dev/null and b/res/screen-density-xhigh/email_viewer_attach_multi.png differ
diff --git a/res/screen-density-xhigh/header_images/A01_2_Icon_others.png b/res/screen-density-xhigh/header_images/A01_2_Icon_others.png
new file mode 100644 (file)
index 0000000..344388f
Binary files /dev/null and b/res/screen-density-xhigh/header_images/A01_2_Icon_others.png differ
diff --git a/res/screen-density-xhigh/header_images/M02_email_list_icon_YahooMail.png b/res/screen-density-xhigh/header_images/M02_email_list_icon_YahooMail.png
new file mode 100644 (file)
index 0000000..3c29087
Binary files /dev/null and b/res/screen-density-xhigh/header_images/M02_email_list_icon_YahooMail.png differ
diff --git a/res/screen-density-xhigh/header_images/M02_email_list_icon_gmail.png b/res/screen-density-xhigh/header_images/M02_email_list_icon_gmail.png
new file mode 100644 (file)
index 0000000..b3a25a6
Binary files /dev/null and b/res/screen-density-xhigh/header_images/M02_email_list_icon_gmail.png differ
diff --git a/res/screen-density-xhigh/header_images/M02_email_list_icon_hotmail.png b/res/screen-density-xhigh/header_images/M02_email_list_icon_hotmail.png
new file mode 100644 (file)
index 0000000..16473ae
Binary files /dev/null and b/res/screen-density-xhigh/header_images/M02_email_list_icon_hotmail.png differ
diff --git a/res/screen-density-xhigh/header_images/M02_email_list_icon_naver.png b/res/screen-density-xhigh/header_images/M02_email_list_icon_naver.png
new file mode 100644 (file)
index 0000000..5ccc371
Binary files /dev/null and b/res/screen-density-xhigh/header_images/M02_email_list_icon_naver.png differ
diff --git a/res/screen-density-xhigh/header_images/M02_email_list_icon_samsung.png b/res/screen-density-xhigh/header_images/M02_email_list_icon_samsung.png
new file mode 100644 (file)
index 0000000..e244db5
Binary files /dev/null and b/res/screen-density-xhigh/header_images/M02_email_list_icon_samsung.png differ
diff --git a/res/screen-density-xhigh/header_images/M02_list_icon_all_accounts.png b/res/screen-density-xhigh/header_images/M02_list_icon_all_accounts.png
new file mode 100644 (file)
index 0000000..ff04b66
Binary files /dev/null and b/res/screen-density-xhigh/header_images/M02_list_icon_all_accounts.png differ
diff --git a/res/screen-density-xhigh/icon_email.png b/res/screen-density-xhigh/icon_email.png
new file mode 100755 (executable)
index 0000000..25392e8
Binary files /dev/null and b/res/screen-density-xhigh/icon_email.png differ
diff --git a/res/screen-density-xhigh/new/M02_contact_default_image.png b/res/screen-density-xhigh/new/M02_contact_default_image.png
new file mode 100755 (executable)
index 0000000..a4d0e43
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_contact_default_image.png differ
diff --git a/res/screen-density-xhigh/new/M02_contact_default_image_frame.png b/res/screen-density-xhigh/new/M02_contact_default_image_frame.png
new file mode 100755 (executable)
index 0000000..139e46a
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_contact_default_image_frame.png differ
diff --git a/res/screen-density-xhigh/new/M02_contact_default_image_frame_press.png b/res/screen-density-xhigh/new/M02_contact_default_image_frame_press.png
new file mode 100755 (executable)
index 0000000..a07b1d0
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_contact_default_image_frame_press.png differ
diff --git a/res/screen-density-xhigh/new/M02_function_attach.png b/res/screen-density-xhigh/new/M02_function_attach.png
new file mode 100755 (executable)
index 0000000..8fa7872
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_function_attach.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_SMS.png b/res/screen-density-xhigh/new/M02_icon_SMS.png
new file mode 100755 (executable)
index 0000000..7a89871
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_SMS.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_attach.png b/res/screen-density-xhigh/new/M02_icon_attach.png
new file mode 100755 (executable)
index 0000000..cb05a72
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_attach.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_button_download.png b/res/screen-density-xhigh/new/M02_icon_button_download.png
new file mode 100755 (executable)
index 0000000..d044383
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_button_download.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_event.png b/res/screen-density-xhigh/new/M02_icon_event.png
new file mode 100755 (executable)
index 0000000..f59ac80
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_event.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_excel.png b/res/screen-density-xhigh/new/M02_icon_excel.png
new file mode 100755 (executable)
index 0000000..92b1cdf
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_excel.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_expand_closed.png b/res/screen-density-xhigh/new/M02_icon_expand_closed.png
new file mode 100755 (executable)
index 0000000..c9599b2
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_expand_closed.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_expand_opend.png b/res/screen-density-xhigh/new/M02_icon_expand_opend.png
new file mode 100755 (executable)
index 0000000..f3d35d3
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_expand_opend.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_folder.png b/res/screen-density-xhigh/new/M02_icon_folder.png
new file mode 100755 (executable)
index 0000000..3c6a79f
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_folder.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_forward.png b/res/screen-density-xhigh/new/M02_icon_forward.png
new file mode 100755 (executable)
index 0000000..68ff2b1
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_forward.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_jump_left.png b/res/screen-density-xhigh/new/M02_icon_jump_left.png
new file mode 100755 (executable)
index 0000000..5cb3e91
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_jump_left.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_jump_top.png b/res/screen-density-xhigh/new/M02_icon_jump_top.png
new file mode 100755 (executable)
index 0000000..7082fe2
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_jump_top.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_pdf.png b/res/screen-density-xhigh/new/M02_icon_pdf.png
new file mode 100755 (executable)
index 0000000..8ae49b4
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_pdf.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_priority.png b/res/screen-density-xhigh/new/M02_icon_priority.png
new file mode 100755 (executable)
index 0000000..4c3ce16
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_priority.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_reply.png b/res/screen-density-xhigh/new/M02_icon_reply.png
new file mode 100755 (executable)
index 0000000..719a8de
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_reply.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_search_advanced.png b/res/screen-density-xhigh/new/M02_icon_search_advanced.png
new file mode 100755 (executable)
index 0000000..6877744
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_search_advanced.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_search_all.png b/res/screen-density-xhigh/new/M02_icon_search_all.png
new file mode 100755 (executable)
index 0000000..bbfac93
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_search_all.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_search_date.png b/res/screen-density-xhigh/new/M02_icon_search_date.png
new file mode 100755 (executable)
index 0000000..3d83825
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_search_date.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_search_sender.png b/res/screen-density-xhigh/new/M02_icon_search_sender.png
new file mode 100755 (executable)
index 0000000..410da35
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_search_sender.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_search_title.png b/res/screen-density-xhigh/new/M02_icon_search_title.png
new file mode 100755 (executable)
index 0000000..7075418
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_search_title.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_text.png b/res/screen-density-xhigh/new/M02_icon_text.png
new file mode 100755 (executable)
index 0000000..96bd33b
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_text.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_voicemail.png b/res/screen-density-xhigh/new/M02_icon_voicemail.png
new file mode 100755 (executable)
index 0000000..4609286
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_voicemail.png differ
diff --git a/res/screen-density-xhigh/new/M02_icon_word.png b/res/screen-density-xhigh/new/M02_icon_word.png
new file mode 100755 (executable)
index 0000000..9a32599
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_icon_word.png differ
diff --git a/res/screen-density-xhigh/new/M02_inbox_button_divider.png b/res/screen-density-xhigh/new/M02_inbox_button_divider.png
new file mode 100755 (executable)
index 0000000..2b9924f
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_inbox_button_divider.png differ
diff --git a/res/screen-density-xhigh/new/M02_inbox_scroll.png b/res/screen-density-xhigh/new/M02_inbox_scroll.png
new file mode 100755 (executable)
index 0000000..97752c8
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_inbox_scroll.png differ
diff --git a/res/screen-density-xhigh/new/M02_inbox_top_bg.png b/res/screen-density-xhigh/new/M02_inbox_top_bg.png
new file mode 100755 (executable)
index 0000000..482611c
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_inbox_top_bg.png differ
diff --git a/res/screen-density-xhigh/new/M02_inbox_top_bg.psd b/res/screen-density-xhigh/new/M02_inbox_top_bg.psd
new file mode 100755 (executable)
index 0000000..1346c91
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_inbox_top_bg.psd differ
diff --git a/res/screen-density-xhigh/new/M02_inbox_top_line.png b/res/screen-density-xhigh/new/M02_inbox_top_line.png
new file mode 100755 (executable)
index 0000000..107a099
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_inbox_top_line.png differ
diff --git a/res/screen-density-xhigh/new/M02_photo_mark_01.png b/res/screen-density-xhigh/new/M02_photo_mark_01.png
new file mode 100755 (executable)
index 0000000..bef25fa
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_photo_mark_01.png differ
diff --git a/res/screen-density-xhigh/new/M02_photo_mark_02.png b/res/screen-density-xhigh/new/M02_photo_mark_02.png
new file mode 100755 (executable)
index 0000000..88ff97b
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_photo_mark_02.png differ
diff --git a/res/screen-density-xhigh/new/M02_title_icon_exchange.png b/res/screen-density-xhigh/new/M02_title_icon_exchange.png
new file mode 100755 (executable)
index 0000000..33d34d9
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_title_icon_exchange.png differ
diff --git a/res/screen-density-xhigh/new/M02_title_icon_google.png b/res/screen-density-xhigh/new/M02_title_icon_google.png
new file mode 100755 (executable)
index 0000000..401fa2d
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_title_icon_google.png differ
diff --git a/res/screen-density-xhigh/new/M02_title_icon_hotmail.png b/res/screen-density-xhigh/new/M02_title_icon_hotmail.png
new file mode 100755 (executable)
index 0000000..1ba476f
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_title_icon_hotmail.png differ
diff --git a/res/screen-density-xhigh/new/M02_title_icon_yahoomail.png b/res/screen-density-xhigh/new/M02_title_icon_yahoomail.png
new file mode 100755 (executable)
index 0000000..886c0b3
Binary files /dev/null and b/res/screen-density-xhigh/new/M02_title_icon_yahoomail.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_icon_favorite_off_74x74.png b/res/screen-density-xhigh/new/common/M02_icon_favorite_off_74x74.png
new file mode 100755 (executable)
index 0000000..7ae6160
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_icon_favorite_off_74x74.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_icon_favorite_off_74x74_dim.png b/res/screen-density-xhigh/new/common/M02_icon_favorite_off_74x74_dim.png
new file mode 100755 (executable)
index 0000000..959b381
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_icon_favorite_off_74x74_dim.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_icon_favorite_on_74x74.png b/res/screen-density-xhigh/new/common/M02_icon_favorite_on_74x74.png
new file mode 100755 (executable)
index 0000000..fcab252
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_icon_favorite_on_74x74.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_icon_favorite_on_74x74_dim.png b/res/screen-density-xhigh/new/common/M02_icon_favorite_on_74x74_dim.png
new file mode 100755 (executable)
index 0000000..d16dc35
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_icon_favorite_on_74x74_dim.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_title_icon_folder.png b/res/screen-density-xhigh/new/common/M02_title_icon_folder.png
new file mode 100755 (executable)
index 0000000..8aac0fb
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_title_icon_folder.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_title_icon_folder_dim_web.png b/res/screen-density-xhigh/new/common/M02_title_icon_folder_dim_web.png
new file mode 100755 (executable)
index 0000000..db02583
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_title_icon_folder_dim_web.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_title_icon_folder_press_web.png b/res/screen-density-xhigh/new/common/M02_title_icon_folder_press_web.png
new file mode 100755 (executable)
index 0000000..df2ff4f
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_title_icon_folder_press_web.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_title_icon_folder_web.png b/res/screen-density-xhigh/new/common/M02_title_icon_folder_web.png
new file mode 100755 (executable)
index 0000000..3f25b0f
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_title_icon_folder_web.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_title_icon_refresh.png b/res/screen-density-xhigh/new/common/M02_title_icon_refresh.png
new file mode 100755 (executable)
index 0000000..29d80fa
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_title_icon_refresh.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_title_icon_refresh_dim_web.png b/res/screen-density-xhigh/new/common/M02_title_icon_refresh_dim_web.png
new file mode 100755 (executable)
index 0000000..80d871e
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_title_icon_refresh_dim_web.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_title_icon_refresh_press_web.png b/res/screen-density-xhigh/new/common/M02_title_icon_refresh_press_web.png
new file mode 100755 (executable)
index 0000000..ceb19a6
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_title_icon_refresh_press_web.png differ
diff --git a/res/screen-density-xhigh/new/common/M02_title_icon_refresh_web.png b/res/screen-density-xhigh/new/common/M02_title_icon_refresh_web.png
new file mode 100755 (executable)
index 0000000..0d1eb3a
Binary files /dev/null and b/res/screen-density-xhigh/new/common/M02_title_icon_refresh_web.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_add cc.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_add cc.png
new file mode 100755 (executable)
index 0000000..50d17c1
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_add cc.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_advanced.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_advanced.png
new file mode 100755 (executable)
index 0000000..1f345f6
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_advanced.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_all.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_all.png
new file mode 100755 (executable)
index 0000000..0de4137
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_all.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_attach.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_attach.png
new file mode 100755 (executable)
index 0000000..9d5511f
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_attach.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_date.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_date.png
new file mode 100755 (executable)
index 0000000..7c883bf
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_date.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_priority.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_priority.png
new file mode 100755 (executable)
index 0000000..d2ed0af
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_priority.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_save.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_save.png
new file mode 100755 (executable)
index 0000000..35f7d60
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_save.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_schedule.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_schedule.png
new file mode 100755 (executable)
index 0000000..fb771bd
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_schedule.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_security.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_security.png
new file mode 100755 (executable)
index 0000000..d67bcbe
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_security.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_send_email.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_send_email.png
new file mode 100755 (executable)
index 0000000..b29835e
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_send_email.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_sender.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_sender.png
new file mode 100755 (executable)
index 0000000..c921611
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_sender.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_text.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_text.png
new file mode 100755 (executable)
index 0000000..ca3d81a
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_text.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_title.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_title.png
new file mode 100755 (executable)
index 0000000..c307de8
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_title.png differ
diff --git a/res/screen-density-xhigh/new/popup icon/M02_icon_popup_tracking.png b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_tracking.png
new file mode 100755 (executable)
index 0000000..61551c5
Binary files /dev/null and b/res/screen-density-xhigh/new/popup icon/M02_icon_popup_tracking.png differ
diff --git a/res/screen-density-xhigh/nf_title_separator.png b/res/screen-density-xhigh/nf_title_separator.png
new file mode 100755 (executable)
index 0000000..62c098e
Binary files /dev/null and b/res/screen-density-xhigh/nf_title_separator.png differ
diff --git a/res/screen-density-xhigh/optionheader_arrow.png b/res/screen-density-xhigh/optionheader_arrow.png
new file mode 100755 (executable)
index 0000000..10c3ecc
Binary files /dev/null and b/res/screen-density-xhigh/optionheader_arrow.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_1.png b/res/screen-density-xhigh/process/00_winset_list_process_1.png
new file mode 100755 (executable)
index 0000000..ca83022
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_1.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_10.png b/res/screen-density-xhigh/process/00_winset_list_process_10.png
new file mode 100755 (executable)
index 0000000..ebe9fee
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_10.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_11.png b/res/screen-density-xhigh/process/00_winset_list_process_11.png
new file mode 100755 (executable)
index 0000000..905a9d0
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_11.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_12.png b/res/screen-density-xhigh/process/00_winset_list_process_12.png
new file mode 100755 (executable)
index 0000000..6c3dcac
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_12.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_13.png b/res/screen-density-xhigh/process/00_winset_list_process_13.png
new file mode 100755 (executable)
index 0000000..7712265
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_13.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_14.png b/res/screen-density-xhigh/process/00_winset_list_process_14.png
new file mode 100755 (executable)
index 0000000..459293f
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_14.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_15.png b/res/screen-density-xhigh/process/00_winset_list_process_15.png
new file mode 100755 (executable)
index 0000000..1e5ed6f
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_15.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_16.png b/res/screen-density-xhigh/process/00_winset_list_process_16.png
new file mode 100755 (executable)
index 0000000..3d28ca7
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_16.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_17.png b/res/screen-density-xhigh/process/00_winset_list_process_17.png
new file mode 100755 (executable)
index 0000000..137d3ea
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_17.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_18.png b/res/screen-density-xhigh/process/00_winset_list_process_18.png
new file mode 100755 (executable)
index 0000000..bb22bbc
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_18.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_19.png b/res/screen-density-xhigh/process/00_winset_list_process_19.png
new file mode 100755 (executable)
index 0000000..de0ea44
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_19.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_2.png b/res/screen-density-xhigh/process/00_winset_list_process_2.png
new file mode 100755 (executable)
index 0000000..39f1815
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_2.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_20.png b/res/screen-density-xhigh/process/00_winset_list_process_20.png
new file mode 100755 (executable)
index 0000000..02542e6
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_20.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_21.png b/res/screen-density-xhigh/process/00_winset_list_process_21.png
new file mode 100755 (executable)
index 0000000..baa770b
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_21.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_22.png b/res/screen-density-xhigh/process/00_winset_list_process_22.png
new file mode 100755 (executable)
index 0000000..01f36aa
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_22.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_23.png b/res/screen-density-xhigh/process/00_winset_list_process_23.png
new file mode 100755 (executable)
index 0000000..cb677e1
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_23.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_24.png b/res/screen-density-xhigh/process/00_winset_list_process_24.png
new file mode 100755 (executable)
index 0000000..2a3b94e
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_24.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_25.png b/res/screen-density-xhigh/process/00_winset_list_process_25.png
new file mode 100755 (executable)
index 0000000..1e875c4
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_25.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_26.png b/res/screen-density-xhigh/process/00_winset_list_process_26.png
new file mode 100755 (executable)
index 0000000..afd7abd
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_26.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_27.png b/res/screen-density-xhigh/process/00_winset_list_process_27.png
new file mode 100755 (executable)
index 0000000..940229a
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_27.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_28.png b/res/screen-density-xhigh/process/00_winset_list_process_28.png
new file mode 100755 (executable)
index 0000000..ce23b0d
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_28.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_29.png b/res/screen-density-xhigh/process/00_winset_list_process_29.png
new file mode 100755 (executable)
index 0000000..b5d29fc
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_29.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_3.png b/res/screen-density-xhigh/process/00_winset_list_process_3.png
new file mode 100755 (executable)
index 0000000..fe26b18
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_3.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_30.png b/res/screen-density-xhigh/process/00_winset_list_process_30.png
new file mode 100755 (executable)
index 0000000..762a1fe
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_30.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_4.png b/res/screen-density-xhigh/process/00_winset_list_process_4.png
new file mode 100755 (executable)
index 0000000..c486331
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_4.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_5.png b/res/screen-density-xhigh/process/00_winset_list_process_5.png
new file mode 100755 (executable)
index 0000000..194bf24
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_5.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_6.png b/res/screen-density-xhigh/process/00_winset_list_process_6.png
new file mode 100755 (executable)
index 0000000..b9501fe
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_6.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_7.png b/res/screen-density-xhigh/process/00_winset_list_process_7.png
new file mode 100755 (executable)
index 0000000..2ae3041
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_7.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_8.png b/res/screen-density-xhigh/process/00_winset_list_process_8.png
new file mode 100755 (executable)
index 0000000..0c0d8f4
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_8.png differ
diff --git a/res/screen-density-xhigh/process/00_winset_list_process_9.png b/res/screen-density-xhigh/process/00_winset_list_process_9.png
new file mode 100755 (executable)
index 0000000..767f140
Binary files /dev/null and b/res/screen-density-xhigh/process/00_winset_list_process_9.png differ
diff --git a/res/screen-size-normal/IDL_ACCOUNT_CONFIG_FORM.xml b/res/screen-size-normal/IDL_ACCOUNT_CONFIG_FORM.xml
new file mode 100755 (executable)
index 0000000..0e28eda
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307091413" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_ACCOUNT_CONFIG_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="100" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_HEADER_DELETE"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <SectionTableView id="IDC_MAIN_SECTIONTABLEVIEW" parent="IDL_ACCOUNT_CONFIG_FORM">
+        <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" groupedLookEnabled="true" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_NONE" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" useSearchIcon="false"/>
+        <layout bottomRelation="IDL_ACCOUNT_CONFIG_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ACCOUNT_CONFIG_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_ACCOUNT_CONFIG_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ACCOUNT_CONFIG_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_ACCOUNT_CONFIG_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ACCOUNT_CONFIG_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ACCOUNT_CONFIG_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ACCOUNT_CONFIG_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </SectionTableView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_ACCOUNT_SETTINGS_MAIN_FORM.xml b/res/screen-size-normal/IDL_ACCOUNT_SETTINGS_MAIN_FORM.xml
new file mode 100755 (executable)
index 0000000..2b62803
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201310021637" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_ACCOUNT_SETTINGS_MAIN_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_EMAIL_HEADER_ACCOUNT_SETTINGS" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <SectionTableView id="IDC_SECTIONTABLEVIEW" parent="IDL_ACCOUNT_SETTINGS_MAIN_FORM">
+        <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" groupedLookEnabled="false" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" useSearchIcon="false"/>
+        <layout bottomRelation="IDL_ACCOUNT_SETTINGS_MAIN_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1124.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ACCOUNT_SETTINGS_MAIN_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_ACCOUNT_SETTINGS_MAIN_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ACCOUNT_SETTINGS_MAIN_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_ACCOUNT_SETTINGS_MAIN_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="629.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ACCOUNT_SETTINGS_MAIN_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ACCOUNT_SETTINGS_MAIN_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ACCOUNT_SETTINGS_MAIN_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </SectionTableView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_ADD_ADDRESS_FORM.xml b/res/screen-size-normal/IDL_ADD_ADDRESS_FORM.xml
new file mode 100755 (executable)
index 0000000..1753137
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307091413" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_ADD_ADDRESS_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="200" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_SK3_DONE"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_COM_SK_ADD" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <ScrollPanel id="IDC_SCROLLPANEL1" parent="IDL_ADD_ADDRESS_FORM">
+        <property autoResizingEnabled="true" backgroundColor="" backgroundColorOpacity="0" clientAreaHeight="0" clientAreaWidth="0" pageScrollEnabled="false" scrollBarVisible="true" scrollDirection="SCROLL_PANEL_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION"/>
+        <panelLayout height="1011.0" mode="Portrait" width="720.0"/>
+        <panelLayout height="484.0" mode="Landscape" width="1280.0"/>
+        <layout bottomRelation="IDL_ADD_ADDRESS_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ADD_ADDRESS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_ADD_ADDRESS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ADD_ADDRESS_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_ADD_ADDRESS_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ADD_ADDRESS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ADD_ADDRESS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ADD_ADDRESS_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </ScrollPanel>
+    <Label id="IDC_LABEL" parent="IDC_SCROLLPANEL1">
+        <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="::IDS_COM_BODY_EMAIL_ADDRESS" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="16.0" mode="Portrait" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_SCROLLPANEL1" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="688.0" x="16.0" y="16.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="16.0" mode="Landscape" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_SCROLLPANEL1" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1248.0" x="16.0" y="16.0"/>
+    </Label>
+    <Button id="IDC_BUTTON" parent="IDC_SCROLLPANEL1">
+        <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="17.0" NormalBitmapY="16.0" PressedBitmapX="17.0" PressedBitmapY="16.0" accessibilityHint="" disableTextColor="" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="M02_btn_circle_bg_01.png" normalBitmapPath="M02_email_btn_icon_contact.png" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="M02_btn_circle_bg_press.png" pressedBitmapPath="M02_email_btn_icon_contact_press.png" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="70.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="16.0" marginTop="10.0" mode="Portrait" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="70.0" x="634.0" y="78.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="70.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="16.0" marginTop="10.0" mode="Landscape" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="70.0" x="1194.0" y="78.0"/>
+    </Button>
+    <EditField id="IDC_EDITFIELD1" parent="IDC_SCROLLPANEL1">
+        <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_DONE" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="10.0" viewMode="false"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="10.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_EMAIL" topRelation="IDC_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="608.0" x="16.0" y="68.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="97.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="10.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_BUTTON" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_LEFT" style="EDIT_FIELD_STYLE_EMAIL" topRelation="IDC_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1168.0" x="16.0" y="68.0"/>
+    </EditField>
+</Scene>
diff --git a/res/screen-size-normal/IDL_ADD_SUBJECT_FORM.xml b/res/screen-size-normal/IDL_ADD_SUBJECT_FORM.xml
new file mode 100755 (executable)
index 0000000..37a3d44
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307091413" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_ADD_SUBJECT_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="260" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_SK3_DONE"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_COM_SK_ADD" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <ScrollPanel id="IDC_SCROLLPANEL1" parent="IDL_ADD_SUBJECT_FORM">
+        <property autoResizingEnabled="true" backgroundColor="" backgroundColorOpacity="0" clientAreaHeight="0" clientAreaWidth="0" pageScrollEnabled="false" scrollBarVisible="true" scrollDirection="SCROLL_PANEL_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION"/>
+        <panelLayout height="1011.0" mode="Portrait" width="720.0"/>
+        <panelLayout height="484.0" mode="Landscape" width="1280.0"/>
+        <layout bottomRelation="IDL_ADD_SUBJECT_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ADD_SUBJECT_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_ADD_SUBJECT_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ADD_SUBJECT_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_ADD_SUBJECT_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ADD_SUBJECT_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ADD_SUBJECT_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ADD_SUBJECT_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </ScrollPanel>
+    <Label id="IDC_LABEL" parent="IDC_SCROLLPANEL1">
+        <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="::IDS_EMAIL_BODY_SUBJECT" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="16.0" mode="Portrait" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_SCROLLPANEL1" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="688.0" x="16.0" y="16.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="16.0" mode="Landscape" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_SCROLLPANEL1" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1248.0" x="16.0" y="16.0"/>
+    </Label>
+    <EditField id="IDC_EDITFIELD1" parent="IDC_SCROLLPANEL1">
+        <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="false" groupStyle="GROUP_STYLE_NONE" guideText="" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_DONE" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45.0" titleStyle="EDIT_FIELD_TITLE_STYLE_NONE" titleText="" titleTextColor="" verticalMargin="10.0" viewMode="false"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="90.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="" topRelation="IDC_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="688.0" x="16.0" y="68.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="100.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SCROLLPANEL1" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_SCROLLPANEL1" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="" topRelation="IDC_LABEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1248.0" x="16.0" y="68.0"/>
+    </EditField>
+</Scene>
diff --git a/res/screen-size-normal/IDL_ALL_FOLDERS.xml b/res/screen-size-normal/IDL_ALL_FOLDERS.xml
new file mode 100755 (executable)
index 0000000..bb91bfe
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307161751" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_ALL_FOLDERS">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_EMAIL_HEADER_FOLDERS" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <GroupedTableView id="IDC_MAIN_GROUPED_TABLEVIEW" parent="IDL_ALL_FOLDERS">
+        <property backgroundColor="" backgroundColorOpacity="0" collapseByPinchEnabled="false" fastScrollIndex="" groupedLookEnabled="false" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>
+        <layout bottomRelation="IDL_ALL_FOLDERS" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1124.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALL_FOLDERS" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_ALL_FOLDERS" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALL_FOLDERS" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_ALL_FOLDERS" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_ALL_FOLDERS" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_ALL_FOLDERS" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_ALL_FOLDERS" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </GroupedTableView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_BLOCK_FORM.xml b/res/screen-size-normal/IDL_BLOCK_FORM.xml
new file mode 100755 (executable)
index 0000000..9b5122a
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201309111403" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_BLOCK_ADDRESS_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="440" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_COM_SK_ADD"/>
+            <footerItem accessibilityHint="" actionId="430" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_HEADER_DELETE"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TAB_WITH_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_EMAIL_OPT_BLOCK" titleTextColor=""/>
+        <itemSet>
+            <headerItem accessibilityHint="" actionId="460" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" pressedBGBitmapPath="" pressedIconPath="" selectedBGBitmapPath="" text="::IDS_EMAIL_BODY_ADDRESS"/>
+            <headerItem accessibilityHint="" actionId="470" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" pressedBGBitmapPath="" pressedIconPath="" selectedBGBitmapPath="" text="::IDS_EMAIL_BODY_SUBJECT"/>
+        </itemSet>
+    </Header>
+    <ListView id="IDC_BLOCKED_ADDRESS_LISTVIEW" parent="IDL_BLOCK_ADDRESS_FORM">
+        <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="00_Nocontents_text.png" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList="::IDS_EMAIL_BODY_NO_ADDRESS"/>
+        <layout bottomRelation="IDL_BLOCK_ADDRESS_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1055.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_BLOCK_ADDRESS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_BLOCK_ADDRESS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_BLOCK_ADDRESS_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_BLOCK_ADDRESS_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="575.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_BLOCK_ADDRESS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_BLOCK_ADDRESS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_BLOCK_ADDRESS_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </ListView>
+    <ListView id="IDC_BLOCKED_SUBJECT_LISTVIEW" parent="IDL_BLOCK_ADDRESS_FORM">
+        <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="00_Nocontents_text.png" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList="::IDS_EMAIL_BODY_NO_SUBJECT"/>
+        <layout bottomRelation="IDL_BLOCK_ADDRESS_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1055.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_BLOCK_ADDRESS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_BLOCK_ADDRESS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_BLOCK_ADDRESS_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_BLOCK_ADDRESS_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="575.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_BLOCK_ADDRESS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_BLOCK_ADDRESS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_BLOCK_ADDRESS_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </ListView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_COMPOSE_FORM.xml b/res/screen-size-normal/IDL_COMPOSE_FORM.xml
new file mode 100755 (executable)
index 0000000..be92ab2
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307091413" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_COMPOSE_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="102" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_COM_BODY_SEND"/>
+        </itemSet>
+    </Footer>
+    <TableView id="IDC_TABLEVIEW" parent="IDL_COMPOSE_FORM">
+        <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="false" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>
+        <layout bottomRelation="IDL_COMPOSE_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1122.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_COMPOSE_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_COMPOSE_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_COMPOSE_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_COMPOSE_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="635.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_COMPOSE_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_COMPOSE_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_COMPOSE_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </TableView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_DELETE_ADDRESS_SUBJECT_FORM.xml b/res/screen-size-normal/IDL_DELETE_ADDRESS_SUBJECT_FORM.xml
new file mode 100755 (executable)
index 0000000..2e6262f
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307161751" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_DELETE_ADDRESS_SUBJECT_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="101" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_HEADER_DELETE"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+        <itemSet>
+            <buttonItem accessibilityHint="" actionId="100" disabledBGBitmapPath="" disabledIconPath="00_icon_select_all_dim_web.png" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="00_icon_select_all_web.png" position="BUTTON_POSITION_RIGHT" pressedBGBitmapPath="" pressedIconPath="00_icon_select_all_press_web.png" style="BUTTON_ITEM_STYLE_ICON" text="" type="right"/>
+        </itemSet>
+    </Header>
+    <Label id="IDC_LABEL" parent="IDL_DELETE_ADDRESS_SUBJECT_FORM">
+        <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="Label1" textColor="#FFFFFF" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="971.0"/>
+        <layout bottomRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="489.0"/>
+    </Label>
+    <ListView id="IDC_LISTVIEW" parent="IDL_DELETE_ADDRESS_SUBJECT_FORM">
+        <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+        <layout bottomRelation="IDC_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="971.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDC_LABEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="489.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_DELETE_ADDRESS_SUBJECT_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </ListView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_EMAIL_DETAIL_FORM.xml b/res/screen-size-normal/IDL_EMAIL_DETAIL_FORM.xml
new file mode 100755 (executable)
index 0000000..8288e06
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201308220944" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_EMAIL_DETAIL_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="102" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_OPT_REPLY"/>
+            <footerItem accessibilityHint="" actionId="101" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_HEADER_DELETE"/>
+        </itemSet>
+    </Footer>
+    <Label id="IDC_TOPLINE" parent="IDL_EMAIL_DETAIL_FORM">
+        <property accessibilityHint="" backgroundBitmapPath="M02_inbox_top_line.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="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="10.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_EMAIL_DETAIL_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_EMAIL_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_EMAIL_DETAIL_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="10.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_EMAIL_DETAIL_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_EMAIL_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_EMAIL_DETAIL_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </Label>
+    <TableView id="IDC_TABLEVIEW" parent="IDL_EMAIL_DETAIL_FORM">
+        <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" itemDivider="false" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" useSearchIcon="false"/>
+        <layout bottomRelation="IDL_EMAIL_DETAIL_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1114.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_EMAIL_DETAIL_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_EMAIL_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_TOPLINE" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0" y="10.0"/>
+        <layout bottomRelation="IDL_EMAIL_DETAIL_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="627.0" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="IDL_EMAIL_DETAIL_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_EMAIL_DETAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_TOPLINE" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0" y="10.0"/>
+    </TableView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_INBOX_LIST_FORM.xml b/res/screen-size-normal/IDL_INBOX_LIST_FORM.xml
new file mode 100755 (executable)
index 0000000..b854112
--- /dev/null
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201310021637" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_INBOX_LIST_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="130" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_SK_COMPOSE"/>
+            <footerItem accessibilityHint="" actionId="140" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_HEADER_FOLDERS"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+        <itemSet>
+            <buttonItem accessibilityHint="" actionId="100" disabledBGBitmapPath="" disabledIconPath="M02_title_icon_search.png" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="M02_title_icon_search_web.png" position="BUTTON_POSITION_LEFT" pressedBGBitmapPath="" pressedIconPath="M02_title_icon_search_web_press.png" style="BUTTON_ITEM_STYLE_ICON" text="" type="left"/>
+            <buttonItem accessibilityHint="" actionId="110" disabledBGBitmapPath="" disabledIconPath="M02_title_icon_refresh.png" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="M02_title_icon_refresh_web.png" position="BUTTON_POSITION_RIGHT" pressedBGBitmapPath="" pressedIconPath="M02_title_icon_refresh_press_web.png" style="BUTTON_ITEM_STYLE_ICON" text="" type="right"/>
+        </itemSet>
+    </Header>
+    <Label id="IDC_INBOX_SELECTED_LABEL" parent="IDL_INBOX_LIST_FORM">
+        <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#444444" backgroundColorOpacity="100" horizontalAlign="ALIGN_CENTER" leftMargin="16" text="Label1" textColor="#FFFFFF" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDL_INBOX_LIST_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INBOX_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_INBOX_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="989.0"/>
+        <layout bottomRelation="IDL_INBOX_LIST_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INBOX_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_INBOX_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="574.0"/>
+    </Label>
+    <GroupedListView id="IDC_INBOX_GROUPEDLISTVIEW" parent="IDL_INBOX_LIST_FORM">
+        <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="00_Nocontents_text.png" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" sweepEnabled="true" textOfEmptyList="::IDS_COM_BODY_NO_CONTENTS"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INBOX_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_INBOX_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="GROUPED_LIST_VIEW_STYLE_INDEXED" topRelation="IDL_INBOX_LIST_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INBOX_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_INBOX_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="GROUPED_LIST_VIEW_STYLE_INDEXED" topRelation="IDL_INBOX_LIST_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="0.0"/>
+    </GroupedListView>
+    <Panel id="IDC_INBOX_ACCOUNTS_LIST_PANEL" parent="IDL_INBOX_LIST_FORM">
+        <property backgroundColor="#444444" backgroundColorOpacity="80" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+        <layout bottomRelation="IDL_INBOX_LIST_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1044.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INBOX_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_INBOX_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_INBOX_LIST_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_INBOX_LIST_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="629.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_INBOX_LIST_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_INBOX_LIST_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_INBOX_LIST_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="0.0"/>
+    </Panel>
+    <ListView id="IDC_INBOX_ACCOUNTS_LISTVIEW" parent="IDC_INBOX_ACCOUNTS_LIST_PANEL">
+        <property backgroundBitmapPath="" backgroundColor="#FFFFFF" backgroundColorOpacity="100" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="500.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_INBOX_ACCOUNTS_LIST_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="12.0" marginRight="12.0" marginTop="12.0" mode="Portrait" rightRelation="IDC_INBOX_ACCOUNTS_LIST_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_INBOX_ACCOUNTS_LIST_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="696.0" x="12.0" y="12.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="336.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_INBOX_ACCOUNTS_LIST_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="12.0" marginRight="12.0" marginTop="12.0" mode="Landscape" rightRelation="IDC_INBOX_ACCOUNTS_LIST_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_INBOX_ACCOUNTS_LIST_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1176.0" x="12.0" y="12.0"/>
+    </ListView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_LOGIN_FORM.xml b/res/screen-size-normal/IDL_LOGIN_FORM.xml
new file mode 100755 (executable)
index 0000000..88c3882
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201310251600" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_LOGIN_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_LEFT" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="180" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_COM_SK_NEXT"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_MA_HEADER_ADD_ACCOUNT" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <ScrollPanel id="IDC_MAIN_SCROLLPANEL" parent="IDL_LOGIN_FORM">
+        <property autoResizingEnabled="true" backgroundColor="" backgroundColorOpacity="0" clientAreaHeight="0" clientAreaWidth="0" pageScrollEnabled="false" scrollBarVisible="true" scrollDirection="SCROLL_PANEL_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION"/>
+        <panelLayout height="1109.0" mode="Portrait" width="720.0"/>
+        <panelLayout height="704.0" mode="Landscape" width="1200.0"/>
+        <layout bottomRelation="IDL_LOGIN_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1124.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_LOGIN_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_LOGIN_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_LOGIN_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_LOGIN_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_LOGIN_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_LOGIN_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_LOGIN_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="0.0"/>
+    </ScrollPanel>
+    <EditField id="IDC_EMAIL_EDITFIELD" parent="IDC_MAIN_SCROLLPANEL">
+        <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" enableClear="true" groupStyle="GROUP_STYLE_TOP" guideText="Enter your email id" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_DONE" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="true" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45.0" titleStyle="EDIT_FIELD_TITLE_STYLE_TOP" titleText="::IDS_COM_BODY_EMAIL_ADDRESS" titleTextColor="" verticalMargin="16.0" viewMode="false"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="153.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MAIN_SCROLLPANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="16.0" mode="Portrait" rightRelation="IDC_MAIN_SCROLLPANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_EMAIL" topRelation="IDC_MAIN_SCROLLPANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="688.0" x="16.0" y="16.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="153.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MAIN_SCROLLPANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="16.0" mode="Landscape" rightRelation="IDC_MAIN_SCROLLPANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_EMAIL" topRelation="IDC_MAIN_SCROLLPANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1168.0" x="16.0" y="16.0"/>
+    </EditField>
+    <EditField id="IDC_PASSWORD_EDITFIELD" parent="IDC_MAIN_SCROLLPANEL">
+        <property accessibilityHint="" disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" ellipsisPosition="ELLIPSIS_POSITION_MIDDLE" enableClear="true" groupStyle="GROUP_STYLE_BOTTOM" guideText="Enter your password" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16.0" inputStyle="INPUT_STYLE_OVERLAY" keypadAction="KEYPAD_ACTION_DONE" keypadEnabled="true" limitLength="100" linkTextColor="" lowerCaseMode="true" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45.0" titleStyle="EDIT_FIELD_TITLE_STYLE_TOP" titleText="::IDS_COM_POP_PASSWORD" titleTextColor="" verticalMargin="12.0" viewMode="false"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="153.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MAIN_SCROLLPANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_MAIN_SCROLLPANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_PASSWORD" topRelation="IDC_EMAIL_EDITFIELD" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="688.0" x="16.0" y="169.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="152.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MAIN_SCROLLPANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_MAIN_SCROLLPANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="EDIT_FIELD_STYLE_PASSWORD" topRelation="IDC_EMAIL_EDITFIELD" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1168.0" x="16.0" y="169.0"/>
+    </EditField>
+    <CheckButton id="IDC_SHOW_PASSWORD_CHECKBUTTON" parent="IDC_MAIN_SCROLLPANEL">
+        <property accessibilityHint1="" accessibilityHint2="" backgroundStyle="BACKGROUND_STYLE_NONE" colorOfText="" colorOfTitleText="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" disabledTitleTextColor="" groupId="0" groupStyle="GROUP_STYLE_NONE" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" highlightedTitleTextColor="" horizontalAlign="ALIGN_LEFT" normalColor="" normalColorOpacity="100" pressedColor="" pressedColorOpacity="100" pressedTextColor="" pressedTitleTextColor="" showTitleText="false" text="::IDS_EMAIL_BODY_SHOW_PASSWORD" titleText="" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MAIN_SCROLLPANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="16.0" mode="Portrait" rightRelation="IDC_MAIN_SCROLLPANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="" topRelation="IDC_PASSWORD_EDITFIELD" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="338.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="112.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_MAIN_SCROLLPANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="16.0" mode="Landscape" rightRelation="IDC_MAIN_SCROLLPANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="" topRelation="IDC_PASSWORD_EDITFIELD" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1200.0" x="0.0" y="337.0"/>
+    </CheckButton>
+    <Label id="IDC_DUMMY_LABEL" parent="IDC_MAIN_SCROLLPANEL">
+        <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="#FFFFFF" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="16" text="" textColor="" textSize="33.0" textStyle="LABEL_TEXT_STYLE_NORMAL" topMargin="0" verticalAlign="ALIGN_TOP"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="88.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="16.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_SHOW_PASSWORD_CHECKBUTTON" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="400.0" x="160.0" y="466.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="88.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="400.0" x="400.0" y="465.0"/>
+    </Label>
+    <Button id="IDC_MANUAL_SETTINGS_BUTTON" parent="IDC_MAIN_SCROLLPANEL">
+        <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="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_EMAIL_BODY_MANUAL_SETUP" textSize="28.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="16.0" marginLeft="0.0" marginRight="0.0" marginTop="16.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_SHOW_PASSWORD_CHECKBUTTON" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="400.0" x="160.0" y="466.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="72.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="16.0" marginLeft="0.0" marginRight="0.0" marginTop="16.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDC_SHOW_PASSWORD_CHECKBUTTON" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="400.0" x="400.0" y="465.0"/>
+    </Button>
+</Scene>
diff --git a/res/screen-size-normal/IDL_MANUAL_SETUP_FORM.xml b/res/screen-size-normal/IDL_MANUAL_SETUP_FORM.xml
new file mode 100755 (executable)
index 0000000..b7495bb
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201309111403" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_MANUAL_SETUP_FORM">
+        <property backgroundColor="" 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 mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="101" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_EMAIL_SK3_DONE"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_EMAIL_BODY_MANUAL_SETUP" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <SectionTableView id="IDC_MAIN_SECTIONTABLEVIEW" parent="IDL_MANUAL_SETUP_FORM">
+        <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" groupedLookEnabled="true" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" useSearchIcon="false"/>
+        <layout bottomRelation="IDL_MANUAL_SETUP_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1124.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_MANUAL_SETUP_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_MANUAL_SETUP_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_MANUAL_SETUP_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_MANUAL_SETUP_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_MANUAL_SETUP_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_MANUAL_SETUP_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_MANUAL_SETUP_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </SectionTableView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_MOVEMAIL_FORM.xml b/res/screen-size-normal/IDL_MOVEMAIL_FORM.xml
new file mode 100755 (executable)
index 0000000..48719d8
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307091413" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_MOVEMAIL_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet/>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_EMAIL_SK_MOVE" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <ListView id="IDC_LISTVIEW" parent="IDL_MOVEMAIL_FORM">
+        <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+        <layout bottomRelation="IDL_MOVEMAIL_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_MOVEMAIL_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_MOVEMAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_MOVEMAIL_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_MOVEMAIL_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_MOVEMAIL_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_MOVEMAIL_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_MOVEMAIL_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </ListView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_POPUP_ATTACHMENT_FAILED.xml b/res/screen-size-normal/IDL_POPUP_ATTACHMENT_FAILED.xml
new file mode 100755 (executable)
index 0000000..3d49e5f
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePopup SYSTEM "UIForm.dtd">
+<ScenePopup Bversion="2.0.0.201309242034" Dversion="20120315">
+    <Popup id="IDL_POPUP_ATTACHMENT_FAILED">
+        <property accessibilityHint="" color="" titleText="" titleTextColor=""/>
+        <layout height="230.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688.0"/>
+        <layout height="220.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688.0"/>
+    </Popup>
+    <Button id="IDC_BUTTON_OK" parent="IDL_POPUP_ATTACHMENT_FAILED">
+        <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="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_COM_SK_OK" textSize="36.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDL_POPUP_ATTACHMENT_FAILED" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_ATTACHMENT_FAILED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="24.0" marginLeft="250.0" marginRight="250.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_POPUP_ATTACHMENT_FAILED" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="188.0" x="250.0" y="132.0"/>
+        <layout bottomRelation="IDL_POPUP_ATTACHMENT_FAILED" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_ATTACHMENT_FAILED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="24.0" marginLeft="250.0" marginRight="250.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_POPUP_ATTACHMENT_FAILED" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="188.0" x="250.0" y="122.0"/>
+    </Button>
+    <Label id="IDC_LABEL_TITLE" parent="IDL_POPUP_ATTACHMENT_FAILED">
+        <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="::IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD" textColor="" textSize="38.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDC_BUTTON_OK" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="80.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_ATTACHMENT_FAILED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="16.0" marginRight="16.0" marginTop="32.0" mode="Portrait" rightRelation="IDL_POPUP_ATTACHMENT_FAILED" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_POPUP_ATTACHMENT_FAILED" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="32.0"/>
+        <layout bottomRelation="IDC_BUTTON_OK" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="70.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_ATTACHMENT_FAILED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="16.0" marginRight="16.0" marginTop="32.0" mode="Landscape" rightRelation="IDL_POPUP_ATTACHMENT_FAILED" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_POPUP_ATTACHMENT_FAILED" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="32.0"/>
+    </Label>
+</ScenePopup>
diff --git a/res/screen-size-normal/IDL_POPUP_DELETE.xml b/res/screen-size-normal/IDL_POPUP_DELETE.xml
new file mode 100755 (executable)
index 0000000..dff76c1
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePopup SYSTEM "UIForm.dtd">
+<ScenePopup Bversion="2.0.0.201310021637" Dversion="20120315">
+    <Popup id="IDL_POPUP_DELETE">
+        <property accessibilityHint="" color="" titleText="" titleTextColor=""/>
+        <layout height="230.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688.0"/>
+        <layout height="220.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688.0"/>
+    </Popup>
+    <Button id="IDC_BUTTON_DELETE" parent="IDL_POPUP_DELETE">
+        <property DisabledBitmapX="0.0" DisabledBitmapY="0.0" NormalBitmapX="0.0" NormalBitmapY="0.0" PressedBitmapX="0.0" PressedBitmapY="0.0" accessibilityHint="" disableTextColor="#FFFFFF" disabledBGBitmapPath="" disabledBitmapPath="" disabledColor="#D05252" disabledColorOpacity="40" highlightedBGBitmapPath="" highlightedBitmapPath="" highlightedBitmapX="0.0" highlightedBitmapY="0.0" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="#D05252" normalColorOpacity="100" normalTextColor="#FFFFFF" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="#D05252" pressedColorOpacity="100" pressedTextColor="" text="::IDS_EMAIL_HEADER_DELETE" textSize="36.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDL_POPUP_DELETE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="24.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_POPUP_DELETE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="318.0" x="354.0" y="132.0"/>
+        <layout bottomRelation="IDL_POPUP_DELETE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="None" leftRelationType="" marginBottom="24.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_POPUP_DELETE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="318.0" x="354.0" y="122.0"/>
+    </Button>
+    <Button id="IDC_BUTTON_CANCEL" parent="IDL_POPUP_DELETE">
+        <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="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_EMAIL_SK3_CANCEL" textSize="36.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDL_POPUP_DELETE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_DELETE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="24.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="318.0" x="16.0" y="132.0"/>
+        <layout bottomRelation="IDL_POPUP_DELETE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_DELETE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="24.0" marginLeft="16.0" marginRight="16.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="318.0" x="16.0" y="122.0"/>
+    </Button>
+    <Label id="IDC_LABEL_TITLE" parent="IDL_POPUP_DELETE">
+        <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="Delete?" textColor="" textSize="38.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDC_BUTTON_DELETE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="80.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_DELETE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="16.0" marginRight="16.0" marginTop="32.0" mode="Portrait" rightRelation="IDL_POPUP_DELETE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_POPUP_DELETE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="32.0"/>
+        <layout bottomRelation="IDC_BUTTON_DELETE" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="70.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_DELETE" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="16.0" marginRight="16.0" marginTop="32.0" mode="Landscape" rightRelation="IDL_POPUP_DELETE" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_POPUP_DELETE" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_CONTENT" width="656.0" x="16.0" y="32.0"/>
+    </Label>
+</ScenePopup>
diff --git a/res/screen-size-normal/IDL_POPUP_MOVE_OR_DELETE_FAILED.xml b/res/screen-size-normal/IDL_POPUP_MOVE_OR_DELETE_FAILED.xml
new file mode 100755 (executable)
index 0000000..e9093fa
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePopup SYSTEM "UIForm.dtd">
+<ScenePopup Bversion="2.0.0.201309242034" Dversion="20120315">
+    <Popup id="IDL_POPUP_MOVE_OR_DELETE_FAILED">
+        <property accessibilityHint="" color="" titleText="" titleTextColor=""/>
+        <layout height="230.0" mode="Portrait" style="" type="LAYOUT_RELATIVE" width="688.0"/>
+        <layout height="220.0" mode="Landscape" style="" type="LAYOUT_RELATIVE" width="688.0"/>
+    </Popup>
+    <Button id="IDC_BUTTON_OK" parent="IDL_POPUP_MOVE_OR_DELETE_FAILED">
+        <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="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_COM_SK_OK" textSize="36.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="24.0" marginLeft="250.0" marginRight="250.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="188.0" x="250.0" y="132.0"/>
+        <layout bottomRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="74.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="24.0" marginLeft="250.0" marginRight="250.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="188.0" x="250.0" y="122.0"/>
+    </Button>
+    <Label id="IDC_LABEL_TITLE" parent="IDL_POPUP_MOVE_OR_DELETE_FAILED">
+        <property accessibilityHint="" backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" leftMargin="0" text="" textColor="" textSize="38.0" textStyle="LABEL_TEXT_STYLE_BOLD" topMargin="0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="80.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="16.0" marginRight="16.0" marginTop="32.0" mode="Portrait" rightRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="32.0"/>
+        <layout bottomRelation="IDC_BUTTON_OK" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="70.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="20.0" marginLeft="16.0" marginRight="16.0" marginTop="32.0" mode="Landscape" rightRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_POPUP_MOVE_OR_DELETE_FAILED" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="656.0" x="16.0" y="32.0"/>
+    </Label>
+</ScenePopup>
diff --git a/res/screen-size-normal/IDL_SEARCH_FORM.xml b/res/screen-size-normal/IDL_SEARCH_FORM.xml
new file mode 100755 (executable)
index 0000000..5d3d2c8
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201310110948" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_SEARCH_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Button id="IDC_SEARCH_OPTIONS_BUTTON" parent="IDL_SEARCH_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="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="" textSize="33.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="66.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SEARCH_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="10.0" marginLeft="10.0" marginRight="10.0" marginTop="10.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_SEARCH_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="66.0" x="10.0" y="10.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="66.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SEARCH_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="10.0" marginLeft="10.0" marginRight="10.0" marginTop="10.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_SEARCH_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="66.0" x="10.0" y="10.0"/>
+    </Button>
+    <SearchBar id="IDC_SEARCH_SEARCHBAR" parent="IDL_SEARCH_FORM">
+        <property accessibilityHint="" backgroundBitmapPath="" buttonActionId="100" buttonText="::IDS_EMAIL_SK3_CANCEL" color="" colorOpacity="100" disabledButtonColor="" disabledButtonTextColor="" disabledSearchFieldColor="" disabledSearchFieldTextColor="" ellipsisPosition="ELLIPSIS_POSITION_END" guideText="" guideTextColor="" highlightedButtonColor="" highlightedButtonTextColor="" highlightedSearchFieldColor="" highlightedSearchFieldTextColor="" keypadAction="KEYPAD_ACTION_SEARCH" limitLength="500" lowerCaseMode="true" normalButtonColor="" normalButtonTextColor="" normalSearchFieldColor="" normalSearchFieldTextColor="" pressedButtonColor="" pressedButtonTextColor="" searchFieldTextSize="33.0" showSearchBarButton="true" text="" textPredictionEnabled="true"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="86.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SEARCH_OPTIONS_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_SEARCH_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_SEARCH_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="644.0" x="76.0" y="0.0"/>
+        <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="86.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_SEARCH_OPTIONS_BUTTON" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_RIGHT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_SEARCH_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_SEARCH_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1204.0" x="76.0" y="0.0"/>
+    </SearchBar>
+    <GroupedListView id="IDC_SEARCH_RESULT_GROUPEDLISTVIEW" parent="IDL_SEARCH_FORM">
+        <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" bitmapPathOfEmptyList="00_Nocontents_text.png" colorOfEmptyListText="" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" sweepEnabled="false" textOfEmptyList="::IDS_COM_BODY_NO_CONTENTS"/>
+        <layout bottomRelation="IDL_SEARCH_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1134.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SEARCH_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_SEARCH_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="IDC_SEARCH_SEARCHBAR" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="86.0"/>
+        <layout bottomRelation="IDL_SEARCH_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="634.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SEARCH_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_SEARCH_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" style="CUSTOM_LIST_STYLE_NORMAL" topRelation="IDC_SEARCH_SEARCHBAR" topRelationType="RECT_EDGE_RELATION_TOP_TO_BOTTOM" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="86.0"/>
+    </GroupedListView>
+    <Label id="IDC_LABEL1" parent="IDL_SEARCH_FORM">
+        <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"/>
+        <layout bottomRelation="IDC_SEARCH_RESULT_GROUPEDLISTVIEW" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="86.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SEARCH_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDL_SEARCH_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="76.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDC_SEARCH_RESULT_GROUPEDLISTVIEW" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="86.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SEARCH_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDL_SEARCH_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="76.0" x="0.0" y="0.0"/>
+    </Label>
+</Scene>
diff --git a/res/screen-size-normal/IDL_SETTINGS_FORM.xml b/res/screen-size-normal/IDL_SETTINGS_FORM.xml
new file mode 100755 (executable)
index 0000000..087737f
--- /dev/null
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201310251600" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_SETTINGS_FORM">
+        <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+        <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet>
+            <footerItem accessibilityHint="" actionId="106" disabledIconPath="" highlightedIconPath="" normalIconPath="" pressedIconPath="" selectedIconPath="" text="::IDS_MA_HEADER_ADD_ACCOUNT"/>
+        </itemSet>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="::IDS_EMAIL_HEADER_EMAIL_SETTINGS" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <ScrollPanel id="IDC_COLOR_PICKER_SCROLLPANEL" parent="IDL_SETTINGS_FORM">
+        <property autoResizingEnabled="true" backgroundColor="" backgroundColorOpacity="0" clientAreaHeight="0" clientAreaWidth="0" pageScrollEnabled="false" scrollBarVisible="true" scrollDirection="SCROLL_PANEL_SCROLL_DIRECTION_VERTICAL" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION"/>
+        <panelLayout height="395.0" mode="Portrait" width="720.0"/>
+        <panelLayout height="200.0" mode="Landscape" width="1280.0"/>
+        <layout bottomRelation="IDL_SETTINGS_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="336.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SETTINGS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_SETTINGS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="788.0"/>
+        <layout bottomRelation="IDL_SETTINGS_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="200.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SETTINGS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_SETTINGS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="429.0"/>
+    </ScrollPanel>
+    <ColorPicker id="IDC_COLOR_PICKER" parent="IDC_COLOR_PICKER_SCROLLPANEL">
+        <layout bottomRelation="IDC_COLOR_PICKER_SCROLLPANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="336.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_COLOR_PICKER_SCROLLPANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDC_COLOR_PICKER_SCROLLPANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_COLOR_PICKER_SCROLLPANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="688.0" x="16.0" y="0.0"/>
+        <layout bottomRelation="IDC_COLOR_PICKER_SCROLLPANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="true" centerVertical="false" height="336.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_COLOR_PICKER_SCROLLPANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDC_COLOR_PICKER_SCROLLPANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_COLOR_PICKER_SCROLLPANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1248.0" x="16.0" y="0.0"/>
+    </ColorPicker>
+    <Panel id="IDC_PANEL" parent="IDL_SETTINGS_FORM">
+        <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+        <layout bottomRelation="IDC_COLOR_PICKER_SCROLLPANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SETTINGS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_SETTINGS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="733.0"/>
+        <layout bottomRelation="IDC_COLOR_PICKER_SCROLLPANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="55.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SETTINGS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_SETTINGS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="374.0"/>
+    </Panel>
+    <Button id="IDC_DONE_BUTTON" parent="IDC_PANEL">
+        <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="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_EMAIL_SK3_DONE" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="49.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="1.0" marginLeft="10.0" marginRight="10.0" marginTop="5.0" mode="Portrait" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="150.0" x="560.0" y="5.0"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="50.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="10.0" marginRight="10.0" marginTop="5.0" mode="Landscape" rightRelation="IDC_PANEL" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="150.0" x="1120.0" y="5.0"/>
+    </Button>
+    <Button id="IDC_CANCEL_BUTTON" parent="IDC_PANEL">
+        <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="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="::IDS_EMAIL_SK3_CANCEL" textSize="32.0" verticalAlign="ALIGN_MIDDLE"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="49.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="1.0" marginLeft="10.0" marginRight="10.0" marginTop="5.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="150.0" x="10.0" y="5.0"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="50.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDC_PANEL" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="10.0" marginRight="10.0" marginTop="5.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="150.0" x="10.0" y="5.0"/>
+    </Button>
+    <Label id="IDC_SELECTED_COLOR_LABEL" parent="IDC_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"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="50.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="5.0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="279.0" y="5.0"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="50.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="5.0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="IDC_PANEL" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="90.0" x="504.0" y="5.0"/>
+    </Label>
+    <SectionTableView id="IDC_SECTIONTABLEVIEW" parent="IDL_SETTINGS_FORM">
+        <property backgroundColor="" backgroundColorOpacity="0" fastScrollIndex="" groupedLookEnabled="true" itemDivider="true" itemDividerColor="" scrollBarStyle="TABLE_VIEW_SCROLL_BAR_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sectionColor="" useSearchIcon="false"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="728.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SETTINGS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="5.0" mode="Portrait" rightRelation="IDL_SETTINGS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_SETTINGS_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="5.0"/>
+        <layout bottomRelation="IDC_PANEL" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_TOP" centerHorizontal="false" centerVertical="false" height="374.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SETTINGS_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_SETTINGS_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_SETTINGS_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </SectionTableView>
+</Scene>
diff --git a/res/screen-size-normal/IDL_SETUP_MAILBOX_FORM.xml b/res/screen-size-normal/IDL_SETUP_MAILBOX_FORM.xml
new file mode 100755 (executable)
index 0000000..d638e44
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201307091413" Dversion="20120315">
+    <LogicalCoordinate>720</LogicalCoordinate>
+    <Form id="IDL_SETUP_MAILBOX_FORM">
+        <property backgroundColor="" 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 mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+        <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER|FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE" type="LAYOUT_RELATIVE"/>
+    </Form>
+    <Footer>
+        <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" showMenuButton="false"/>
+        <itemSet/>
+    </Footer>
+    <Header>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
+        <itemSet/>
+    </Header>
+    <ListView id="IDC_SETUP_MAILBOX_LISTVIEW" parent="IDL_SETUP_MAILBOX_FORM">
+        <property backgroundBitmapPath="" backgroundColor="#FFFFFF" backgroundColorOpacity="0" bitmapPathOfEmptyList="" colorOfEmptyListText="#000000" itemDivider="true" itemDividerColor="" listScrollStyle="SCROLL_STYLE_FADE_OUT" scrollInputMode="SCROLL_INPUT_MODE_ALLOW_ANY_DIRECTION" sweepEnabled="false" textOfEmptyList=""/>
+        <layout bottomRelation="IDL_SETUP_MAILBOX_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="1026.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SETUP_MAILBOX_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Portrait" rightRelation="IDL_SETUP_MAILBOX_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_SETUP_MAILBOX_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="720.0" x="0.0" y="0.0"/>
+        <layout bottomRelation="IDL_SETUP_MAILBOX_FORM" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="544.0" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="IDL_SETUP_MAILBOX_FORM" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0.0" marginLeft="0.0" marginRight="0.0" marginTop="0.0" mode="Landscape" rightRelation="IDL_SETUP_MAILBOX_FORM" rightRelationType="RECT_EDGE_RELATION_RIGHT_TO_RIGHT" topRelation="IDL_SETUP_MAILBOX_FORM" topRelationType="RECT_EDGE_RELATION_TOP_TO_TOP" verticalFitPolicy="FIT_POLICY_FIXED" width="1280.0" x="0.0" y="0.0"/>
+    </ListView>
+</Scene>
diff --git a/res/slk-SK.xml b/res/slk-SK.xml
new file mode 100755 (executable)
index 0000000..60750af
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Ponechať na servri</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Zrušiť ozn. ako obľ.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Odchádzajúce</text>
+    <text id="IDS_COM_POP_CLOSE">Zavrieť</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Odoslať e-mail</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port servera odchádzajúcej pošty</text>
+    <text id="IDS_COM_POP_DELETE_Q">Odstrániť?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Priečinky</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Zobraziť</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Pridať polia Kópia a Skrytá kópia</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Kópia/skrytá kópia</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Žiadny obsah</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Zabezpečenie</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Preposlať so súbormi</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Nedá sa priložiť. Maximálny počet súborov je %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Nastavenia prichádzajúcej pošty</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Včera</text>
+    <text id="IDS_COM_SK_NEXT">Ďalej</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Zoznam poštových schránok</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Schránka pre nevyžiadanú poštu</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Odoslané</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Konto už existuje</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Všetky e-maily</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Odpoveď</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Príjemca</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Typ servera prichádzajúcej pošty</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Neplatná e-mailová adresa</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Presun.</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Pridať adresu</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Žiadny vybratý e-mail</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Odstrániť všetko</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Presúvanie...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresa</text>
+    <text id="IDS_COM_POP_ERROR">Chyba</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Zrušiť</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Predvolené odosielacie konto</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Nastavenie účtu</text>
+    <text id="IDS_EMAIL_OPT_ALL">Všetko</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Zabezpečené pripojenie</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Varovanie</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Nedávne</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Odoslané</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Doručené</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Všetky kontá</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokovať e-maily</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Označ. všetko ako</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Vždy poslať skrytú kópiu mne</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Pridať podpis</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Dôležité</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port servera prichádzajúcej pošty</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Odstrániť</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Nastaviť ako obľúbené</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Vymazanie sa nepodarilo</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Nedá sa priložiť. Maximálna veľkosť súborov je %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Stiahnuť celú správu</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Zobraziť heslo</text>
+    <text id="IDS_EMAIL_OPT_DATE">Dátum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Odosielateľ</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Prečítané</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Dnes</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Účet</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Nastavenia</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Predmet</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manuálne nastavenie</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Ostatné</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Nepoužité</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Zobraziť všetky priečinky</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Zobraziť e-maily</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Pripojiť</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Odstraňovanie...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Správa</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Zrušiť ozn. ako obľ.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Hotovo</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Odpovedať odosielateľovi</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Komu</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Nastavenia e-mailu</text>
+    <text id="IDS_EMAIL_POP_ALERT">Upozornenie</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Odstrániť všetko?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Koncepty</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">Prílohy: %d</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Odpovedať s telom správy</text>
+    <text id="IDS_EMAIL_BODY_BCC">Bcc</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Server odchádzajúcej pošty</text>
+    <text id="IDS_COM_OPT_SELECTED">Vybrané</text>
+    <text id="IDS_COM_BODY_SEND">Odoslať</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Označiť ako neprečítané</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Odoslané zo služby Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Hľadať</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Užívateľské meno</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Nastavenie poštovej schránky</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Uložiť do konceptov?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Pridať do kalendára</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Žiadna adresa</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Minulý týždeň</text>
+    <text id="IDS_COM_POP_PASSWORD">Heslo</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Staršie</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nepridali sa žiadni príjemcovia. Zadajte príjemcov</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Napísať</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Pridať do kontaktu</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-mailová adresa</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Presunutie sa nepodarilo</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Overuje sa konto...</text>
+    <text id="IDS_COM_SK_ADD">Pridať</text>
+    <text id="IDS_COM_SK_MORE">Ďalšie</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-mail</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Označiť ako prečítané</text>
+    <text id="IDS_EMAIL_BODY_CC">CC</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Pridať predmet</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Kôš</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Žiadny text</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Odpoved. všetkým</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Konto sa nedá pridať</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Názov</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Pridať kontá</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Obľúbené</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">E-mail sa nedá odoslať</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Žiadny predmet</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Nastavenia odchádzajúcej pošty</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Neprečítané</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Server prichádzajúcej pošty</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Podpis</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Pripojiť súbory</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Nast. všetko ako</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokovať</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Už existuje</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Preposlať</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Už zablokované</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Všetky údaje týkajúce sa tohto konta sa vymažú. Pokračovať?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Názov účtu</text>
+    <text id="IDS_COM_SK_UPDATE">Aktualizovať</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Dosiahol sa maximálny počet príjemcov (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Bol dosiahnutý maximálny počet znakov</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Sťahuje sa príloha...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Nedá sa stiahnuť</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Pridať konto</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Nedostatok pamäte</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Nedá sa uložiť do Konceptov</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Duplicitný príjemca</text>
+</string_table>
diff --git a/res/slv-SI.xml b/res/slv-SI.xml
new file mode 100755 (executable)
index 0000000..881ebfe
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Obdrži v strežniku</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Odstr. ozn. priljub.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Izhodna pošta</text>
+    <text id="IDS_COM_POP_CLOSE">Zapri</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Pošlji e-pošto</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Odhodna vrata</text>
+    <text id="IDS_COM_POP_DELETE_Q">Izbrišem?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Mape</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Poglej</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Dodaj Kp/Skp</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Kp/Skp</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Ni vsebine</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Varnost</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Posreduj z datotekami</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Ni mogoče priložiti. Največje dovoljeno število datotek je %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Dohodne nastavitve</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Včeraj</text>
+    <text id="IDS_COM_SK_NEXT">Naprej</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Seznam poštnega predala</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Neželena pošta</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Poslana sporočila</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Račun že obstaja</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Vsa e-pošta</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Odgovori</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Prejemnik</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Vrsta dohodnega poštnega strežnika</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Neveljaven e-poštni naslov</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Premik</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Dodaj naslov</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Ni izbrane e-pošte</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Izbriši vse</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Premikam</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Naslov</text>
+    <text id="IDS_COM_POP_ERROR">Napaka</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Prekliči</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Privzeti račun za pošiljanje</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Nastavitve računa</text>
+    <text id="IDS_EMAIL_OPT_ALL">Vse</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Varna povezava</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Opozorilo</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Nedavno</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Poslano</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Prejeto</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Vsi računi</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokiraj e-pošto</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Označi vse kot</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">V polje Skp vedno dodaj mene</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Dodaj podpis</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Pomembno</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Dohodna vrata</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Izbriši</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Nas. kot priljubljene</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Brisanje ni uspelo</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Ni mogoče priložiti. Največja dovoljena velikost datotek je %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Prenos celotnega sporočila</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Prikaži geslo</text>
+    <text id="IDS_EMAIL_OPT_DATE">Datum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Pošiljatelj</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Prebrano</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Danes</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Račun</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Nastavitve</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Zadeva</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Ročna nastavitev</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Drugo</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Ni v uporabi</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Pokaži vse mape</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Pokaži e-pošto</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Dodaj</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Brišem</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Sporočilo</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Odstr. ozn. priljub.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Končano</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Odgovori pošiljatelju</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Za</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Nastavitve e-pošte</text>
+    <text id="IDS_EMAIL_POP_ALERT">Opozorilo</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Brišem vse?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Osnutki</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d prilog</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Odgovori s prvotnim spor.</text>
+    <text id="IDS_EMAIL_BODY_BCC">SKP</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Odhodni strežnik</text>
+    <text id="IDS_COM_OPT_SELECTED">Izbrano</text>
+    <text id="IDS_COM_BODY_SEND">Pošlji</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Označi kot neprebrano</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Poslano iz Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Iskanje</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Uporabniško ime</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Nastavitev poštnega predala</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Shrani v Osnutke.</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Dodaj v koledar</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Ni naslova</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Zadnji teden</text>
+    <text id="IDS_COM_POP_PASSWORD">Geslo</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Staro</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Ni dodanih prejemnikov. Vnesite prejemnike.</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Sestavi</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Dodaj v stike</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-poštni naslov</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Premikanje ni uspelo</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Potrjujem račun ...</text>
+    <text id="IDS_COM_SK_ADD">Dodaj</text>
+    <text id="IDS_COM_SK_MORE">Več</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-pošta</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Označi kot prebrano</text>
+    <text id="IDS_EMAIL_BODY_CC">Kp</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Dodaj zadevo</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Smeti</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Ni besedila</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Odgovori vsem</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Ni mogoče dodati računa</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Naslov</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Dodaj račune</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Priljubljene</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Ni mogoče poslati e-pošte</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Ni zadeve</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Odhodne nastavitve</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Neprebrano</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Dohodni strežnik</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Podpis</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Priloži datoteke</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Nastavi vse kot</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokiraj</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Že obstaja</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Posreduj</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Že blokirano</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Vsi podatki, povezani s tem računom, bodo izbrisani. Nadaljujem?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Ime računa</text>
+    <text id="IDS_COM_SK_UPDATE">Posodobitev</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Doseženo je največje dovoljeno število prejemnikov (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Doseženo je največje dovoljeno število znakov</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Prenos priloge ...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Ni mogoče prenesti</text>
+<text id="IDS_COM_SK_OK">V redu</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Dodaj račun</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Ni dovolj pomnilnika</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Ni mogoče shraniti v osnutke</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Prejemnik je podvojen</text>
+</string_table>
diff --git a/res/spa-ES.xml b/res/spa-ES.xml
new file mode 100755 (executable)
index 0000000..bce2af1
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Mantener en el servidor</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Quitar de favoritos</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Salida</text>
+    <text id="IDS_COM_POP_CLOSE">Cerrar</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Enviar correo electrónico</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Puerto saliente</text>
+    <text id="IDS_COM_POP_DELETE_Q">¿Eliminar?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Carpetas</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Ver</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Añadir Cc/Cco</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">CC/CCO</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">No hay contenido</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Seguridad</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Reenviar con archivos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">No se puede adjuntar. El número máximo de archivos es de %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Ajustes entrantes</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Ayer</text>
+    <text id="IDS_COM_SK_NEXT">Siguiente</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Lista buzones de correo</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Correo no deseado</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Enviados</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">La cuenta ya existe</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Todos los correos</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Responder</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinatario</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tipo de servidor de correo electrónico entrante</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Dirección de correo electrónico no válida</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Mover</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Añadir dirección</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">No se ha seleccionado ningún email</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Eliminar todo</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Moviendo...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Dirección</text>
+    <text id="IDS_COM_POP_ERROR">Error</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancelar</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Cuenta de envío predeterminada</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Ajustes de cuenta</text>
+    <text id="IDS_EMAIL_OPT_ALL">Todas</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Conexión segura</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Aviso</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Reciente</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Enviado</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Entrada</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Todas las cuentas</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloquear mensajes de correo electrónico</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Marcar todo como</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Copiarme siempre en copia oculta</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Añadir firma</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Importante</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Puerto entrante</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Eliminar</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Def como Favoritos</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Error al borrar</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">No se puede adjuntar. El tamaño máximo de archivos es de %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Descargar mensaje completo</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Mostrar contraseña</text>
+    <text id="IDS_EMAIL_OPT_DATE">Fecha</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Remitente</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Leídos</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Hoy</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Cuenta</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Ajustes</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Asunto</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configuración manual</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Otros</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">No usado</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Mostrar todas las carpetas</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Mostrar correos electrónicos</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Adjuntar</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Eliminando...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mensajes</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Quitar de favoritos</text>
+    <text id="IDS_EMAIL_SK3_DONE">Final.</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Responder al remitente</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Para</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Ajustes de email</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alerta</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">¿Eliminar todo?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Borradores</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d archivos adjuntos</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Responder con cuerpo</text>
+    <text id="IDS_EMAIL_BODY_BCC">Cco</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Servidor saliente</text>
+    <text id="IDS_COM_OPT_SELECTED">Seleccionado</text>
+    <text id="IDS_COM_BODY_SEND">Enviar</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marcar como no leído</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Enviado de Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Buscar</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nombre de usuario</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configuración del buzón de correo</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">¿Guardar en Borradores?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Añadir a calendario</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Sin dirección</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Última semana</text>
+    <text id="IDS_COM_POP_PASSWORD">Contraseña</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Más antiguo</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">No se han añadido destinatarios. Introduzca destinatarios</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Crear</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Añadir a contacto</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Dirección de correo electrónico</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Error al mover</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validando cuenta...</text>
+    <text id="IDS_COM_SK_ADD">Añadir</text>
+    <text id="IDS_COM_SK_MORE">Más</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Correo electrónico</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marcar como leído</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Añadir asunto</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Papelera</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Sin texto</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Responder  todos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">No se puede añadir cuenta</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Título</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Añadir cuentas</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoritos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">No se puede enviar el correo electrónico</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Sin asunto</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Ajustes salientes</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">No leídos</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Servidor entrante</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Firma</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Adjuntar archivos</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Definir todo como</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloquear</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Ya existe</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Reenviar</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Ya bloqueado</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Se eliminarán todos los datos relacionados con esta cuenta. ¿Continuar?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nombre de cuenta</text>
+    <text id="IDS_COM_SK_UPDATE">Actualizar</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Alcanzado el número máximo de destinatarios (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Alcanzado el número máximo de caracteres</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Descargando adjunto...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">No se puede descargar</text>
+<text id="IDS_COM_SK_OK">Aceptar</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Añadir cuenta</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">No hay suficiente memoria</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">No se puede guardar en Borradores</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinatario duplicado</text>
+</string_table>
diff --git a/res/spa-MX.xml b/res/spa-MX.xml
new file mode 100755 (executable)
index 0000000..dd0cec6
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Guardar en servidor</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Desmarcar como fav.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Buzón de salida</text>
+    <text id="IDS_COM_POP_CLOSE">Cerrar</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Enviar correo</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Puerto saliente</text>
+    <text id="IDS_COM_POP_DELETE_Q">¿Eliminar?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Carpetas</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Ver</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Añadir CC/CCO</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">CC/CCO</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">No hay contenido</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Seguridad</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Reenviar con adjuntos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">No se puede adjuntar. El número máximo de archivos es de %d.</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Configuración entrante</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Ayer</text>
+    <text id="IDS_COM_SK_NEXT">Siguiente</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Lista de casilla de corr.</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spam</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Enviados</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">La cuenta ya existe</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Todo el correo </text>
+    <text id="IDS_EMAIL_OPT_REPLY">Responder</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Destinatario</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tipo de servidor de correo entrante</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Dirección de correo no válida</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Mover</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Añadir dirección</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">No se ha seleccionado ningún correo</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Eliminar todo</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Moviendo…</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Dirección</text>
+    <text id="IDS_COM_POP_ERROR">Error</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Cancelar</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Cuenta de envío predeterminada</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Configuración de cuenta</text>
+    <text id="IDS_EMAIL_OPT_ALL">Todo</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Conexión segura</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Aviso</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Reciente</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Enviado</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Buzón de entrada</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Todas las cuentas</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Bloquear correos </text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Marcar todo como</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Copiarme siempre en CCO</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Añadir firma</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Importante</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Puerto entrante</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Eliminar</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Estab. como Favoritos</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Error al eliminar</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">No se puede adjuntar. El tamaño máximo de archivos es de %d MB.</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Descargar mensaje completo</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Mostrar contraseña</text>
+    <text id="IDS_EMAIL_OPT_DATE">Fecha</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Remitente</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Leído</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Hoy</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Cuentas</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Configuración</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Asunto</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Configuración manual</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Otros</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Sin utilizar</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Mostrar todas las carpetas</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Mostrar correos</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Adjuntar</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Eliminando...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mensaje</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Desmarcar como fav.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Realizado</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Responder al remitente</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">A</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Config. de correo</text>
+    <text id="IDS_EMAIL_POP_ALERT">Alerta</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">¿Eliminar todo?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Borrador</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d adjuntos</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Incluir mensaje al responder</text>
+    <text id="IDS_EMAIL_BODY_BCC">CCO</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Servidor saliente</text>
+    <text id="IDS_COM_OPT_SELECTED">Seleccionado</text>
+    <text id="IDS_COM_BODY_SEND">Enviar</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Marcar como no leído</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Enviado desde Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Buscar</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Nombre de usuario</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Configuración de casilla de correo</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">¿Guardar en Borrador?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Añadir a calendario</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Sin dirección</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Última semana</text>
+    <text id="IDS_COM_POP_PASSWORD">Contraseña</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Más antiguo</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">No se han añadido destinatarios. Introducir destinatarios</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Crear</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Añadir a contacto</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Dirección de correo</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Error al mover</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validando cuenta...</text>
+    <text id="IDS_COM_SK_ADD">Añadir</text>
+    <text id="IDS_COM_SK_MORE">Más</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Correo</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Marcar como leído</text>
+    <text id="IDS_EMAIL_BODY_CC">CC</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Añadir asunto</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Papelera</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Sin texto</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Responder a todos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">No se puede añadir cuenta</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Título</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Añadir cuentas</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoritos</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">No se puede enviar correo</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Sin asunto</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Configuración saliente</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">No leídos</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Servidor entrante</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Firma</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Adjuntar archivos</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Conf. todo como</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloquear</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Ya existe</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Reenviar</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Ya bloqueado</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Se eliminarán todos los datos relacionados con esta cuenta. ¿Continuar?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Nombre de la cuenta</text>
+    <text id="IDS_COM_SK_UPDATE">Actualizar</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Se ha alcanzado el número máximo de destinatarios (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Se ha alcanzado el número máximo de caracteres</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Descargando adjunto...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">No se puede descargar</text>
+<text id="IDS_COM_SK_OK">Aceptar</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Añadir cuenta</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Memoria insuficiente</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">No se puede guardar en Borrador</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Destinatario duplicado</text>
+</string_table>
diff --git a/res/srp-RS.xml b/res/srp-RS.xml
new file mode 100755 (executable)
index 0000000..d3fb107
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Čuvati na serveru</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Ozn. kao neomiljene</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Otpremno sanduče</text>
+    <text id="IDS_COM_POP_CLOSE">Zatvori</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Pošalji e-poruku</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Port odlazne pošte</text>
+    <text id="IDS_COM_POP_DELETE_Q">Obriši?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Folderi</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Prikaži</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Dodaj Cc/Bcc</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Nema sadržaja</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Bezbednost</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Prosledi sa fajlovima</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Nemoguće priložiti. Maksimalan broj fajlova je %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Dolazna podešavanja</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Juče</text>
+    <text id="IDS_COM_SK_NEXT">Naredna</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Lista sandučeta</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Sanduče za spam</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Poslate poruke</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Nalog već postoji</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Sve e-poruke</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Odgovori</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Primalac</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Tip servera dolazne pošte</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Neispravna adresa e-pošte</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Premesti</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Dodaj adresu</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Nema izabranih e-poruka</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Obriši sve</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Premeštanje</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adresa</text>
+    <text id="IDS_COM_POP_ERROR">Greška</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Poništi</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Podrazumevani nalog za slanje</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Podešavanja naloga</text>
+    <text id="IDS_EMAIL_OPT_ALL">Sve</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Bezbedna veza</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Upozorenje</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Nedavno</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Poslato</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Prijemno sanduče</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Svi nalozi</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blokiraj e-poruke</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Ozn. sve kao</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Uvek mi šalji skrivenu kopiju</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Dodaj potpis</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Važno</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Port dolazne pošte</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Obriši</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Postavi kao omiljene</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Brisanje neuspešno</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Nemoguće priložiti. Maks. veličina fajlova je %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Preuzmi celu poruku</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Prikaži šifru</text>
+    <text id="IDS_EMAIL_OPT_DATE">Datum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Pošiljalac</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Pročitano</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Danas</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Nalog</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Podešavanja</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Naslov</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Ručno konfigurisanje</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Ostalo</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Ne koristi se</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Prikaži sve foldere</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Prikaži e-poruke</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Priloži</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Brisanje...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Poruka</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Ozn. kao neomiljene</text>
+    <text id="IDS_EMAIL_SK3_DONE">Gotovo</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Odgovori pošiljaocu</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Za</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Podešav. e-pošte</text>
+    <text id="IDS_EMAIL_POP_ALERT">Upozorenje</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Obriši sve?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Skice</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d priloga</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Odgovori sa telom poruke</text>
+    <text id="IDS_EMAIL_BODY_BCC">Nevid. kopija</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Server odlazne pošte</text>
+    <text id="IDS_COM_OPT_SELECTED">Označeno</text>
+    <text id="IDS_COM_BODY_SEND">Pošalji</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Označi kao nepročitano</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Poslato iz Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Pretraži</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Korisničko ime</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Konfiguracija sandučeta</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Sačuvaj u Skice?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Dodaj u kalendar</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Nema adrese</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Zadnja nedelja</text>
+    <text id="IDS_COM_POP_PASSWORD">Šifra</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Starije</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Nisu dodati primaoci. Unesi primaoce</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Sastavi</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Dodaj u kontakte</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Adresa e-pošte</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Premeštanje neuspešno</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Provera naloga...</text>
+    <text id="IDS_COM_SK_ADD">Dodaj</text>
+    <text id="IDS_COM_SK_MORE">Još</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-pošta</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Označi kao pročitano</text>
+    <text id="IDS_EMAIL_BODY_CC">Kopija</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Dodaj naslov</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Smeće</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Nema teksta</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Odgovori svima</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Nemoguće dodati nalog</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Naslov</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Dodaj naloge</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Omiljeni</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Nemoguće poslati e-poruku</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Nema naslova</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Podešavanja odlazne pošte</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Nepročitano</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Server dolazne pošte</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Potpis</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Priloži fajlove</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Postavi sve kao</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blokiraj</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Već postoji</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Prosledi</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Već blokirano</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Biće obrisani svi podaci povezani sa ovim nalogom. Nastavak?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Naziv naloga</text>
+    <text id="IDS_COM_SK_UPDATE">Ažuriraj</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Dostignut maksimalan broj primalaca (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Dostignut maksimalan broj karaktera</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Preuzimanje priloga...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Ne može se preuzeti</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Dodaj nalog</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Nedovoljna memorija</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Nemoguće sačuvati u Skice</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Primalac dupliran</text>
+</string_table>
diff --git a/res/swe-SE.xml b/res/swe-SE.xml
new file mode 100755 (executable)
index 0000000..3eb9bf5
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Behåll på server</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Avmarkera som fav.</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Utgående</text>
+    <text id="IDS_COM_POP_CLOSE">Stäng</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Skicka e-post</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Utgående port</text>
+    <text id="IDS_COM_POP_DELETE_Q">Radera?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Mappar</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Visa</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Lägg till kopia/hemlig kopia</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Kopia/hemlig kopia</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Inget innehåll</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Säkerhet</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Vidarebefordra med filer</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Det går inte att bifoga. Högsta antal filer är %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Inställningar för inkommande</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Igår</text>
+    <text id="IDS_COM_SK_NEXT">Nästa</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Lista för brevlåda</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Skräppost</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Skickat</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Kontot finns redan</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">All e-post</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Svara</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Mottagare</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Servertyp för inkommande e-post</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Ogiltig e-postadress</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Flytta</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Lägg till adress</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Ingen e-post har valts</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Radera alla</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Flyttar...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adress</text>
+    <text id="IDS_COM_POP_ERROR">Fel</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Avbryt</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Standardkonto för sändning</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Kontoinställningar</text>
+    <text id="IDS_EMAIL_OPT_ALL">Allt</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Säker anslutning</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Varning</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Senaste</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Sänt</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Inkomna</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Alla konton</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Blockera e-post</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Markera alla som</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Alltid hemlig kopia till mig själv</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Lägg till signatur</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Viktigt</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Inkommande port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Radera</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Ange som favoriter</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Radering misslyckades</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Det går inte att bifoga. Högsta filstorlek är %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Hämta hela meddelandet</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Visa lösenord</text>
+    <text id="IDS_EMAIL_OPT_DATE">Datum</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Avsändare</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Lästa</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Idag</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Konto</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Inställningar</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Rubrik</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manuell inställning</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Annat</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Används inte</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Visa alla mappar</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Visa e-postmeddelanden</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Bifoga</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Raderar...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Meddelande</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Avmarkera som fav.</text>
+    <text id="IDS_EMAIL_SK3_DONE">Klar</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Svar till avsändaren</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Till</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-postinställn.</text>
+    <text id="IDS_EMAIL_POP_ALERT">Varning</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Radera alla?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Utkast</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d bilagor</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Svara med originaltext</text>
+    <text id="IDS_EMAIL_BODY_BCC">Hemlig kopia</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Utgående server</text>
+    <text id="IDS_COM_OPT_SELECTED">Markerade</text>
+    <text id="IDS_COM_BODY_SEND">Skicka</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Markera som oläst</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Skickat från min Samsung Mobil</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Sök</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Användarnamn</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Installera brevlåda</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Spara i Utkast</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Lägg till i kalendern</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Ingen adress</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Förra veckan</text>
+    <text id="IDS_COM_POP_PASSWORD">Lösenord</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Äldre</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Inga mottagare har lagts till. Lägg till mottagare</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Skriv</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Lägg till till kontakt</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-postadress</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Det gick inte att flytta</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Validerar konto...</text>
+    <text id="IDS_COM_SK_ADD">Lägg till</text>
+    <text id="IDS_COM_SK_MORE">Mer</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-post</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Markera som läst</text>
+    <text id="IDS_EMAIL_BODY_CC">Cc</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Lägg till ämne</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Papperskorg</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Ingen text</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Svara alla</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Det går inte att lägga till konto</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Rubrik</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Lägg till konton</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favoriter</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Det går inte att skicka e-post</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Ingen rubrik</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Inställningar för utgående</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Oläst</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Inkommande server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Signatur</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Bifoga filer</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Ange alla som</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Blockera</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Finns redan</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Vidarebefordra</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Redan spärrad</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Alla data som hänför sig till det här kontot raderas. Fortsätta?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Kontonamn</text>
+    <text id="IDS_COM_SK_UPDATE">Uppdatera</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Högsta antalet mottagare (%d) har uppnåtts</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Maximalt antal tecken har använts</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Hämtar bilaga...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Det går inte att hämta</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Lägg till konto</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Minnet fullt</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Det går inte att spara i Utkast</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Mottagare finns redan</text>
+</string_table>
diff --git a/res/tur-TR.xml b/res/tur-TR.xml
new file mode 100755 (executable)
index 0000000..f3ded49
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Sunucuda sakla</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Favorilerden kaldır</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Giden kutusu</text>
+    <text id="IDS_COM_POP_CLOSE">Kapat</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">E-posta gönder</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Giden bağlantı noktası</text>
+    <text id="IDS_COM_POP_DELETE_Q">Sil?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Klasörler</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Göster</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Cc/Bcc ekle</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Cc/Bcc</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">İçerik yok</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Güvenlik</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Dosyalar ile ilet</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Eklenemiyor. Maksimum dosya sayısı %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Gelen e-posta ayarları</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Dün</text>
+    <text id="IDS_COM_SK_NEXT">İleri</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Posta kutusu listesi</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spam kutusu</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Gönderilenler kutusu</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Hesap zaten var</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Tüm e-postalar</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Cevapla</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Alıcı</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Gelen posta sunucusu türü</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Geçersiz e-posta adresi</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Taşı</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Adres ekle</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Hiçbir e-posta seçili değil</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Tümünü sil</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Taşıyor...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Adres</text>
+    <text id="IDS_COM_POP_ERROR">Hata</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">İptal</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Varsayılan gönderme hesabı</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Hesap ayarları</text>
+    <text id="IDS_EMAIL_OPT_ALL">Hepsi</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Güvenli bağlantı</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Uyarı</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Yakın</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Gönderildi</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Gelen kutusu</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Tüm hesaplar</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">E-postaları engelle</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Tümn şöyle işartl</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Kendimi her zaman Bcc’ye ekle</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">İmza ekle</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Önemli</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Gelen bağlantı noktası</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Sil</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Favoriler olarak ayarla</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Silinemedi</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Eklenemiyor. Maksimum dosya boyutu %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Tam mesajı indirin</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Parolayı göster</text>
+    <text id="IDS_EMAIL_OPT_DATE">Tarih</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Gönderen</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Okunmuş</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Bugün</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Hesap</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Ayarlar</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Konu</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Manuel kurulum</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Diğerleri</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Kullanılmıyor</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Tüm dosyaları göster</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">E-postaları göster</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Ekle</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Siliniyor...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Mesaj</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Favorilerden kaldır</text>
+    <text id="IDS_EMAIL_SK3_DONE">Kaydet</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Göndereni cevapla</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Alıcı</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-Posta ayarları</text>
+    <text id="IDS_EMAIL_POP_ALERT">Uyarı</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Tümü silinsin mi?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Taslaklar</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d ek</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Gövde ile yanıtla</text>
+    <text id="IDS_EMAIL_BODY_BCC">Gizli</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Giden sunucu</text>
+    <text id="IDS_COM_OPT_SELECTED">Seçili</text>
+    <text id="IDS_COM_BODY_SEND">Gönder</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Okunmadı olarak işaretle</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Samsung Mobile tarafından gönderildi</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Buluyor</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Kullanıcı adı</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Posta kutusu kurulumu</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Taslaklara kaydedilsin mi?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Takvime Ekle</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Adres yok</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">son hafta</text>
+    <text id="IDS_COM_POP_PASSWORD">Şifre</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Daha eski</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Alıcı eklenemedi. Alıcı girin</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Yaz</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Rehbere ekle</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-posta adresi</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Taşıma başarısız</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Hesap doğrulanıyor...</text>
+    <text id="IDS_COM_SK_ADD">Ekle</text>
+    <text id="IDS_COM_SK_MORE">Diğer</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-posta</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Okundu olarak işaretle</text>
+    <text id="IDS_EMAIL_BODY_CC">Bilgi</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Konu ekleyin</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Çöp kutusu</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Metin yok</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Tümünü yanıtla</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Hesaba eklenemiyor</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Başlık</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Hesapları ekle</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Favorilerim</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">E-posta gönderilemiyor</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Konu yok</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Giden e-posta ayarları</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Okunmadı</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Gelen sunucu</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">İmza</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Dosya ekle</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Tümünü şöyle ayrl</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Engelle</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Zaten var</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">İlet</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Zaten engellendi</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Bu hesapla ilgili tüm veriler silinecek. Devam edilsin mi?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Hesap adı</text>
+    <text id="IDS_COM_SK_UPDATE">Güncelle</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Maksimum alıcı sayısına (%d) ulaşıldı</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Maksimum karakter sayısına ulaşıldı</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Ek indiriliyor...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">İndirilemiyor</text>
+<text id="IDS_COM_SK_OK">Tamam</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Hesap ekle</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Yeterli hafıza yok</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Taslaklara kaydedilemiyor</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Çoğaltılan alıcı</text>
+</string_table>
diff --git a/res/ukr-UA.xml b/res/ukr-UA.xml
new file mode 100755 (executable)
index 0000000..891c7c2
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Зберігати на сервері</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Зняти позн. "Обране"</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Вихідні</text>
+    <text id="IDS_COM_POP_CLOSE">Закрити</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">Надіслати Email</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Вихідний порт</text>
+    <text id="IDS_COM_POP_DELETE_Q">Видалити?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Папки</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Переглянути</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Копія/Прих.к.</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">К./Пр.к.</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Немає вмісту</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Безпека</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Переслати з файлами</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Неможливо вкласти. Максимальна кількість файлів становить %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Установки вхідної пошти</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Вчора</text>
+    <text id="IDS_COM_SK_NEXT">Далі</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Список поштових скриньок</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Скринька Спам</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Надіслані</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Обліковий запис вже існує</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Всі Email-повідомлення</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Відповісти</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Одержувач</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Тип сервера вхідної пошти</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Хибна адреса Email</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Переміст.</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Додати адресу</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Не вибрано жодного повідомлення Email</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Видалити всі</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Переміщення...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Адреса</text>
+    <text id="IDS_COM_POP_ERROR">Помилка</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Скасувати</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Стандартний обліковий запис для надсилання</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Установки облікового запису</text>
+    <text id="IDS_EMAIL_OPT_ALL">Всі</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Безпечне з'єднання</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Попередження</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Останні</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Надіслано</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Вхідні</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Усі облікові записи</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">Блокування повідомлень Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Позначити всі як</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">Завжди включати мене у Пр.к.</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Додати підпис</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Важливе</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Вхідний порт</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">Видалити</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Додати до обраного</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Збій видалення</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Неможливо вкласти. Максимальний розмір файлів становить %d КБ</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">Завантажити все повідомлення</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Показати пароль</text>
+    <text id="IDS_EMAIL_OPT_DATE">Дата</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Відправник</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">Прочитано</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Сьогодні</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Обліковий запис</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Установки</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Тема</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Настроювання вручну</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Інші</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Не використовується</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Відображення всіх папок</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">Показати повідомлення Email</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Прикріпити</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">Видалення...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Повідомлення</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Зняти позн. "Обране"</text>
+    <text id="IDS_EMAIL_SK3_DONE">Готово</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Відповісти відправнику</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Кому</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">Установки Email</text>
+    <text id="IDS_EMAIL_POP_ALERT">Попередження</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Видалити всі?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Чернетки</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d вкладень</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Відповідь з текстом</text>
+    <text id="IDS_EMAIL_BODY_BCC">Прих. копія</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Вихідний сервер</text>
+    <text id="IDS_COM_OPT_SELECTED">Вибране</text>
+    <text id="IDS_COM_BODY_SEND">Надіслати</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">Відмітити як непрочитане</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Надіслано із Samsung Mobile</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Пошук</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Ім'я користувача</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Настроювання поштової скриньки</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Зберегти в чернетках?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Додати в календар</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Без адреси</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Останній тиждень</text>
+    <text id="IDS_COM_POP_PASSWORD">Пароль</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Старіша</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Одержувачів не додано. Введіть одержувачів</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Створити</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Додати до контакту</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">Адреса Email</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Збій переміщення</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Перевірка облікового запису...</text>
+    <text id="IDS_COM_SK_ADD">Додати</text>
+    <text id="IDS_COM_SK_MORE">Більше</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">Email</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">Позначити як прочитане</text>
+    <text id="IDS_EMAIL_BODY_CC">Копія</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Додати тему</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Видалені</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Немає тексту</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Відповісти всім</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Неможливо додати обліковий запис</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Назва</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Додати облікові записи</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Обране</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">Неможливо надіслати повідомлення Email</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Немає теми</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Установки вихідної пошти</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">Непрочитані</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Вхідний сервер</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Підпис</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Приєднати файли</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Встановити всі як</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Блокувати</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Вже існує</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Переслати</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Уже заблоковано</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Усі дані, пов'язані з цим обліковим записом, буде видалено. Продовжити?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Назва облікового запису</text>
+    <text id="IDS_COM_SK_UPDATE">Оновити</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Досягнуто максимальної кількості одержувачів (%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Досягнуто максимальної кількості символів</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Завантаження вкладення...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Неможливо завантажити</text>
+<text id="IDS_COM_SK_OK">ОК</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Додати облiковий запис</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Недостатньо пам'яті</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Неможливо зберегти в Чернетках</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Повторення одержувача</text>
+</string_table>
diff --git a/res/uzb-UZ.xml b/res/uzb-UZ.xml
new file mode 100755 (executable)
index 0000000..2437375
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">Serverda saqlash</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">Tnlngn belgi ol/tash</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">Chiquvchilar</text>
+    <text id="IDS_COM_POP_CLOSE">Yopish</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">E-pochta yub.</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">Chiquvchi port</text>
+    <text id="IDS_COM_POP_DELETE_Q">O'chirilsinmi?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">Jildlar</text>
+    <text id="IDS_EMAIL_OPT_VIEW">Ko‘rib chiqish</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">Nusxa/Yashirin nusxa qo‘shish</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">Nusxa/Yashirin nusxa</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">Tarkib yo‘q</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">Xavfsizlik</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">Fayllar b-n bosh/yub.</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">Biriktirib bo‘lmaydi. Fayllarning maksimal soni: %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">Kiruvchi parametrlari</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">Kecha</text>
+    <text id="IDS_COM_SK_NEXT">Keyingi</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">Pochta qutilari ro‘yxati</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">Spam quti</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">Yuborilganlar jildi</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">Hisob qaydnomasi avvaldan mavjud</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">Barcha elektron pochta xabarlari</text>
+    <text id="IDS_EMAIL_OPT_REPLY">Javob berish</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">Oluvchi</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">Kiruvchi pochta serveri turi</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">Noto‘g‘ri e-pochta manzili</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">Ko‘chir.</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">Add address</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">Elektron pochta tanlanmagan</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">Barchasi o'chirish</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">Ko‘chirilmoqda...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">Manzil</text>
+    <text id="IDS_COM_POP_ERROR">Xato</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">Bekor qilish</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Birlamchi o'rnatilgan yuborish hisob qaydnomasi</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">Hisob qaydnomasi parametrlari</text>
+    <text id="IDS_EMAIL_OPT_ALL">Barchasi</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">Xavfsiz ulanish</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">Ogohlantirish</text>
+    <text id="IDS_EMAIL_BODY_RECENT">Oxirgi</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">Yuborildi</text>
+    <text id="IDS_EMAIL_BODY_INBOX">Kiruvchilar</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">Barcha hisob qaydnomalar</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">E-pochtalarni bloklash</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">Barchasini belgil</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">O‘zimga har doim yashirin nusxa yuborish</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">Imzo qo‘shish</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">Muhim</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">Kiruvchi port</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">O'chirish</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">Tanlangan sif. o‘rnat</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">Yo‘q qilish bajarilmadi</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">Biriktirib bo‘lmaydi. Fayllarning mumkin bo‘lgan maksimal o‘lchami: %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">To‘liq xabarni yuklab olish</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">Parol ko‘rsatilsin</text>
+    <text id="IDS_EMAIL_OPT_DATE">Sana</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">Yuboruvchi</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">O‘qilgan</text>
+    <text id="IDS_EMAIL_BODY_TODAY">Bugun</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">Hisob qaydnomasi</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">Parametrlar</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">Mavzu</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">Qo‘lda o‘rnatish</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">Boshqalar</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">Foydalanilmaydi</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">Barcha jildlarni ko‘rsatish</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">E-pochtalar ko‘rsatilsin</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">Biriktirish</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">O'chirilmoqda…</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">Xabar</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">Tnlngn belgi ol/tash</text>
+    <text id="IDS_EMAIL_SK3_DONE">Bajarildi</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">Yuboruvchiga javob berish</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">Kimga</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">E-pochta parametri</text>
+    <text id="IDS_EMAIL_POP_ALERT">Signal</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">Barchasi o'chirilsinmi?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">Qoralamalar</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d biriktirma</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">Matn b-n javob berish</text>
+    <text id="IDS_EMAIL_BODY_BCC">Yashirin nusxa</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">Chiquvchi server</text>
+    <text id="IDS_COM_OPT_SELECTED">Tanlangan</text>
+    <text id="IDS_COM_BODY_SEND">Yuborish</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">O‘qilmagan sifatida belgilash</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">Samsung Mobiledan yuborilgan</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">Qidirish</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">Foydalanuvchi nomi</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">Pochta qutisini o‘rnatish</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">Qoralamalarda saqlansinmi?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">Kalendarga qo‘shish</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">Manzil mavjud emas</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">Oxirgi hafta</text>
+    <text id="IDS_COM_POP_PASSWORD">Parol</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">Eskiroq</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">Oluvchilar qo‘shilmagan. Oluvchilarni kiritish</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">Yaratish</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">Kontaktga qo‘shish</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">E-pochta manzili</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">Ko‘chirib bo‘lmadi</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">Hisob qaydnomasi tasdiqlanmoqda...</text>
+    <text id="IDS_COM_SK_ADD">Qo‘shish</text>
+    <text id="IDS_COM_SK_MORE">Ko‘proq</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">E-pochta</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">O‘qilgan sifatida belgilash</text>
+    <text id="IDS_EMAIL_BODY_CC">Nusxa</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">Mavzu qo‘shish</text>
+    <text id="IDS_EMAIL_BODY_TRASH">Keraksiz</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">Matn yo‘q</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">Barchaga j/ber.</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">Hisob qaydnoma qo‘shib bo‘lmaydi</text>
+    <text id="IDS_EMAIL_OPT_TITLE">Sarlavha</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">Hisob qaydnomalarini qo‘shish</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">Tanlanganlar</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">E-pochta yuborib bo‘lmaydi</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">Mavzu yo‘q</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">Chiquvchi xabarlar parametrlari</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">O‘qilmaganlar</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">Kiruvchi server</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">Imzo</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">Fayllarni birikltirish</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">Barchasini o‘rnat</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">Bloklash</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">Avvaldan mavjud</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">Boshqaga yo‘naltirish</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">Avval bloklangan</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">Ushbu hisob qaydnomasiga tegishli barcha ma’lumotlar o'chirib tashlanadi. Davom ettirilsinmi?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">Hisob qaydnomasi nomi</text>
+    <text id="IDS_COM_SK_UPDATE">Yangilash</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">Qabul qiluvchilar soni ruxsat etilgan maksimal miqdorga (%d) yetdi</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">Belgilar soni ruxsat etilgan maksimal miqdorga yetdi</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">Biriktirma yuklanishi...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">Yuklab olib bo‘lmaydi</text>
+<text id="IDS_COM_SK_OK">OK</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">Hisob qaydnoma qo‘shish</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">Xotira yetarli emas</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">Qoralamalarga saqlab bo‘lmaydi</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">Takrorlanadigan qabul qiluvchi</text>
+</string_table>
diff --git a/res/zho-CN.xml b/res/zho-CN.xml
new file mode 100755 (executable)
index 0000000..1f2772a
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">保存在服务器中</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">取消标记为收藏</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">发件箱</text>
+    <text id="IDS_COM_POP_CLOSE">关闭</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">发送邮件</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">呼出端口</text>
+    <text id="IDS_COM_POP_DELETE_Q">删除?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">文件夹</text>
+    <text id="IDS_EMAIL_OPT_VIEW">查看</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">添加抄送/暗送</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">抄送/暗送</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">无内容</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">安全</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">转发附件</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">无法附加。最大文件数量是 %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">接收设置</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">昨天</text>
+    <text id="IDS_COM_SK_NEXT">下一步</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">邮箱列表</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">垃圾箱</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">已发件箱</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">账户已存在</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">全部电邮</text>
+    <text id="IDS_EMAIL_OPT_REPLY">回复</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">收件人</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">接收邮件服务器类型</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">电子邮件地址无效</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">移动</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">添加地址</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">未选择电子邮件</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">全部删除</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">移动中...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">地址</text>
+    <text id="IDS_COM_POP_ERROR">出错</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">取消</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">默认发送邮件帐户</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">账户设置</text>
+    <text id="IDS_EMAIL_OPT_ALL">全部</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">安全连接</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">警告</text>
+    <text id="IDS_EMAIL_BODY_RECENT">最近</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">已发送</text>
+    <text id="IDS_EMAIL_BODY_INBOX">收件箱</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">全部帐户</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">阻止电子邮件</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">将全部标记为</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">总是暗送给自己</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">添加签名</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">重要</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">接收端口</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">删除</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">设置为收藏</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">删除失败</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">无法附加。最大文件大小是 %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">下载完整信息</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">显示密码</text>
+    <text id="IDS_EMAIL_OPT_DATE">日期</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">发件人</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">已读</text>
+    <text id="IDS_EMAIL_BODY_TODAY">今天</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">帐户</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">设置</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">主题</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">手动设置</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">其它</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">未使用</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">显示全部文件夹</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">显示电子邮件</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">附加</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">删除中..</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">信息</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">取消标记为收藏</text>
+    <text id="IDS_EMAIL_SK3_DONE">完成</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">回复发件人</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">至</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">电邮设置</text>
+    <text id="IDS_EMAIL_POP_ALERT">提示</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">全部删除?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">草稿箱</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d个附件</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">回复包括正文</text>
+    <text id="IDS_EMAIL_BODY_BCC">暗送</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">发送服务器</text>
+    <text id="IDS_COM_OPT_SELECTED">已选择</text>
+    <text id="IDS_COM_BODY_SEND">发送</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">标记为未读</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">从三星移动设备发送</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">搜索</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">用户名</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">邮箱设置</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">保存到草稿箱?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">添加至日历</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">无地址</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">最后一周</text>
+    <text id="IDS_COM_POP_PASSWORD">密码</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">更早</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">没有添加收件人,请输入联系人</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">编写</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">添加到联系人</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">邮件地址</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">移动失败</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">帐户确认中…</text>
+    <text id="IDS_COM_SK_ADD">添加</text>
+    <text id="IDS_COM_SK_MORE">更多</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">电子邮件</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">标记为已读</text>
+    <text id="IDS_EMAIL_BODY_CC">抄送</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">添加主题</text>
+    <text id="IDS_EMAIL_BODY_TRASH">垃圾</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">无文本</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">回复全部</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">无法添加帐户</text>
+    <text id="IDS_EMAIL_OPT_TITLE">标题</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">添加账户</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">我的收藏</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">无法发送电子邮件</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">没有主题</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">发送设置</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">未读</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">接收服务器</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">签名</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">附加文件</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">将所有设置为</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">阻止</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">已经存在</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">转发</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">已阻止</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">与此帐户相关的全部数据将被删除。继续?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">账户名称</text>
+    <text id="IDS_COM_SK_UPDATE">更新</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">已达到最大收件人数量(%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">已达到最大字符限制</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">正在下载附件…</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">无法下载</text>
+<text id="IDS_COM_SK_OK">确定</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">添加账户</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">没有足够内存</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">无法保存到草稿箱</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">重复的收件人</text>
+</string_table>
diff --git a/res/zho-HK.xml b/res/zho-HK.xml
new file mode 100755 (executable)
index 0000000..8e6b6ee
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">保存在伺服器中</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">取消標記為我的最愛</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">寄件匣</text>
+    <text id="IDS_COM_POP_CLOSE">關閉</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">發送電子郵件</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">外寄端口</text>
+    <text id="IDS_COM_POP_DELETE_Q">刪除嗎?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">資料夾</text>
+    <text id="IDS_EMAIL_OPT_VIEW">檢視</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">加入抄送/密送</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">抄送/密送</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">無內容</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">安全性</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">連檔案轉寄</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">無法附加。最大檔案數量是 %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">接收設定</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">昨天</text>
+    <text id="IDS_COM_SK_NEXT">下一步</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">郵箱清單</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">垃圾箱</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">寄件備份匣</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">帳戶已存在</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">全部電子郵件</text>
+    <text id="IDS_EMAIL_OPT_REPLY">回覆</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">收件人</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">接收郵件伺服器類型</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">無效電子郵件地址</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">移動</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">加入地址</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">未選擇電子郵件</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">全部刪除</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">正在移動...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">地址</text>
+    <text id="IDS_COM_POP_ERROR">錯誤</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">取消</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">預設發送帳戶</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">帳戶設定</text>
+    <text id="IDS_EMAIL_OPT_ALL">全部</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">安全連接</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">警告</text>
+    <text id="IDS_EMAIL_BODY_RECENT">最近</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">已發送</text>
+    <text id="IDS_EMAIL_BODY_INBOX">收件匣</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">所有帳戶</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">封鎖電子郵件</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">全部標記為</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">總是密送給自己</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">加入簽名</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">重要</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">接收端口</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">刪除</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">設定為我的最愛</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">刪除失敗</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">無法附加。檔案最大為%d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">下載完整訊息</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">顯示密碼</text>
+    <text id="IDS_EMAIL_OPT_DATE">日期</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">寄件人</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">已讀</text>
+    <text id="IDS_EMAIL_BODY_TODAY">今天</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">帳戶</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">設定</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">主題</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">手動設定</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">其他</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">未有使用</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">顯示所有資料夾</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">顯示電子郵件</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">附加</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">正在刪除...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">訊息</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">取消標記為我的最愛</text>
+    <text id="IDS_EMAIL_SK3_DONE">完成</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">回覆寄件人</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">至</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">電子郵件設定</text>
+    <text id="IDS_EMAIL_POP_ALERT">提醒</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">要全部刪除嗎?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">草稿匣</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d 個附件</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">以正文回覆</text>
+    <text id="IDS_EMAIL_BODY_BCC">密送</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">外寄伺服器</text>
+    <text id="IDS_COM_OPT_SELECTED">已選擇</text>
+    <text id="IDS_COM_BODY_SEND">發送</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">標記為未讀</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">從三星手機發送</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">搜尋</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">用戶名稱</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">郵箱設定</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">要儲存到草稿匣嗎?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">加到日曆</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">無地址</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">最後一週</text>
+    <text id="IDS_COM_POP_PASSWORD">密碼</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">較舊的</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">未加入收件人。請輸入收件人</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">撰寫</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">加到聯絡人</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">電子郵件地址</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">移動失敗</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">正在確認帳戶...</text>
+    <text id="IDS_COM_SK_ADD">加入</text>
+    <text id="IDS_COM_SK_MORE">更多</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">電子郵件</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">標記為已讀</text>
+    <text id="IDS_EMAIL_BODY_CC">抄送</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">加入主題</text>
+    <text id="IDS_EMAIL_BODY_TRASH">垃圾</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">無文字</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">全部回覆</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">無法加入帳戶</text>
+    <text id="IDS_EMAIL_OPT_TITLE">標題</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">加入帳戶</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">我的最愛</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">無法發送電子郵件</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">無主題</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">外寄設定</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">未讀取</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">內送伺服器</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">簽名</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">附加檔案</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">全部設為</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">封鎖</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">已存在</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">轉寄</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">已封鎖</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">所有關於此帳戶的數據將被刪除。繼續嗎?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">帳戶名稱</text>
+    <text id="IDS_COM_SK_UPDATE">更新</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">已達收件人的數量上限(%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">字元數目已達上限</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">正在下載附件...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">無法下載</text>
+<text id="IDS_COM_SK_OK">確定</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">加入帳戶</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">記憶體不足</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">無法儲存到草稿匣</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">重複的收件人</text>
+</string_table>
diff --git a/res/zho-SG.xml b/res/zho-SG.xml
new file mode 100755 (executable)
index 0000000..cb75398
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">保存在服务器中</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">取消标记为收藏</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">发件箱</text>
+    <text id="IDS_COM_POP_CLOSE">关闭</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">发送电邮</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">呼出端口</text>
+    <text id="IDS_COM_POP_DELETE_Q">删除?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">文件夹</text>
+    <text id="IDS_EMAIL_OPT_VIEW">查看</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">添加抄送/密送</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">抄送/暗送</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">无内容</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">安全设定</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">转发文件</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">无法附加。最大文件数量是 %d</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">来信设置</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">昨天</text>
+    <text id="IDS_COM_SK_NEXT">下一页</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">邮箱列表</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">垃圾箱</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">已发件箱</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">帐户已存在</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">全部电邮</text>
+    <text id="IDS_EMAIL_OPT_REPLY">回复</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">收件人</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">传入邮件服务器类型</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">无效电子邮件地址</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">移动</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">添加地址</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">未选择电子邮件</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">全部删除</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">移动中…</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">地址</text>
+    <text id="IDS_COM_POP_ERROR">错误</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">取消</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">Default sending account</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">帐号设定</text>
+    <text id="IDS_EMAIL_OPT_ALL">全部</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">安全连接</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">警告</text>
+    <text id="IDS_EMAIL_BODY_RECENT">最近</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">已发送</text>
+    <text id="IDS_EMAIL_BODY_INBOX">收件箱</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">全部帐户</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">阻止电子邮件</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">将全部标记为</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">总是暗送给自己</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">添加签名</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">重要</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">接收端口</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">删除</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">设置为收藏</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">删除失败</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">无法附加。最大文件大小是 %d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">下载完整信息</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">显示密码</text>
+    <text id="IDS_EMAIL_OPT_DATE">日期</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">发件人</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">已读</text>
+    <text id="IDS_EMAIL_BODY_TODAY">今天</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">帐户</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">设定</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">主题</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">手动设置</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">其它</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">未使用</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">显示全部文件夹</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">显示电子邮件</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">附件</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">删除中…</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">讯息</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">取消标记为收藏</text>
+    <text id="IDS_EMAIL_SK3_DONE">完成</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">回复发件人</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">到</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">电邮设置</text>
+    <text id="IDS_EMAIL_POP_ALERT">提示音</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">全部删除</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">草稿箱</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d个附件</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">回复包括正文</text>
+    <text id="IDS_EMAIL_BODY_BCC">密送</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">发送服务器</text>
+    <text id="IDS_COM_OPT_SELECTED">已选定</text>
+    <text id="IDS_COM_BODY_SEND">发送</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">记为未读</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">已从三星手机发送</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">搜寻</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">用户名称</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">邮箱设置</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">保存到草稿箱?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">添加至日历</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">无地址</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">最后一周</text>
+    <text id="IDS_COM_POP_PASSWORD">密码</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">更早</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">没有添加收件人,请输入联系人</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">编写</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">添加到联系人</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">电邮地址</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">移动失败</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">帐户确认中…</text>
+    <text id="IDS_COM_SK_ADD">添加</text>
+    <text id="IDS_COM_SK_MORE">更多</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">电邮</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">记为已读</text>
+    <text id="IDS_EMAIL_BODY_CC">抄送</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">添加主题</text>
+    <text id="IDS_EMAIL_BODY_TRASH">垃圾</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">无文本</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">全部回复</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">无法添加帐户</text>
+    <text id="IDS_EMAIL_OPT_TITLE">标题</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">添加帐户</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">收藏夹</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">无法发送电子邮件</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">没有主题</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">发出设置</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">未读</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">接收服务器</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">签名</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">附加文件</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">将所有设置为</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">阻止</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">已经存在</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">转发</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">已阻止</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">与此帐户相关的全部数据将被删除。继续?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">帐户名称</text>
+    <text id="IDS_COM_SK_UPDATE">更新</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">已达到最大收件人数量(%d)</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">已达最大字符数量</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">正在下载附件…</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">无法下载</text>
+<text id="IDS_COM_SK_OK">确认</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">添加帐户</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">内存不足</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">无法保存到草稿箱</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">重复的收件人</text>
+</string_table>
diff --git a/res/zho-TW.xml b/res/zho-TW.xml
new file mode 100755 (executable)
index 0000000..34589e7
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+       This XML file was automatically generated by UiBuilder - do not modify by hand.
+--><string_table Bversion="2.0.0.201306101756" Dversion="20120315">
+    <text id="IDS_EMAIL_BODY_KEEP_IN_SERVER">保留在伺服器中</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1">取消標記為我的最愛</text>
+    <text id="IDS_CONTEXT">Context</text>
+    <text id="IDS_EMAIL_HEADER_OUTBOX">寄件匣</text>
+    <text id="IDS_COM_POP_CLOSE">關閉</text>
+    <text id="IDS_EMAIL_OPT_SEND_EMAIL">傳送電子郵件</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_PORT">外寄連接埠</text>
+    <text id="IDS_COM_POP_DELETE_Q">要刪除嗎?</text>
+    <text id="IDS_EMAIL_HEADER_FOLDERS">資料夾</text>
+    <text id="IDS_EMAIL_OPT_VIEW">檢視</text>
+    <text id="IDS_EMAIL_OPT_ADD_CC_BCC">加入副本/密件副本</text>
+    <text id="IDS_EMAIL_BODY_CC_BCC">副本/密件</text>
+    <text id="IDS_COM_BODY_NO_CONTENTS">無內容</text>
+    <text id="IDS_EMAIL_OPT_SECURITY">安全性</text>
+    <text id="IDS_EMAIL_BODY_FORWARD_WITH_FILES">連檔案轉寄</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD">無法連接。文件的最大編號為%d個</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SETTINGS">來電設定</text>
+    <text id="IDS_EMAIL_BODY_YESTERDAY">昨天</text>
+    <text id="IDS_COM_SK_NEXT">下一步</text>
+    <text id="IDS_EMAIL_MBODY_MAILBOX_LIST">信箱清單</text>
+    <text id="IDS_EMAIL_BODY_SPAMBOX">垃圾郵件</text>
+    <text id="IDS_EMAIL_BODY_SENTBOX">已傳送訊息</text>
+    <text id="IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS">帳號已存在</text>
+    <text id="IDS_EMAIL_HEADER_ALL_EMAILS">全部電子郵件</text>
+    <text id="IDS_EMAIL_OPT_REPLY">回覆</text>
+    <text id="IDS_EMAIL_OPT_RECIPIENT">收件人</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE">收到的郵件伺服器類型</text>
+    <text id="IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS">電子郵件地址無效</text>
+    <text id="IDS_NO_MATCH_WITH_SERVER">No match with server</text>
+    <text id="IDS_EMAIL_SK_MOVE">移動</text>
+    <text id="IDS_SELECTED_ADDRESS">Selected address</text>
+    <text id="IDS_EMAIL_BODY_ADD_ADDRESS">加入地址</text>
+    <text id="IDS_EMAIL_POP_NO_EMAIL_SELECTED">沒有選擇電子郵件</text>
+    <text id="IDS_EMAIL_OPT_DELETE_ALL">全部刪除</text>
+    <text id="IDS_EMAIL_POP_MOVING_ING">正在移動...</text>
+    <text id="IDS_EMAIL_BODY_ADDRESS">地址</text>
+    <text id="IDS_COM_POP_ERROR">錯誤</text>
+    <text id="IDS_EMAIL_SK3_CANCEL">取消</text>
+    <text id="IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT">預設寄送帳號</text>
+    <text id="IDS_EMAIL_HEADER_ACCOUNT_SETTINGS">帳號設定</text>
+    <text id="IDS_EMAIL_OPT_ALL">全部</text>
+    <text id="IDS_EMAIL_BODY_SECURE_CONNECTION">安全連接</text>
+    <text id="IDS_DELETED_MAILS">Deleted mails</text>
+    <text id="IDS_COM_BODY_WARNING">警告</text>
+    <text id="IDS_EMAIL_BODY_RECENT">最近</text>
+    <text id="IDS_BLOCKING">Blocking</text>
+    <text id="IDS_COM_POP_SENT">已傳送</text>
+    <text id="IDS_EMAIL_BODY_INBOX">收件匣</text>
+    <text id="IDS_EMAIL_BODY_ALL_ACCOUNTS">所有帳號</text>
+    <text id="IDS_EMAIL_BODY_BLOCK_EMAILS">封鎖電子郵件</text>
+    <text id="IDS_EMAIL_OPT_MARK_ALL_AS_ABB">全部標記為</text>
+    <text id="IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF">總是寄送密件副本給自己</text>
+    <text id="IDS_EMAIL_BODY_ADD_SIGNATURE">加入簽名</text>
+    <text id="IDS_EMAIL_OPT_IMPORTANT">重要</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_PORT">傳入連接埠</text>
+    <text id="IDS_EMAIL_HEADER_DELETE">刪除</text>
+    <text id="IDS_NO_RECIPIENTS">(No recipients)</text>
+    <text id="IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB">設為我的最愛</text>
+    <text id="IDS_COM_POP_DELETE_FAILED">刪除失敗</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB">無法附加。最大文件%d MB</text>
+    <text id="IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE">下載完整的郵件</text>
+    <text id="IDS_EMAIL_BODY_SHOW_PASSWORD">顯示密碼</text>
+    <text id="IDS_EMAIL_OPT_DATE">日期</text>
+    <text id="IDS_SELECTED_SUBJECT">Selected subject</text>
+    <text id="IDS_EMAIL_OPT_SENDER">寄件人</text>
+    <text id="IDS_EMAIL_OPT_READ_M_MARK_AS_ABB">已讀</text>
+    <text id="IDS_EMAIL_BODY_TODAY">今天</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT">帳號</text>
+    <text id="IDS_EMAIL_OPT2_SETTINGS">設定</text>
+    <text id="IDS_EMAIL_BODY_SUBJECT">主旨</text>
+    <text id="IDS_EMAIL_BODY_MANUAL_SETUP">手動設定</text>
+    <text id="IDS_EMAIL_BODY_OTHERS">其他</text>
+    <text id="IDS_EMAIL_BODY_NOT_USED">未使用</text>
+    <text id="IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB">顯示所有資料夾</text>
+    <text id="IDS_EMAIL_BODY_SHOW_EMAILS">顯示電子郵件</text>
+    <text id="IDS_EMAIL_OPT_ATTACH">附件</text>
+    <text id="IDS_PREVIEW_TEXT_UNAVAILABLE">(No preview text available)</text>
+    <text id="IDS_EMAIL_POP_DELETING_ING">正在刪除...</text>
+    <text id="IDS_EMAIL_OPT_MESSAGE">訊息</text>
+    <text id="IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB">取消標記為我的最愛</text>
+    <text id="IDS_EMAIL_SK3_DONE">完成</text>
+    <text id="IDS_EMAIL_OPT_REPLY_TO_SENDER">回覆給寄件人</text>
+    <text id="IDS_EMAIL_BODY_TO_MRECIPENT">至</text>
+    <text id="IDS_EMAIL_HEADER_EMAIL_SETTINGS">電子郵件設定</text>
+    <text id="IDS_EMAIL_POP_ALERT">提醒</text>
+    <text id="IDS_EMAIL_POP_DELETE_ALL_Q">要全部刪除嗎?</text>
+    <text id="IDS_EMAIL_BODY_DRAFTS">草稿匣</text>
+    <text id="IDS_EMAIL_POP_PD_ATTACHMENTS">%d 個附件</text>
+    <text id="IDS_EMAIL_BODY_REPLY_WITH_BODY">以正文回覆</text>
+    <text id="IDS_EMAIL_BODY_BCC">密件副本</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SERVER">外寄郵件伺服器</text>
+    <text id="IDS_COM_OPT_SELECTED">已選擇</text>
+    <text id="IDS_COM_BODY_SEND">傳送</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_UNREAD">標記為未讀</text>
+    <text id="IDS_EMAIL_BODY_SENT_FROM_SAMSUNG_MOBILE">從三星手機發送</text>
+    <text id="IDS_EMAIL_HEADER_SEARCH">搜尋</text>
+    <text id="IDS_DRAFT_MAIL">Draft mail</text>
+    <text id="IDS_COM_BODY_USER_NAME">使用者名稱</text>
+    <text id="IDS_EMAIL_BODY_MAILBOX_SETUP">信箱設定</text>
+    <text id="IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q">要儲存在草稿匣中嗎?</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CALENDAR">加到日曆</text>
+    <text id="IDS_EMAIL_BODY_NO_ADDRESS">無地址</text>
+    <text id="IDS_EMAIL_BODY_LAST_WEEK">上一週</text>
+    <text id="IDS_COM_POP_PASSWORD">密碼</text>
+    <text id="IDS_EMAIL_BODY_OLDER_M_HISTORY">較舊的</text>
+    <text id="IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS">沒有收件人,請輸入收件人</text>
+    <text id="IDS_EMAIL_SK_COMPOSE">撰寫</text>
+    <text id="IDS_EMAIL_OPT_ADD_TO_CONTACT">加到聯絡人</text>
+    <text id="IDS_COM_BODY_EMAIL_ADDRESS">電子郵件地址</text>
+    <text id="IDS_COM_POP_MOVING_FAILED">移動失敗</text>
+    <text id="IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING">正在驗證帳號...</text>
+    <text id="IDS_COM_SK_ADD">新增</text>
+    <text id="IDS_COM_SK_MORE">更多</text>
+    <text id="IDS_EMAIL_OPT_EMAIL">電子郵件</text>
+    <text id="IDS_EMAIL_OPT_MARK_AS_READ">標記為已讀</text>
+    <text id="IDS_EMAIL_BODY_CC">副本</text>
+    <text id="IDS_EMAIL_HEADER_ADD_SUBJECT">新增主旨</text>
+    <text id="IDS_EMAIL_BODY_TRASH">垃圾</text>
+    <text id="IDS_EMAIL_BODY_NO_TEXT">無文字</text>
+    <text id="IDS_EMAIL_SK_REPLY_ALL">全部回覆</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT">無法加入帳號</text>
+    <text id="IDS_EMAIL_OPT_TITLE">標題</text>
+    <text id="IDS_EMAIL_OPT_ADD_ACCOUNTS">新增帳號</text>
+    <text id="IDS_EMAIL_OPT_FAVOURITES">我的最愛</text>
+    <text id="IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL">無法傳送電子郵件</text>
+    <text id="IDS_EMAIL_BODY_NO_SUBJECT">無主旨</text>
+    <text id="IDS_EMAIL_BODY_OUTGOING_SETTINGS">發送設定</text>
+    <text id="IDS_EMAIL_OPT_UNREAD">未讀</text>
+    <text id="IDS_EMAIL_BODY_INCOMING_SERVER">內送伺服器</text>
+    <text id="IDS_EMAIL_BODY_SIGNATURE">簽名</text>
+    <text id="IDS_EMAIL_OPT_ATTACH_FILES">附加檔案</text>
+    <text id="IDS_EMAIL_OPT_SET_ALL_AS_ABB">全部設為</text>
+    <text id="IDS_EMAIL_OPT_BLOCK">封鎖</text>
+    <text id="IDS_COM_POP_ALREDY_EXISTS">已存在</text>
+    <text id="IDS_EMAIL_OPT_FORWARD">轉寄</text>
+    <text id="IDS_EMAIL_POP_ALREADY_BLOCKED">已封鎖</text>
+    <text id="IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q">所有此帳戶的相關資料將被刪除。要繼續嗎?</text>
+    <text id="IDS_EMAIL_BODY_ACCOUNT_NAME">帳號名稱</text>
+    <text id="IDS_COM_SK_UPDATE">更新</text>
+<text id="IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED">收件人的最大數量(%d位)已達到</text>
+<text id="IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED">已達字元數上限</text>
+<text id="IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING">下載附件...</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD">無法下載</text>
+<text id="IDS_COM_SK_OK">確定</text>
+<text id="IDS_MA_HEADER_ADD_ACCOUNT">新增帳號</text>
+<text id="IDS_COM_POP_NOT_ENOUGH_MEMORY">記憶體不足</text>
+<text id="IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS">無法儲存在草稿匣中</text>
+<text id="IDS_MSGC_BODY_DUPLICATED_RECIPIENT">重複的收件人</text>
+</string_table>
diff --git a/shared/data/nofile.dummy b/shared/data/nofile.dummy
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/shared/res/screen-density-xhigh/mainmenu.png b/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755 (executable)
index 0000000..299cc71
Binary files /dev/null and b/shared/res/screen-density-xhigh/mainmenu.png differ
diff --git a/shared/trusted/nofile.dummy b/shared/trusted/nofile.dummy
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/src/.EmAddSubjectForm.cpp.swp b/src/.EmAddSubjectForm.cpp.swp
new file mode 100755 (executable)
index 0000000..d3d2026
Binary files /dev/null and b/src/.EmAddSubjectForm.cpp.swp differ
diff --git a/src/EmAccountConfiguration.cpp b/src/EmAccountConfiguration.cpp
new file mode 100755 (executable)
index 0000000..1e84f15
--- /dev/null
@@ -0,0 +1,496 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmAccountConfigurationForm.cpp
+ * @brief      Provides the implementation of the Account Configuration Form
+ */
+
+#include <FIo.h>
+#include <FSocial.h>
+#include <FSystem.h>
+
+#include "EmAccountConfiguration.h"
+#include "EmManualSetUpForm.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::System;
+using namespace Tizen::Social;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+const int DEFAULT_HEIGHT = 140;
+const int LOGO_DIMENSION = 72;
+
+const int SECTION_COUNT = 1;
+
+const int MAIN_SECTION_ITEM_COUNT = 1;
+const int SYNC_SECTION_ITEM_COUNT = 1;
+
+enum GROUP_INDEX
+{
+       MAIN_GROUP_INDEX,
+       SYNC_GROUP_INDEX
+};
+
+enum
+{
+       MAIN_GROUP_ACCOUNT_ITEM
+};
+
+
+AccountConfigurationForm::AccountConfigurationForm(void)
+       : __fontSize(44.0f)
+       , __itemHeight(150.0f)
+       , __pAccount(null)
+       , __pMainSectionTableView(null)
+{
+       // Empty Implementation
+}
+
+AccountConfigurationForm::~AccountConfigurationForm(void)
+{
+       // Empty Implementation
+}
+
+bool
+AccountConfigurationForm::Initialize()
+{
+       Form::Construct(IDL_ACCOUNT_CONFIG_FORM);
+
+       return true;
+}
+
+result
+AccountConfigurationForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       __pMainSectionTableView = static_cast<SectionTableView*>(GetControl(IDC_ACCOUNT_CONFIG_MAIN_SECTIONTABLEVIEW));
+       TryCatch(__pMainSectionTableView != null, r = E_FAILURE, "Failed to get section tableview");
+
+       __pMainSectionTableView->AddSectionTableViewItemEventListener(*this);
+       GetFooter()->AddActionEventListener(*this);
+       SetFormBackEventListener(this);
+       SetFontValues();
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+AccountConfigurationForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+AccountConfigurationForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+       AppLogDebug("ENTER, previousSceneId:(%ls), currentSceneId:(%ls), pArgs:(%x)", previousSceneId.GetPointer(), currentSceneId.GetPointer(), pArgs);
+
+       if (pArgs != null)
+       {
+               int i=0;
+               __pAccount = static_cast<EmailAccount*>(pArgs->GetAt(i++));
+
+               if (__pAccount != null)
+               {
+                       __pMainSectionTableView->SetItemProvider(this);
+                       __pMainSectionTableView->UpdateTableView();
+               }
+               else
+               {
+                       GetFooter()->SetItemEnabled(0, false);
+                       GetFooter()->Invalidate(true);
+               }
+
+               pArgs->RemoveAll(false);
+               delete pArgs;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AccountConfigurationForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT");
+}
+
+int
+AccountConfigurationForm::GetSectionCount(void)
+{
+       return SECTION_COUNT;
+}
+
+int
+AccountConfigurationForm::GetItemCount(int sectionIndex)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d)", sectionIndex);
+
+       int count = 0;
+
+       switch (sectionIndex)
+       {
+       case MAIN_GROUP_INDEX:
+               count = MAIN_SECTION_ITEM_COUNT;
+               break;
+
+       case SYNC_GROUP_INDEX:
+               count = SYNC_SECTION_ITEM_COUNT;
+               break;
+       }
+
+       AppLogDebug("EXIT, returning count:(%d)", count);
+       return count;
+}
+
+TableViewItem*
+AccountConfigurationForm::CreateItem(int sectionIndex, int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d), itemWidth:(%d)", sectionIndex, itemIndex, itemWidth);
+
+       RelativeLayout layout;
+       TableViewItem* pItem = null;
+
+       switch (sectionIndex)
+       {
+       case MAIN_GROUP_INDEX:
+               Label* pLogoLabel;
+               Label* pNameLabel;
+               Label* pEmailLabel;
+               Bitmap* pAccountLogo;
+
+               layout.Construct();
+
+               pItem = new (std::nothrow) TableViewItem();
+               pItem->Construct(layout, Dimension(itemWidth, __itemHeight), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+               pLogoLabel = new (std::nothrow) Label(); // Account logo
+               pLogoLabel->Construct(Rectangle(22,0,LOGO_DIMENSION,LOGO_DIMENSION), L"");
+               pAccountLogo = App::GetInstance()->GetAppResource()->GetBitmapN(File::GetFileName(__pAccount->GetLogoIconPath()));
+               if (pAccountLogo != null)
+               {
+                       pLogoLabel->SetBackgroundBitmap(*pAccountLogo);
+               }
+               pItem->AddControl(pLogoLabel);
+
+               layout.SetCenterAligned(*pLogoLabel, CENTER_ALIGN_VERTICAL);
+
+               pNameLabel = new (std::nothrow) Label();
+               pNameLabel->Construct(Rectangle(0,0,itemWidth,__itemHeight - DEFAULT_HEIGHT/2), __pAccount->GetAccountName());
+               pNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+               pNameLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+               pNameLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+               pItem->AddControl(pNameLabel);
+
+               layout.SetRelation(*pNameLabel, pLogoLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+               layout.SetRelation(*pNameLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+
+               pEmailLabel = new (std::nothrow) Label();
+               pEmailLabel->Construct(Rectangle(0,__itemHeight-DEFAULT_HEIGHT/2,itemWidth,DEFAULT_HEIGHT/2), __pAccount->GetUserEmailAddress());
+               pEmailLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+               pEmailLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
+               pEmailLabel->SetTextConfig(32, LABEL_TEXT_STYLE_BOLD);
+               pEmailLabel->SetTextColor(Color::GetColor(COLOR_ID_GREY));
+               pItem->AddControl(pEmailLabel);
+
+               layout.SetRelation(*pEmailLabel, pLogoLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+               layout.SetRelation(*pEmailLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+
+               layout.Update();
+
+               break;
+
+       case SYNC_GROUP_INDEX:
+               break;
+
+       default:
+               break;
+       }
+
+       AppLogDebug("EXIT, pItem:(%x)", pItem);
+       return pItem;
+}
+
+bool
+AccountConfigurationForm::DeleteItem(int sectionIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d), pItem:(%x)", sectionIndex, itemIndex, pItem);
+
+       if (pItem != null)
+       {
+               pItem->RemoveAllControls();
+               delete pItem;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+AccountConfigurationForm::UpdateItem(int sectionIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d), pItem:(%x)", sectionIndex, itemIndex, pItem);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+int
+AccountConfigurationForm::GetDefaultItemHeight(void)
+{
+       return DEFAULT_HEIGHT;
+}
+
+String
+AccountConfigurationForm::GetSectionHeader(int sectionIndex)
+{
+       return L"";
+}
+
+bool
+AccountConfigurationForm::HasSectionHeader(int sectionIndex)
+{
+       return false;
+}
+
+String
+AccountConfigurationForm::GetSectionFooter(int sectionIndex)
+{
+       return L"";
+}
+
+bool
+AccountConfigurationForm::HasSectionFooter(int sectionIndex)
+{
+       return false;
+}
+
+void
+AccountConfigurationForm::OnActionPerformed(const Control& source, int actionId)
+{
+       AppLogDebug("ENTER, actionId:(%d)", actionId);
+
+       if (actionId == IDA_ACCOUNT_CONFIG_FORM_FOOTER_DELETE)
+       {
+               bool terminateApp = false;
+               int endPositionOfPackageName;
+               String packageName = L"";
+               wchar_t dotSymbol = L'.';
+
+               AppId currentAppId = App::GetInstance()->GetAppId();
+               IList* pRunningAppList = AppManager::GetInstance()->GetRunningAppListN();
+
+               AppLogDebug("Current App Id:(%ls), pRunningAppList:(%x)", currentAppId.GetPointer(), pRunningAppList);
+               currentAppId.IndexOf(dotSymbol, 0, endPositionOfPackageName);
+               currentAppId.SubString(0, endPositionOfPackageName, packageName);
+               AppLogDebug("Current package name:(%ls)", packageName.GetPointer());
+
+               if (pRunningAppList != null)
+               {
+                       bool flag = false;
+                       AppLogDebug("Running app count:(%d)",pRunningAppList->GetCount());
+                       for (int i=0; i<pRunningAppList->GetCount(); i++)
+                       {
+                               String* pAppId = static_cast<String*>(pRunningAppList->GetAt(i));
+                               AppLogDebug("Got running app id:(%ls)", pAppId->GetPointer());
+
+                               if (pAppId->Contains(packageName) == true)
+                               {
+                                       if (flag == false)
+                                       {
+                                               flag = true;
+                                       }
+                                       else
+                                       {
+                                               terminateApp = true;
+                                       }
+                               }
+                       }
+
+                       pRunningAppList->RemoveAll(true);
+                       delete pRunningAppList;
+               }
+
+               if (terminateApp == true)
+               {
+                       int modRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Please exit Email application before deleting account.", MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modRes);
+
+                       terminateApp = false;
+               }
+               else
+               {
+                       int modRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_BODY_WARNING"), Utils::GetResourceString(L"IDS_EMAIL_POP_ALL_DATA_RELATED_TO_THIS_ACCOUNT_WILL_BE_DELETED_CONTINUE_Q"), MSGBOX_STYLE_YESNO, 300000);
+                       msgBox.ShowAndWait(modRes);
+
+                       if (modRes == MSGBOX_RESULT_YES)
+                       {
+                               terminateApp = false;
+                               IList* pRunningAppList = AppManager::GetInstance()->GetRunningAppListN();
+                               if (pRunningAppList != null)
+                               {
+                                       bool flag = false;
+                                       AppLogDebug("Running app count:(%d)",pRunningAppList->GetCount());
+                                       for (int i=0; i<pRunningAppList->GetCount(); i++)
+                                       {
+                                               String* pAppId = static_cast<String*>(pRunningAppList->GetAt(i));
+                                               AppLogDebug("Got running app id:(%ls)", pAppId->GetPointer());
+                                               if (pAppId->Contains(packageName) == true)
+                                               {
+                                                       if (flag == false)
+                                                       {
+                                                               flag = true;
+                                                       }
+                                                       else
+                                                       {
+                                                               terminateApp = true;
+                                                       }
+                                               }
+                                       }
+
+                                       pRunningAppList->RemoveAll(true);
+                                       delete pRunningAppList;
+                               }
+
+                               if (terminateApp == true)
+                               {
+                                       int modRes;
+                                       MessageBox msgBox;
+                                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Please exit Email application before deleting account.", MSGBOX_STYLE_OK, 300000);
+                                       msgBox.ShowAndWait(modRes);
+
+                                       terminateApp = false;
+                               }
+                               else
+                               {
+                                       EmailSettingsProvider::GetInstance()->DeleteAccount(__pAccount->GetAccountId());
+
+                                       AccountManager* pSocialAccountMgr = AccountManager::GetInstance();
+                                       pSocialAccountMgr->RemoveAccount(__pAccount->GetAccountSvcId());
+
+                                       App::GetInstance()->Terminate();
+                               }
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AccountConfigurationForm::OnFormBackRequested(Form& source)
+{
+       AppLogDebug("ENTER");
+
+       App::GetInstance()->Terminate();
+
+       AppLogDebug("EXIT");
+}
+
+void
+AccountConfigurationForm::OnSectionTableViewItemStateChanged(SectionTableView& tableView, int sectionIndex, int itemIndex, TableViewItem* pItem, TableViewItemStatus status)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d), pItem:(%x), status:(%d)", sectionIndex, itemIndex, pItem, status);
+
+       if (sectionIndex == MAIN_GROUP_INDEX)
+       {
+               if (itemIndex == MAIN_GROUP_ACCOUNT_ITEM)
+               {
+                       AppLogDebug("Going to manual setup form");
+
+                       result r = E_SUCCESS;
+
+                       SceneManager* pSceneManager = SceneManager::GetInstance();
+                       EmailAccount* pTmpAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__pAccount->GetAccountId());
+
+                       ArrayList* pArgs = new ArrayList();
+                       pArgs->Construct();
+
+                       pArgs->Add(pTmpAccount);
+                       pArgs->Add(new (std::nothrow) Integer(ACCOUNT_CONFIG_MODE));
+
+                       r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ADD_ACCOUNT_MANUAL_SETUP, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+                       AppLogDebug("Result of go forward:(%s)", GetErrorMessage(r));
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AccountConfigurationForm::OnSectionTableViewContextItemActivationStateChanged(SectionTableView& tableView, int sectionIndex, int itemIndex, TableViewContextItem* pContextItem, bool activated)
+{
+       // Empty implementation
+}
+
+void
+AccountConfigurationForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmAccountSettingMainForm.cpp b/src/EmAccountSettingMainForm.cpp
new file mode 100755 (executable)
index 0000000..20449f3
--- /dev/null
@@ -0,0 +1,747 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+ * @file                      AccountSettingMainForm.cpp
+ * @brief                     Account Setting View provides the user with Account Settings in choosing
+ * settings like reply with body, add signature etc.
+ *
+ */
+
+#include <FApp.h>
+#include "EmEmailApp.h"
+#include "EmAccountSettingMainForm.h"
+#include "EmEmailSettingForm.h"
+#include "EmEmailSettingPresentationModel.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+// Constructor
+AccountSettingForm::AccountSettingForm(void)
+       : __index(0)
+       , __fontSize(44.0f)
+       , __itemHeight(150.0f)
+       , __pMailOptionList(null)
+       , __pSetupMailboxList(null)
+       , __pSubTextList(null)
+       , __pSignatureField(null)
+       , __pSectionTableView(null)
+       , __pAccount(null)
+{
+       //Empty implementation
+}
+
+// Destructor
+AccountSettingForm::~AccountSettingForm(void)
+{
+       //Empty implementation
+}
+
+// Initializes the form.
+bool
+AccountSettingForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       r = Construct(IDL_ACCOUNT_SETTINGS_MAIN_FORM);
+       TryCatch(r == E_SUCCESS, delete this, "Failed to Construct Account SettingForm");
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return true;
+
+CATCH:
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return false;
+}
+
+// Called after the form is initialized .
+result
+AccountSettingForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       Rectangle clientRect = GetClientAreaBounds();
+
+       //Setup Back event listener
+       SetFormBackEventListener(this);
+       AddOrientationEventListener(*this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+
+       __pSectionTableView = static_cast<SectionTableView*>(GetControl(IDC_SECTIONTABLEVIEW, true));
+       __pMailOptionList = new (std::nothrow) ArrayList();
+       __pMailOptionList->Construct();
+
+       String* pRecepient = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_REPLY_WITH_BODY"));
+       __pMailOptionList->Add(pRecepient);
+
+       pRecepient = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_FORWARD_WITH_FILES"));
+       __pMailOptionList->Add(pRecepient);
+
+       pRecepient = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_ALWAYS_BCC_MYSELF"));
+       __pMailOptionList->Add(pRecepient);
+
+       pRecepient = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_MAILBOX_SETUP"));
+       __pMailOptionList->Add(pRecepient);
+
+       pRecepient = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_KEEP_IN_SERVER"));
+       __pMailOptionList->Add(pRecepient);
+
+       pRecepient = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_ADD_SIGNATURE"));
+       __pMailOptionList->Add(pRecepient);
+
+       if (__pSetupMailboxList == null)
+       {
+               __pSetupMailboxList = new (std::nothrow) ArrayList();
+               __pSetupMailboxList->Construct();
+               String* pMainText = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_SENTBOX"));
+               __pSetupMailboxList->Add(pMainText);
+
+               pMainText = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_DRAFTS"));
+               __pSetupMailboxList->Add(pMainText);
+
+               pMainText = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_TRASH"));
+               __pSetupMailboxList->Add(pMainText);
+
+               pMainText = new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_SPAMBOX"));
+               __pSetupMailboxList->Add(pMainText);
+       }
+
+       if (__pSubTextList == null)
+       {
+               __pSubTextList = new (std::nothrow) ArrayList();
+               __pSubTextList->Construct();
+               __pSubTextList->Add(new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_SENTBOX")));
+               __pSubTextList->Add(new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_DRAFTS")));
+               __pSubTextList->Add(new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_TRASH")));
+               __pSubTextList->Add(new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_SPAMBOX")));
+       }
+
+       SetFontValues();
+
+//     __pScrollPanel->AddControl(__pSignatureField);
+
+//     __pMailBoxLabel = new (std::nothrow) Label();
+//     __pMailBoxLabel->Construct(Rectangle(X_ORIGIN, Y_MAILBOX_PANEL - 272, clientRect.width, H_MAILBOX_PANEL), Utils::GetResourceString(L"IDS_EMAIL_BODY_MAILBOX_SETUP"));
+//     __pMailBoxLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+//     __pMailBoxLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+//     __pMailBoxLabel->SetTextConfig(FONT_SIZE_MAILBOX_LABEL, LABEL_TEXT_STYLE_BOLD);
+//     __pScrollPanel->AddControl(__pMailBoxLabel);
+//
+//     __pInboxOptionProvider = new (std::nothrow) SetupMailboxProvider();
+//
+//     __pMailboxSetUpListview = new (std::nothrow) ListView();
+//     __pMailboxSetUpListview->Construct(Rectangle(X_ORIGIN, 962 - 272, clientRect.width, 400), true, SCROLL_STYLE_FADE_OUT);
+//     __pScrollPanel->AddControl(__pMailboxSetUpListview);
+//     __pMailboxSetUpListview->SetItemProvider(*__pInboxOptionProvider);
+//     __pMailboxSetUpListview->AddListViewItemEventListener(*__pInboxOptionProvider);
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+// Called when terminating the form.
+result
+AccountSettingForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       if (__pMailOptionList != null)
+       {
+               __pMailOptionList->RemoveAll(true);
+               delete __pMailOptionList;
+               __pMailOptionList = null;
+       }
+
+       if (__pSetupMailboxList != null)
+       {
+               __pSetupMailboxList->RemoveAll(true);
+               delete __pSetupMailboxList;
+               __pSetupMailboxList = null;
+       }
+
+       if (__pSubTextList != null)
+       {
+               __pSubTextList->RemoveAll(true);
+               delete __pSubTextList;
+               __pSubTextList = null;
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+// Called when form back is requested .
+void
+AccountSettingForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+       pSceneManager->GoBackward((BackwardSceneTransition(IDSCN_EMAIL_SETTING)));
+
+       AppLogDebug("EXIT");
+
+//     __pAccount->GetOptions()->SetSignature(__pSignatureField->GetText());
+//     EmailSettingsPresentationModel::GetInstance()->SaveSettings(__pAccount);
+}
+
+// Called when scene is activated .
+void
+AccountSettingForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                      const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       if (pArgs != null)
+       {
+               Rectangle clientRect = GetClientAreaBounds();
+               __pAccount = static_cast<EmailAccount*>(pArgs->GetAt(0));
+               AppLogDebug("Add Signature:(%d)", __pAccount->GetOptions()->GetAddSignature());
+               AppLogDebug("reply with body:(%d)", __pAccount->GetOptions()->GetReplyWithBody());
+               AppLogDebug("keep local copy:(%d)", __pAccount->GetOptions()->GetKeepLocalCopy());
+
+               if (__pAccount == null)
+               {
+                       AppLogDebug("Got null account object!");
+               }
+       }
+
+       IEnumerator* pEnum = EmailMailboxManager::GetInstance()->GetMailboxesByAccountIdN(__pAccount->GetAccountId());
+       EmailMailbox* mailbox = null;
+
+       while (pEnum != null && (!IsFailed(pEnum->MoveNext())))
+       {
+               mailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+               if (mailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_SENTBOX)
+               {
+                       __pSubTextList->SetAt(new (std::nothrow) String(mailbox->GetMailboxAlias()), 0);
+               }
+
+               if (mailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_DRAFT)
+               {
+                       __pSubTextList->SetAt(new (std::nothrow) String(mailbox->GetMailboxAlias()), 1);
+               }
+
+               if (mailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_TRASH)
+               {
+                       __pSubTextList->SetAt(new (std::nothrow) String(mailbox->GetMailboxAlias()), 2);
+               }
+
+               if (mailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_SPAMBOX)
+               {
+                       __pSubTextList->SetAt(new (std::nothrow) String(mailbox->GetMailboxAlias()), 3);
+               }
+       }
+
+       if (__pSectionTableView != null)
+       {
+               AppLogDebug("Got tableview object!");
+               __pSectionTableView->SetItemProvider(this);
+               __pSectionTableView->UpdateTableView();
+               __pSectionTableView->AddSectionTableViewItemEventListener(*this);
+
+               __pSectionTableView->SetItemChecked(MAIL_OPTIONS_GROUP, 1, __pAccount->GetOptions()->GetReplyWithBody());
+               __pSectionTableView->SetItemChecked(MAIL_OPTIONS_GROUP, 2, __pAccount->GetOptions()->GetForwardWithFiles());
+               __pSectionTableView->SetItemChecked(MAIL_OPTIONS_GROUP, 3, __pAccount->GetOptions()->GetAddMyAddressToBcc());
+               __pSectionTableView->SetItemChecked(MAIL_OPTIONS_GROUP, 4, __pAccount->GetOptions()->GetReqDeliveryReceipt());
+               __pSectionTableView->SetItemChecked(MAIL_OPTIONS_GROUP, 5, __pAccount->GetOptions()->GetKeepLocalCopy());
+
+               if (__pAccount->GetOptions()->GetAddSignature() == true)
+               {
+                       __pSectionTableView->SetItemChecked(MAIL_OPTIONS_GROUP, 6, true);
+                       __pSectionTableView->SetItemEnabled(MAIL_OPTIONS_GROUP, 7, true);
+               }
+               else
+               {
+                       __pSectionTableView->SetItemEnabled(MAIL_OPTIONS_GROUP, 7, false);
+               }
+       }
+       if(pEnum != null)
+       {
+               delete pEnum;
+       }
+
+
+       AppLogDebug("EXIT");
+}
+
+// Called when scene is Deactivated .
+void
+AccountSettingForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                       const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER");
+
+//     __pAccount->GetOptions()->SetSignature(__pSignatureField->GetText());
+       EmailSettingsPresentationModel::GetInstance()->SaveSettings(__pAccount);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AccountSettingForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER & EXIT");
+}
+
+int
+AccountSettingForm::GetSectionCount(void)
+{
+       return 2;
+}
+
+int
+AccountSettingForm::GetItemCount(int sectionIndex)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d)", sectionIndex);
+
+       int retVal = 0;
+
+       switch (sectionIndex)
+       {
+       case MAIL_OPTIONS_GROUP:
+               retVal =  __pMailOptionList->GetCount() + 2;
+               break;
+
+       case SETUP_MAILBOX_LIST_GROUP:
+               retVal = __pSetupMailboxList->GetCount();
+               break;
+       }
+
+       AppLogDebug("EXIT, returning:(%d)", retVal);
+       return retVal;
+}
+
+TableViewItem*
+AccountSettingForm::CreateItem(int sectionIndex, int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       TableViewItem* pItem = new (std::nothrow) TableViewItem();
+       Rectangle bounds = Rectangle(0, 0, itemWidth, __itemHeight);
+       RelativeLayout layout;
+       layout.Construct();
+
+       if (sectionIndex == MAIL_OPTIONS_GROUP)
+       {
+               if (itemIndex == 0)
+               {
+                       Label* pLogoLabel = null;
+                       Label* pAccountNameLabel = null;
+                       Label* pAddressLabel = null;
+                       Bitmap* pLogo = null;
+                       AppResource* pAppRes = App::GetInstance()->GetAppResource();
+
+                       pItem->Construct(layout, Dimension(itemWidth, __itemHeight), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+                       pLogo = pAppRes->GetBitmapN(File::GetFileName(__pAccount->GetLogoIconPath()));
+
+//                     Label* pAccountName = new (std::nothrow) Label();
+//                     pAccountName->Construct(Rectangle(X_ACCOUNT_NAME_ITEM, Y_ACCOUNT_NAME_ITEM, clientRect.width-X_ACCOUNT_NAME_ITEM, H_ACCOUNT_SETTINGS_NAME_ITEM), __pAccount->GetAccountName());
+//                     __pAccountDetailPanel->AddControl(pAccountName);
+//                     pAccountName->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+//                     pAccountName->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+//                     pAccountName->SetMargin(0,0);
+//                     pAccountName->SetTextConfig(42, LABEL_TEXT_STYLE_BOLD);
+//
+//                     Label* pEmailAddress = new (std::nothrow) Label();
+//                     pEmailAddress->Construct(Rectangle(X_ACCOUNT_ADDRESS_ITEM, Y_ACCOUNT_ADDRESS_ITEM, clientRect.width-X_ACCOUNT_ADDRESS_ITEM, H_ACCOUNT_ADDRESS_ITEM), __pAccount->GetUserEmailAddress());
+//                     pEmailAddress->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+//                     pEmailAddress->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+//                     pEmailAddress->SetMargin(0,0);
+//                     pEmailAddress->SetTextConfig(FONT_SIZE_MAILBOX_LABEL, LABEL_TEXT_STYLE_NORMAL);
+//                     __pAccountDetailPanel->AddControl(pEmailAddress);
+
+                       pLogoLabel = new (std::nothrow) Label();
+                       pLogoLabel->Construct(Rectangle(X_ACCOUNT_BITMAP_ITEM, (__itemHeight /*- H_DEFAULTACCOUNT_ITEM/2*/ - H_ACCOUNT_BITMAP_ITEM)/2, W_ACCOUNT_BITMAP_ITEM, H_ACCOUNT_BITMAP_ITEM), L"");
+                       pLogoLabel->SetBackgroundBitmap(*pLogo);
+                       pItem->AddControl(pLogoLabel);
+
+                       pAccountNameLabel = new (std::nothrow) Label();
+                       pAccountNameLabel->Construct(Rectangle(X_ACCOUNT_NAME_ITEM, Y_ORIGIN, W_ACCOUNT_NAME_ITEM, __itemHeight - H_DEFAULTACCOUNT_ITEM/2), __pAccount->GetAccountName());
+                       pAccountNameLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+                       pAccountNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pAccountNameLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+                       pItem->AddControl(pAccountNameLabel);
+
+                       pAddressLabel = new (std::nothrow) Label();
+                       pAddressLabel->Construct(Rectangle(X_ACCOUNT_NAME_ITEM, __itemHeight - H_DEFAULTACCOUNT_ITEM/2, W_ACCOUNT_NAME_ITEM, H_DEFAULTACCOUNT_ITEM/2), __pAccount->GetUserEmailAddress());
+                       pAddressLabel->SetTextColor(Color::GetColor(COLOR_ID_GREY));
+                       pAddressLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pAddressLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
+                       pAddressLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
+                       pItem->AddControl(pAddressLabel);
+
+                       layout.SetRelation(*pLogoLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*pAddressLabel, pLogoLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+                       layout.SetRelation(*pAccountNameLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetRelation(*pAddressLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetRelation(*pAccountNameLabel, pLogoLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+                       layout.SetMargin(*pLogoLabel, 24, 10, (__itemHeight - H_ACCOUNT_BITMAP_ITEM) / 2, (__itemHeight - H_ACCOUNT_BITMAP_ITEM) / 2);
+               }
+               else if (itemIndex <= __pMailOptionList->GetCount())
+               {
+                       Label* pOptionLabel = null;
+                       String* pStr = static_cast <String*>(__pMailOptionList->GetAt(itemIndex - 1));
+
+                       pItem->Construct(layout, Dimension(itemWidth, __itemHeight), TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING);
+
+                       pOptionLabel = new (std::nothrow) Label();
+                       pOptionLabel->Construct(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - pItem->GetAnnexWidth(TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING) - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), *pStr);
+                       pOptionLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+                       pOptionLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pOptionLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pOptionLabel);
+                       layout.SetRelation(*pOptionLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetRelation(*pOptionLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetMargin(*pOptionLabel, X_COMMON_CUSTOM_ITEM, pItem->GetAnnexWidth(TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING) + X_COMMON_CUSTOM_ITEM, 12, 12);
+               }
+               else
+               {
+                       pItem->Construct(layout, Dimension(itemWidth, __itemHeight), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+                       __pSignatureField = new (std::nothrow) EditArea();
+
+                       __pSignatureField->Construct(Rectangle(X_UX_EDITFIELD, Y_UX_EDITFIELD -  272, itemWidth-(2*X_UX_EDITFIELD), H_UX_EDITFIELD),INPUT_STYLE_OVERLAY,100);
+                       __pSignatureField->SetGuideText(Utils::GetResourceString(L"IDS_EMAIL_BODY_SIGNATURE"));
+                       __pSignatureField->SetKeypadEnabled(true);
+                       __pSignatureField->SetOverlayKeypadCommandButtonVisible(false);
+                       __pSignatureField->SetKeypadAction(KEYPAD_ACTION_ENTER);
+                       __pSignatureField->SetTextSize(__fontSize);
+                       __pSignatureField->AddTextEventListener(*this);
+
+                       if (__pAccount->GetOptions()->GetAddSignature() == true)
+                       {
+                               __pSignatureField->SetEnabled(true);
+                               __pSignatureField->Invalidate(true);
+                       }
+                       else
+                       {
+                               __pSignatureField->SetEnabled(false);
+                       }
+
+                       __pSignatureField->SetText(__pAccount->GetOptions()->GetSignature());
+                       pItem->AddControl(__pSignatureField);
+
+                       layout.SetRelation(*__pSignatureField, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*__pSignatureField, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetRelation(*__pSignatureField, pItem, RECT_EDGE_RELATION_TOP_TO_TOP);
+                       layout.SetRelation(*__pSignatureField, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+               }
+
+//             pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - pItem->GetAnnexWidth(LIST_ANNEX_STYLE_ONOFF_SLIDING) - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, *pStr, __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+       else if (sectionIndex == SETUP_MAILBOX_LIST_GROUP)
+       {
+               String* pMailbox = null;
+               String* pSubText = null;
+               Label* pMailboxLabel = null;
+               Label* pSubTextLabel = null;
+
+               pMailbox = static_cast <String*>(__pSetupMailboxList->GetAt(itemIndex));
+               pSubText = static_cast <String*>(__pSubTextList->GetAt(itemIndex));
+               pItem->Construct(layout, Dimension(itemWidth, __itemHeight), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+               pMailboxLabel = new (std::nothrow) Label();
+               pMailboxLabel->Construct(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth, __itemHeight - 2 * Y_COMMON_CUSTOM_ITEM - 50), *pMailbox);
+               pMailboxLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+               pMailboxLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+               pMailboxLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+               pItem->AddControl(pMailboxLabel);
+
+               pSubTextLabel = new (std::nothrow) Label();
+               pSubTextLabel->Construct(Rectangle(X_COMMON_CUSTOM_ITEM, __itemHeight - 50, itemWidth, 35), *pSubText);
+               pSubTextLabel->SetTextConfig(25, LABEL_TEXT_STYLE_NORMAL);
+               pSubTextLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+               pSubTextLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+               pItem->AddControl(pSubTextLabel);
+
+               layout.SetRelation(*pMailboxLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+               layout.SetRelation(*pMailboxLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               layout.SetRelation(*pSubTextLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+               layout.SetRelation(*pSubTextLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+//             pItem->AddElement(Rectangle(), IDA_ACCOUNT_SETTING_FORM_INBOX_OPTION_PROVIDER_ELEMENT, *pstr, __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+//             pItem->AddElement(Rectangle(), IDA_ACCOUNT_SETTING_FORM_SPAMBOX_OPTION_PROVIDER_ELEMENT, *psubstr, 25, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+
+       layout.Update();
+       AppLogDebug("EXIT, item address:(%x)", pItem);
+       return pItem;
+}
+
+bool
+AccountSettingForm::DeleteItem(int sectionIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("deleting item - sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       delete pItem;
+
+       if (sectionIndex == MAIL_OPTIONS_GROUP && itemIndex == 7)
+       {
+               __pSignatureField = null;
+       }
+
+       return true;
+}
+
+void
+AccountSettingForm::UpdateItem(int sectionIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+String
+AccountSettingForm::GetSectionHeader(int sectionIndex)
+{
+       AppLogDebug("ENTER & EXIT");
+
+       return Utils::GetResourceString(L"IDS_EMAIL_BODY_MAILBOX_SETUP");
+}
+
+bool
+AccountSettingForm::HasSectionHeader(int sectionIndex)
+{
+       AppLogDebug("ENTER");
+
+       if (sectionIndex == MAIL_OPTIONS_GROUP)
+       {
+               return false;
+       }
+       else
+       {
+               return true;
+       }
+}
+
+String
+AccountSettingForm::GetSectionFooter(int sectionIndex)
+{
+       AppLogDebug("ENTER & EXIT");
+
+       return L"";
+}
+
+bool
+AccountSettingForm::HasSectionFooter(int sectionIndex)
+{
+       AppLogDebug("ENTER & EXIT");
+
+       return false;
+}
+
+int
+AccountSettingForm::GetDefaultItemHeight(void)
+{
+       return H_MANUAL_SETUP_ITEM;
+}
+
+void
+AccountSettingForm::OnSectionTableViewItemStateChanged(SectionTableView& tableView, int sectionIndex, int itemIndex, TableViewItem* pItem, TableViewItemStatus status)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d), pItem:(%x), status:(%d)", sectionIndex, itemIndex, pItem, status);
+
+       if (sectionIndex == MAIL_OPTIONS_GROUP)
+       {
+               if (itemIndex > 0 && itemIndex <= __pMailOptionList->GetCount())
+               {
+                       if (__pSignatureField != null)
+                       {
+                               __pSignatureField->HideKeypad();
+                       }
+
+                       switch(itemIndex)
+                       {
+                       case 1:
+                       {
+                               if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
+                               {
+                                       __pAccount->GetOptions()->SetReplyWithBody(1);
+                               }
+                               else
+                               {
+                                       __pAccount->GetOptions()->SetReplyWithBody(0);
+                               }
+                       }
+                       break;
+
+                       case 2:
+                       {
+                               if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
+                               {
+                                       __pAccount->GetOptions()->SetForwardWithFiles(1);
+                               }
+                               else
+                               {
+                                       __pAccount->GetOptions()->SetForwardWithFiles(0);
+                               }
+                       }
+                       break;
+
+                       case 3:
+                       {
+                               if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
+                               {
+                                       __pAccount->GetOptions()->SetAddMyAddressToBcc(EMAIL_ADD_MY_ADDRESS_OPTION_ALWAYS_ADD_TO_BCC);
+                               }
+                               else
+                               {
+                                       __pAccount->GetOptions()->SetAddMyAddressToBcc(EMAIL_ADD_MY_ADDRESS_OPTION_DO_NOT_ADD);
+                               }
+                       }
+                       break;
+
+                       case 4:
+                       {
+                               if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
+                               {
+                                       __pAccount->GetOptions()->SetReqDeliveryReceipt(1);
+                               }
+                               else
+                               {
+                                       __pAccount->GetOptions()->SetReqDeliveryReceipt(0);
+                               }
+                       }
+                       break;
+
+                       case 5:
+                       {
+                               if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
+                               {
+                                       __pAccount->GetOptions()->SetKeepLocalCopy(1);
+                               }
+                               else
+                               {
+                                       __pAccount->GetOptions()->SetKeepLocalCopy(0);
+                               }
+                       }
+                       break;
+
+                       case 6:
+                       {
+                               if (status == TABLE_VIEW_ITEM_STATUS_CHECKED)
+                               {
+                                       __pAccount->GetOptions()->SetAddSignature(1);
+                                       __pSignatureField->SetEnabled(true);
+                                       __pSignatureField->Invalidate(true);
+                                       __pSectionTableView->SetItemEnabled(MAIL_OPTIONS_GROUP, 7, true);
+                               }
+                               else
+                               {
+                                       __pAccount->GetOptions()->SetAddSignature(0);
+                                       __pSignatureField->SetEnabled(false);
+                                       __pSignatureField->Invalidate(true);
+                                       __pSectionTableView->SetItemEnabled(MAIL_OPTIONS_GROUP, 7, false);
+                               }
+                       }
+                       break;
+                       }
+
+                       __pSectionTableView->Invalidate(true);
+               }
+       }
+       else if (sectionIndex == SETUP_MAILBOX_LIST_GROUP)
+       {
+               if (__pSignatureField != null)
+               {
+                       __pSignatureField->HideKeypad();
+               }
+
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+               pArgs->Add(__pAccount);
+               pArgs->Add(new (std::nothrow) Integer(itemIndex));
+
+//             listView.SetFocus();
+               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_SETTING_SETUP_MAILBOX), pArgs);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AccountSettingForm::OnSectionTableViewContextItemActivationStateChanged(SectionTableView& tableView, int sectionIndex, int itemIndex, TableViewContextItem* pContextItem, bool activated)
+{
+       // Empty Implementation
+}
+
+void
+AccountSettingForm::OnTextValueChanged(const Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER");
+
+       __pAccount->GetOptions()->SetSignature(__pSignatureField->GetText());
+
+       AppLogDebug("EXIT");
+}
+
+void
+AccountSettingForm::OnTextValueChangeCanceled(const Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER & EXIT");
+}
+
+void
+AccountSettingForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmAccountSettingSetUpMailboxForm.cpp b/src/EmAccountSettingSetUpMailboxForm.cpp
new file mode 100755 (executable)
index 0000000..d5ac7cc
--- /dev/null
@@ -0,0 +1,455 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file         EmAccountSettingSetUpMailboxForm.cpp
+ * @brief        Account Setting set up mailbox form lets user choose the mapping for the mailboxes
+ */
+
+#include "EmAccountSettingSetUpMailboxForm.h"
+#include "EmEmailApp.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+AccountSettingSetUpMailboxForm::AccountSettingSetUpMailboxForm(void)
+       : __pAccount(null)
+       , __index(0)
+       , __sentIndex(0)
+       , __draftIndex(0)
+       , __trashIndex(0)
+       , __spamIndex(0)
+       , __fontSize(44.0f)
+       , __itemHeight(150.0f)
+       , __pMailboxList(null)
+       , __pMailboxListview(null)
+{
+       // Empty implementation
+}
+
+AccountSettingSetUpMailboxForm::~AccountSettingSetUpMailboxForm(void)
+{
+       // Empty implementation
+}
+
+bool
+AccountSettingSetUpMailboxForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+
+       bool retVal = true;
+       result r = E_SUCCESS;
+
+       r = Construct(IDL_SETUP_MAILBOX_FORM);
+       TryCatch(r == E_SUCCESS, retVal = false, "Failed to Construct Set up mailbox Form");
+
+CATCH:
+       AppLogDebug("EXIT, r:(%s), retVal:(%d)", GetErrorMessage(r), retVal);
+       return retVal;
+}
+
+result
+AccountSettingSetUpMailboxForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+
+       __pMailboxList = new (std::nothrow) HashMap();
+       __pMailboxList->Construct();
+
+       // Sets formback listener to the form
+       SetFormBackEventListener(this);
+       AddOrientationEventListener(*this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE);
+
+       // Static cast of List View
+       __pMailboxListview = dynamic_cast<ListView*>(GetControl(IDC_SETUP_MAILBOX_LISTVIEW));
+
+       if (__pMailboxListview != null)
+       {
+               __pMailboxListview->SetItemProvider(*this);
+               __pMailboxListview->SetSize(Dimension(GetClientAreaBounds().width, GetClientAreaBounds().height));
+               __pMailboxListview->AddListViewItemEventListener(*this);
+       }
+
+       SetFontValues();
+
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+result
+AccountSettingSetUpMailboxForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       __pMailboxList->RemoveAll();
+       delete __pMailboxList;
+
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+void
+AccountSettingSetUpMailboxForm::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state)
+{
+       // Empty implementation
+}
+
+void
+AccountSettingSetUpMailboxForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
+{
+       AppLogDebug("ENTER, index:(%d), elementId:(%d), status:(%d)", index, elementId, status);
+
+       if (index != __currentIndex)
+       {
+               __pMailboxListview->SetItemChecked(__currentIndex, false);
+               __pMailboxListview->SetItemChecked(index, true);
+               __currentIndex = index;
+       }
+       else
+       {
+               __pMailboxListview->SetItemChecked(index, true);
+       }
+
+       Invalidate(true);
+       AppLogDebug("EXIT");
+}
+void
+AccountSettingSetUpMailboxForm::OnListViewItemSwept(Tizen::Ui::Controls::ListView &listView, int index, Tizen::Ui::Controls::SweepDirection direction)
+{
+       // Empty implementation
+}
+
+ListItemBase*
+AccountSettingSetUpMailboxForm::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER, index:(%d), itemWidth:(%d)", index, itemWidth);
+
+//     SimpleItem* pItem = new (std::nothrow) SimpleItem();
+//     String str;
+//     pItem->Construct(Dimension(itemWidth, H_COMMON_CUSTOM_ITEM), LIST_ANNEX_STYLE_RADIO);
+//     str = static_cast <EmailMailbox*>(__pMailboxList->GetValue(Integer(index)))->GetMailboxAlias();
+//
+//     pItem->SetElement(str, null);
+
+       CustomItem* pItem = new (std::nothrow) CustomItem();
+       String str = static_cast <EmailMailbox*>(__pMailboxList->GetValue(Integer(index)))->GetMailboxAlias();
+
+       pItem->Construct(Dimension(itemWidth, __itemHeight), LIST_ANNEX_STYLE_RADIO);
+       pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM , Y_COMMON_CUSTOM_ITEM, itemWidth - pItem->GetAnnexWidth(LIST_ANNEX_STYLE_RADIO) - LIST_ITEM_LEFT_MARGIN - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, str, __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+bool
+AccountSettingSetUpMailboxForm::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER, pItem:(%x), itemWidth:(%d)", pItem, itemWidth);
+
+       if (pItem != null)
+       {
+               CustomItem* pTempItem = static_cast<CustomItem*>(pItem);
+               delete pTempItem;
+               pTempItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+int
+AccountSettingSetUpMailboxForm::GetItemCount(void)
+{
+       AppLogDebug("ENTER");
+
+       int count = 0;
+
+       IList* pKeyList = __pMailboxList->GetKeysN();
+
+       if (pKeyList != null)
+       {
+               count = pKeyList->GetCount();
+
+               pKeyList->RemoveAll();
+               delete pKeyList;
+       }
+
+       AppLogDebug("EXIT, count:(%d)", count);
+       return count;
+}
+
+void
+AccountSettingSetUpMailboxForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER, prevScene:(%ls), currentScene:(%ls), pArgs:(%x)", previousSceneId.GetPointer(), currentSceneId.GetPointer(), pArgs);
+
+       Header* pHeader = GetHeader();
+       __pAccount = static_cast<EmailAccount*>(pArgs->GetAt(0));
+       __index = static_cast<Integer*>(pArgs->GetAt(1))->ToInt();
+
+       pArgs->RemoveAt(1, true);
+       pArgs->RemoveAll();
+       delete pArgs;
+
+       EmailMailbox* mailbox = null;
+
+       if (__pAccount == null)
+       {
+               AppLogDebug("Got null account object!");
+       }
+       else
+       {
+               int accountId = __pAccount->GetAccountId();
+               IEnumerator* pEnum = EmailMailboxManager::GetInstance()->GetMailboxesByAccountIdN(accountId);
+               int i = 0;
+
+               while (pEnum != null && !IsFailed(pEnum->MoveNext()))
+               {
+                       mailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+                       if (mailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_INBOX && mailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_OUTBOX && mailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_ALL_EMAILS)
+                       {
+                               __pMailboxList->Add(new (std::nothrow) Integer(i), mailbox);
+
+                               if (mailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_SENTBOX)
+                               {
+                                       __sentIndex = i;
+                               }
+                               else if (mailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_DRAFT)
+                               {
+                                       __draftIndex = i;
+                               }
+                               else if (mailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_TRASH)
+                               {
+                                       __trashIndex = i;
+                               }
+                               else if (mailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_SPAMBOX)
+                               {
+                                       __spamIndex = i;
+                               }
+
+                               i++;
+
+                       }
+               }
+
+               __pMailboxListview->UpdateList();
+
+               for (int i = 0; i < __pMailboxList->GetCount(); i++)
+               {
+                       EmailMailbox* pTmpMailbox = static_cast<EmailMailbox*>(__pMailboxList->GetValue(Integer(i)));
+
+                       if (pTmpMailbox->GetNoSelect() == true)
+                       {
+                               __pMailboxListview->SetItemEnabled(i, false);
+                       }
+                       else if (pTmpMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_SENTBOX ||
+                                        pTmpMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_DRAFT   ||
+                                        pTmpMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_TRASH   ||
+                                        pTmpMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_SPAMBOX)
+                       {
+                               switch (__index)
+                               {
+                               case 0:
+                                       if (pTmpMailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_SENTBOX)
+                                       {
+                                               __pMailboxListview->SetItemEnabled(i, false);
+                                       }
+                                       break;
+                               case 1:
+                                       if (pTmpMailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_DRAFT)
+                                       {
+                                               __pMailboxListview->SetItemEnabled(i, false);
+                                       }
+                                       break;
+                               case 2:
+                                       if (pTmpMailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_TRASH)
+                                       {
+                                               __pMailboxListview->SetItemEnabled(i, false);
+                                       }
+                                       break;
+                               case 3:
+                                       if (pTmpMailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_SPAMBOX)
+                                       {
+                                               __pMailboxListview->SetItemEnabled(i, false);
+                                       }
+                                       break;
+                               }
+                       }
+                       else
+                       {
+                               __pMailboxListview->SetItemEnabled(i, true);
+                       }
+               }
+
+               for (int i = 0; i < __pMailboxList->GetCount(); i++)
+               {
+                       __pMailboxListview->SetItemChecked(i, false);
+               }
+
+               switch(__index)
+               {
+               case 0:
+               {
+                       pHeader->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_SENTBOX"));
+                       __pMailboxListview->SetItemChecked(__sentIndex, true);
+                       __prevIndex = __sentIndex;
+               }
+               break;
+               case 1:
+               {
+                       pHeader->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_DRAFTS"));
+                       __pMailboxListview->SetItemChecked(__draftIndex, true);
+                       __prevIndex = __draftIndex;
+               }
+               break;
+               case 2:
+               {
+                       pHeader->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_TRASH"));
+                       __pMailboxListview->SetItemChecked(__trashIndex, true);
+                       __prevIndex = __trashIndex;
+               }
+               break;
+               case 3:
+               {
+                       pHeader->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_SPAMBOX"));
+                       __pMailboxListview->SetItemChecked(__spamIndex, true);
+                       __prevIndex = __spamIndex;
+               }
+               break;
+               }
+
+               __currentIndex = __prevIndex;
+
+               __pMailboxListview->Invalidate(true);
+
+       }
+
+       AppLogDebug("EXIT");
+}
+void
+AccountSettingSetUpMailboxForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       // empty implementation
+}
+
+void
+AccountSettingSetUpMailboxForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       email_mailbox_type_e mailboxType;
+       EmailMailbox* pMailbox = null;
+
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+       pArgs->Construct();
+       pArgs->Add(__pAccount);
+
+       if (__currentIndex != __prevIndex)
+       {
+               switch (__index)
+               {
+               case 0:
+                       mailboxType = EMAIL_MAILBOX_TYPE_SENTBOX;
+                       break;
+               case 1:
+                       mailboxType = EMAIL_MAILBOX_TYPE_DRAFT;
+                       break;
+               case 2:
+                       mailboxType = EMAIL_MAILBOX_TYPE_TRASH;
+                       break;
+               case 3:
+                       mailboxType = EMAIL_MAILBOX_TYPE_SPAMBOX;
+                       break;
+               }
+
+               pMailbox = static_cast<EmailMailbox*>(__pMailboxList->GetValue(Integer(__prevIndex)));
+               if (pMailbox != null)
+               {
+                       pMailbox->SetMailboxTypeDB(EMAIL_MAILBOX_TYPE_USER_DEFINED);
+               }
+
+               pMailbox = static_cast<EmailMailbox*>(__pMailboxList->GetValue(Integer(__currentIndex)));
+               if (pMailbox != null)
+               {
+                       pMailbox->SetMailboxTypeDB(mailboxType);
+               }
+
+
+       }
+
+       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(), pArgs);
+
+       AppLogDebug("EXIT");
+}
+
+void
+AccountSettingSetUpMailboxForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER, orientationStatus:(%d)", orientationStatus);
+
+       Rectangle clientRect;
+       __pMailboxListview->SetBounds(clientRect.x, clientRect.y, clientRect.width, clientRect.height);
+
+       AppLogDebug("EXIT");
+}
+
+void
+AccountSettingSetUpMailboxForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmAddAccountForm.cpp b/src/EmAddAccountForm.cpp
new file mode 100755 (executable)
index 0000000..f8b363d
--- /dev/null
@@ -0,0 +1,950 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmAddAccountFormForm.cpp
+ * @brief      Enables the user to add a new account
+ */
+
+#include <FSocial.h>
+#include <FSystem.h>
+#include "EmAddAccountForm.h"
+#include "EmEmailApp.h"
+#include "EmInboxPresentationModel.h"
+#include "EmManualSetUpForm.h"
+#include "EmStateInfo.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Social;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+AddAccountForm::AddAccountForm(void)
+       : __addAccountId(-1)
+       , __addAccountSvcId(-1)
+       , __validationHandle(-1)
+       , __fontSize(44.0f)
+       , __itemHeight(150.0f)
+       , __waitForNoti(false)
+       , __waitForValidateNoti(false)
+       , __waitForMailboxSyncNoti(false)
+       , __isBackFromManualSetup(false)
+       , __previousSceneId(L"")
+       , __currentDomainName(L"")
+       , __pArgs(null)
+       , __pManualSettingsButton(null)
+       , __pShowPassword(null)
+       , __pEmailAddressField(null)
+       , __pPasswordField(null)
+       , __pProgressPopup(null)
+       , __pAccount(null)
+{
+       // Empty Implementation
+}
+
+AddAccountForm::~AddAccountForm(void)
+{
+       // Empty Implementation
+}
+
+bool
+AddAccountForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+       bool retVal = true;
+       result r = E_SUCCESS;
+       r = Form::Construct(IDL_LOGIN_FORM);
+       TryCatch(r == E_SUCCESS, retVal = false, "Failed to Construct AddAccountForm");
+
+CATCH:
+       AppLogDebug("EXIT :r = %s", GetErrorMessage(r));
+       return retVal;
+}
+
+result
+AddAccountForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       Color bgColor;
+       Color headerTextColor = GetHeader()->GetTitleTextColor();
+
+       GetFooter()->AddActionEventListener(*this);
+
+       SetFormBackEventListener(this);
+       AddOrientationEventListener(*this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+
+       GetFooter()->SetItemEnabled(0, false);
+       SetFontValues();
+
+       __pEmailAddressField = static_cast<EditField*>(GetControl(IDC_EMAIL_EDITFIELD, true));
+       __pEmailAddressField->AddActionEventListener(*this);
+       __pEmailAddressField->AddKeypadEventListener(*this);
+       __pEmailAddressField->AddTextEventListener(*this);
+       __pEmailAddressField->SetSize(__pEmailAddressField->GetWidth(), __itemHeight);
+       __pEmailAddressField->SetTextSize(__fontSize);
+       __pEmailAddressField->SetTitleTextColor(EDIT_STATUS_NORMAL, headerTextColor);
+       __pEmailAddressField->SetTitleTextColor(EDIT_STATUS_PRESSED, headerTextColor);
+       __pEmailAddressField->SetTitleTextColor(EDIT_STATUS_HIGHLIGHTED, headerTextColor);
+       __pEmailAddressField->SetTitleTextColor(EDIT_STATUS_DISABLED, headerTextColor);
+
+       bgColor = __pEmailAddressField->GetColor(EDIT_STATUS_NORMAL);
+       __pEmailAddressField->SetColor(EDIT_STATUS_PRESSED, bgColor);
+       __pEmailAddressField->SetColor(EDIT_STATUS_HIGHLIGHTED, bgColor);
+       __pEmailAddressField->SetColor(EDIT_STATUS_DISABLED, bgColor);
+
+       __pPasswordField = static_cast<EditField*>(GetControl(IDC_PASSWORD_EDITFIELD, true));
+       __pPasswordField->AddActionEventListener(*this);
+       __pPasswordField->AddKeypadEventListener(*this);
+       __pPasswordField->AddTextEventListener(*this);
+       __pPasswordField->SetSize(__pPasswordField->GetWidth(), __itemHeight);
+       __pPasswordField->SetTextSize(__fontSize);
+       __pPasswordField->SetTitleTextColor(EDIT_STATUS_NORMAL, headerTextColor);
+       __pPasswordField->SetTitleTextColor(EDIT_STATUS_PRESSED, headerTextColor);
+       __pPasswordField->SetTitleTextColor(EDIT_STATUS_HIGHLIGHTED, headerTextColor);
+       __pPasswordField->SetTitleTextColor(EDIT_STATUS_DISABLED, headerTextColor);
+       __pPasswordField->SetColor(EDIT_STATUS_PRESSED, bgColor);
+       __pPasswordField->SetColor(EDIT_STATUS_HIGHLIGHTED, bgColor);
+       __pPasswordField->SetColor(EDIT_STATUS_DISABLED, bgColor);
+
+       __pShowPassword = static_cast<CheckButton*>(GetControl(IDC_SHOW_PASSWORD_CHECKBUTTON, true));
+       __pShowPassword->SetActionId(IDA_SHOW_PASSWORD_CHECKED, IDA_SHOW_PASSWORD_UNCHECKED);
+       __pShowPassword->AddActionEventListener(*this);
+       bgColor = __pShowPassword->GetColor(CHECK_BUTTON_STATUS_NORMAL);
+       __pShowPassword->SetColor(CHECK_BUTTON_STATUS_PRESSED, bgColor);
+       __pShowPassword->SetColor(CHECK_BUTTON_STATUS_HIGHLIGHTED, bgColor);
+
+       __pManualSettingsButton = static_cast<Button*>(GetControl(IDC_MANUAL_SETTINGS_BUTTON, true));
+       __pManualSettingsButton->SetActionId(IDA_ADD_ACCOUNT_MANUAL_SETUP);
+       __pManualSettingsButton->AddActionEventListener(*this);
+       __pManualSettingsButton->SetEnabled(false);
+
+       Rectangle clientRect = GetClientAreaBounds();
+       __pProgressPopup = new (std::nothrow) ProgressPopup();
+       __pProgressPopup->Construct(false, false);
+       __pProgressPopup->SetPropagatedKeyEventListener(this);
+       __pProgressPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING"));
+       __pProgressPopup->AddProgressPopupEventListener(*this);
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+AddAccountForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       if(__pProgressPopup != null)
+       {
+               delete __pProgressPopup;
+               __pProgressPopup = null;
+       }
+
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+void
+AddAccountForm::OnActionPerformed(const Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+
+       int modalResult;
+       String emailLowerCase;
+
+       if (actionId == IDA_ADD_ACCOUNT_FORM_FOOTER_NEXT)
+       {
+               __isBackFromManualSetup = false;
+
+               if (!__pEmailAddressField->GetText().IsEmpty() && !__pPasswordField->GetText().IsEmpty())
+               {
+                       EmailSettingsProvider* pEmailSettingsProvider = EmailSettingsProvider::GetInstance();
+
+                       __pEmailAddressField->HideKeypad();
+                       __pPasswordField->HideKeypad();
+
+                       if (Utils::ValidateEmailAddress(__pEmailAddressField->GetText()) == false)
+                       {
+                               int modRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+                       else if (pEmailSettingsProvider->IsAccountExists(__pEmailAddressField->GetText()) == false)
+                       {
+                               result r = E_SUCCESS;
+                               String emailAddress = __pEmailAddressField->GetText();
+                               String userName = Utils::ExtractUserNameFromEmailAddress(emailAddress);
+                               String password = __pPasswordField->GetText();
+
+                               __pAccount->SetUserDisplayName(userName);
+                               __pAccount->SetUserEmailAddress(emailAddress);
+                               __pAccount->SetReplyToAddress(emailAddress);
+                               __pAccount->SetReturnAddress(emailAddress);
+
+                               __pAccount->SetIncomingServerUsername(userName);
+                               __pAccount->SetIncomingServerPassword(password);
+                               __pAccount->SetOutgoingServerUsername(userName);
+                               __pAccount->SetOutgoingServerPassword(password);
+
+                               __pEmailAddressField->GetText().ToLowerCase(emailLowerCase);
+
+                               if (__pAccount->GetServerType() == SERVER_AUTO)
+                               {
+                                       if (emailLowerCase.Contains(IDS_SAMSUNG_MAIL) == true)
+                                       {
+                                               __pAccount->SetServerType(SERVER_SAMSUNG);
+                                       }
+                                       else if (emailLowerCase.Contains(IDS_GMAIL_MAIL) == true)
+                                       {
+                                               __pAccount->SetServerType(SERVER_GOOGLE);
+                                       }
+                                       else if (emailLowerCase.Contains(IDS_YAHOO_MAIL) == true)
+                                       {
+                                               __pAccount->SetServerType(SERVER_YAHOO);
+                                       }
+                                       else if (emailLowerCase.Contains(IDS_HOTMAIL) == true || emailLowerCase.Contains(IDS_LIVE) == true)
+                                       {
+                                               __pAccount->SetServerType(SERVER_HOTMAIL);
+                                       }
+                                       else if (emailLowerCase.Contains(IDS_NAVER) == true)
+                                       {
+                                               __pAccount->SetServerType(SERVER_NAVER);
+                                       }
+                                       else
+                                       {
+                                               __pAccount->SetServerType(SERVER_NONE);
+                                       }
+
+                                       pEmailSettingsProvider->InitializeAccountData(__pAccount, __pAccount->GetServerType());
+
+                                       if (__pAccount->GetServerType() != SERVER_NONE)
+                                       {
+                                               ShowPopup();
+
+                                               r = pEmailSettingsProvider->ValidateAccount(__pAccount, __validationHandle);
+
+                                               __pAccount->SetServerType(SERVER_AUTO);
+
+                                               __waitForValidateNoti = true;
+
+                                               if (r != E_SUCCESS)
+                                               {
+                                                       __waitForValidateNoti = false;
+
+                                                       MessageBox msgBox;
+                                                       HidePopup();
+                                                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                                                       msgBox.ShowAndWait(modalResult);
+
+                                                       AppLogDebug("Validate failed with error:(%s)", GetErrorMessage(r));
+                                               }
+                                       }
+                                       else
+                                       {
+                                               ArrayList* pArgs = new (std::nothrow) ArrayList();
+                                               pArgs->Add(new (std::nothrow) EmailAccount(*__pAccount));
+                                               pArgs->Add(new (std::nothrow) Integer(ACCOUNT_ADD_MODE));
+                                               __pAccount = null;
+
+                                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_ADD_ACCOUNT_MANUAL_SETUP), pArgs);
+                                       }
+                               }
+                               else if (__pAccount->GetServerType() == SERVER_MANUAL)
+                               {
+                                       ShowPopup();
+
+                                       r = pEmailSettingsProvider->ValidateAccount(__pAccount, __validationHandle);
+
+                                       __waitForValidateNoti = true;
+
+                                       if (r != E_SUCCESS)
+                                       {
+                                               __waitForValidateNoti = false;
+
+                                               MessageBox msgBox;
+                                               HidePopup();
+                                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                                               msgBox.ShowAndWait(modalResult);
+                                       }
+                               }
+                       }
+                       else
+                       {
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modalResult);
+                       }
+               }
+               else
+               {
+                       __pEmailAddressField->HideKeypad();
+                       __pPasswordField->HideKeypad();
+
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Please enter user details before proceeding!", MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalResult);
+               }
+       }
+       else if (actionId == IDA_ADD_ACCOUNT_MANUAL_SETUP)
+       {
+
+               if (!__pEmailAddressField->GetText().IsEmpty() && !__pPasswordField->GetText().IsEmpty())
+               {
+                       __pEmailAddressField->HideKeypad();
+                       __pPasswordField->HideKeypad();
+
+                       if (Utils::ValidateEmailAddress(__pEmailAddressField->GetText()) == false)
+                       {
+                               int modRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+                       else
+                       {
+                               EmailSettingsProvider* pEmailSettingsProvider = EmailSettingsProvider::GetInstance();
+                               String emailAddress = __pEmailAddressField->GetText();
+                               String userName = Utils::ExtractUserNameFromEmailAddress(emailAddress);
+                               String password = __pPasswordField->GetText();
+
+                               if (__pAccount->GetServerType() != SERVER_MANUAL &&  __isBackFromManualSetup == false )
+                               {
+                                       __pAccount->SetServerType(SERVER_NONE);
+                                       pEmailSettingsProvider->InitializeAccountData(__pAccount, __pAccount->GetServerType());
+                               }
+
+                               __pAccount->SetAccountName(L"");
+                               __pAccount->SetUserDisplayName(userName);
+                               __pAccount->SetUserEmailAddress(emailAddress);
+                               __pAccount->SetReplyToAddress(emailAddress);
+                               __pAccount->SetReturnAddress(emailAddress);
+
+                               __pAccount->SetIncomingServerUsername(userName);
+                               __pAccount->SetIncomingServerPassword(password);
+                               __pAccount->SetOutgoingServerUsername(userName);
+                               __pAccount->SetOutgoingServerPassword(password);
+
+                               ArrayList* pArgs = new (std::nothrow) ArrayList();
+                               pArgs->Add(__pAccount);
+                               pArgs->Add(new (std::nothrow) Integer(ACCOUNT_ADD_MODE));
+                               __pAccount = null;
+
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_ADD_ACCOUNT_MANUAL_SETUP, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+                       }
+               }
+       }
+       else if (actionId == IDA_SHOW_PASSWORD_CHECKED)
+       {
+               __pPasswordField->SetPasswordVisible(true);
+               __pPasswordField->Invalidate(true);
+       }
+       else if (actionId == IDA_SHOW_PASSWORD_UNCHECKED)
+       {
+               __pPasswordField->SetPasswordVisible(false);
+               __pPasswordField->Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AddAccountForm::OnFormBackRequested(Form& source)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+       pArgs->Construct();
+
+       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+       pStateInfo->accountId = __accountId;
+       pStateInfo->mailboxId = __mailboxId;
+       pStateInfo->pPresentationModel = __pPresentationModel;
+       pStateInfo->mailboxType = __mailboxType;
+
+       pArgs->Add(pStateInfo);
+
+       r = SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pArgs);
+
+       if (EmailApp::GetInstance()->GetOperationType() == EMAIL_OPERATION_COMPOSE && __pArgs != null)
+       {
+               __pArgs->RemoveAll(true);
+               delete __pArgs;
+       }
+
+       if (r == E_UNDERFLOW)
+       {
+               // Probably, add account was the very first screen when app launched,
+               // since no account was added initially.
+               pArgs->RemoveAll(true);
+               delete pArgs;
+               AppLogDebug("Go back failed with error:(%s)", GetErrorMessage(r));
+               App::GetInstance()->Terminate();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AddAccountForm::OnTextValueChanged(const Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER");
+
+       if (IsFieldsEmpty())
+       {
+               __pManualSettingsButton->SetEnabled(false);
+               GetFooter()->SetItemEnabled(0, false);
+       }
+       else
+       {
+               __pManualSettingsButton->SetEnabled(true);
+               GetFooter()->SetItemEnabled(0, true);
+       }
+
+       if (source.GetHashCode() == __pEmailAddressField->GetHashCode() &&
+               Utils::GetDomainName(__pEmailAddressField->GetText()).Equals(__currentDomainName, false) == false &&
+               __pAccount->GetServerType() == SERVER_MANUAL)
+       {
+               __isBackFromManualSetup = false;
+               __pAccount->SetServerType(SERVER_AUTO);
+       }
+
+       __pManualSettingsButton->Invalidate(true);
+       GetFooter()->Invalidate(true);
+
+       AppLogDebug("EXIT");
+}
+
+void
+AddAccountForm::OnTextValueChangeCanceled(const Tizen::Ui::Control& source)
+{
+// Empty implementation
+}
+
+void
+AddAccountForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+       __previousSceneId = previousSceneId;
+       __isBackFromManualSetup = false;
+       if (pArgs != null)
+       {
+               if (previousSceneId.Equals(IDSCN_ADD_ACCOUNT_MANUAL_SETUP, true)) // If we are coming to the add account form from the Manual Setup form, then...
+               {
+                       __isBackFromManualSetup = true;
+                       __pAccount = static_cast<EmailAccount*>(pArgs->GetAt(0));
+
+                       if (__pAccount != null)
+                       {
+                               __pEmailAddressField->SetText(__pAccount->GetUserEmailAddress());
+                               __pPasswordField->SetText(__pAccount->GetOutgoingServerPassword());
+
+                               if (IsFieldsEmpty())
+                               {
+                                       __pManualSettingsButton->SetEnabled(false);
+                               }
+                               else
+                               {
+                                       __pManualSettingsButton->SetEnabled(true);
+                               }
+                               __pManualSettingsButton->Invalidate(true);
+                       }
+
+                       pArgs->RemoveAll(false);
+                       delete pArgs;
+               }
+               else if (EmailApp::GetInstance()->GetOperationType() == EMAIL_OPERATION_COMPOSE)
+               {
+                       AppLogDebug("Adding account before compose");
+                       AppLogDebugIf(pArgs != null, "Argument count:(%d)", pArgs->GetCount());
+
+                       __pArgs = pArgs; // Save the args so we can pass them to compose form.
+
+                       if (__pAccount == null)
+                       {
+                               __pAccount = new (std::nothrow) EmailAccount();
+                       }
+               }
+               else if (EmailApp::GetInstance()->GetOperationType() == EMAIL_OPERATION_NONE)
+               {
+//                     int i=0;
+                       StateInfo* pStateInfo = static_cast<StateInfo*>(pArgs->GetAt(0));
+
+                       __accountId = pStateInfo->accountId;
+                       __mailboxId = pStateInfo->mailboxId;
+                       __pPresentationModel = pStateInfo->pPresentationModel;
+                       __mailboxType = pStateInfo->mailboxType;
+
+//                     __accountId = static_cast<Integer*>(pArgs->GetAt(i++))->ToInt();
+//                     __mailboxId = static_cast<Integer*>(pArgs->GetAt(i++))->ToInt();
+//                     __pPresentationModel = static_cast<BasePresentationModel*>(pArgs->GetAt(i++));
+//                     __mailboxType = (email_mailbox_type_e)(static_cast<Integer*>(pArgs->GetAt(i++))->ToInt());
+
+//                     pArgs->RemoveAt(2);
+                       pArgs->RemoveAll(true);
+                       delete pArgs;
+
+                       __pAccount = new (std::nothrow) EmailAccount();
+               }
+       }
+       else
+       {
+               __pAccount = new (std::nothrow) EmailAccount();
+       }
+
+       __currentDomainName.Clear();
+       __currentDomainName.Append(Utils::GetDomainName(__pEmailAddressField->GetText()));
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AddAccountForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER, current scene:(%ls), next scene id:(%ls)", currentSceneId.GetPointer(), nextSceneId.GetPointer());
+
+       __pEmailAddressField->Clear();
+       __pPasswordField->Clear();
+//     __pManualSettingsButton->SetEnabled(false);
+
+       if (__pAccount != null)
+       {
+               delete __pAccount;
+               __pAccount = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AddAccountForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs)
+{
+       AppLogDebug("ENTER, requestId:(%d)", requestId);
+
+       EmailAccount* pAccount = null;
+       EmailApp* pEmailAppInstance = EmailApp::GetInstance();
+
+       if (__waitForNoti == true)
+       {
+               __waitForNoti = false;
+
+               if (requestId == IDA_VALIDATE_AND_CREATE_ACCOUNT_FINISH && pArgs != null)
+               {
+                       int mailboxId;
+                       int accountId = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+
+                       __pAccount->SetAccountId(accountId);
+
+                       if (__pAccount->GetIncomingServerType() == EMAIL_SERVER_TYPE_IMAP4)
+                       {
+                               result r = E_SUCCESS;
+
+                               __waitForMailboxSyncNoti = true;
+                               r = EmailMailboxManager::GetInstance()->SyncMailboxList(accountId);
+
+                               if (r != E_SUCCESS)
+                               {
+                                       HidePopup();
+
+                                       __waitForMailboxSyncNoti = false;
+                                       AppLogDebug("Failed to sync mailbox list");
+                               }
+                       }
+                       else
+                       {
+                               StateInfo* pStateInfo;
+                               EmailSettingsProvider* pSettingsProvider = EmailSettingsProvider::GetInstance();
+                               pSettingsProvider->InitializeNewAccount(accountId);
+
+                               if (pSettingsProvider->GetAccountCount() == 1)
+                               {
+                                       pSettingsProvider->SetDefaultAccountId(accountId);
+                                       AppLogDebug("Set default account id to:(%d)", accountId);
+                               }
+                               pEmailAppInstance->SetAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
+                               HidePopup();
+                               EmailMailboxManager::GetInstance()->SyncHeader(accountId, 0); // Do an initial mail fetch.
+
+                               if (pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_ADD_ACCOUNT || pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_SETTINGS)
+                               {
+                                       ArrayList* pSceneTransitionArgs = new (std::nothrow) ArrayList();
+                                       pSceneTransitionArgs->Construct();
+
+                                       pAccount = pSettingsProvider->GetAccountById(accountId);
+                                       pSceneTransitionArgs->Add(pAccount);
+                                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_ACCOUNT_CONFIG, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pSceneTransitionArgs);
+                               }
+                               else if (pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_COMPOSE)
+                               {
+                                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), __pArgs);
+                                       __pArgs = null;
+                               }
+                               else
+                               {
+                                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                                       mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(accountId, EMAIL_MAILBOX_TYPE_INBOX);
+                                       pArgs->Construct();
+
+                                       pStateInfo = new (std::nothrow) StateInfo();
+                                       pStateInfo->accountId = accountId;
+                                       pStateInfo->mailboxId = mailboxId;
+                                       pStateInfo->pPresentationModel = InboxPresentationModel::GetInstance();
+                                       pStateInfo->mailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+
+                                       pArgs->Add(pStateInfo);
+
+                                       IListT<SceneId>* pSceneList = SceneManager::GetInstance()->GetSceneHistoryN();
+
+                                       if (pSceneList != null && pSceneList->GetCount())
+                                       {
+                                               if (pSceneList->Contains(IDSCN_INBOX) == true)
+                                               {
+                                                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                               }
+                                               else
+                                               {
+                                                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                               }
+
+                                               pSceneList->RemoveAll();
+                                               delete pSceneList;
+                                       }
+                                       else
+                                       {
+                                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                       }
+                               }
+                       }
+               }
+               else if (requestId == IDA_VALIDATE_AND_CREATE_ACCOUNT_FAIL)
+               {
+                       HidePopup();
+                       int modalRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalRes);
+               }
+       }
+       else if (__waitForValidateNoti == true)
+       {
+               int modalResult;
+               MessageBox msgBox;
+
+               if (requestId == IDA_VALIDATE_ACCOUNT_FINISH)
+               {
+                       int handle = -1;
+
+                       if (pArgs != null)
+                       {
+                               handle = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+                       }
+
+                       if (handle == __validationHandle)
+                       {
+                               __waitForValidateNoti = false;
+                               __waitForNoti = true;
+                               result r = EmailSettingsProvider::GetInstance()->AddAccount(__pAccount, __addAccountId, __addAccountSvcId);
+
+                               if (r != E_SUCCESS)
+                               {
+                                       __waitForNoti = false;
+
+                                       HidePopup();
+                                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                                       msgBox.ShowAndWait(modalResult);
+
+                                       AppLogDebug("Add Account failed with error:(%s)", GetErrorMessage(r));
+                               }
+                       }
+               }
+               else if (requestId == IDA_VALIDATE_ACCOUNT_FAIL)
+               {
+                       __waitForValidateNoti = false;
+                       HidePopup();
+
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalResult);
+
+                       AppLogDebug("Validate Account failed");
+               }
+       }
+       else if (__waitForMailboxSyncNoti == true)
+       {
+               if (requestId == IDA_SYNC_IMAP_MAILBOX_LIST_FINISH)
+               {
+                       int accountId = __pAccount->GetAccountId();
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       StateInfo* pStateInfo;
+                       EmailSettingsProvider* pSettingsProvider = EmailSettingsProvider::GetInstance();
+                       pSettingsProvider->InitializeNewAccount(accountId);
+
+                       if (pSettingsProvider->GetAccountCount() == 1)
+                       {
+                               pSettingsProvider->SetDefaultAccountId(accountId);
+                               AppLogDebug("Set default account id to:(%d)", accountId);
+                       }
+                       __waitForMailboxSyncNoti = false;
+
+                       HidePopup();
+                       pEmailAppInstance->SetAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
+                       EmailMailboxManager::GetInstance()->SyncHeader(accountId, 0); // Do an initial mail fetch.
+
+                       if (pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_ADD_ACCOUNT || pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_SETTINGS)
+                       {
+                               pArgs->Construct();
+
+                               pAccount = pSettingsProvider->GetAccountById(accountId);
+                               pArgs->Add(pAccount);
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_ACCOUNT_CONFIG, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                       }
+                       else if (pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_COMPOSE)
+                       {
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), __pArgs);
+                               __pArgs = null;
+                               pArgs->RemoveAll(true);
+                               delete pArgs;
+                       }
+                       else
+                       {
+                               int accountId = __pAccount->GetAccountId();
+                               int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(accountId, EMAIL_MAILBOX_TYPE_INBOX);
+                               pArgs->Construct();
+
+                               pStateInfo = new (std::nothrow) StateInfo();
+                               pStateInfo->accountId = accountId;
+                               pStateInfo->mailboxId = mailboxId;
+                               pStateInfo->pPresentationModel = InboxPresentationModel::GetInstance();
+                               pStateInfo->mailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+
+                               pArgs->Add(pStateInfo);
+
+                               IListT<SceneId>* pSceneList = SceneManager::GetInstance()->GetSceneHistoryN();
+                               if (pSceneList != null && pSceneList->GetCount())
+                               {
+                                       if (pSceneList->Contains(IDSCN_INBOX) == true)
+                                       {
+                                               SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                       }
+                                       else
+                                       {
+                                               SceneManager::GetInstance()->ClearSceneHistory();
+                                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                       }
+
+                                       pSceneList->RemoveAll();
+                                       delete pSceneList;
+                               }
+                               else
+                               {
+                                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                               }
+                       }
+               }
+               else if (requestId == IDA_SYNC_IMAP_MAILBOX_LIST_FAIL)
+               {
+                       int modalResult;
+                       MessageBox msgBox;
+                       __waitForMailboxSyncNoti = false;
+
+                       HidePopup();
+
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalResult);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AddAccountForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
+{
+       // Empty implementation
+}
+
+void
+AddAccountForm::OnKeypadOpened(Tizen::Ui::Control& source)
+{
+       // Empty implementation
+}
+
+void
+AddAccountForm::OnKeypadClosed(Tizen::Ui::Control& source)
+{
+       // Empty implementation
+}
+
+void
+AddAccountForm::OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction)
+{
+       if (keypadAction == KEYPAD_ACTION_DONE)
+       {
+               EditField* pField = dynamic_cast<EditField*>(&source);
+
+               if (pField != null)
+               {
+                       pField->HideKeypad();
+               }
+       }
+}
+
+void
+AddAccountForm::OnProgressPopupCanceled(void)
+{
+       AppLogDebug("ENTER");
+
+       HidePopup();
+
+       if (EmailApp::GetInstance()->GetOperationType() == EMAIL_OPERATION_ADD_ACCOUNT || EmailApp::GetInstance()->GetOperationType() == EMAIL_OPERATION_SETTINGS)
+       {
+               // Quit the app since we are showing appcontrol screen.
+               App::GetInstance()->Terminate();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AddAccountForm::ShowPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pProgressPopup->SetShowState(true);
+       __pProgressPopup->Show();
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+
+void
+AddAccountForm::HidePopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pProgressPopup->SetShowState(false);
+       Invalidate(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+bool
+AddAccountForm::IsFieldsEmpty(void)
+{
+       if (__pEmailAddressField->GetTextLength() == 0 ||
+               __pPasswordField->GetTextLength() == 0)
+       {
+               return true;
+       }
+
+       return false;
+}
+
+bool
+AddAccountForm::OnKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+bool
+AddAccountForm::OnKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+bool
+AddAccountForm::OnPreviewKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+bool
+AddAccountForm::OnPreviewKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+AddAccountForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER");
+
+       GetLayoutN()->Update();
+       __pEmailAddressField->SetSize(__pEmailAddressField->GetWidth(), __itemHeight);
+       __pPasswordField->SetSize(__pPasswordField->GetWidth(), __itemHeight);
+
+       AppLogDebug("EXIT");
+}
+
+void
+AddAccountForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmAddAddressForm.cpp b/src/EmAddAddressForm.cpp
new file mode 100755 (executable)
index 0000000..9f6f73b
--- /dev/null
@@ -0,0 +1,440 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+* @file                  EmAddAddressMainForm.cpp
+* @brief                 EmAddAddressMainForm View provides the user in Adding addresses
+* from which he/she doesn't want to receive mails
+*
+*/
+
+#include <FApp.h>
+#include <FSystem.h>
+#include "EmAddAddressForm.h"
+#include "EmEmailSettingPresentationModel.h"
+#include "EmTypes.h"
+#include "EmEmailApp.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+// Constructor
+AddAddressForm::AddAddressForm(void)
+       : __fontSize(44.0f)
+       , __itemHeight(90.0f)
+       , __pFooter(null)
+       , __pEditField(null)
+       , __pAddContactButton(null)
+{
+       //Empty implementation
+}
+
+// Destructor
+AddAddressForm::~AddAddressForm(void)
+{
+       //Empty implementation
+}
+
+// Called when form needs to be initialized.
+bool
+AddAddressForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       r = Construct(IDL_ADD_ADDRESS_FORM);
+       TryCatch(r == E_SUCCESS, delete this, "Failed to Construct Form");
+
+       AppLogDebug("EXIT");
+       return true;
+
+CATCH:
+       r = false;
+       return r;
+}
+
+// Called after form gets initialized.
+result
+AddAddressForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       AddOrientationEventListener(*this);
+       ScrollPanel* pPanel = static_cast<ScrollPanel*>(GetControl(IDC_ADD_ADDRESS_FORM_SCROLL_PANEL));
+       SetFontValues();
+
+       if (pPanel != null)
+       {
+               __pEditField = static_cast<EditField*>(pPanel->GetControl(IDC_ADD_ADDRESS_FORM_EDITFIELD, true));
+
+               if (__pEditField != null)
+               {
+                       __pEditField->SetSize(__pEditField->GetWidth(), __itemHeight);
+                       __pEditField->AddTextEventListener(*this);
+                       __pEditField->AddKeypadEventListener(*this);
+                       __pEditField->SetOverlayKeypadCommandButtonVisible(false);
+                       __pEditField->SetTextSize(__fontSize);
+               }
+
+               __pAddContactButton = static_cast<Button*>(pPanel->GetControl(IDC_ADD_ADDRESS_CONTACT_BUTTON, true));
+
+               if (__pAddContactButton != null)
+               {
+                       __pAddContactButton->AddActionEventListener(*this);
+                       __pAddContactButton->SetActionId(IDA_ADD_ADDRESS_FORM_ADD_CONTACT_BUTTON);
+               }
+       }
+
+       SetFormBackEventListener(this);
+       __pFooter = GetFooter();
+       __pFooter->AddActionEventListener(*this);
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+// Called when form is about to terminate.
+result
+AddAddressForm::OnTerminating(void)
+{
+       result r = E_SUCCESS;
+
+       // TODO:
+       // Add your termination code here
+       return r;
+}
+
+// Called when a action is performed on an entity.
+void
+AddAddressForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+
+       AppAssert(pSceneManager);
+
+       if (actionId == IDA_ADD_ADDRESS_FORM_EDITFIELD_DONE_BUTTON)
+       {
+               __pEditField->HideKeypad();
+               __pEditField->Draw();
+               __pEditField->Show();
+       }
+       else if (actionId == IDA_ADD_ADDRESS_FORM_EDITFIELD_CLOSE_BUTTON)
+       {
+               __pEditField->HideKeypad();
+               __pEditField->Draw();
+               __pEditField->Show();
+       }
+       else if (actionId == IDA_ADD_ADDRESS_FORM_ADD_CONTACT_BUTTON)
+       {
+               AppLogDebug("Launching contacts appcontrol!");
+               HashMap* pDataMap = new (std::nothrow) HashMap();
+               pDataMap->Construct();
+
+               String* pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_SELECTION_MODE);
+               String* pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_SINGLE);
+               pDataMap->Add(pKey, pVal);
+
+               pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_ITEM_TYPE);
+               pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_PERSON);
+               pDataMap->Add(pKey, pVal);
+
+
+               pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_RESULT_TYPE);
+               pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_EMAIL);
+               pDataMap->Add(pKey, pVal);
+
+               AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_CONTACTS, IDS_TIZEN_OPERATIONID_SOCIAL_PICK);
+
+               if (pAc)
+               {
+                       EmailApp::GetInstance()->DisableFrame();
+                       pAc->Start(null, null, pDataMap, this);
+                       delete pAc;
+
+                       __pAddContactButton->SetEnabled(false);
+                       __pAddContactButton->Invalidate(true);
+               }
+
+               pDataMap->RemoveAll(true);
+               delete pDataMap;
+       }
+       else if (actionId == IDA_ADD_ADDRESS_FORM_FOOTER_DONE)
+       {
+               if (__pEditField->GetTextLength() > 0)
+               {
+                       if (Utils::ValidateEmailAddress(__pEditField->GetText()) == true)
+                       {
+                               EmailRule* pRule = new (std::nothrow) EmailRule();
+                               String address = __pEditField->GetText();
+
+                               if (pRule != null)
+                               {
+                                       pRule->SetAccountId(0);
+                                       pRule->SetFaction(EMAIL_FILTER_BLOCK);
+                                       pRule->SetType(EMAIL_FILTER_FROM);
+                                       pRule->SetValue(address);
+                                       pRule->SetFlag1(1); // Set it to 'ON'
+                                       pRule->SetFlag2(RULE_TYPE_INCLUDES);
+                                       r = EmailSettingsPresentationModel::GetInstance()->AddRule(pRule);
+                                       __pEditField->Clear();
+                                       __pEditField->Invalidate(true);
+                                       delete pRule;
+                                       pRule = null;
+                               }
+
+                               SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+
+                               if (IsFailed(r))
+                               {
+                                       int modalResult;
+                                       MessageBox msgBox;
+                                       msgBox.Construct(Utils::GetResourceString(L"IDS_EMAIL_POP_ALERT"), Utils::GetResourceString(L"IDS_EMAIL_POP_ALREADY_BLOCKED"), MSGBOX_STYLE_OK, 300000);
+                                       msgBox.ShowAndWait(modalResult);
+                               }
+                       }
+                       else
+                       {
+                               int modalResult;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modalResult);
+                       }
+               }
+               else
+               {
+                       int modalRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Enter the address to be blocked", MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalRes);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AddAddressForm::OnAppControlCompleteResponseReceived(const AppId& appId, const Tizen::Base::String& operationId, AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData)
+{
+       AppLogDebug("ENTER, appId:(%ls), operationId:(%ls), appControlResult:(%d), pExtraData:(%x)", appId.GetPointer(), operationId.GetPointer(), appControlResult, pExtraData);
+
+       String addressToBlock;
+
+       AppLogDebug("===", Utils::ParseExtraData(pExtraData));
+
+       __pEditField->SetFocus();
+
+       if (appId.Equals(IDS_TIZEN_APPID_CONTACTS, true) &&
+                       operationId.Equals(IDS_TIZEN_OPERATIONID_SOCIAL_PICK, true))
+       {
+               if (appControlResult == APP_CTRL_RESULT_SUCCEEDED && pExtraData != null)
+               {
+                       const ArrayList* pArr = static_cast<const ArrayList*>(pExtraData->GetValue(String(IDS_TIZEN_APPCONTROL_KEY_SOCIAL_EMAIL)));
+
+                       if (pArr != null)
+                       {
+                               __pEditField->SetText(*static_cast<const String*>(pArr->GetAt(0)));
+                               __pEditField->Invalidate(true);
+                       }
+               }
+
+               __pAddContactButton->SetEnabled(true);
+               __pAddContactButton->Invalidate(true);
+       }
+
+       addressToBlock = __pEditField->GetText();
+       addressToBlock.Trim();
+
+       if (addressToBlock.IsEmpty())
+       {
+               __pFooter->SetItemEnabled(0, false);
+       }
+       else
+       {
+               __pFooter->SetItemEnabled(0, true);
+       }
+
+       __pFooter->Invalidate(true);
+
+       return;
+}
+
+// Called when form back is requested.
+void
+AddAddressForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       __pEditField->Clear();
+       result r = SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+
+       AppLogDebug("EXIT %s", GetErrorMessage(r));
+}
+
+// Called when scene is activated.
+void
+AddAddressForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                  const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+       __pEditField->SetFocus();
+
+       String addressToBlock = __pEditField->GetText();
+       addressToBlock.Trim();
+
+       if (addressToBlock.IsEmpty())
+       {
+               __pFooter->SetItemEnabled(0, false);
+       }
+       else
+       {
+               __pFooter->SetItemEnabled(0, true);
+       }
+
+       __pFooter->Invalidate(true);
+
+       AppLogDebug("EXIT");
+}
+
+// Called when scene is Deactivated.
+void
+AddAddressForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                   const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       // Empty implementation
+}
+
+// Called when text value is changed.
+void
+AddAddressForm::OnTextValueChanged(const Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER");
+       String addressToBlock = __pEditField->GetText();
+       addressToBlock.Trim();
+
+       if (addressToBlock.IsEmpty())
+       {
+               __pFooter->SetItemEnabled(0, false);
+       }
+       else
+       {
+               __pFooter->SetItemEnabled(0, true);
+       }
+
+       __pFooter->Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+// Called when text value change is cancelled.
+void
+AddAddressForm::OnTextValueChangeCanceled(const Tizen::Ui::Control& source)
+{
+       //Empty implementation
+}
+
+// Called when Keypadaction is performed.
+void
+AddAddressForm::OnKeypadActionPerformed (Tizen::Ui::Control &source, Tizen::Ui::KeypadAction keypadAction)
+{
+       AppLogDebug("ENTER");
+
+       if(keypadAction == KEYPAD_ACTION_DONE)
+       {
+               __pEditField->HideKeypad();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+// Called when Keypad is closed.
+void
+AddAddressForm::OnKeypadClosed (Tizen::Ui::Control &source)
+{
+       //Empty implementation
+}
+
+// Called when Keypad is opened.
+void
+AddAddressForm::OnKeypadOpened (Tizen::Ui::Control &source)
+{
+       //Empty implementation
+}
+
+// Called when Keypad will open.
+void
+AddAddressForm::OnKeypadWillOpen (Tizen::Ui::Control &source)
+{
+       //Empty implementation
+}
+
+void
+AddAddressForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER");
+
+       __pEditField->SetSize(__pEditField->GetWidth(), __itemHeight);
+
+       AppLogDebug("EXIT");
+}
+
+void
+AddAddressForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 90.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 90.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 100.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 120.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 98.0f;
+               __itemHeight = 150.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmAddSubjectForm.cpp b/src/EmAddSubjectForm.cpp
new file mode 100755 (executable)
index 0000000..22d5794
--- /dev/null
@@ -0,0 +1,324 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+* @file             AddSubjectForm.cpp
+* @brief            AddSubjectForm View provides the user in Adding subject
+* from which he/she doesn't want to receive mails
+*
+*/
+#include <FApp.h>
+#include <FSystem.h>
+#include "EmAddSubjectForm.h"
+#include "EmEmailSettingPresentationModel.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+// Constructor
+AddSubjectForm::AddSubjectForm(void)
+       : __fontSize(44.0f)
+       , __itemHeight(90.0f)
+       , __pFooter(null)
+       , __pEditField(null)
+{
+       //Empty implementation
+}
+
+// Destructor
+AddSubjectForm::~AddSubjectForm(void)
+{
+       //Empty implementation
+}
+
+// Called when form needs to be initialized.
+bool
+AddSubjectForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       r = Construct(IDL_ADD_SUBJECT_FORM);
+       TryCatch(r == E_SUCCESS, delete this, "Failed to Construct Form");
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return true;
+
+CATCH:
+       r = false;
+       return r;
+}
+
+// Called after form gets initialized.
+result
+AddSubjectForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       SetFormBackEventListener(this);
+       AddOrientationEventListener(*this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       ScrollPanel* pPanel = static_cast<ScrollPanel*>(GetControl(IDC_ADD_ADDRESS_FORM_SCROLL_PANEL));
+       SetFontValues();
+
+       if (pPanel != null)
+       {
+               __pEditField = static_cast<EditField*>(pPanel->GetControl(IDC_ADD_SUBJECT_FORM_EDITFIELD, true));
+
+               if (__pEditField != null )
+               {
+                       __pEditField->SetSize(__pEditField->GetWidth(), __itemHeight);
+                       __pEditField->AddTextEventListener(*this);
+                       __pEditField->AddKeypadEventListener(*this);
+                       __pEditField->SetOverlayKeypadCommandButtonVisible(false);
+                       __pEditField->SetTextSize(__fontSize);
+               }
+       }
+
+       __pFooter = GetFooter();
+       __pFooter->AddActionEventListener(*this);
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+// Called when form is about to terminate.
+result
+AddSubjectForm::OnTerminating(void)
+{
+       result r = E_SUCCESS;
+
+       // TODO:
+       // Add your termination code here
+       return r;
+}
+
+// Called when a action is performed on an entity.
+void
+AddSubjectForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       if (actionId == IDA_ADD_SUBJECT_FORM_FOOTER_DONE)
+       {
+               if (__pEditField->GetTextLength() > 0)
+               {
+                       String* pSubject = new (std::nothrow) String(__pEditField->GetText());
+                       EmailRule* pRule = new (std::nothrow) EmailRule();
+
+                       if (pSubject != null && pRule != null)
+                       {
+                               pRule->SetAccountId(0);
+                               pRule->SetFaction(EMAIL_FILTER_BLOCK);
+                               pRule->SetType(EMAIL_FILTER_SUBJECT);
+                               pRule->SetValue(*pSubject);
+                               pRule->SetFlag1(1); //Set it to 'ON'
+                               pRule->SetFlag2(RULE_TYPE_INCLUDES);
+                               r = EmailSettingsPresentationModel::GetInstance()->AddRule(pRule);
+                               __pEditField->Clear();
+                               __pEditField->Invalidate(true);
+
+                               delete pSubject;
+                               pSubject = null;
+                               delete pRule;
+                               pRule = null;
+                       }
+
+                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+
+                       if (IsFailed(r))
+                       {
+                               int modalResult;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_EMAIL_POP_ALERT"), Utils::GetResourceString(L"IDS_EMAIL_POP_ALREADY_BLOCKED"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modalResult);
+                       }
+               }
+               else
+               {
+                       int modalRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Enter the subject to be blocked", MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalRes);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+// Called when form back is requested.
+void
+AddSubjectForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       __pEditField->Clear();
+       result r = SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+
+       AppLogDebug("EXIT %s", GetErrorMessage(r));
+}
+
+// Called when scene is activated.
+void
+AddSubjectForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                  const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+       __pEditField->SetFocus();
+       String subjectToBlock = __pEditField->GetText();
+       subjectToBlock.Trim();
+
+       if (subjectToBlock.IsEmpty())
+       {
+               __pFooter->SetItemEnabled(0, false);
+       }
+       else
+       {
+               __pFooter->SetItemEnabled(0, true);
+       }
+
+       __pFooter->Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+// Called when scene is Deactivated.
+void
+AddSubjectForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                   const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       //Empty implementation
+}
+
+// Called when text value is changed.
+void
+AddSubjectForm::OnTextValueChanged(const Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER");
+       String subjectToBlock = __pEditField->GetText();
+       subjectToBlock.Trim();
+
+       if (subjectToBlock.IsEmpty())
+       {
+               __pFooter->SetItemEnabled(0, false);
+       }
+       else
+       {
+               __pFooter->SetItemEnabled(0, true);
+       }
+
+       __pFooter->Invalidate(true);
+
+       AppLogDebug("EXIT");
+}
+
+// Called when text value change is cancelled.
+void
+AddSubjectForm::OnTextValueChangeCanceled(const Tizen::Ui::Control& source)
+{
+       //Empty implementation
+}
+
+// Called when Keypadaction is performed.
+void
+AddSubjectForm::OnKeypadActionPerformed (Tizen::Ui::Control &source, Tizen::Ui::KeypadAction keypadAction)
+{
+       AppLogDebug("ENTER");
+
+       if(keypadAction == KEYPAD_ACTION_DONE)
+       {
+               __pEditField->HideKeypad();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+// Called when Keypad is closed.
+void
+AddSubjectForm::OnKeypadClosed (Tizen::Ui::Control &source)
+{
+       // Empty implementation
+}
+
+// Called when Keypad is opened.
+void
+AddSubjectForm::OnKeypadOpened (Tizen::Ui::Control &source)
+{
+       // Empty implementation
+}
+
+// Called when Keypad will open.
+void
+AddSubjectForm::OnKeypadWillOpen (Tizen::Ui::Control &source)
+{
+       // Empty implementation
+}
+
+void
+AddSubjectForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER");
+
+       __pEditField->SetSize(__pEditField->GetWidth(), __itemHeight);
+
+       AppLogDebug("EXIT");
+}
+
+void
+AddSubjectForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 90.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 90.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 100.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 120.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 98.0f;
+               __itemHeight = 150.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmAllMailsPresentationModel.cpp b/src/EmAllMailsPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..82ef33c
--- /dev/null
@@ -0,0 +1,285 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmAllMailsPresentationModel.cpp
+ * @brief      PresentationModel containing the data for the all Emails form
+ */
+
+#include <cstdlib>
+#include "EmAllMailsPresentationModel.h"
+#include "EmTypes.h"
+#include "EmUtils.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+
+AllMailsPresentationModel* AllMailsPresentationModel::__pInstance = null;
+
+AllMailsPresentationModel::AllMailsPresentationModel(void)
+{
+       // Empty Implementation
+}
+
+AllMailsPresentationModel::~AllMailsPresentationModel(void)
+{
+       AppLogDebug("ENTER & EXIT");
+}
+
+AllMailsPresentationModel*
+AllMailsPresentationModel::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pInstance;
+}
+
+void
+AllMailsPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance != null)
+       {
+               __pInstance->CleanupInstance();
+               delete __pInstance;
+               __pInstance = null;
+       }
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AllMailsPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pInstance = new (std::nothrow) AllMailsPresentationModel();
+       r = __pInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInstance;
+               __pInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AllMailsPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       _pMailList->RemoveAll();
+       delete _pMailList;
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+AllMailsPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       BasePresentationModel::Construct();
+
+       _pMailList = new (std::nothrow) ArrayList();
+       r = _pMailList->Construct();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct maillist");
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+AllMailsPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       // Empty Implementation
+}
+
+void
+AllMailsPresentationModel::FetchData(int accountId, int mailboxId, email_mailbox_type_e mailboxType)
+{
+       AppLogDebug("ENTER");
+
+       EmailMailbox* pTmpMailbox = null;
+       const MultiHashMap* pMailboxMap = null;
+       IEnumerator* pEnum = null;
+       IMapEnumerator* pMapEnum = null;
+       ArrayList* pTempList = new (std::nothrow) ArrayList();
+       pTempList->Construct();
+
+
+       _pMailList->RemoveAll(false);
+
+       if (accountId == -1)
+       {
+               pMailboxMap = _pMailboxManager->GetMailboxMap();
+
+               pMapEnum = pMailboxMap->GetMapEnumeratorN();
+
+               while (pMapEnum != null && !IsFailed(pMapEnum->MoveNext()))
+               {
+                       pTmpMailbox = static_cast<EmailMailbox*>(pMapEnum->GetValue());
+
+                       if (pTmpMailbox != null)
+                       {
+                               AppLogDebug("Account:(%d), Got Mailbox type:(%d)", pTmpMailbox->GetAccountId(), pTmpMailbox->GetMailboxType());
+
+                               if (mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                               {
+                                       bool addAllMsgs = false;
+
+                                       pTempList = _pMailboxManager->GetData(pTmpMailbox); //pTmpMailbox->GetMessages();
+
+                                       if (pTmpMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                       {
+                                               addAllMsgs = true;
+                                       }
+
+                                       if (addAllMsgs == true)
+                                       {
+                                               for (int i = 0; i < pTempList->GetCount(); i++)
+                                               {
+                                                       EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(pTempList->GetAt(i));
+                                                       if (addAllMsgs == true /*|| pMsg->isFlagsFlaggedField() == true*/)
+                                                       {
+                                                               _pMailList->Add(pMsg);
+                                                               AppLogDebug("Added mail message, accid:(%d), mailid:(%d)", pMsg->GetAccountId(), pMsg->GetMailId());
+                                                       }
+                                               }
+                                       }
+
+                                       addAllMsgs = false;
+                               }
+                               else if (mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT)
+                               {
+                                       if (pTmpMailbox->GetMailboxId() == mailboxId)
+                                       {
+                                               pTempList = _pMailboxManager->GetData(pTmpMailbox);
+
+                                               for (int i = 0; i < pTempList->GetCount(); i++)
+                                               {
+                                                       EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(pTempList->GetAt(i));
+                                                       _pMailList->Add(pMsg);
+                                                       AppLogDebug("Added mail message, accid:(%d), mailid:(%d)", pMsg->GetAccountId(), pMsg->GetMailId());
+                                               }
+                                       }
+                               }
+                               else if (pTmpMailbox->GetMailboxType() == mailboxType)
+                               {
+                                       pTempList = _pMailboxManager->GetData(pTmpMailbox); //pTmpMailbox->GetMessages();
+
+                                       for (int i = 0; i < pTempList->GetCount(); i++)
+                                       {
+                                               EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(pTempList->GetAt(i));
+                                               _pMailList->Add(pMsg);
+                                               AppLogDebug("Added mail message, accid:(%d), mailid:(%d)", pMsg->GetAccountId(), pMsg->GetMailId());
+                                       }
+                               }
+                       }
+               }
+
+               delete pMapEnum;
+       }
+       else
+       {
+               pEnum = _pMailboxManager->GetMailboxesByAccountIdN(accountId);
+
+               while (pEnum != null && !IsFailed(pEnum->MoveNext()))
+               {
+                       pTmpMailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+                       if (pTmpMailbox != null)
+                       {
+                               AppLogDebug("Account:(%d), Got Mailbox type:(%d)", pTmpMailbox->GetAccountId(), pTmpMailbox->GetMailboxType());
+
+                               if (mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                               {
+                                       bool addAllMsgs = false;
+
+                                       pTempList = _pMailboxManager->GetData(pTmpMailbox); //pTmpMailbox->GetMessages();
+
+                                       if (pTmpMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                       {
+                                               addAllMsgs = true;
+                                       }
+
+                                       if (addAllMsgs == true)
+                                       {
+                                               for (int i = 0; i < pTempList->GetCount(); i++)
+                                               {
+                                                       EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(pTempList->GetAt(i));
+                                                       if (addAllMsgs == true /*|| pMsg->isFlagsFlaggedField() == true*/)
+                                                       {
+                                                               _pMailList->Add(pMsg);
+                                                               AppLogDebug("Added mail message, accid:(%d), mailid:(%d)", pMsg->GetAccountId(), pMsg->GetMailId());
+                                                       }
+                                               }
+                                       }
+
+                                       addAllMsgs = false;
+                               }
+                               else if (mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT)
+                               {
+                                       if (pTmpMailbox->GetMailboxId() == mailboxId)
+                                       {
+                                               pTempList = _pMailboxManager->GetData(pTmpMailbox);
+
+                                               for (int i = 0; i < pTempList->GetCount(); i++)
+                                               {
+                                                       EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(pTempList->GetAt(i));
+                                                       _pMailList->Add(pMsg);
+                                                       AppLogDebug("Added mail message, accid:(%d), mailid:(%d)", pMsg->GetAccountId(), pMsg->GetMailId());
+                                               }
+                                       }
+                               }
+                               else if (pTmpMailbox->GetMailboxType() == mailboxType)
+                               {
+                                       pTempList = _pMailboxManager->GetData(pTmpMailbox); //pTmpMailbox->GetMessages();
+
+                                       for (int i = 0; i < pTempList->GetCount(); i++)
+                                       {
+                                               EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(pTempList->GetAt(i));
+                                               _pMailList->Add(pMsg);
+                                               AppLogDebug("Added mail message, accid:(%d), mailid:(%d)", pMsg->GetAccountId(), pMsg->GetMailId());
+                                       }
+                               }
+                       }
+               }
+
+               delete pEnum;
+       }
+
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmAttachmentPanel.cpp b/src/EmAttachmentPanel.cpp
new file mode 100755 (executable)
index 0000000..22a56e4
--- /dev/null
@@ -0,0 +1,1562 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmAttachmentPanel.cpp
+ * @brief      Keeps the implementations of AttachmentPanel class
+ */
+
+#include <FMedia.h>
+#include "EmAttachmentPanel.h"
+#include "EmEmailApp.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Media;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+AttachmentPanel::AttachmentPanel(BasePresentationModel* pModel)
+       : __readOnlyMode(false)
+       , __appControlLaunched(false)
+       , __processEvent(true)
+       , __totalAttachmentSize(0)
+       , __pPathLabel(null)
+       , __pIconLabel(null)
+       , __pDeleteAttachmentButtonBitmap(null)
+       , __pDeleteAttachmentButtonPressedBitmap(null)
+       , __pIconBitmap(null)
+       , __pAttachmentsList(null)
+       , __pAttachmentListView(null)
+       , __pDeleteAttachmentButton(null)
+       , __pAttachmentPanelListener(null)
+       , __pAttachmentMap(null)
+       , __pPresentationModel(pModel)
+       , __pTimer(null)
+{
+}
+
+AttachmentPanel::~AttachmentPanel(void)
+{
+}
+
+Bitmap*
+GetBitmapN(const String& fullname, int width=-1, int height=-1)
+{
+       AppLogDebug("ENTER, fullname:(%ls)", fullname.GetPointer());
+
+       result r = E_SUCCESS;
+       Bitmap* pBitmap = null;
+       BitmapPixelFormat pixelFormat = BITMAP_PIXEL_FORMAT_RGB565;
+       Image* pImage = new (std::nothrow) Image();
+       String lowerCaseName;
+
+       r = pImage->Construct();
+       TryCatch(r == E_SUCCESS, r = GetLastResult(), "Failed to Construct pImage");
+
+       fullname.ToLowerCase(lowerCaseName);
+
+       if(lowerCaseName.EndsWith(L"png") ||
+          lowerCaseName.EndsWith(L"wbmp"))
+       {
+               pixelFormat = BITMAP_PIXEL_FORMAT_ARGB8888;
+       }
+       else if(lowerCaseName.EndsWith(L"jpg") ||
+                       lowerCaseName.EndsWith(L"jpeg") ||
+                       lowerCaseName.EndsWith(L"bmp") ||
+                       lowerCaseName.EndsWith(L"gif"))
+       {
+               pixelFormat = BITMAP_PIXEL_FORMAT_RGB565;
+       }
+
+       if (width == -1 || height == -1)
+       {
+               pBitmap = pImage->DecodeN(fullname, pixelFormat);
+       }
+       else if (width != -1 && height != -1)
+       {
+               pBitmap = pImage->DecodeN(fullname, pixelFormat, width, height);
+       }
+
+       TryCatch(pBitmap != null, r = GetLastResult(), "failed to get bitmap for path (%ls)", fullname.GetPointer());
+       delete pImage;
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return pBitmap;
+
+CATCH:
+       delete pImage;
+
+       AppLogDebug("EXIT, r:(%s)", GetErrorMessage(r));
+       return null;
+}
+
+result
+AttachmentPanel::Construct(RelativeLayout& layout, const Rectangle& bounds)
+{
+       AppLogDebug("ENTER, got bounds:(%d,%d,%d,%d,)", bounds.x, bounds.y, bounds.width, bounds.height);
+
+       result r = E_SUCCESS;
+
+       r = Panel::Construct(layout, bounds);
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] Panel construct failed!", GetErrorMessage(r));
+
+       __pAttachmentsList = new (std::nothrow) ArrayList();
+       TryCatch(__pAttachmentsList != null, r = E_FAILURE, "Failed to create attachments arraylist");
+
+       r = __pAttachmentsList->Construct();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] Arraylist construct failed!", GetErrorMessage(r));
+
+       __pAttachmentListView = new (std::nothrow) GroupedTableView();
+       TryCatch(__pAttachmentListView != null, r = E_FAILURE, "Failed to create attachments listview");
+
+       r = __pAttachmentListView->Construct(Rectangle(bounds.x, bounds.y, bounds.width - 10, bounds.height - 10), true, TABLE_VIEW_SCROLL_BAR_STYLE_NONE);
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] GroupedTableView construct failed!", GetErrorMessage(r));
+
+       __pAttachmentMap = new (std::nothrow) HashMap();
+       TryCatch(__pAttachmentMap != null, r = E_FAILURE, "Failed to create attachments map");
+
+       r = __pAttachmentMap->Construct();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] failed to construct attachments map!", GetErrorMessage(r));
+
+       AddControl(__pAttachmentListView);
+       layout.SetRelation(*__pAttachmentListView, this, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+       layout.SetRelation(*__pAttachmentListView, this, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+       layout.SetRelation(*__pAttachmentListView, this, RECT_EDGE_RELATION_TOP_TO_TOP);
+       layout.SetRelation(*__pAttachmentListView, this, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+       layout.SetMargin(*__pAttachmentListView, 5, 5, 5, 5);
+
+
+       __pAttachmentListView->SetItemProvider(this);
+       __pAttachmentListView->AddGroupedTableViewItemEventListener(*this);
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+ArrayList*
+AttachmentPanel::GetAttachmentList(void)
+{
+       return __pAttachmentsList;
+}
+
+void
+AttachmentPanel::AttachFilesN(ArrayList* pAttachmentList)
+{
+       AppLogDebug("ENTER");
+
+       if (pAttachmentList != null)
+       {
+               __pAttachmentListView->RefreshItem(0, -1, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+               __pAttachmentsList->AddItems(*pAttachmentList);
+
+               pAttachmentList->RemoveAll(false);
+               delete pAttachmentList;
+
+               __pAttachmentListView->UpdateTableView();
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+AttachmentPanel::OnInitializing(void)
+{
+       if (__pTimer == null)
+       {
+               __pTimer = new (std::nothrow) Timer();
+               __pTimer->Construct(*this);
+       }
+
+       return E_SUCCESS;
+}
+
+result
+AttachmentPanel::OnInitialized(void)
+{
+       return E_SUCCESS;
+}
+
+result
+AttachmentPanel::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pAttachmentsList != null && __pAttachmentsList->GetCount())
+       {
+               __pAttachmentsList->RemoveAll(true);
+               delete __pAttachmentsList;
+               __pAttachmentsList = null;
+       }
+
+       if (__pAttachmentMap != null && __pAttachmentMap->GetCount())
+       {
+               __pAttachmentMap->RemoveAll(true);
+               delete __pAttachmentMap;
+               __pAttachmentMap = null;
+       }
+
+       if (__appControlLaunched)
+       {
+               __appControlLaunched = false;
+               EmailApp::GetInstance()->EnableFrame();
+               Tizen::App::AppControl::StopAppControlResponseListener(this);
+       }
+
+       if (__pTimer != null)
+       {
+               delete __pTimer;
+               __pTimer = null;
+       }
+
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+void
+AttachmentPanel::UpdateAttachmentList(void)
+{
+       AppLogDebug("ENTER");
+       __pAttachmentListView->UpdateTableView();
+       AppLogDebug("EXIT");
+}
+
+void
+AttachmentPanel::SetAttachmentPanelListener(IAttachmentPanelListener* pListener)
+{
+       __pAttachmentPanelListener = pListener;
+}
+
+void
+AttachmentPanel::SetAttachmentList(Tizen::Base::Collection::ArrayList* pAttachmentList)
+{
+       __pAttachmentsList = pAttachmentList;
+}
+
+void
+CreateFileSizeString(float& fileSize, String& outputStr)
+{
+       AppLogDebug("ENTER");
+
+       int power = 0;
+       while (fileSize > 1024)
+       {
+               fileSize = fileSize / 1024;
+               power++;
+       }
+       outputStr.Append(Float::ToString(((int)(fileSize*100))/(float)100.0));
+       if (power == 0)
+       {
+               outputStr.Append(L" Bytes");
+       }
+       else if (power == 1)
+       {
+               outputStr.Append(L" KB");
+       }
+       else if (power == 2)
+       {
+               outputStr.Append(L" MB");
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+CreateNormalAttachmentItem(const int& itemWidth, EmailAttachment* pEmailAttachment, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER, itemWidth:(%d), pEmailAttachment:(%x), pItem:(%x)", itemWidth, pEmailAttachment, pItem);
+
+       AppResource* pAppResource = Tizen::App::Application::GetInstance()->GetAppResource();
+       Bitmap* pBitmap = null;
+       Label* pIconLbl = null;
+       Label* pTextLbl = null;
+       String fileName = pEmailAttachment->GetAttachmentName();
+       float attachmentSize = pEmailAttachment->GetAttachmentSize();
+       RelativeLayout* pRelLayout = static_cast<RelativeLayout*>(pItem->GetLayoutN());
+
+       AppLogDebug("Got attachment size:(%d)", pEmailAttachment->GetAttachmentSize());
+       fileName.Append(L" (");
+       CreateFileSizeString(attachmentSize, fileName);
+       fileName.Append(')');
+
+       int width = itemWidth - W_ATTACHMENT_NAME_OFFSET;
+       if (width < 0)
+       {
+               width = 1;
+       }
+
+       FloatRectangle convertedRectangle = CoordinateSystem::AlignToDevice(FloatRectangle(X_ATTACHMENT_NAME, Y_ORIGIN, width, H_ATTACHMENT));
+       pTextLbl = new (std::nothrow) Label();
+       pTextLbl->Construct(convertedRectangle, fileName);
+       pTextLbl->SetName(L"attachmentname");
+       pItem->AddControl(pTextLbl);
+       pTextLbl->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+       pTextLbl->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+       pTextLbl->SetMargin(INTEGER_FIVE, Y_ORIGIN);
+       pTextLbl->SetTextConfig(FONT_SIZE_ATTACH_MAIN_TEXT, LABEL_TEXT_STYLE_NORMAL);
+
+       pIconLbl = new (std::nothrow) Label();
+       if (pEmailAttachment->GetThumbnail() == null)
+       {
+               if (Utils::IsImageFile(pEmailAttachment->GetAttachmentName()) == true)
+               {
+                       pBitmap = GetBitmapN(pEmailAttachment->GetAttachmentPath(), W_ATTACHMENT_ETC_IMAGE, W_ATTACHMENT_ETC_IMAGE);
+
+                       if (pBitmap == null)
+                       {
+                               pBitmap = pAppResource->GetBitmapN(IDB_ATTACHMENT_ETC_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
+                       }
+
+                       pEmailAttachment->SetThumbnail(pBitmap);
+               }
+               else
+               {
+                       pEmailAttachment->SetThumbnail(pAppResource->GetBitmapN(IDB_ATTACHMENT_ETC_ICON, BITMAP_PIXEL_FORMAT_ARGB8888));
+               }
+       }
+
+       convertedRectangle = CoordinateSystem::AlignToDevice(FloatRectangle(X_ATTACHMENT_IMAGE+(W_ATTACHMENT_IMAGE-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, W_ATTACHMENT_ETC_IMAGE, W_ATTACHMENT_ETC_IMAGE));
+       pIconLbl->Construct(convertedRectangle, L"");
+       pIconLbl->SetBackgroundBitmap(*pEmailAttachment->GetThumbnail());
+       pItem->AddControl(pIconLbl);
+       pRelLayout->SetRelation(*pIconLbl, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+       pRelLayout->SetRelation(*pTextLbl, pIconLbl, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+       pRelLayout->SetRelation(*pTextLbl, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+       pRelLayout->SetMargin(*pIconLbl, X_ATTACHMENT_IMAGE+(W_ATTACHMENT_IMAGE-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, 39, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO);
+       pRelLayout->SetMargin(*pTextLbl, 39, 20, 0, 0);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AttachmentPanel::CreateDownloadAttachmentItem(const int& itemWidth, EmailAttachment* pEmailAttachment, TableViewItem* pItem, int itemIndex)
+{
+       AppLogDebug("ENTER");
+
+       String ctrlName;
+       Bitmap* pBitmap = null;
+       Label* pIconLbl = null;
+       Label* pTextLbl = null;
+       Button* pDownloadBtn = null;
+       Bitmap* pDownloadAttachmentButtonBitmap = null;
+       Bitmap* pDownloadAttachmentButtonPressedBitmap = null;
+       RelativeLayout* pRelLayout = static_cast<RelativeLayout*>(pItem->GetLayoutN());
+
+       AppResource* pAppResource = Tizen::App::Application::GetInstance()->GetAppResource();
+       String fileName = pEmailAttachment->GetAttachmentName();
+
+       int width = itemWidth - W_ATTACHMENT_NAME_OFFSET;
+
+       if (width < 0)
+       {
+               width = 1;
+       }
+
+       pTextLbl = new (std::nothrow) Label();
+       pTextLbl->Construct(Rectangle(X_ATTACHMENT_NAME, Y_ORIGIN, width, H_ATTACHMENT/2), fileName);
+       pItem->AddControl(pTextLbl);
+       pTextLbl->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+       pTextLbl->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+       pTextLbl->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
+
+       Progress* pProgressBar = new (std::nothrow) Progress();
+       pProgressBar->Construct(Rectangle(X_ATTACHMENT_NAME, Y_ORIGIN+H_ATTACHMENT/2, width, H_ATTACHMENT/2), 0, 100);
+       pItem->AddControl(pProgressBar);
+       ctrlName.Clear();
+       ctrlName.Append(Integer::ToString(itemIndex));
+       ctrlName.Append('P');
+       pProgressBar->SetName(ctrlName);
+       AppLogDebug("Created progress bar with name:(%ls)", pProgressBar->GetName().GetPointer());
+
+       pDownloadAttachmentButtonBitmap = pAppResource->GetBitmapN(IDB_DOWNLOAD_ATTACHMENT, BITMAP_PIXEL_FORMAT_ARGB8888);
+       pDownloadAttachmentButtonPressedBitmap = pAppResource->GetBitmapN(IDB_DOWNLOAD_ATTACHMENT_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888);
+
+       pDownloadBtn = new (std::nothrow) Button();
+       pDownloadBtn->Construct(Rectangle(itemWidth - X_ATTACHMENT_DELETE_BUTTON_OFFSET, (H_ATTACHMENT-H_GENERIC_64)/INTEGER_TWO, H_GENERIC_64, W_GENERIC_64));
+       pItem->AddControl(pDownloadBtn);
+       pDownloadBtn->SetNormalBackgroundBitmap(*pDownloadAttachmentButtonBitmap);
+       pDownloadBtn->SetPressedBackgroundBitmap(*pDownloadAttachmentButtonPressedBitmap);
+       ctrlName.Clear();
+       ctrlName.Append(Integer::ToString(itemIndex));
+       ctrlName.Append('D');
+       AppLogDebug("Setting control name to:(%ls)", ctrlName.GetPointer());
+       pDownloadBtn->SetName(ctrlName);
+       pDownloadBtn->AddActionEventListener(*this);
+       pDownloadBtn->SetActionId(IDA_ATTACHMENT_PANEL_DOWNLOAD_ATTACHMENT_BUTTON);
+       pItem->SetIndividualSelectionEnabled(pDownloadBtn, true);
+
+       pIconLbl = new (std::nothrow) Label();
+       if (pEmailAttachment->GetAttachmentMimeType().StartsWith(L"image/", 0))
+       {
+               pBitmap = GetBitmapN(pEmailAttachment->GetAttachmentPath());
+
+               if (pBitmap == null)
+               {
+                       pBitmap = pAppResource->GetBitmapN(IDB_ATTACHMENT_ETC_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
+                       pIconLbl->Construct(Rectangle(X_ATTACHMENT_IMAGE+(W_ATTACHMENT_IMAGE-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, W_ATTACHMENT_ETC_IMAGE, W_ATTACHMENT_ETC_IMAGE), L"");
+               }
+               else
+               {
+                       pIconLbl->Construct(Rectangle(X_ATTACHMENT_IMAGE, (H_ATTACHMENT-W_ATTACHMENT_IMAGE)/INTEGER_TWO, W_ATTACHMENT_IMAGE, W_ATTACHMENT_IMAGE), L"");
+               }
+       }
+       else
+       {
+               pBitmap = Utils::GetAttachmentEtcIcon();
+               pIconLbl->Construct(Rectangle(X_ATTACHMENT_IMAGE+(W_ATTACHMENT_IMAGE-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, W_ATTACHMENT_ETC_IMAGE, W_ATTACHMENT_ETC_IMAGE), L"");
+       }
+       pIconLbl->SetBackgroundBitmap(*pBitmap);
+       pItem->AddControl(pIconLbl);
+
+       if (pEmailAttachment->GetAttachmentDownloadStatus() == EMAIL_DOWNLOAD_PROGRESS)
+       {
+               pDownloadBtn->SetShowState(false);
+       }
+
+       pRelLayout->SetRelation(*pIconLbl, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+       pRelLayout->SetRelation(*pTextLbl, pIconLbl, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+       pRelLayout->SetRelation(*pProgressBar, pIconLbl, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+       pRelLayout->SetRelation(*pProgressBar, pTextLbl, RECT_EDGE_RELATION_TOP_TO_BOTTOM);
+       pRelLayout->SetRelation(*pDownloadBtn, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+       pRelLayout->SetRelation(*pTextLbl, pDownloadBtn, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+       pRelLayout->SetRelation(*pProgressBar, pDownloadBtn, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+       pRelLayout->SetMargin(*pDownloadBtn, 10, 16, 0, 0);
+       pRelLayout->SetMargin(*pIconLbl, X_ATTACHMENT_IMAGE+(W_ATTACHMENT_IMAGE-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, 0, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO);
+       pRelLayout->SetMargin(*pTextLbl, 39, 0, 0, 0);
+       pRelLayout->SetMargin(*pProgressBar, 39, 0, 0, 0);
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AttachmentPanel::SetDetailView(bool fromDetailView)
+{
+       __readOnlyMode = true;
+}
+
+void
+AttachmentPanel::InitializePresentationModel(BasePresentationModel* pModel)
+{
+       __pPresentationModel = pModel;
+}
+
+int
+AttachmentPanel::GetGroupCount(void)
+{
+       AppLogDebug("ENTER");
+
+       int itemCount = __pAttachmentsList->GetCount();
+
+       if (itemCount > 0) // if items exist then return 1
+       {
+               AppLogDebug("EXIT, returning group count 1");
+               return 1;
+       }
+
+       AppLogDebug("EXIT, returning group count 0");
+       return 0;
+}
+
+int
+AttachmentPanel::GetItemCount(int groupIndex)
+{
+       AppLogDebug("ENTER");
+
+       int itemCount = 0;
+
+       if (groupIndex == 0)
+       {
+               itemCount = __pAttachmentsList->GetCount();
+       }
+
+       AppLogDebug("EXIT, returning %d", itemCount);
+       return itemCount;
+}
+
+TableViewGroupItem*
+AttachmentPanel::CreateGroupItem(int groupIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemWidth:(%d)", groupIndex, itemWidth);
+
+       String groupText;
+       float fileSize = 0;
+       Button* pDelBtn = null;
+       TableViewGroupItem* pItem = null;
+       AppResource* pAppResource = null;
+       Bitmap* pBitmap = null;
+       Bitmap* pDeleteAttachmentButtonBitmap = null;
+       Bitmap* pDeleteAttachmentButtonPressedBitmap = null;
+       Label* pTextLbl = null;
+       Label* pIconLbl = null;
+       RelativeLayout layout;
+       layout.Construct();
+
+       if (groupIndex == 0)
+       {
+               pItem = new (std::nothrow) TableViewGroupItem();
+               pItem->Construct(layout, Dimension(itemWidth, H_ATTACHMENT + 10));
+               Color bgColor = pItem->GetBackgroundColor(TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
+//             pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+//             pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
+               groupText = Integer::ToString(__pAttachmentsList->GetCount());
+
+               if (__pAttachmentsList->GetCount() > 1)
+               {
+                       groupText.Append(L" attachments");
+               }
+               else
+               {
+                       groupText.Append(L" attachment");
+               }
+
+               int i;
+               bool flag = true;
+
+               for (i=0; i<__pAttachmentsList->GetCount(); i++)
+               {
+                       EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(i));
+
+                       if (pTmpAttachment->GetSaveStatus() == 0)
+                       {
+                               flag = false;
+                       }
+
+                       fileSize += pTmpAttachment->GetAttachmentSize();
+               }
+
+               if (flag == true)
+               {
+                       groupText.Append(L" (");
+                       CreateFileSizeString(fileSize, groupText);
+                       groupText.Append(')');
+               }
+
+               int width = itemWidth-W_ATTACHMENT_NAME_OFFSET;
+               if (width < 0)
+               {
+                       width = 1;
+               }
+
+               pTextLbl = new (std::nothrow) Label();
+               pTextLbl->Construct(Rectangle(X_ATTACHMENT_NAME, Y_ORIGIN, width, H_ATTACHMENT),groupText);
+               pTextLbl->SetName(IDC_ATTACHMENT_PANEL_GROUPITEM_TEXT);
+               pItem->AddControl(pTextLbl);
+               pTextLbl->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+               pTextLbl->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+               pTextLbl->SetTextConfig(FONT_SIZE_ATTACH_MAIN_TEXT, LABEL_TEXT_STYLE_NORMAL);
+
+               pAppResource = Application::GetInstance()->GetAppResource();
+               pBitmap = pAppResource->GetBitmapN(IDB_ATTACHMENT_MULTI_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
+               pIconLbl = new (std::nothrow) Label();
+               pIconLbl->Construct(Rectangle(X_ATTACHMENT_IMAGE + (W_ATTACHMENT_IMAGE-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, W_ATTACHMENT_ETC_IMAGE, W_ATTACHMENT_ETC_IMAGE), L"");
+               pIconLbl->SetBackgroundBitmap(*pBitmap);
+               pItem->AddControl(pIconLbl);
+               delete pBitmap;
+
+               layout.SetRelation(*pIconLbl, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+               layout.SetRelation(*pTextLbl, pIconLbl, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+               layout.SetRelation(*pTextLbl, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               layout.SetMargin(*pIconLbl, X_ATTACHMENT_IMAGE+(W_ATTACHMENT_IMAGE-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, 39, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO, (H_ATTACHMENT-W_ATTACHMENT_ETC_IMAGE)/INTEGER_TWO);
+               layout.SetMargin(*pTextLbl, 39, 20, 0, 0);
+
+               if (!__readOnlyMode)
+               {
+                       pDeleteAttachmentButtonBitmap = pAppResource->GetBitmapN(IDB_DELETE_ATTACHMENT, BITMAP_PIXEL_FORMAT_ARGB8888);
+                       pDeleteAttachmentButtonPressedBitmap = pAppResource->GetBitmapN(IDB_DELETE_ATTACHMENT_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888);
+
+                       pDelBtn = new (std::nothrow) Button();
+                       pDelBtn->Construct(Rectangle(itemWidth - X_ATTACHMENT_DELETE_BUTTON_OFFSET, (H_ATTACHMENT-H_GENERIC_64)/INTEGER_TWO, H_GENERIC_64, W_GENERIC_64));
+                       pItem->AddControl(pDelBtn);
+                       pDelBtn->SetNormalBackgroundBitmap(*pDeleteAttachmentButtonBitmap);
+                       pDelBtn->SetPressedBackgroundBitmap(*pDeleteAttachmentButtonPressedBitmap);
+                       pDelBtn->SetName(Integer::ToString(-1));
+                       pDelBtn->AddActionEventListener(*this);
+                       pDelBtn->SetActionId(IDA_ATTACHMENT_PANEL_DELETE_ATTACHMENT_BUTTON);
+
+                       pItem->SetIndividualSelectionEnabled(pDelBtn, true);
+                       layout.SetRelation(*pDelBtn, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetRelation(*pTextLbl, pDelBtn, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+                       layout.SetMargin(*pDelBtn, 10, 16, 0, 0);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+bool
+AttachmentPanel::DeleteGroupItem(int groupIndex, TableViewGroupItem* pItem)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null && groupIndex == 0)
+       {
+               pItem->RemoveAllControls();
+               delete pItem;
+               pItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+AttachmentPanel::UpdateGroupItem(int groupIndex, TableViewGroupItem* pItem)
+{
+       AppLogDebug("ENTER");
+
+       String groupText;
+       float fileSize = 0;
+
+       if (groupIndex == 0 && pItem != null)
+       {
+               Label* pTextLbl = dynamic_cast<Label*>(pItem->GetControl(IDC_ATTACHMENT_PANEL_GROUPITEM_TEXT));
+
+               if (pTextLbl != null)
+               {
+                       groupText = Integer::ToString(__pAttachmentsList->GetCount());
+
+                       if (__pAttachmentsList->GetCount() > 1)
+                       {
+                               groupText.Append(L" attachments");
+                       }
+                       else
+                       {
+                               groupText.Append(L" attachment");
+                       }
+
+                       bool flag = true;
+
+                       for (int i=0; i<__pAttachmentsList->GetCount(); i++)
+                       {
+                               EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(i));
+
+                               if (pTmpAttachment->GetSaveStatus() == 0)
+                               {
+                                       flag = false;
+                               }
+
+                               fileSize += pTmpAttachment->GetAttachmentSize();
+                       }
+
+                       if (flag == true)
+                       {
+                               groupText.Append(L" (");
+                               CreateFileSizeString(fileSize, groupText);
+                               groupText.Append(')');
+                       }
+
+                       pTextLbl->SetText(groupText);
+               }
+
+               pItem->Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+TableViewItem*
+AttachmentPanel::CreateItem(int groupIndex, int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemIndex:(%d), itemWidth:(%d)", groupIndex, itemIndex, itemWidth);
+
+       Font font;
+       RelativeLayout layout;
+       Button* pDelBtn = null;
+       Bitmap* pDeleteAttachmentButtonBitmap = null;
+       Bitmap* pDeleteAttachmentButtonPressedBitmap = null;
+       AppResource* pAppResource = Application::GetInstance()->GetAppResource();
+       TableViewItem* pItem = new (std::nothrow) TableViewItem();
+
+       layout.Construct();
+       pItem->Construct(layout, Dimension(itemWidth, H_ATTACHMENT), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+       EmailAttachment* pEmailAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(itemIndex));
+
+       if (!__readOnlyMode)
+       {
+               Label* pLabel;
+               FloatRectangle convertedRectangle = CoordinateSystem::AlignToDevice(FloatRectangle(itemWidth - X_ATTACHMENT_DELETE_BUTTON_OFFSET, (H_ATTACHMENT-H_GENERIC_64)/INTEGER_TWO, H_GENERIC_64, W_GENERIC_64));
+               CreateNormalAttachmentItem(itemWidth, pEmailAttachment, pItem);
+
+               pDeleteAttachmentButtonBitmap = pAppResource->GetBitmapN(IDB_DELETE_ATTACHMENT, BITMAP_PIXEL_FORMAT_ARGB8888);
+               pDeleteAttachmentButtonPressedBitmap = pAppResource->GetBitmapN(IDB_DELETE_ATTACHMENT_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888);
+
+               pDelBtn = new (std::nothrow) Button();
+               pDelBtn->Construct(convertedRectangle);
+               pItem->AddControl(pDelBtn);
+               pDelBtn->SetNormalBackgroundBitmap(*pDeleteAttachmentButtonBitmap);
+               pDelBtn->SetPressedBackgroundBitmap(*pDeleteAttachmentButtonPressedBitmap);
+               pDelBtn->SetName(Integer::ToString(itemIndex));
+               pDelBtn->AddActionEventListener(*this);
+               pDelBtn->SetActionId(IDA_ATTACHMENT_PANEL_DELETE_ATTACHMENT_BUTTON);
+
+               pItem->SetIndividualSelectionEnabled(pDelBtn, true);
+               pLabel = static_cast<Label*>(pItem->GetControl(L"attachmentname", true));
+               layout.SetRelation(*pDelBtn, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               layout.SetRelation(*pLabel, pDelBtn, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+               layout.SetMargin(*pDelBtn, 10, 16, 0, 0);
+
+       }
+       else
+       {
+               if (pEmailAttachment->GetSaveStatus() != 0)
+               {
+                       CreateNormalAttachmentItem(itemWidth, pEmailAttachment, pItem);
+               }
+               else
+               {
+                       CreateDownloadAttachmentItem(itemWidth, pEmailAttachment, pItem, itemIndex);
+               }
+       }
+
+       AppLogDebug("EXIT, pItem:(%x)", pItem);
+       return pItem;
+}
+
+bool
+AttachmentPanel::DeleteItem(int groupIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER");
+
+       if (groupIndex == 0 && pItem != null)
+       {
+               pItem->RemoveAllControls();
+               delete pItem;
+               pItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+AttachmentPanel::UpdateItem(int groupIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER");
+
+       EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(itemIndex));
+
+       if (pTmpAttachment != null && pTmpAttachment->GetAttachmentDownloadStatus() == EMAIL_DOWNLOAD_PROGRESS)
+       {
+               String strItemIndex = Integer::ToString(itemIndex);
+               String ctrlName = strItemIndex;
+               ctrlName.Append('P');
+
+               AppLogDebug("Looking for progressbar:(%ls)", ctrlName.GetPointer());
+               Progress* pProgressBar = static_cast<Progress*>(pItem->GetControl(ctrlName, true));
+
+               if (pProgressBar != null)
+               {
+                       AppLogDebug("Setting progress bar value:(%d)", pTmpAttachment->GetDownloadPercent());
+                       pProgressBar->SetValue(pTmpAttachment->GetDownloadPercent());
+               }
+
+               ctrlName.Clear();
+               ctrlName.Append(strItemIndex);
+               ctrlName.Append('D');
+               Button* pDownloadButton = static_cast<Button*>(pItem->GetControl(ctrlName, true));
+               if (pDownloadButton != null && pDownloadButton->GetShowState() ==  true)
+               {
+                       pDownloadButton->SetShowState(false);
+               }
+       }
+       else if (pTmpAttachment != null && pTmpAttachment->GetAttachmentDownloadStatus() == EMAIL_DOWNLOAD_FINISH)
+       {
+               pTmpAttachment->SetSaveStatus(true);
+               pItem->RemoveAllControls();
+               CreateNormalAttachmentItem(pItem->GetWidth(), pTmpAttachment, pItem);
+       }
+       else if (pTmpAttachment != null && pTmpAttachment->GetAttachmentDownloadStatus() == EMAIL_DOWNLOAD_NONE)
+       {
+               pItem->RemoveAllControls();
+               if (pTmpAttachment->GetSaveStatus() != 0)
+               {
+                       CreateNormalAttachmentItem(pItem->GetWidth(), pTmpAttachment, pItem);
+               }
+               else
+               {
+                       CreateDownloadAttachmentItem(pItem->GetWidth(), pTmpAttachment, pItem, itemIndex);
+               }
+       }
+       pItem->Invalidate(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+int
+AttachmentPanel::GetDefaultGroupItemHeight(void)
+{
+       AppLogDebug("ENTER & EXIT");
+       return H_ATTACHMENT;
+}
+
+int
+AttachmentPanel::GetDefaultItemHeight(void)
+{
+       AppLogDebug("ENTER & EXIT");
+       return H_ATTACHMENT;
+}
+
+void
+AttachmentPanel::OnGroupedTableViewGroupItemStateChanged(GroupedTableView& tableView, int groupIndex, TableViewGroupItem* pItem, TableViewItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       bool isExpanded;
+
+       if (status == TABLE_VIEW_ITEM_STATUS_SELECTED)
+       {
+               isExpanded = __pAttachmentListView->IsGroupExpanded(0);
+
+               if (isExpanded == true)
+               {
+                       isExpanded = false;
+                       r = __pAttachmentListView->CollapseGroup(0);
+                       AppLogDebug("Result of collapse:(%s)", GetErrorMessage(r));
+               }
+               else
+               {
+                       isExpanded = true;
+                       r = __pAttachmentListView->ExpandGroup(0);
+                       AppLogDebug("Result of expand:(%s)", GetErrorMessage(r));
+               }
+
+               if (__pAttachmentPanelListener)
+               {
+                       __pAttachmentPanelListener->OnShowAttachmentValueChanged(isExpanded);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AttachmentPanel::OnGroupedTableViewItemStateChanged(GroupedTableView& tableView, int groupIndex, int itemIndex, TableViewItem* pItem, TableViewItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       EmailAttachment* pTmpAttachment = null;
+       pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(itemIndex));
+       result r = E_SUCCESS;
+
+       if (__pAttachmentPanelListener)
+       {
+               __pAttachmentPanelListener->SetFocusToFrom();
+       }
+
+       if (pTmpAttachment != null && pTmpAttachment->GetSaveStatus() == true)
+       {
+               String attachmentName;
+               pTmpAttachment->GetAttachmentName().ToLowerCase(attachmentName);
+               AppLogDebug("attachment name %ls", attachmentName.GetPointer());
+
+               if (attachmentName.EndsWith(L"jpg") == true ||
+                               attachmentName.EndsWith(L"jpeg") == true ||
+                               attachmentName.EndsWith(L"bmp") == true ||
+                               attachmentName.EndsWith(L"png") == true ||
+                               attachmentName.EndsWith(L"gif") == true ||
+                               attachmentName.EndsWith(L"tif") == true)
+               {
+                       AppLogDebug("Launching imageviewer appcontrol!");
+                       ArrayList* pArr = new (std::nothrow) ArrayList();
+                       pArr->Construct();
+                       pArr->Add(new Integer(itemIndex));
+
+                       if (__processEvent == true)
+                       {
+                               EmailApp::GetInstance()->DisableFrame();
+                               __processEvent = false;
+                               SendUserEvent(IDA_LAUNCH_IMAGE_VIEWER_APPCONTROL, pArr);
+                       }
+
+//
+//                     HashMap* pDataMap = new (std::nothrow) HashMap();
+//                     pDataMap->Construct();
+//
+//                     String* pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_TYPE);
+//                     String* pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_EMAIL);
+//                     pDataMap->Add(pKey, pVal);
+//
+//                     pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_PATH);
+//                     pArr->Add(new (std::nothrow) String(pTmpAttachment->GetAttachmentPath()));
+//                     pDataMap->Add(pKey, pArr);
+//
+//                     AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_IMAGEVIEWER, IDS_TIZEN_OPERATIONID_VIEW);
+//
+//                     if (pAc)
+//                     {
+//                             EmailApp::GetInstance()->DisableFrame();
+//
+//                             r = pAc->Start(null, null, pDataMap, null);
+//                             AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+//
+//                             if (r != E_SUCCESS)
+//                             {
+//                                     EmailApp::GetInstance()->EnableFrame();
+//                             }
+//                             else
+//                             {
+//                                     __pTimer->Start(200);
+//                             }
+//
+//                             delete pAc;
+//                     }
+//
+//                     pDataMap->RemoveAll(true);
+//                     delete pDataMap;
+               }
+               else if ((attachmentName.EndsWith(L"mp3") == true ||
+                               attachmentName.EndsWith(L"aac") == true ||
+                               attachmentName.EndsWith(L"wma") == true ||
+                               attachmentName.EndsWith(L"m4a") == true ||
+                               attachmentName.EndsWith(L"3ga") == true ||
+                               attachmentName.EndsWith(L"wav") == true ||
+                               attachmentName.EndsWith(L"amr") == true) &&
+                               __appControlLaunched == false)
+               {
+                       AppLogDebug("Launching music player appcontrol!");
+
+                       String uriData, mimeType;
+
+                       uriData.Append(L"file://");
+                       uriData.Append(pTmpAttachment->GetAttachmentPath());
+                       mimeType.Append(L"audio/*");
+
+                       HashMap* pDataMap = new (std::nothrow) HashMap();
+                       pDataMap->Construct();
+
+                       String* pKey = new (std::nothrow) String(IDS_APPCONTROL_REQUEST_KEY_RETURN_RESULT);
+                       String* pVal = new (std::nothrow) String(L"true");
+                       pDataMap->Add(pKey, pVal);
+
+                       AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_MUSICPLAYER, IDS_TIZEN_OPERATIONID_VIEW);
+
+                       if (pAc)
+                       {
+                               __appControlLaunched = true;
+                               EmailApp::GetInstance()->DisableFrame();
+
+                               r = pAc->Start(&uriData, &mimeType, pDataMap, this);
+                               AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+
+                               if (r != E_SUCCESS)
+                               {
+                                       __appControlLaunched = false;
+                                       EmailApp::GetInstance()->EnableFrame();
+                               }
+                               else
+                               {
+                                       __pTimer->Start(250);
+                               }
+
+                               delete pAc;
+                       }
+               }
+               else if (attachmentName.EndsWith(L"wmv") == true ||
+                               attachmentName.EndsWith(L"asf") == true ||
+                               attachmentName.EndsWith(L"mp4") == true ||
+                               attachmentName.EndsWith(L"3gp") == true ||
+                               attachmentName.EndsWith(L"avi") == true ||
+                               attachmentName.EndsWith(L"flv") == true ||
+                               attachmentName.EndsWith(L"ogv") == true)
+               {
+                       AppLogDebug("Launching video player appcontrol!");
+
+                       ArrayList* pArr = new (std::nothrow) ArrayList();
+                       pArr->Construct();
+                       pArr->Add(new Integer(itemIndex));
+
+                       if (__processEvent == true)
+                       {
+                               EmailApp::GetInstance()->DisableFrame();
+                               __processEvent = false;
+                               SendUserEvent(IDA_LAUNCH_VIDEO_PLAYER_APPCONTROL, pArr);
+                       }
+
+//                     String uriData, mimeType;
+//
+//                     HashMap* pDataMap = new (std::nothrow) HashMap();
+//                     pDataMap->Construct();
+//
+//                     String* pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_TYPE);
+//                     String* pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_EMAIL);
+//                     pDataMap->Add(pKey, pVal);
+//
+//                     AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_VIDEOPLAYER, IDS_TIZEN_OPERATIONID_VIEW);
+//
+//                     uriData.Append(L"file://");
+//                     uriData.Append(pTmpAttachment->GetAttachmentPath());
+//                     mimeType.Append(L"video/*");
+//
+//                     if (pAc)
+//                     {
+//                             EmailApp::GetInstance()->DisableFrame();
+//
+//                             r = pAc->Start(&uriData, &mimeType, pDataMap, null);
+//                             AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+//
+//                             if (r != E_SUCCESS)
+//                             {
+//                                     EmailApp::GetInstance()->EnableFrame();
+//                             }
+//                             else
+//                             {
+//                                     __pTimer->Start(200);
+//                             }
+//
+//                             delete pAc;
+//                     }
+               }
+               else if (attachmentName.EndsWith(L"htm") == true ||
+                               attachmentName.EndsWith(L"html") == true)
+               {
+                       AppLogDebug("Launching internet appcontrol!");
+
+                       String uriData;
+
+                       AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_INTERNET, IDS_TIZEN_OPERATIONID_VIEW);
+
+                       uriData.Append(L"file://");
+                       uriData.Append(pTmpAttachment->GetAttachmentPath());
+
+                       if (pAc)
+                       {
+                               __appControlLaunched = true;
+                               EmailApp::GetInstance()->DisableFrame();
+
+                               r = pAc->Start(&uriData, null, null, null);
+                               AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+
+                               if (r != E_SUCCESS)
+                               {
+                                       __appControlLaunched = false;
+                                       EmailApp::GetInstance()->EnableFrame();
+                               }
+                               else
+                               {
+                                       __pTimer->Start(250);
+                               }
+
+                               delete pAc;
+                       }
+               }
+               else if (attachmentName.EndsWith(L"vcs") == true)
+               {
+                       AppLogDebug("Launching calendar appcontrol!");
+
+                       ArrayList* pArr = new (std::nothrow) ArrayList();
+                       pArr->Construct();
+                       pArr->Add(new Integer(itemIndex));
+
+                       if (__processEvent == true)
+                       {
+                               EmailApp::GetInstance()->DisableFrame();
+                               __processEvent = false;
+                               SendUserEvent(IDA_LAUNCH_CALENDAR_APPCONTROL, pArr);
+                       }
+
+//                     String uriData;
+//                     String mimeType = L"text/x-calendar";
+//
+//                     AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_CALENDAR, IDS_TIZEN_OPERATIONID_VIEW);
+//
+//                     uriData.Append(L"file://");
+//                     uriData.Append(pTmpAttachment->GetAttachmentPath());
+//
+//                     if (pAc)
+//                     {
+//                             EmailApp::GetInstance()->DisableFrame();
+//
+//                             r = pAc->Start(&uriData, &mimeType, null, null);
+//                             AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+//
+//                             if (r != E_SUCCESS)
+//                             {
+//                                     EmailApp::GetInstance()->EnableFrame();
+//                             }
+//                             else
+//                             {
+//                                     __pTimer->Start(200);
+//                             }
+//
+//                             delete pAc;
+//                     }
+               }
+               else if (attachmentName.EndsWith(L"vcf") == true)
+               {
+                       AppLogDebug("Launching contacts appcontrol!");
+
+                       ArrayList* pArr = new (std::nothrow) ArrayList();
+                       pArr->Construct();
+                       pArr->Add(new Integer(itemIndex));
+
+                       if (__processEvent == true)
+                       {
+                               EmailApp::GetInstance()->DisableFrame();
+                               __processEvent = false;
+                               SendUserEvent(IDA_LAUNCH_CONTACTS_APPCONTROL, pArr);
+                       }
+
+//                     String uriData;
+//                     String mimeType = L"text/x-vcard";
+//
+//                     AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_CONTACTS, IDS_TIZEN_OPERATIONID_SOCIAL_VIEW);
+//
+//                     uriData.Append(L"file://");
+//                     uriData.Append(pTmpAttachment->GetAttachmentPath());
+//
+//                     if (pAc)
+//                     {
+//                             EmailApp::GetInstance()->DisableFrame();
+//
+//                             r = pAc->Start(&uriData, &mimeType, null, null);
+//                             AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+//
+//                             if (r != E_SUCCESS)
+//                             {
+//                                     EmailApp::GetInstance()->EnableFrame();
+//                             }
+//                             else
+//                             {
+//                                     __pTimer->Start(200);
+//                             }
+//
+//                             delete pAc;
+//                     }
+               }
+               else if (__appControlLaunched == false)
+               {
+                       int modRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_BODY_WARNING"), L"File format not supported!", MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modRes);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AttachmentPanel::OnGroupedTableViewContextItemActivationStateChanged(GroupedTableView& tableView, int groupIndex, int itemIndex, TableViewContextItem* pContextItem, bool activated)
+{
+       // empty implementation
+}
+
+void
+AttachmentPanel::OnActionPerformed(const Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+
+       int itemIndex;
+       const Button* pTmpBtn = null;
+       EmailAttachment* pTmpAttachment = null;
+
+       pTmpBtn = static_cast<const Button*>(&source);
+
+       if (pTmpBtn != null)
+       {
+               Integer::Decode(pTmpBtn->GetName(), itemIndex);
+               AppLogDebug("Got source name:(%ls), itemIndex:(%d)", pTmpBtn->GetName().GetPointer(), itemIndex);
+
+               if (actionId == IDA_ATTACHMENT_PANEL_DELETE_ATTACHMENT_BUTTON)
+               {
+                       __pAttachmentListView->RefreshItem(0, -1, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE); // remove the entire list
+
+                       if (itemIndex >= 0) // the group item was not clicked
+                       {
+                               pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(itemIndex));
+                               __totalAttachmentSize = __totalAttachmentSize - pTmpAttachment->GetAttachmentSize();
+                               EmailMailboxManager::GetInstance()->DeleteAttachment(pTmpAttachment->GetAttachmentId()); // remove attachment info from db
+                               __pAttachmentsList->RemoveAt(itemIndex, true); // remove item from the arraylist
+                               __pAttachmentListView->UpdateTableView(); // redraw the table view.
+                       }
+                       else if (itemIndex == -1) // group item's delete button was clicked
+                       {
+                               for (int i=0; i<__pAttachmentsList->GetCount(); i++)
+                               {
+                                       pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(i));
+                                       EmailMailboxManager::GetInstance()->DeleteAttachment(pTmpAttachment->GetAttachmentId()); // remove attachment info from db
+                               }
+                               __pAttachmentListView->RefreshItem(0, -1, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                               __pAttachmentsList->RemoveAll(true);
+                               __totalAttachmentSize = 0;
+                       }
+                       if (__pAttachmentPanelListener)
+                       {
+                               __pAttachmentPanelListener->OnShowAttachmentValueChanged(__pAttachmentListView->IsGroupExpanded(0));
+                       }
+               }
+               else if (actionId == IDA_ATTACHMENT_PANEL_DOWNLOAD_ATTACHMENT_BUTTON)
+               {
+                       pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(itemIndex));
+                       __pPresentationModel->DownloadAttachment(pTmpAttachment, pTmpAttachment->GetDownloadHandle());
+                       pTmpAttachment->SetAttachmentDownloadStatus(EMAIL_DOWNLOAD_PROGRESS);
+                       __pAttachmentListView->RefreshItem(0, itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+               }
+               else if (actionId == IDA_ATTACHMENT_PANEL_CANCEL_DOWNLOAD_BUTTON)
+               {
+                       pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(itemIndex));
+                       pTmpAttachment->SetAttachmentDownloadStatus(EMAIL_DOWNLOAD_NONE);
+                       pTmpAttachment->SetSaveStatus(0);
+                       __pPresentationModel->CancelJob(pTmpAttachment->GetAccountId(), pTmpAttachment->GetDownloadHandle(), EMAIL_CANCELED_BY_USER);
+                       __pAttachmentListView->RefreshItem(0, itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AttachmentPanel::OnUserEventReceivedN(RequestId requestId, IList* pArgs)
+{
+       AppLogDebug("ENTER, requestId:(%d)", requestId);
+
+       EmailAttachment* pTmpAttachment = null;
+
+       if (pArgs != null)
+       {
+               if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_START)
+               {
+                       int attachmentIndex;
+                       int percentage;
+
+                       attachmentIndex = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+                       percentage = static_cast<Integer*>(pArgs->GetAt(1))->ToInt();
+                       pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(attachmentIndex-1));
+
+                       if (pTmpAttachment != null)
+                       {
+                               AppLogDebug("Setting attachment id:(%d), progress value:(%d)", pTmpAttachment->GetMailId(), percentage);
+                               pTmpAttachment->SetAttachmentDownloadStatus(EMAIL_DOWNLOAD_PROGRESS);
+                               pTmpAttachment->SetDownloadPercent(percentage);
+                               __pAttachmentListView->RefreshItem(0, attachmentIndex-1, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       }
+               }
+               else if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FINISH)
+               {
+                       int attachmentIndex;
+
+                       attachmentIndex = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+                       pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(attachmentIndex-1));
+
+                       if (pTmpAttachment != null && pTmpAttachment->GetAttachmentDownloadStatus() == EMAIL_DOWNLOAD_PROGRESS)
+                       {
+                               EmailAttachment* pAttachment = null;
+                               AppLogDebug("Download finished attachment id:(%d)", pTmpAttachment->GetAttachmentId());
+                               pTmpAttachment->SetAttachmentDownloadStatus(EMAIL_DOWNLOAD_FINISH);
+
+                               if (pTmpAttachment->GetThumbnail() != null)
+                               {
+                                       // Force thumbnail fetch again after download completion...
+                                       delete pTmpAttachment->GetThumbnail();
+                                       pTmpAttachment->SetThumbnail(null);
+                               }
+
+                               pAttachment = EmailMailboxManager::GetInstance()->GetAttachmentDataN(pTmpAttachment->GetAttachmentId());
+
+                               if (pAttachment != null)
+                               {
+                                       pTmpAttachment->SetSaveStatus(pAttachment->GetSaveStatus());
+                                       pTmpAttachment->SetAttachmentSize(pAttachment->GetAttachmentSize());
+                                       pTmpAttachment->SetAttachmentPath(pAttachment->GetAttachmentPath());
+                                       delete pAttachment;
+                               }
+
+                               __pAttachmentListView->RefreshItem(0, -1, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                               __pAttachmentListView->RefreshItem(0, attachmentIndex-1, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       }
+               }
+               else if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL)
+               {
+                       int attachmentIndex;
+
+                       attachmentIndex = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+                       pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(attachmentIndex-1));
+
+                       if (pTmpAttachment != null && pTmpAttachment->GetAttachmentDownloadStatus() == EMAIL_DOWNLOAD_PROGRESS)
+                       {
+                               AppLogDebug("Download failed attachment id:(%d)", pTmpAttachment->GetAttachmentId());
+                               pTmpAttachment->SetAttachmentDownloadStatus(EMAIL_DOWNLOAD_NONE);
+
+                               __pAttachmentListView->RefreshItem(0, attachmentIndex-1, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       }
+               }
+       }
+
+       if (requestId == IDA_LAUNCH_IMAGE_VIEWER_APPCONTROL)
+       {
+               AppLogDebug("Launching imageviewer appcontrol!");
+               result r  = E_SUCCESS;
+               ArrayList* pArr = new (std::nothrow) ArrayList();
+               pArr->Construct();
+
+               int index = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+               pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(index));
+               HashMap* pDataMap = new (std::nothrow) HashMap();
+               pDataMap->Construct();
+
+               String* pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_TYPE);
+               String* pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_EMAIL);
+               pDataMap->Add(pKey, pVal);
+
+               pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_PATH);
+               pArr->Add(new (std::nothrow) String(pTmpAttachment->GetAttachmentPath()));
+               pDataMap->Add(pKey, pArr);
+
+               AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_IMAGEVIEWER, IDS_TIZEN_OPERATIONID_VIEW);
+
+               if (pAc)
+               {
+//                     EmailApp::GetInstance()->DisableFrame();
+
+                       r = pAc->Start(null, null, pDataMap, null);
+                       AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+
+                       if (r != E_SUCCESS)
+                       {
+                               EmailApp::GetInstance()->EnableFrame();
+                               __processEvent = true;
+                       }
+//                     else
+//                     {
+//                             __pTimer->Start(400);
+//                     }
+
+                       delete pAc;
+               }
+               else
+               {
+                       EmailApp::GetInstance()->EnableFrame();
+                       __processEvent = true;
+               }
+
+               pDataMap->RemoveAll(true);
+               delete pDataMap;
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+               pArgs = null;
+       }
+       else if (requestId == IDA_LAUNCH_CALENDAR_APPCONTROL)
+       {
+               AppLogDebug("Launching calendar appcontrol!");
+               result r  = E_SUCCESS;
+               int index = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+               pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(index));
+
+               String uriData;
+               String mimeType = L"text/x-calendar";
+
+               AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_CALENDAR, IDS_TIZEN_OPERATIONID_VIEW);
+
+               uriData.Append(L"file://");
+               uriData.Append(pTmpAttachment->GetAttachmentPath());
+
+               if (pAc)
+               {
+                       r = pAc->Start(&uriData, &mimeType, null, null);
+                       AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+
+                       if (r != E_SUCCESS)
+                       {
+                               EmailApp::GetInstance()->EnableFrame();
+                               __processEvent = true;
+                       }
+//                     else
+//                     {
+//                             __pTimer->Start(200);
+//                     }
+
+                       delete pAc;
+               }
+               else
+               {
+                       EmailApp::GetInstance()->EnableFrame();
+                       __processEvent = true;
+               }
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+               pArgs = null;
+       }
+       else if (requestId == IDA_LAUNCH_CONTACTS_APPCONTROL)
+       {
+               AppLogDebug("Launching contacts appcontrol!");
+               result r  = E_SUCCESS;
+               int index = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+               pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(index));
+
+               String uriData;
+               String mimeType = L"text/x-vcard";
+
+               AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_CONTACTS, IDS_TIZEN_OPERATIONID_SOCIAL_VIEW);
+
+               uriData.Append(L"file://");
+               uriData.Append(pTmpAttachment->GetAttachmentPath());
+
+               if (pAc)
+               {
+                       r = pAc->Start(&uriData, &mimeType, null, null);
+                       AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+
+                       if (r != E_SUCCESS)
+                       {
+                               EmailApp::GetInstance()->EnableFrame();
+                               __processEvent = true;
+                       }
+//                     else
+//                     {
+//                             __pTimer->Start(200);
+//                     }
+
+                       delete pAc;
+               }
+               else
+               {
+                       EmailApp::GetInstance()->EnableFrame();
+                       __processEvent = true;
+               }
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+               pArgs = null;
+       }
+       else if (requestId == IDA_LAUNCH_VIDEO_PLAYER_APPCONTROL)
+       {
+               AppLogDebug("Launching video player appcontrol!");
+
+               result r  = E_SUCCESS;
+               String uriData, mimeType;
+               int index = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+               pTmpAttachment = static_cast<EmailAttachment*>(__pAttachmentsList->GetAt(index));
+
+               HashMap* pDataMap = new (std::nothrow) HashMap();
+               pDataMap->Construct();
+
+               String* pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_TYPE);
+               String* pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_EMAIL);
+               pDataMap->Add(pKey, pVal);
+
+               AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_VIDEOPLAYER, IDS_TIZEN_OPERATIONID_VIEW);
+
+               uriData.Append(L"file://");
+               uriData.Append(pTmpAttachment->GetAttachmentPath());
+               mimeType.Append(L"video/*");
+
+               if (pAc)
+               {
+                       EmailApp::GetInstance()->DisableFrame();
+
+                       r = pAc->Start(&uriData, &mimeType, pDataMap, null);
+                       AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+
+                       if (r != E_SUCCESS)
+                       {
+                               EmailApp::GetInstance()->EnableFrame();
+                       }
+//                     else
+//                     {
+//                             __pTimer->Start(200);
+//                     }
+
+                       delete pAc;
+               }
+               else
+               {
+                       EmailApp::GetInstance()->EnableFrame();
+                       __processEvent = true;
+               }
+       }
+       else if (requestId == IDA_EMAIL_APP_FOREGROUND)
+       {
+               EmailApp::GetInstance()->EnableFrame();
+               __processEvent = true;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+int
+AttachmentPanel::GetTotalAttachmentSize(void)
+{
+       AppLogDebug("returning:(%d)", __totalAttachmentSize);
+       return __totalAttachmentSize;
+}
+
+void
+AttachmentPanel::SetTotalAttachmentSize(int totalSize)
+{
+       AppLogDebug("setting size:(%d)", totalSize);
+       __totalAttachmentSize = totalSize;
+}
+
+void
+AttachmentPanel::OnBoundsChanged(const Rectangle& oldRect, const Rectangle& newRect)
+{
+       AppLogDebug("ENTER");
+
+//     if (__pAttachmentListView != null)
+//     {
+//             __pAttachmentListView->SetSize(newRect.width - 10, newRect.height - 10);
+//             __pAttachmentListView->RefreshAllItems();
+//     }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AttachmentPanel::OnAppControlCompleteResponseReceived(const AppId& appId, const String& operationId, AppCtrlResult appControlResult, const IMap* pExtraData)
+{
+       AppLogDebug("ENTER, appId:(%ls), operationId:(%ls), appControlResult:(%d), pExtraData(%x)", appId.GetPointer(), operationId.GetPointer(), appControlResult, pExtraData);
+
+       if (__appControlLaunched)
+       {
+               EmailApp::GetInstance()->EnableFrame();
+               __appControlLaunched = false;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+AttachmentPanel::OnAppControlStartResponseReceived(const AppId& appId, const String& operationId, result r)
+{
+       AppLogDebug("ENTER, appId:(%ls), operationId:(%ls), r:(%s)", appId.GetPointer(), operationId.GetPointer(), GetErrorMessage(r));
+}
+
+void
+AttachmentPanel::OnTimerExpired(Timer& timer)
+{
+       __appControlLaunched = false;
+       EmailApp::GetInstance()->EnableFrame();
+}
diff --git a/src/EmBaseListViewItemProvider.cpp b/src/EmBaseListViewItemProvider.cpp
new file mode 100755 (executable)
index 0000000..587c6a4
--- /dev/null
@@ -0,0 +1,561 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmBaseListViewItemProvider.cpp
+ * @brief      Provides implementation of the base class of an item list view provider.
+ *                     The list view lists Emails in a mailbox in some pre-determined order.
+ */
+
+#include <FSystem.h>
+#include "EmBaseListViewItemProvider.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Locales;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+EmailBaseListViewItemProvider::EmailBaseListViewItemProvider(BasePresentationModel* pModel, bool isSearch)
+       : _pModel(pModel)
+       , _isSearch(isSearch)
+       , __pContextItemMap(null)
+       , _fontSize(44.0f)
+       , _itemHeight(150.0f)
+{
+       InitLocals();
+}
+
+EmailBaseListViewItemProvider::~EmailBaseListViewItemProvider(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pContextItemMap != null)
+       {
+               if (__pContextItemMap->GetCount() > 0)
+               {
+                       IMapEnumerator* pMapEnum = __pContextItemMap->GetMapEnumeratorN();
+
+                       if (pMapEnum != null)
+                       {
+                               while(!IsFailed(pMapEnum->MoveNext()))
+                               {
+                                       ListContextItem* pListContextItem = dynamic_cast<ListContextItem*>(pMapEnum->GetValue());
+
+                                       if (pListContextItem != null)
+                                       {
+                                               AppLogDebug("Removing context item:(%x)", pListContextItem);
+                                               delete pListContextItem;
+                                       }
+                               }
+                               delete pMapEnum;
+                       }
+               }
+
+               __pContextItemMap->RemoveAll();
+               delete __pContextItemMap;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+AccountColorCustomListElement*
+EmailBaseListViewItemProvider::CreateColorCode(const EmailMessageListItem* pMail)
+{
+       AppLogDebug("ENTER, mailId:(%d)", pMail->GetMailId());
+
+       AccountColorCustomListElement* pColorCode = new (std::nothrow) AccountColorCustomListElement();
+       pColorCode->SetAccountId(pMail->GetAccountId());
+
+       AppLogDebug("EXIT");
+       return pColorCode;
+}
+
+void
+EmailBaseListViewItemProvider::CreateSubjectText(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth)
+{
+       AppLogDebug("ENTER, pItem:(%x), mailId:(%d)", pItem, pMail->GetMailId());
+
+       String subject;
+       int subjectWidth;
+
+       if (pMail != null)
+       {
+               subject = pMail->GetSubject();
+               subject.Trim();
+       }
+
+       if (subject.GetLength() == 0)
+       {
+               subject.Append(IDS_NO_SUBJECT);
+       }
+
+       if (pMail != null)
+       {
+               if (pMail->GetHasAttachment() > 0)
+               {
+                       subjectWidth = itemWidth - LIST_ITEM_OFFSET - X_ITEM_BITMAP - W_GENERIC_32;
+               }
+               else
+               {
+                       subjectWidth = itemWidth - LIST_ITEM_OFFSET;
+               }
+
+               if (pMail->isFlagsSeenField())
+               {
+                       pItem->AddElement(Rectangle(X_LIST_ITEM, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)), IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT, subject, _fontSize, COLOR_READ_MAILS, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+               }
+               else
+               {
+                       pItem->AddElement(Rectangle(X_LIST_ITEM, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)), IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT, subject, _fontSize, COLOR_UNREAD_MAILS, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailBaseListViewItemProvider::CreateRecipientText(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth, const FloatDimension& dim)
+{
+       AppLogDebug("ENTER, pItem:(%x), mailId:(%d)", pItem, pMail->GetMailId());
+
+       int offset = 86;
+       String recipient;
+       email_mailbox_type_e mailboxType;
+
+       if (pMail != null)
+       {
+               mailboxType = _pModel->GetMailboxType(pMail->GetMailboxId());
+
+
+               if (mailboxType == EMAIL_MAILBOX_TYPE_DRAFT || mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX)
+               {
+                       String emailAddress;
+                       Utility::StringTokenizer emailIdTokenizer(pMail->GetRecipients(), IDS_DELIM_SEMICOLON);
+
+                       if (emailIdTokenizer.HasMoreTokens() == true)
+                       {
+                               emailIdTokenizer.GetNextToken(emailAddress);
+
+                               if (recipient.GetLength() <= 1 && emailIdTokenizer.HasMoreTokens() == true)
+                               {
+                                       emailIdTokenizer.GetNextToken(emailAddress);
+                               }
+                       }
+
+                       Utils::ExtractEmailIdFromFullAddress(emailAddress, recipient);
+               }
+               else
+               {
+                       Utils::ExtractAliasFromFullAddress(pMail->GetFromEmailAddress(), recipient);
+               }
+       }
+
+       if (recipient.GetLength() != 0)
+       {
+               if (recipient.StartsWith(L";", 0) == true)
+               {
+                       recipient.Remove(0, 1);
+               }
+       }
+       else
+       {
+               recipient.Append(IDS_NO_RECIPIENTS);
+       }
+
+       if (!_isSearch)
+       {
+               offset = 0;
+       }
+
+       pItem->AddElement(FloatRectangle(X_LIST_ITEM, Y_LIST_ITEM_TYPE1 + _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE), itemWidth - LIST_ITEM_OFFSET - offset - W_GENERIC_32 - 30, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_RECIPIENT_ELEMENT, recipient, FONT_SIZE_LIST_NAME_ITEM, COLOR_NAME_TEXT, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailBaseListViewItemProvider::CreateMessageText(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth)
+{
+       AppLogDebug("ENTER, pItem:(%x), mailId:(%d)", pItem, pMail->GetMailId());
+
+       String previewText;
+
+       if (pMail != null)
+       {
+               previewText.Append(pMail->GetPreviewBodyText());
+               previewText.Trim();
+       }
+
+       if (previewText.GetLength() == 0)
+       {
+               previewText.Append(IDS_NO_PREVIEW_TEXT);
+       }
+
+       pItem->AddElement(Rectangle(X_LIST_ITEM, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE) + H_LIST_SUB_ITEM_3_LINE, itemWidth-106, H_LIST_PREVIEW_ITEM_1_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_MESSAGE_ELEMENT, previewText, FONT_SIZE_LIST_CONTENTS_ITEM, COLOR_CONTENTS_TEXT, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailBaseListViewItemProvider::CreateDateText(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth, FloatDimension& dim)
+{
+       AppLogDebug("ENTER, pItem:(%x), mailId:(%d)", pItem, pMail->GetMailId());
+
+       int key;
+       Font font;
+       String dateString;
+       int offset = 86;
+
+       if (pMail != null)
+       {
+               key = Utils::CompareDatesAndGetKey(__today, pMail->GetLocalDateTime());
+
+               if (key == 0 || key == 1)
+               {
+                       DateTimeFormatter* pDateFormatter = Utils::GetTimeFormatter();
+                       pDateFormatter->Format(pMail->GetLocalDateTime(), dateString);
+               }
+               else if (key == 2 || key == 3)
+               {
+                       DateTimeFormatter* pDateFormatter = Utils::GetDateFormatter();
+                       pDateFormatter->Format(pMail->GetLocalDateTime(), dateString);
+               }
+
+               font.Construct(FONT_STYLE_PLAIN, FONT_SIZE_LIST_CONTENTS_ITEM);
+               font.GetTextExtent(dateString, dateString.GetLength(), dim);
+
+               AppLogDebug("dim values %ls, %f", dateString.GetPointer(), dim.width);
+
+               int x = itemWidth - LIST_ITEM_OFFSET - W_GENERIC_32;
+
+               if (!_isSearch)
+               {
+                       offset = 0;
+               }
+
+//             pItem->AddElement(FloatRectangle(x + offset - 10,_itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)+8, LIST_ITEM_OFFSET + W_GENERIC_32 - offset, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_DATE_ELEMENT, dateString, FONT_SIZE_LIST_CONTENTS_ITEM, COLOR_CONTENTS_TEXT, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+               pItem->AddElement(FloatRectangle(x + offset - 30,_itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)+8, 120, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_DATE_ELEMENT, dateString, FONT_SIZE_LIST_CONTENTS_ITEM, COLOR_CONTENTS_TEXT, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+               pItem->SetElementTextHorizontalAlignment(IDA_BASE_LISTVIEW_ITEM_PROVIDER_DATE_ELEMENT,ALIGNMENT_RIGHT);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailBaseListViewItemProvider::AddFavoriteIcon(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth)
+{
+       AppLogDebug("ENTER, pItem:(%x), mailId:(%d)", pItem, pMail->GetMailId());
+
+       int offset = 86;
+       Bitmap* pFavIcon = null;
+
+       if (pMail->isFlagsFlaggedField())
+       {
+               pFavIcon = Utils::GetFavoriteIconOn();
+       }
+       else
+       {
+               pFavIcon = Utils::GetFavoriteIconOff();
+       }
+
+       if (!_isSearch)
+       {
+               offset = 0;
+       }
+
+       pItem->AddElement(Rectangle(itemWidth + offset - X_IMPORTANT_OFFSET, Y_IMPORTANT, W_IMPORTANT, H_IMPORTANT), IDA_BASE_LISTVIEW_ITEM_PROVIDER_FORMAT_IMPORTANT_ELEMENT, *pFavIcon, null, null);
+       pItem->SetElementSelectionEnabled(IDA_BASE_LISTVIEW_ITEM_PROVIDER_FORMAT_IMPORTANT_ELEMENT, true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailBaseListViewItemProvider::AddAttachmentIcon(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth)
+{
+       AppLogDebug("ENTER, pItem:(%x), mailId:(%d)", pItem, pMail->GetMailId());
+
+       int offset = 86;
+
+       if (pMail->GetHasAttachment() > 0)
+       {
+               AppLogDebug("Attachment present!");
+
+               if (!_isSearch)
+               {
+                       offset = 0;
+               }
+
+               pItem->AddElement(Rectangle(itemWidth + offset - X_IMPORTANT_OFFSET - X_ITEM_BITMAP - W_GENERIC_32, Y_ATTACHMENT_ICON, W_GENERIC_32, H_GENERIC_32), IDA_BASE_LISTVIEW_ITEM_PROVIDER_ATTACH_ELEMENT, *(Utils::GetAttachmentIcon()), null, null);
+       }
+       else
+       {
+               AppLogDebug("Attachment not present!");
+       }
+}
+
+ListContextItem*
+EmailBaseListViewItemProvider::CreateContextItemForListItem(const EmailMessageListItem* pMail)
+{
+       AppLogDebug("ENTER, mailId:(%d)", pMail->GetMailId());
+
+       ListContextItem* pItemContext = new (std::nothrow) ListContextItem();
+       pItemContext->Construct();
+
+       email_mailbox_type_e mailboxType = _pModel->GetMailboxType(pMail->GetMailboxId());
+
+       if (mailboxType == EMAIL_MAILBOX_TYPE_INBOX || mailboxType == EMAIL_MAILBOX_TYPE_NONE || mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX || mailboxType == EMAIL_MAILBOX_TYPE_TRASH || mailboxType == EMAIL_MAILBOX_TYPE_SPAMBOX)
+       {
+               pItemContext->AddElement(IDA_BASE_LISTVIEW_ITEM_PROVIDER_REPLY_BUTTON, __reply);
+       }
+
+       if (mailboxType == EMAIL_MAILBOX_TYPE_INBOX || mailboxType == EMAIL_MAILBOX_TYPE_NONE || mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX || mailboxType == EMAIL_MAILBOX_TYPE_TRASH || mailboxType == EMAIL_MAILBOX_TYPE_SPAMBOX)
+       {
+               pItemContext->AddElement(IDA_BASE_LISTVIEW_ITEM_PROVIDER_FORWARD_BUTTON, __forward);
+       }
+
+       if (mailboxType == EMAIL_MAILBOX_TYPE_INBOX || mailboxType == EMAIL_MAILBOX_TYPE_NONE || mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX || mailboxType == EMAIL_MAILBOX_TYPE_TRASH || mailboxType == EMAIL_MAILBOX_TYPE_SPAMBOX || mailboxType == EMAIL_MAILBOX_TYPE_DRAFT || mailboxType == EMAIL_MAILBOX_TYPE_OUTBOX)
+       {
+               if (pMail->isFlagsSeenField())
+               {
+                       pItemContext->AddElement(IDA_BASE_LISTVIEW_ITEM_PROVIDER_MARK_AS_UNREAD_BUTTON, __unread);
+               }
+               else
+               {
+                       pItemContext->AddElement(IDA_BASE_LISTVIEW_ITEM_PROVIDER_MARK_AS_READ_BUTTON, __read);
+               }
+       }
+
+       pItemContext->AddElement(IDA_BASE_LISTVIEW_ITEM_PROVIDER_DELETE_BUTTON, __delete);
+       pItemContext->SetElementBackgroundColor(IDA_BASE_LISTVIEW_ITEM_PROVIDER_DELETE_BUTTON, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color(208,82,82));
+       pItemContext->SetElementBackgroundColor(IDA_BASE_LISTVIEW_ITEM_PROVIDER_DELETE_BUTTON, LIST_CONTEXT_ITEM_ELEMENT_STATUS_PRESSED, Color(208,82,82));
+       pItemContext->SetElementTextColor(IDA_BASE_LISTVIEW_ITEM_PROVIDER_DELETE_BUTTON, LIST_CONTEXT_ITEM_ELEMENT_STATUS_NORMAL, Color::GetColor(COLOR_ID_WHITE));
+
+       AppLogDebug("EXIT");
+       return pItemContext;
+}
+
+CustomItem*
+EmailBaseListViewItemProvider::CreateListItem(const EmailMessageListItem* pMail, const int& itemWidth)
+{
+       AppLogDebug("ENTER, mailId:(%d)", pMail->GetMailId());
+
+       int offset = 86;
+       CustomItem* pItem = null;
+       ListContextItem* pContextItem = null;
+       AccountColorCustomListElement* pColorCode = null;
+       FloatDimension dim;
+
+       pItem = new (std::nothrow) CustomItem();
+
+       if (!_isSearch)
+       {
+               pItem->Construct(Dimension(itemWidth, _itemHeight), LIST_ANNEX_STYLE_MARK);
+               if (__pContextItemMap == null)
+               {
+                       __pContextItemMap = new (std::nothrow) HashMap();
+                       __pContextItemMap->Construct();
+               }
+               pContextItem = CreateContextItemForListItem(pMail);
+               AppLogDebug("Adding context item:(%x)", pContextItem);
+               __pContextItemMap->Add(pItem, pContextItem);
+               pItem->SetContextItem(pContextItem);
+               offset = 0;
+       }
+       else
+       {
+               pItem->Construct(Dimension(itemWidth, _itemHeight), LIST_ANNEX_STYLE_NORMAL);
+       }
+
+       pItem->AddElement(Rectangle(0,0, itemWidth, _itemHeight), IDA_BASE_LISTVIEW_ITEM_PROVIDER_EMPTY_ELEMENT, L"", false);
+       pColorCode = CreateColorCode(pMail);
+       CreateDateText(pItem, pMail, itemWidth, dim);
+
+       CreateSubjectText(pItem, pMail, itemWidth);
+       CreateRecipientText(pItem, pMail, itemWidth, dim);
+       CreateMessageText(pItem, pMail, itemWidth);
+
+       pItem->AddElement(Rectangle(X_COLOR_CODE + offset, Y_COLOR_CODE, W_COLOR_CODE, _itemHeight-(2*Y_COLOR_CODE)), IDA_COLOR_CODE, *pColorCode);
+//     pItem->AddElement(Rectangle(itemWidth + offset - 153 - dim.width - X_LIST_DATE_ITEM_OFFSET, LIST_SUB_ITEM_OFFSET + H_LIST_MAIN_ITEM, W_LIST_DATE_ITEM, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_DATE_ELEMENT, *pDate);
+
+
+       AddFavoriteIcon(pItem, pMail, itemWidth);
+       AddAttachmentIcon(pItem, pMail, itemWidth);
+
+       AppLogDebug("EXIT, pItem:(%x)", pItem);
+       return pItem;
+}
+
+int
+EmailBaseListViewItemProvider::GetGroupCount(void)
+{
+       AppLogDebug("ENTER");
+
+       int count = _pModel->GetGroupCount();
+
+       AppLogDebug("EXIT, returning count:(%d)", count);
+       return count;
+}
+
+int
+EmailBaseListViewItemProvider::GetItemCount(int groupIndex)
+{
+       AppLogDebug("ENTER");
+
+       int count = _pModel->GetItemCount(groupIndex);
+
+       AppLogDebug("EXIT, returning count:(%d)", count);
+       return count;
+}
+
+Tizen::Ui::Controls::GroupItem*
+EmailBaseListViewItemProvider::CreateGroupItem(int groupIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemWidth:(%d)", groupIndex, itemWidth);
+
+       GroupItem* pGroupItem = new (std::nothrow) GroupItem();
+       pGroupItem->Construct(Dimension(itemWidth, H_GROUP_ITEM));
+       pGroupItem->SetTextSize(FONT_SIZE_GROUP_ITEM);
+       pGroupItem->SetTextColor(COLOR_GROUP_ITEM);
+       pGroupItem->SetElement(_pModel->GetGroupItemText(groupIndex));
+
+       AppLogDebug("EXIT, pGroupItem:(%x)", pGroupItem);
+       return pGroupItem;
+}
+
+bool
+EmailBaseListViewItemProvider::DeleteGroupItem(int groupIndex, Tizen::Ui::Controls::GroupItem* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), pItem:(%x)", groupIndex, pItem);
+
+       if (pItem != null)
+       {
+               delete pItem;
+               pItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+Tizen::Ui::Controls::ListItemBase*
+EmailBaseListViewItemProvider::CreateItem(int groupIndex, int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemIndex:(%d), itemWidth:(%d)", groupIndex, itemIndex, itemWidth);
+
+       CustomItem* pItem = null;
+       EmailMessageListItem* pMail = null;
+       pMail = _pModel->GetMailData(groupIndex, itemIndex);
+
+       if (pMail != null)
+       {
+               pItem = CreateListItem(pMail, itemWidth);
+       }
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(GetLastResult()));
+       return pItem;
+}
+
+bool
+EmailBaseListViewItemProvider::DeleteItem(int groupIndex, int itemIndex, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemIndex:(%d), pItem:(%x), itemWidth:(%d)", groupIndex, itemIndex, pItem, itemWidth);
+
+       if (pItem != null)
+       {
+               CustomItem* pItemTmp = static_cast<CustomItem*>(pItem);
+
+               if (__pContextItemMap != null)
+               {
+                       ListContextItem* pListContextItem = dynamic_cast<ListContextItem*>(__pContextItemMap->GetValue(*pItemTmp));
+
+                       if (pListContextItem != null)
+                       {
+                               AppLogDebug("Removing context item:(%x)", pListContextItem);
+                               delete pListContextItem;
+                               __pContextItemMap->Remove(*pItemTmp);
+                       }
+               }
+
+               pItemTmp->RemoveAllElements();
+               delete pItemTmp;
+               pItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+EmailBaseListViewItemProvider::SetPresentationModel(BasePresentationModel* pModel)
+{
+       _pModel = pModel;
+}
+
+void
+EmailBaseListViewItemProvider::InitLocals(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+
+       __delete  = Utils::GetResourceString(L"IDS_EMAIL_HEADER_DELETE");
+       __forward = Utils::GetResourceString(L"IDS_EMAIL_OPT_FORWARD");
+       __read    = Utils::GetResourceString(L"IDS_EMAIL_OPT_MARK_AS_READ");
+       __reply   = Utils::GetResourceString(L"IDS_EMAIL_OPT_REPLY");
+       __unread  = Utils::GetResourceString(L"IDS_EMAIL_OPT_MARK_AS_UNREAD");
+
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               _fontSize = 36.0f;
+               _itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               _fontSize = 44.0f;
+               _itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               _fontSize = 64.0f;
+               _itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               _fontSize = 81.0f;
+               _itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               _fontSize = 106.0f;
+               _itemHeight = 215.0f;
+       }
+
+       SystemTime::GetCurrentTime(__today);
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmBasePresentationModel.cpp b/src/EmBasePresentationModel.cpp
new file mode 100755 (executable)
index 0000000..512b245
--- /dev/null
@@ -0,0 +1,1834 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       BasePresentationModel.cpp
+ * @brief                      Keeps the implementation of BasePresentationModel class
+ *
+ */
+
+#include "email-service/email-api.h"
+#include "EmBasePresentationModel.h"
+#include "EmEmailSettingPresentationModel.h"
+#include "EmTypes.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+CustomSorter::CustomSorter(SortBy sortByType)
+       : __sortByType(sortByType)
+{
+       // empty implementation
+}
+
+CustomSorter::~CustomSorter(void)
+{
+       // empty implementation
+}
+
+result
+CustomSorter::Compare(const Tizen::Base::Object& obj1, const Tizen::Base::Object& obj2, int& cmp) const
+{
+       result r = E_SUCCESS;
+
+       switch(__sortByType)
+       {
+       case SORTBY_DATE:
+               EmailMessageListItem* pMsgListItemObj1;
+               EmailMessageListItem* pMsgListItemObj2;
+               pMsgListItemObj1 = static_cast<EmailMessageListItem*>(const_cast<Object*>(&obj1));
+               pMsgListItemObj2 = static_cast<EmailMessageListItem*>(const_cast<Object*>(&obj2));
+               cmp = -pMsgListItemObj1->GetDateTime().CompareTo(pMsgListItemObj2->GetDateTime());
+               break;
+
+       case SORTBY_STRING_KEY:
+               const String* pStrKeyObj1;
+               const String* pStrKeyObj2;
+               pStrKeyObj1 = static_cast<const String*>(&obj1);
+               pStrKeyObj2 = static_cast<const String*>(&obj2);
+               cmp = pStrKeyObj1->CompareTo(*pStrKeyObj2);
+               break;
+
+       case SORTBY_KEY:
+               const Integer* pKeyObj1;
+               const Integer* pKeyObj2;
+               pKeyObj1 = static_cast<const Integer*>(&obj1);
+               pKeyObj2 = static_cast<const Integer*>(&obj2);
+               cmp = pKeyObj1->CompareTo(*pKeyObj2);
+               break;
+
+       case SORTBY_RECIPIENT:
+               EmailMessageItem* pMsgItemRecipientObj1;
+               EmailMessageItem* pMsgItemRecipientObj2;
+               pMsgItemRecipientObj1 = static_cast<EmailMessageItem*>(const_cast<Object*>(&obj1));
+               pMsgItemRecipientObj2 = static_cast<EmailMessageItem*>(const_cast<Object*>(&obj2));
+               cmp = pMsgItemRecipientObj1->GetAliasRecipient().CompareTo(pMsgItemRecipientObj2->GetAliasRecipient());
+               break;
+       }
+
+       return r;
+}
+
+BasePresentationModel::BasePresentationModel(void)
+       : _accountId(-1)
+       , _pMailList(null)
+       , _pSelectedMailList(null)
+       , _pMailboxManager(null)
+       , _pAccountsManager(null)
+       , _sortType(SORT_BY_DATE)
+       , __selectionMode(SELECTION_NONE)
+       , __favouriteSelectionMode(FAVOURITE_SELECTION_NONE)
+       , __pItemCount(null)
+       , __pSortMap(null)
+       , __pListDataChangeListener(null)
+{
+
+}
+
+BasePresentationModel::~BasePresentationModel(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pSortMap != null && __pSortMap->GetCount())
+       {
+               IList* pValList = __pSortMap->GetValuesN();
+               ArrayList* pTmpArr;
+
+               if (pValList != null && pValList->GetCount() != 0)
+               {
+                       for (int i = 0; i < pValList->GetCount(); i++) // Iterate through each value(arraylist) in the map
+                       {
+                               pTmpArr = static_cast<ArrayList*>(pValList->GetAt(i));
+                               pTmpArr->RemoveAll(false); // Clear the arraylist
+                       }
+
+                       pValList->RemoveAll(false);
+                       delete pValList;
+               }
+
+               __pSortMap->RemoveAll(true);
+               delete __pSortMap;
+               __pSortMap = null;
+       }
+
+       if (_pSelectedMailList != null)
+       {
+               _pSelectedMailList->RemoveAll(false);
+               delete _pSelectedMailList;
+               _pSelectedMailList = null;
+       }
+
+       if (__pItemCount != null)
+       {
+               __pItemCount->RemoveAll(true);
+               delete __pItemCount;
+               __pItemCount = null;
+       }
+       AppLogDebug("EXIT");
+}
+
+result
+BasePresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       __pSortMap = new (std::nothrow) HashMap();
+       TryCatch(__pSortMap != null, r = E_FAILURE, "EXIT, failed to allocate memory for sort map");
+
+       r = __pSortMap->Construct();
+       TryCatch(r == E_SUCCESS, , "Failed to construct sort map");
+
+       //TODO i dont think we need to new and construct _pMailList. We are using this as a pointer alone.
+//     _pMailList = new (std::nothrow) ArrayList();
+//     TryCatch(_pMailList != null, r = E_FAILURE, "EXIT, failed to allocate memory for mail list");
+
+//     r = _pMailList->Construct();
+//     TryCatch(r == E_SUCCESS, , "Failed to construct sort map");
+
+       _pSelectedMailList = new (std::nothrow) ArrayList();
+       TryCatch(_pSelectedMailList != null, r = E_FAILURE, "EXIT, failed to allocate memory for selected mails list");
+
+       r = _pSelectedMailList->Construct();
+       TryCatch(r == E_SUCCESS, , "Failed to construct selected mails list");
+
+       __pItemCount = new (std::nothrow) ArrayList();
+       TryCatch(__pItemCount != null, r = E_FAILURE, "EXIT, failed to allocate memory for item count list");
+
+       r = __pItemCount->Construct();
+       TryCatch(r == E_SUCCESS, , "Failed to construct item count list");
+
+       _pMailboxManager = EmailMailboxManager::GetInstance();
+       TryCatch(_pMailboxManager != null, , "Failed to get instance of mailbox manager");
+
+       _pAccountsManager = EmailSettingsProvider::GetInstance();
+       TryCatch(_pAccountsManager != null, , "Failed to get instance of accounts manager");
+
+       AppLogDebug("EXIT");
+       return r;
+
+CATCH:
+       if (__pSortMap != null)
+       {
+               delete __pSortMap;
+       }
+
+       if (_pMailList != null)
+       {
+               delete _pMailList;
+       }
+
+       if (_pSelectedMailList != null)
+       {
+               delete _pSelectedMailList;
+       }
+
+       if (__pItemCount != null)
+       {
+               delete __pItemCount;
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+BasePresentationModel::AddMailsOfSelectedSender(int groupIndex, int itemIndex)
+{
+       AppLogDebug("ENTER");
+       EmailMessageListItem* pMail = GetMailData(groupIndex, itemIndex);
+       EmailMessageItem* pMailDetailed = GetCompleteMailDataN(pMail->GetMailId());
+       String selectedSender = pMailDetailed->GetAliasSender();
+
+       for (int i = 0; i < _pMailList->GetCount(); i++)
+       {
+               String senderName;
+               EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(_pMailList->GetAt(i));
+               EmailMessageItem* pTempMailDetailed = GetCompleteMailDataN(pTmpMsg->GetMailId());
+               senderName = pTempMailDetailed->GetAliasSender();
+
+               if (selectedSender.Equals(senderName, false))
+               {
+                       _pSelectedMailList->Add(pTmpMsg);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+ArrayList*
+BasePresentationModel::GetData(void)
+{
+       return _pMailList;
+}
+
+void
+BasePresentationModel::UpdateData(void)
+{
+       AppLogDebug("ENTER");
+
+       SortBy(_sortType);
+
+       if (__pListDataChangeListener != null)
+       {
+               __pListDataChangeListener->OnListViewDataChangedNotify();
+       }
+       AppLogDebug("EXIT");
+}
+
+void
+BasePresentationModel::UpdateData(const int& accountId)
+{
+       // Empty implementation
+}
+
+void
+BasePresentationModel::DeleteMail(int groupIndex, int itemIndex, bool fromServer)
+{
+       AppLogDebug("ENTER");
+
+       EmailMessageListItem* pMail = null;
+       pMail = GetMailData(groupIndex, itemIndex);
+       EmailMailboxManager::GetInstance()->DeleteMailMessage(pMail->GetMailboxId(), pMail->GetMailId(), fromServer);
+       ClearSelectedMailList();
+       AppLogDebug("EmailApp:: EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return;
+}
+
+void
+BasePresentationModel::DeleteMail(int mailId, bool fromServer)
+{
+       AppLogDebug("ENTER");
+
+       EmailMessageListItem* pMail = null;
+       pMail = GetMailData(mailId);
+       EmailMailboxManager::GetInstance()->DeleteMailMessage(pMail->GetMailboxId(), pMail->GetMailId(), fromServer);
+
+       AppLogDebug("EmailApp:: EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return;
+}
+
+void
+BasePresentationModel::DeleteMail(bool fromServer, bool allAccounts)
+{
+       AppLogDebug("ENTER");
+
+       if (allAccounts == false)
+       {
+               EmailMessageListItem* pMail = null;
+               int count = _pSelectedMailList->GetCount();
+               int* pMailIdList = new (std::nothrow) int[count];
+
+               for (int i = 0; i < count; i++)
+               {
+                       pMail = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+                       pMailIdList[i] = pMail->GetMailId();
+               }
+
+               EmailMailboxManager::GetInstance()->DeleteMailMessage(pMail->GetMailboxId(), pMailIdList, count, fromServer);
+               delete[] pMailIdList;
+       }
+       else
+       {
+               HashMap* pSelectedMailsMap = new (std::nothrow) HashMap();
+               pSelectedMailsMap->Construct();
+
+               for (int i = 0; i < _pSelectedMailList->GetCount(); i++)
+               {
+                       int key;
+                       ArrayList* pTmpArr;
+                       EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+                       key = pTmpMsg->GetAccountId();
+                       pTmpArr = static_cast<ArrayList*>(pSelectedMailsMap->GetValue(Integer(key)));
+
+                       if (pTmpArr == null || GetLastResult() == E_OBJ_NOT_FOUND) // If the key does not exist in the map ...
+                       {
+                               pTmpArr = new (std::nothrow) ArrayList();
+                               pTmpArr->Construct();
+                               pSelectedMailsMap->Add((new (std::nothrow) Integer(key)), pTmpArr);
+                       }
+
+                       pTmpArr->Add(pTmpMsg);
+               }
+
+               if (pSelectedMailsMap->GetCount())
+               {
+                       IList* pValList = pSelectedMailsMap->GetValuesN();
+
+                       for (int i = 0; i < pValList->GetCount(); i++) // Iterate through each value(arraylist) in the map
+                       {
+                               EmailMessageListItem* pMail = null;
+                               ArrayList* pTmpArr = static_cast<ArrayList*>(pValList->GetAt(i));
+                               int count = pTmpArr->GetCount();
+                               int* pMailIdList = new (std::nothrow) int[count];
+
+                               for (int j = 0; j < pTmpArr->GetCount(); j++)
+                               {
+                                       pMail = static_cast<EmailMessageListItem*>(pTmpArr->GetAt(j));
+                                       pMailIdList[j] = pMail->GetMailId();
+                               }
+
+                               EmailMailboxManager::GetInstance()->DeleteMailMessage(pMail->GetMailboxId(), pMailIdList, count, fromServer);
+                               delete[] pMailIdList;
+                       }
+
+                       pValList->RemoveAll(false);
+                       delete pValList;
+               }
+
+               pSelectedMailsMap->RemoveAll(false);
+               delete pSelectedMailsMap;
+               pSelectedMailsMap = null;
+       }
+
+       ClearSelectedMailList();
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return;
+}
+
+void
+BasePresentationModel::SetFlag(int groupIndex, int itemIndex, email_flags_field_type fieldType, bool fieldValue, bool updateServer)
+{
+       AppLogDebug("ENTER");
+       EmailMessageListItem* pMail = GetMailData(groupIndex, itemIndex);
+       SetFlag(pMail, fieldType, fieldValue, updateServer);
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+BasePresentationModel::SetFlag(EmailMessageListItem* pMail, email_flags_field_type fieldType, bool fieldValue, bool updateServer)
+{
+       AppLogDebug("ENTER, accountid:(%d), mailid:(%d), fieldtype:(%d), fieldValue:(%d), updateServer:(%d)", pMail->GetAccountId(), pMail->GetMailId(), fieldType, fieldValue, updateServer);
+
+       result r = E_SUCCESS;
+
+       r = _pMailboxManager->SetFlags(pMail->GetAccountId(), pMail->GetMailId(), fieldType, fieldValue, updateServer);
+
+       if (r == E_SUCCESS)
+       {
+               switch (fieldType)
+               {
+               case EMAIL_FLAGS_SEEN_FIELD:
+               {
+                       pMail->SetFlagsSeenField(fieldValue);
+
+                       if (fieldValue == true)
+                       {
+                               UpdateUnreadCount(_pMailboxManager->GetMailboxById(pMail->GetMailboxId()), -1);
+                       }
+                       else
+                       {
+                               UpdateUnreadCount(_pMailboxManager->GetMailboxById(pMail->GetMailboxId()), 1);
+                       }
+               }
+               break;
+
+               case EMAIL_FLAGS_FLAGGED_FIELD:
+               {
+                       pMail->SetFlagsFlaggedField(fieldValue);
+               }
+               break;
+
+               default:
+               {
+                       // Empty implementation
+               }
+               break;
+               } // switch
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return;
+}
+
+void
+BasePresentationModel::UpdateUnreadCount(int accountId)
+{
+       AppLogDebug("ENTER, accountId:(%d)", accountId);
+
+       int unreadCount, totalCount, res;
+       email_list_filter_t mailboxIdFilter;
+
+       mailboxIdFilter.list_filter_item_type = EMAIL_LIST_FILTER_ITEM_RULE;
+       mailboxIdFilter.list_filter_item.rule.rule_type = EMAIL_LIST_FILTER_RULE_EQUAL;
+       mailboxIdFilter.list_filter_item.rule.target_attribute = EMAIL_MAIL_ATTRIBUTE_MAILBOX_ID;
+       mailboxIdFilter.list_filter_item.rule.case_sensitivity = EMAIL_CASE_INSENSITIVE;
+
+       IEnumerator* pEnum = EmailMailboxManager::GetInstance()->GetMailboxesByAccountIdN(accountId);
+
+       if (pEnum != null)
+       {
+               while (!IsFailed(pEnum->MoveNext()))
+               {
+                       EmailMailbox* pTmpMailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+                       mailboxIdFilter.list_filter_item.rule.key_value.integer_type_value = pTmpMailbox->GetMailboxId();
+                       res = email_count_mail(&mailboxIdFilter, 1, &totalCount, &unreadCount);
+
+                       if (res != EMAIL_ERROR_NONE)
+                       {
+                               totalCount = 0;
+                               unreadCount = 0;
+                               AppLogException("Failed to get mailbox:(%d) counts with error:(%d)", pTmpMailbox->GetMailboxId(), res);
+                       }
+
+                       pTmpMailbox->SetTotalMailCountOnLocal(totalCount);
+                       pTmpMailbox->SetUnreadCount(unreadCount);
+                       AppLogDebug("Got total local count:(%d), unreadCount:(%d)", totalCount, unreadCount);
+               }
+               delete pEnum;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+BasePresentationModel::UpdateUnreadCount(EmailMailbox* pMailbox, int deltaCount)
+{
+       AppLogDebug("ENTER");
+
+       int count = -1;
+
+       if (pMailbox != null)
+       {
+               count = pMailbox->GetUnreadCount() + deltaCount;
+               pMailbox->SetUnreadCount(count);
+       }
+
+       AppLogDebug("EXIT, new count:(%d)", count);
+}
+
+void
+BasePresentationModel::SetFlag(email_flags_field_type fieldType, bool fieldValue, bool updateServer)
+{
+       AppLogDebug("ENTER");
+
+       EmailMessageListItem* pTmpMsg = null;
+       result r = _pMailboxManager->SetFlags(_pSelectedMailList, fieldType, fieldValue, updateServer);
+
+       if (r == E_SUCCESS)
+       {
+               switch (fieldType)
+               {
+               case EMAIL_FLAGS_SEEN_FIELD:
+               {
+                       int prevMailboxId = -1;
+                       EmailMailbox* pMailbox = null;
+
+                       for (int i=0; i<_pSelectedMailList->GetCount(); i++)
+                       {
+                               pTmpMsg = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+                               pTmpMsg->SetFlagsSeenField(fieldValue);
+
+                               if (prevMailboxId != pTmpMsg->GetMailboxId())
+                               {
+                                       prevMailboxId = pTmpMsg->GetMailboxId();
+                                       pMailbox = _pMailboxManager->GetMailboxById(prevMailboxId);
+                               }
+
+                               if (fieldValue == true)
+                               {
+                                       UpdateUnreadCount(pMailbox, -1);
+                               }
+                               else
+                               {
+                                       UpdateUnreadCount(pMailbox, 1);
+                               }
+                       }
+               }
+               break;
+
+               case EMAIL_FLAGS_FLAGGED_FIELD:
+               {
+                       for (int i=0; i<_pSelectedMailList->GetCount(); i++)
+                       {
+                               pTmpMsg = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+                               pTmpMsg->SetFlagsFlaggedField(fieldValue);
+                       }
+               }
+               break;
+
+               default:
+               {
+                       // Empty implementation
+               }
+               break;
+               } // switch
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+BasePresentationModel::MoveMail(int groupIndex, int itemIndex, int mailboxId)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       EmailMessageListItem* pMail = null;
+       pMail = GetMailData(groupIndex, itemIndex);
+       r = EmailMailboxManager::GetInstance()->MoveMailMessage(pMail->GetMailId(), mailboxId);
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return r;
+}
+
+result
+BasePresentationModel::MoveMail(int mailId, int mailboxId)
+{
+       AppLogDebug("ENTER, mailId:(%d), mailboxId:(%d)", mailId, mailboxId);
+
+       result r = E_SUCCESS;
+       r = EmailMailboxManager::GetInstance()->MoveMailMessage(mailId, mailboxId);
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return r;
+}
+
+result
+BasePresentationModel::MoveMail(int mailboxId)
+{
+       AppLogDebug("ENTER, mailboxId:(%d)", mailboxId);
+
+       result r = E_SUCCESS;
+       EmailMessageListItem* pMail = null;
+       int count = _pSelectedMailList->GetCount();
+       int* pMailIdList = new (std::nothrow) int[count];
+
+       for (int i = 0; i < _pSelectedMailList->GetCount(); i++)
+       {
+               pMail = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+               pMailIdList[i] = pMail->GetMailId();
+       }
+
+       r = EmailMailboxManager::GetInstance()->MoveMailMessage(pMailIdList, count, mailboxId);
+       delete[] pMailIdList;
+       ClearSelectedMailList();
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+EmailMessageListItem*
+BasePresentationModel::GetMailData(int groupIndex, int itemIndex)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemIndex:(%d)", groupIndex, itemIndex);
+
+       EmailMessageListItem* pMsgItem = null;
+       ArrayList* pTmpArr = null;
+       Integer* pKey;
+       IList* pKeyList;
+
+       pKeyList = __pSortMap->GetKeysN();
+
+       if (pKeyList != null)
+       {
+               pKey = static_cast<Integer*>(pKeyList->GetAt(groupIndex));
+
+               if (pKey != null)
+               {
+                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(*pKey));
+
+                       if (pTmpArr != null)
+                       {
+                               pMsgItem = static_cast<EmailMessageListItem*>(pTmpArr->GetAt(itemIndex));
+//                             AppLogDebug("Got mail id:(%d)", pMsgItem->GetMailId());
+                       }
+               }
+
+               AppLogDebug("pKeyList:(%x)", pKeyList);
+               pKeyList->RemoveAll(false);
+               delete pKeyList;
+       }
+
+       AppLogDebug("EXIT, pMsgItem:(%x)", pMsgItem);
+       return pMsgItem;
+}
+
+EmailMessageListItem*
+BasePresentationModel::GetMailData(int mailId)
+{
+       AppLogDebug("ENTER, mailId:(%d)", mailId);
+       EmailMessageListItem* pTmpMsg = null;
+
+       if (_pMailList != null)
+       {
+               for (int i = 0; i < _pMailList->GetCount(); i++)
+               {
+                       pTmpMsg = static_cast<EmailMessageListItem*>(_pMailList->GetAt(i));
+
+                       if (pTmpMsg->GetMailId() == mailId)
+                       {
+                               break;
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT, pMsgItem:(%x)", pTmpMsg);
+       return pTmpMsg;
+}
+
+EmailMessageItem*
+BasePresentationModel::GetCompleteMailDataN(const int& mailId)
+{
+       return _pMailboxManager->GetMailDataN(mailId);
+}
+
+SortType
+BasePresentationModel::GetSortType(void)
+{
+       return _sortType;
+}
+
+result
+BasePresentationModel::DownloadBody(int mailId, bool withAttachment, int& handle)
+{
+       AppLogDebug("ENTER, mailId:(%d), withAttachment:(%d), handle:(%x)", mailId, withAttachment, handle);
+
+       result r = _pMailboxManager->DownloadEmailBody(mailId, withAttachment, handle);
+
+       AppLogDebug("EXIT, handle:(%d)", handle);
+       return r;
+}
+
+result
+BasePresentationModel::DownloadAttachment(int mailId, int attachmentIndex, int& handle)
+{
+       AppLogDebug("ENTER, mailId:(%d), attachmentIndex:(%d), handle:(%x)", mailId, attachmentIndex, &handle);
+
+       result r = E_SUCCESS;
+       EmailMailboxManager* pMailboxManager = EmailMailboxManager::GetInstance();
+
+       r = pMailboxManager->DownloadAttachment(mailId, attachmentIndex, handle);
+
+       AppLogDebug("EXIT, result:(%s), handle:(%d)", GetErrorMessage(r), handle);
+       return r;
+}
+
+result
+BasePresentationModel::DownloadAttachment(EmailAttachment* pAttachment, int& handle)
+{
+       AppLogDebug("ENTER, pAttachment:(%x), handle:(%x)", pAttachment, &handle);
+       AppLogDebugIf(pAttachment != null, "Attachment Id:(%d)", pAttachment->GetAttachmentId());
+
+       int res;
+       int count;
+       result r = E_SUCCESS;
+       email_attachment_data_t* pNativeAttachmentList = null;
+       EmailMailboxManager* pMailboxManager = EmailMailboxManager::GetInstance();
+
+       if (pAttachment != null)
+       {
+               res = email_get_attachment_data_list(pAttachment->GetMailId(), &pNativeAttachmentList, &count);
+
+               if (res == EMAIL_ERROR_NONE)
+               {
+                       for (int i=0; i<count; i++)
+                       {
+                               if (pNativeAttachmentList[i].attachment_id == pAttachment->GetAttachmentId())
+                               {
+                                       r = pMailboxManager->DownloadAttachment(pAttachment->GetMailId(), i+1, handle);
+                                       break;
+                               }
+                       }
+                       email_free_attachment_data(&pNativeAttachmentList, count);
+               }
+               else
+               {
+                       r = E_FAILURE;
+               }
+       }
+       else
+       {
+               r = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT, handle:(%d)", handle);
+       return r;
+}
+
+void
+BasePresentationModel::ClearSortMap(void)
+{
+       AppLogDebug("ENTER");
+
+       ArrayList* pTmpArr;
+
+       if (__pSortMap != null && __pSortMap->GetCount())
+       {
+               IList* pValList = __pSortMap->GetValuesN();
+
+               if (pValList != null && pValList->GetCount() != 0)
+               {
+                       for (int i = 0; i < pValList->GetCount(); i++) // Iterate through each value(arraylist) in the map
+                       {
+                               pTmpArr = static_cast<ArrayList*>(pValList->GetAt(i));
+                               pTmpArr->RemoveAll(false); // Clear the arraylist
+                       }
+
+                       pValList->RemoveAll(false);
+                       delete pValList;
+                       __pSortMap->RemoveAll(true); // Remove all data from map
+               }
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return;
+}
+
+String
+BasePresentationModel::GetGroupItemText(int groupIndex)
+{
+       AppLogDebug("ENTER, groupIndex:(%d)", groupIndex);
+
+       String groupname;
+       Integer* pKey;
+       String* pStringKey;
+       IList* pKeyList;
+
+       if (_sortType == SORT_BY_SENDER)
+       {
+               pKeyList = __pSortMap->GetKeysN();
+
+               if (pKeyList != null)
+               {
+                       if (pKeyList->GetCount() > 0)
+                       {
+                               pStringKey = static_cast<String*>(pKeyList->GetAt(groupIndex));
+
+                               if (pStringKey != null)
+                               {
+                                       groupname.Append(*pStringKey);
+                               }
+                       }
+                       pKeyList->RemoveAll(false);
+                       delete pKeyList;
+               }
+       }
+       else if (_sortType == SORT_BY_DATE)
+       {
+               pKeyList = __pSortMap->GetKeysN();
+
+               if (pKeyList != null)
+               {
+                       if (pKeyList->GetCount() > 0)
+                       {
+                               pKey = static_cast<Integer*>(pKeyList->GetAt(groupIndex));
+
+                               if (pKey != null)
+                               {
+                                       switch (pKey->ToInt())
+                                       {
+                                       case 0:
+                                               groupname = Utils::GetResourceString(L"IDS_EMAIL_BODY_TODAY");
+                                               break;
+
+                                       case 1:
+                                               groupname = Utils::GetResourceString(L"IDS_EMAIL_BODY_YESTERDAY");
+                                               break;
+
+                                       case 2:
+                                               groupname = Utils::GetResourceString(L"IDS_EMAIL_BODY_LAST_WEEK");
+                                               break;
+
+                                       case 3:
+                                               groupname = Utils::GetResourceString(L"IDS_EMAIL_BODY_OLDER_M_HISTORY");
+                                               break;
+                                       } // switch
+                               }
+                       }
+
+                       pKeyList->RemoveAll(false);
+                       delete pKeyList;
+               }
+       }
+       else if (_sortType == SORT_BY_IMPORTANT)
+       {
+               pKeyList = __pSortMap->GetKeysN();
+
+               if (pKeyList != null)
+               {
+                       if (pKeyList->GetCount() > 0)
+                       {
+                               pKey = static_cast<Integer*>(pKeyList->GetAt(groupIndex));
+
+                               if (pKey != null)
+                               {
+                                       switch (pKey->ToInt())
+                                       {
+                                       case 0:
+                                               groupname = Utils::GetResourceString(L"IDS_EMAIL_OPT_FAVOURITES");
+                                               break;
+
+                                       case 1:
+                                               groupname = Utils::GetResourceString(L"IDS_EMAIL_BODY_OTHERS");
+                                               break;
+                                       } // switch
+                               }
+                       }
+
+                       pKeyList->RemoveAll(false);
+                       delete pKeyList;
+               }
+       }
+       else if (_sortType == SORT_BY_UNREAD)
+       {
+               pKeyList = __pSortMap->GetKeysN();
+
+               if (pKeyList != null)
+               {
+                       if (pKeyList->GetCount() > 0)
+                       {
+                               pKey = static_cast<Integer*>(pKeyList->GetAt(groupIndex));
+
+                               if (pKey != null)
+                               {
+                                       switch (pKey->ToInt())
+                                       {
+                                       case 0:
+                                               groupname = Utils::GetResourceString(L"IDS_EMAIL_OPT_UNREAD");
+                                               break;
+
+                                       case 1:
+                                               groupname = Utils::GetResourceString(L"IDS_EMAIL_OPT_READ_M_MARK_AS_ABB");
+                                               break;
+                                       } // switch
+                               }
+                       }
+
+                       pKeyList->RemoveAll(false);
+                       delete pKeyList;
+               }
+       }
+
+       AppLogDebug("EXIT, groupName:(%ls)", groupname.GetPointer());
+       return groupname;
+}
+
+int
+BasePresentationModel::GetItemCount(int groupIndex)
+{
+       AppLogDebug("ENTER, groupIndex:(%d)", groupIndex);
+
+       Integer* pCount = static_cast<Integer*>(__pItemCount->GetAt(groupIndex));
+       AppLogDebug("EXIT, returning item count:(%d)", pCount->ToInt());
+
+       return pCount->ToInt();
+}
+
+void
+BasePresentationModel::SortBy(SortType viewType)
+{
+       AppLogDebug("ENTER, viewType:(%d)", viewType);
+
+       Integer* pKey;
+       IList* pKeyList = null;
+
+       _sortType = viewType;
+       ClearSortMap();
+
+       if (viewType == SORT_BY_DATE)
+       {
+               int i;
+               int key;
+               ArrayList* pTmpArr;
+
+               if (_pMailList != null)
+               {
+                       for (i = 0; i < _pMailList->GetCount(); i++)
+                       {
+                               EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(_pMailList->GetAt(i));
+
+                               DateTime msgDate = pTmpMsg->GetLocalDateTime();
+                               DateTime currentDate;
+                               Tizen::System::SystemTime::GetCurrentTime(currentDate);
+
+                               key = Utils::CompareDatesAndGetKey(currentDate, msgDate);
+
+                               pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(Integer(key)));
+
+                               if (pTmpArr == null || GetLastResult() == E_OBJ_NOT_FOUND) // If the key does not exist in the map ...
+                               {
+                                       pTmpArr = new (std::nothrow) ArrayList();
+                                       pTmpArr->Construct();
+                                       __pSortMap->Add((new (std::nothrow) Integer(key)), pTmpArr);
+                               }
+
+                               pTmpArr->Add(pTmpMsg);
+                               AppLogDebug("Added MailId:(%d), to group:(%d)", pTmpMsg->GetMailId(), key);
+
+                       }
+               }
+               pKeyList = __pSortMap->GetKeysN();
+
+               for (int j = 0; j < pKeyList->GetCount(); j++)
+               {
+                       pKey = static_cast<Integer*>(pKeyList->GetAt(j));
+                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(*pKey));
+                       pTmpArr->Sort(CustomSorter(SORTBY_DATE));
+               }
+
+               pKeyList->Sort(CustomSorter(SORTBY_KEY));
+       }
+       else if (viewType == SORT_BY_IMPORTANT)
+       {
+               int i;
+//             int key;
+               ArrayList* pTmpArr;
+
+               if (_pMailList != null)
+               {
+                       for (i = 0; i < _pMailList->GetCount(); i++)
+                       {
+                               EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(_pMailList->GetAt(i));
+
+                               if (pTmpMsg->isFlagsFlaggedField())
+                               {
+//                                     DateTime msgDate = pTmpMsg->GetDateTime();
+//                                     DateTime currentDate;
+//                                     Tizen::System::SystemTime::GetCurrentTime(currentDate);
+//
+//                                     key = Utils::CompareDatesAndGetKey(currentDate, msgDate);
+
+                                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(Integer(0)));
+
+                                       if (pTmpArr == null || GetLastResult() == E_OBJ_NOT_FOUND) // If the key does not exist in the map ...
+                                       {
+                                               pTmpArr = new (std::nothrow) ArrayList();
+                                               pTmpArr->Construct();
+                                               __pSortMap->Add((new (std::nothrow) Integer(0)), pTmpArr);
+                                       }
+
+                                       pTmpArr->Add(pTmpMsg);
+                               }
+                               else
+                               {
+                                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(Integer(1)));
+
+                                       if (pTmpArr == null || GetLastResult() == E_OBJ_NOT_FOUND) // If the key does not exist in the map ...
+                                       {
+                                               pTmpArr = new (std::nothrow) ArrayList();
+                                               pTmpArr->Construct();
+                                               __pSortMap->Add((new (std::nothrow) Integer(1)), pTmpArr);
+                                       }
+
+                                       pTmpArr->Add(pTmpMsg);
+                               }
+                       }
+               }
+               pKeyList = __pSortMap->GetKeysN();
+
+               for (int j = 0; j < pKeyList->GetCount(); j++)
+               {
+                       pKey = static_cast<Integer*>(pKeyList->GetAt(j));
+                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(*pKey));
+                       pTmpArr->Sort(CustomSorter(SORTBY_DATE));
+               }
+
+               pKeyList->Sort(CustomSorter(SORTBY_KEY));
+       }
+       else if (viewType == SORT_BY_SENDER)
+       {
+               int i;
+               ArrayList* pTmpArr;
+               String tmpStr;
+
+               email_mailbox_type_e mailboxType;
+
+               HashMap* pTmpMap = new (std::nothrow) HashMap();
+               pTmpMap->Construct();
+
+               if (_pMailList != null)
+               {
+                       for (i = 0; i < _pMailList->GetCount(); i++)
+                       {
+                               EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(_pMailList->GetAt(i));
+
+                               mailboxType = GetMailboxType(pTmpMsg->GetMailboxId());
+
+                               if (mailboxType == EMAIL_MAILBOX_TYPE_DRAFT || mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX)
+                               {
+                                       int index;
+                                       result r = pTmpMsg->GetRecipients().IndexOf(IDS_DELIM_SEMICOLON, 0, index);
+
+                                       if (r == E_SUCCESS && index > 0)
+                                       {
+                                               pTmpMsg->GetRecipients().SubString(0, index, tmpStr);
+                                       }
+                                       else
+                                       {
+                                               tmpStr = pTmpMsg->GetRecipients();
+                                       }
+
+                                       Utils::ExtractEmailIdFromFullAddress(String(tmpStr), tmpStr);
+                               }
+                               else
+                               {
+                                       Utils::ExtractAliasFromFullAddress(pTmpMsg->GetFromEmailAddress(), tmpStr);
+                               }
+
+                               if (tmpStr.GetLength() > 0)
+                               {
+                                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(tmpStr));
+
+                                       if (pTmpArr == null || GetLastResult() == E_OBJ_NOT_FOUND) // If the key does not exist in the map ...
+                                       {
+                                               pTmpArr = new (std::nothrow) ArrayList();
+                                               pTmpArr->Construct();
+                                               __pSortMap->Add((new (std::nothrow) String(tmpStr)), pTmpArr);
+                                       }
+
+                                       pTmpArr->Add(pTmpMsg);
+                               }
+                       }
+               }
+               pTmpMap->RemoveAll(true);
+               delete pTmpMap;
+               pKeyList = __pSortMap->GetKeysN();
+
+               for (int j = 0; j < pKeyList->GetCount(); j++)
+               {
+                       pKey = static_cast<Integer*>(pKeyList->GetAt(j));
+                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(*pKey));
+                       pTmpArr->Sort(CustomSorter(SORTBY_DATE));
+               }
+
+               pKeyList->Sort(CustomSorter(SORTBY_STRING_KEY));
+       }
+       else if (viewType == SORT_BY_UNREAD)
+       {
+               int i;
+//             int key;
+               ArrayList* pTmpArr;
+
+               if (_pMailList != null)
+               {
+                       for (i = 0; i < _pMailList->GetCount(); i++)
+                       {
+                               EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(_pMailList->GetAt(i));
+
+                               if (!pTmpMsg->isFlagsSeenField())
+                               {
+//                                     DateTime msgDate = pTmpMsg->GetDateTime();
+//                                     DateTime currentDate;
+//                                     Tizen::System::SystemTime::GetCurrentTime(currentDate);
+//
+//                                     key = Utils::CompareDatesAndGetKey(currentDate, msgDate);
+
+                                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(Integer(0)));
+
+                                       if (pTmpArr == null || GetLastResult() == E_OBJ_NOT_FOUND) // If the key does not exist in the map ...
+                                       {
+                                               pTmpArr = new (std::nothrow) ArrayList();
+                                               pTmpArr->Construct();
+                                               __pSortMap->Add((new (std::nothrow) Integer(0)), pTmpArr);
+                                       }
+
+                                       pTmpArr->Add(pTmpMsg);
+                               }
+                               else
+                               {
+                                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(Integer(1)));
+
+                                       if (pTmpArr == null || GetLastResult() == E_OBJ_NOT_FOUND) // If the key does not exist in the map ...
+                                       {
+                                               pTmpArr = new (std::nothrow) ArrayList();
+                                               pTmpArr->Construct();
+                                               __pSortMap->Add((new (std::nothrow) Integer(1)), pTmpArr);
+                                       }
+
+                                       pTmpArr->Add(pTmpMsg);
+                               }
+                       }
+               }
+               pKeyList = __pSortMap->GetKeysN();
+
+               for (int j = 0; j < pKeyList->GetCount(); j++)
+               {
+                       pKey = static_cast<Integer*>(pKeyList->GetAt(j));
+                       pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(*pKey));
+                       pTmpArr->Sort(CustomSorter(SORTBY_DATE));
+               }
+
+               pKeyList->Sort(CustomSorter(SORTBY_KEY));
+       }
+
+       if (pKeyList != null)
+       {
+               pKeyList->RemoveAll(false);
+               delete pKeyList;
+               pKeyList = null;
+       }
+
+       SetItemCount();
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+}
+
+int
+BasePresentationModel::GetGroupCount(void)
+{
+       AppLogDebug("Returning group count:(%d)", __pSortMap->GetCount());
+       return __pSortMap->GetCount();
+}
+
+void
+BasePresentationModel::SetItemCount(void)
+{
+       AppLogDebug("ENTER");
+
+       Integer* pKey;
+       IList* pKeyList;
+       ArrayList* pValArr;
+
+       if (__pItemCount->GetCount())
+       {
+               __pItemCount->RemoveAll(true);
+       }
+
+       // count only groups that have data ...
+       // For eg. if you didnt get any mail yesterday, ignore the group corresponding to 'Yesterday'
+       pKeyList = __pSortMap->GetKeysN();
+//     if (_sortType == SORT_BY_SENDER)
+//     {
+//             pKeyList->Sort(CustomSorter(SORTBY_STRING_KEY));
+//     }
+//     else
+//     {
+//             pKeyList->Sort(CustomSorter(SORTBY_KEY));
+//     }
+
+       for (int i = 0; i < pKeyList->GetCount(); i++)
+       {
+               pKey = static_cast<Integer*>(pKeyList->GetAt(i));
+               pValArr = static_cast<ArrayList*>(__pSortMap->GetValue(*pKey));
+
+               __pItemCount->Add((new (std::nothrow) Integer(pValArr->GetCount())));
+       }
+
+       pKeyList->RemoveAll(false);
+       delete pKeyList;
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return;
+}
+
+void
+BasePresentationModel::SetEventListener(IListDataChangeListener* pListener)
+{
+       __pListDataChangeListener = pListener;
+       return;
+}
+
+const String
+BasePresentationModel::GetHeaderText(int accId)
+{
+       AppLogDebug("ENTER, accountId:(%d)", accId);
+
+       String headerText;
+       EmailAccount* pAccount = _pAccountsManager->GetAccountById(accId);
+       TryCatch(pAccount != null, , "Failed to get account data for id:(%d)", accId);
+
+       headerText = pAccount->GetAccountName();
+
+CATCH:
+       AppLogDebug("EXIT, headerText:(%ls)", headerText.GetPointer());
+       return headerText;
+}
+
+result
+BasePresentationModel::CancelJob(int accountId, int& handle, email_cancelation_type type)
+{
+       AppLogDebug("ENTER, accountId:(%d), handle:(%d)", accountId, handle);
+
+       int r;
+       result res = E_SUCCESS;
+       r = email_cancel_job(accountId, handle, type);
+       if (r != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Job:(%d) cancellation failed with error:(%s)", handle, GetErrorMessage(r));
+               res = E_FAILURE;
+       }
+       else
+       {
+               handle = -1;
+       }
+
+       AppLogDebug("EXIT");
+       return res;
+}
+
+void
+BasePresentationModel::AddSelectedMail(int groupIndex, int itemIndex)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemIndex:(%d)", groupIndex, itemIndex);
+
+       EmailMessageListItem* pMail = GetMailData(groupIndex, itemIndex);
+       _pSelectedMailList->Add(pMail);
+
+       AppLogDebug("EXIT, pMail:(%x)", pMail);
+       AppLogDebugIf(pMail != null, "mailId:(%d)", pMail->GetMailId());
+       return;
+}
+
+void
+BasePresentationModel::RemoveSelectedMail(int groupIndex, int itemIndex)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemIndex:(%d)", groupIndex, itemIndex);
+
+       if (_pSelectedMailList->GetCount() == 1)
+       {
+               _pSelectedMailList->RemoveAll(false);
+       }
+       else
+       {
+               EmailMessageListItem* pMail = GetMailData(groupIndex, itemIndex);
+
+               if (_pSelectedMailList->Contains(*pMail) == true)
+               {
+                       _pSelectedMailList->Remove(*pMail, false);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+BasePresentationModel::RemoveMailFromSelectedMailList(EmailMessageListItem* pMail)
+{
+       AppLogDebug("ENTER");
+
+       if (pMail != null && _pSelectedMailList->GetCount() > 0 && _pSelectedMailList->Contains(*pMail) == true)
+       {
+               AppLogDebug("pMail:(%x) mailId:(%d)", pMail, pMail->GetMailId());
+               _pSelectedMailList->Remove(*pMail, false);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+BasePresentationModel::AddMailToSelectedMailList(EmailMessageListItem* pMail)
+{
+       AppLogDebug("ENTER, pMail:(%x)", pMail);
+       AppLogDebugIf(pMail != null, "mailId:(%d)", pMail->GetMailId());
+
+       _pSelectedMailList->Add(pMail);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+EmailMessageListItem*
+BasePresentationModel::GetSelectedMailAtIndex(int index)
+{
+       AppLogDebug("ENTER, index:(%d)", index);
+
+       EmailMessageListItem* pMail = static_cast <EmailMessageListItem*>(_pSelectedMailList->GetAt(index));
+
+       AppLogDebug("EXIT, pMail:(%x)", pMail);
+       AppLogDebugIf(pMail != null, "mailId:(%d)", pMail->GetMailId());
+       return pMail;
+}
+
+void
+BasePresentationModel::ClearSelectedMailList(void)
+{
+       AppLogDebug("ENTER");
+
+       _pSelectedMailList->RemoveAll(false);
+       __selectionMode = SELECTION_NONE;
+       __favouriteSelectionMode = FAVOURITE_SELECTION_NONE;
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+int
+BasePresentationModel::GetNumberOfSelectedItems(void)
+{
+       AppLogDebug("Returning count:(%d)", _pSelectedMailList->GetCount());
+       return _pSelectedMailList->GetCount();
+}
+
+int
+BasePresentationModel::IsMultipleAccountsSelected(void)
+{
+       AppLogDebug("ENTER");
+
+       if (_pSelectedMailList->GetCount() > 0)
+       {
+               int accountId = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(0))->GetAccountId();
+
+               if (_pSelectedMailList->GetCount() > 1)
+               {
+                       for (int i = 1; i < _pSelectedMailList->GetCount(); i++)
+                       {
+                               EmailMessageListItem* pMail = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+
+                               if (pMail->GetAccountId() != accountId)
+                               {
+                                       return -1;
+                               }
+                       }
+
+                       return accountId;
+               }
+               else
+               {
+                       return accountId;
+               }
+       }
+       else
+       {
+               return 0;
+       }
+}
+
+bool
+BasePresentationModel::IsMailSelected(EmailMessageListItem* pMail)
+{
+       AppLogDebug("ENTER & EXIT");
+       return _pSelectedMailList->Contains(*pMail);
+}
+
+void
+BasePresentationModel::SetSelectionModes(void)
+{
+       AppLogDebug("ENTER");
+       __selectionMode = SELECTION_NONE;
+       __favouriteSelectionMode = FAVOURITE_SELECTION_NONE;
+
+       for (int i = 0; i < _pSelectedMailList->GetCount(); i++)
+       {
+               EmailMessageListItem* pMail = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+               int mailboxId = pMail->GetMailboxId();
+               email_mailbox_type_e mailboxtype = GetMailboxType(mailboxId);
+
+               if (__selectionMode == SELECTION_NONE)
+               {
+                       if (pMail->isFlagsSeenField() == true)
+                       {
+                               __selectionMode = SELECTION_READ;
+                       }
+                       else
+                       {
+                               __selectionMode = SELECTION_UNREAD;
+                       }
+               }
+               else if ((__selectionMode == SELECTION_READ && pMail->isFlagsSeenField() == false) || (__selectionMode == SELECTION_UNREAD && pMail->isFlagsSeenField() == true))
+               {
+                       __selectionMode = SELECTION_MIXED;
+               }
+
+               if (mailboxtype != EMAIL_MAILBOX_TYPE_OUTBOX)
+               {
+                       if (__favouriteSelectionMode == FAVOURITE_SELECTION_NONE)
+                       {
+                               if (pMail->isFlagsFlaggedField() == true)
+                               {
+                                       __favouriteSelectionMode = FAVOURITE_SELECTION_FAVOURITE;
+                               }
+                               else
+                               {
+                                       __favouriteSelectionMode = FAVOURITE_SELECTION_UNFAVOURITE;
+                               }
+                       }
+                       else if ((__favouriteSelectionMode == FAVOURITE_SELECTION_FAVOURITE && pMail->isFlagsFlaggedField() == false) || (__favouriteSelectionMode == FAVOURITE_SELECTION_UNFAVOURITE && pMail->isFlagsFlaggedField() == true))
+                       {
+                               __favouriteSelectionMode = FAVOURITE_SELECTION_MIXED;
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+SelectionMode
+BasePresentationModel::GetSelectionMode(void)
+{
+       AppLogDebug("Returning mode:(%d)", __selectionMode);
+       return __selectionMode;
+}
+
+FavouriteSelectionMode
+BasePresentationModel::GetFavouriteSelectionMode(void)
+{
+       AppLogDebug("Returning mode:(%d)", __favouriteSelectionMode);
+       return __favouriteSelectionMode;
+}
+
+void
+BasePresentationModel::AddMailsOfSelectedRecipient(int groupIndex, int itemIndex)
+{
+       AppLogDebug("ENTER");
+       EmailMessageListItem* pMail = GetMailData(groupIndex, itemIndex);
+       EmailMessageItem* pMailDetailed = GetCompleteMailDataN(pMail->GetMailId());
+       String selectedRecipient = pMailDetailed->GetAliasRecipient();
+
+       for (int i = 0; i < _pMailList->GetCount(); i++)
+       {
+
+               String recipientName;
+               EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(_pMailList->GetAt(i));
+               EmailMessageItem* pTempMailDetailed = GetCompleteMailDataN(pTmpMsg->GetMailId());
+               recipientName = pTempMailDetailed->GetAliasRecipient();
+
+               if (selectedRecipient.Equals(recipientName, false))
+               {
+                       _pSelectedMailList->Add(pTmpMsg);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+BasePresentationModel::BlockEmails(void)
+{
+       for (int i = 0; i < _pSelectedMailList->GetCount(); i++)
+       {
+               EmailMessageListItem* pMail = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+               EmailRule* pRule = new (std::nothrow) EmailRule();
+               String address = pMail->GetFromEmailAddress();
+
+               if (pRule != null)
+               {
+                       pRule->SetAccountId(0);
+                       pRule->SetFaction(EMAIL_FILTER_BLOCK);
+                       pRule->SetType(EMAIL_FILTER_FROM);
+                       pRule->SetValue(address);
+                       pRule->SetFlag1(1); //Set it to 'ON'
+                       pRule->SetFlag2(RULE_TYPE_INCLUDES);
+                       EmailSettingsPresentationModel::GetInstance()->AddRule(pRule);
+                       delete pRule;
+                       pRule = null;
+               }
+       }
+}
+
+result
+BasePresentationModel::MoveMail(int groupIndex, int itemIndex, email_mailbox_type_e toMailboxType)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       EmailMessageListItem* pMail = GetMailData(groupIndex, itemIndex);
+       int mailboxId = _pMailboxManager->GetMailboxIdByType(pMail->GetAccountId(), toMailboxType);
+       r = _pMailboxManager->MoveMailMessage(pMail->GetMailId(), mailboxId);
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+BasePresentationModel::MoveMail(int mailId, email_mailbox_type_e toMailboxType)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       EmailMessageListItem* pMail = GetMailData(mailId);
+
+       if (pMail != null)
+       {
+               int mailboxId = _pMailboxManager->GetMailboxIdByType(pMail->GetAccountId(), toMailboxType);
+       //      RemoveMailFromSelectedMailList(pMail);
+               r = _pMailboxManager->MoveMailMessage(pMail->GetMailId(), mailboxId);
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+BasePresentationModel::MoveMail(email_mailbox_type_e toMailboxType)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       HashMap* pSelectedMailsMap = new (std::nothrow) HashMap();
+       r = pSelectedMailsMap->Construct();
+
+       for (int i = 0; i < _pSelectedMailList->GetCount(); i++)
+       {
+               int key;
+               ArrayList* pTmpArr;
+               EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+               key = pTmpMsg->GetAccountId();
+               pTmpArr = static_cast<ArrayList*>(pSelectedMailsMap->GetValue(Integer(key)));
+
+               if (pTmpArr == null || GetLastResult() == E_OBJ_NOT_FOUND) // If the key does not exist in the map ...
+               {
+                       pTmpArr = new (std::nothrow) ArrayList();
+                       pTmpArr->Construct();
+                       pSelectedMailsMap->Add((new (std::nothrow) Integer(key)), pTmpArr);
+               }
+
+               pTmpArr->Add(pTmpMsg);
+       }
+
+       if (pSelectedMailsMap->GetCount())
+       {
+               IList* pValList = pSelectedMailsMap->GetValuesN();
+
+               for (int i = 0; i < pValList->GetCount(); i++) // Iterate through each value(arraylist) in the map
+               {
+                       EmailMessageListItem* pMail = null;
+                       int mailboxId;
+                       ArrayList* pTmpArr = static_cast<ArrayList*>(pValList->GetAt(i));
+                       int count = pTmpArr->GetCount();
+                       int* pMailIdList = new (std::nothrow) int[count];
+
+                       for (int j = 0; j < pTmpArr->GetCount(); j++)
+                       {
+                               pMail = static_cast<EmailMessageListItem*>(pTmpArr->GetAt(j));
+                               pMailIdList[j] = pMail->GetMailId();
+                       }
+
+                       mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(pMail->GetAccountId(), toMailboxType);
+                       r = EmailMailboxManager::GetInstance()->MoveMailMessage(pMailIdList, count, mailboxId);
+                       delete[] pMailIdList;
+               }
+
+               pValList->RemoveAll(false);
+               delete pValList;
+       }
+
+       ClearSelectedMailList();
+       pSelectedMailsMap->RemoveAll(false);
+       delete pSelectedMailsMap;
+       pSelectedMailsMap = null;
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+int
+BasePresentationModel::GetMailboxIdByType(int accountId, email_mailbox_type_e mailboxType)
+{
+       return _pMailboxManager->GetMailboxIdByType(accountId, mailboxType);
+}
+
+EmailMailbox*
+BasePresentationModel::GetMailboxByType(int accountId, email_mailbox_type_e mailboxType)
+{
+       return _pMailboxManager->GetMailboxByType(accountId, mailboxType);
+}
+
+EmailMailbox*
+BasePresentationModel::GetMailboxById(int mailboxId)
+{
+       return _pMailboxManager->GetMailboxById(mailboxId);
+}
+
+email_mailbox_type_e
+BasePresentationModel::GetMailboxType(int mailboxId)
+{
+       EmailMailbox* pMailbox = _pMailboxManager->GetMailboxById(mailboxId);
+
+       if (pMailbox != null)
+       {
+               return pMailbox->GetMailboxType();
+       }
+
+       return EMAIL_MAILBOX_TYPE_NONE;
+}
+
+int
+BasePresentationModel::GetDefaultAccountId(void)
+{
+       return _pAccountsManager->GetDefaultAccountId();
+}
+
+int
+BasePresentationModel::GetAccountCount(void)
+{
+       return _pAccountsManager->GetAccountCount();
+}
+
+EmailAccount*
+BasePresentationModel::GetAccountByIndex(int index)
+{
+       int count = 0;
+       int accountCount = 0;
+       IMapEnumerator* pMapEnum = _pAccountsManager->GetAccountListN();
+
+       EmailAccount* pAccount = null;
+
+       accountCount = _pAccountsManager->GetAccountCount();
+       if (index < accountCount && pMapEnum != null)
+       {
+               while (!IsFailed(pMapEnum->MoveNext()) && count < accountCount)
+               {
+                       if (count == index)
+                       {
+                               pAccount = static_cast<EmailAccount*>(pMapEnum->GetValue());
+                               break;
+                       }
+                       count++;
+               }
+               delete pMapEnum;
+       }
+
+       return pAccount;
+}
+
+EmailAccount*
+BasePresentationModel::GetAccountById(int accountId)
+{
+       return _pAccountsManager->GetAccountById(accountId);
+}
+
+ArrayList*
+BasePresentationModel::GetAllAttachmentListN(int mailId)
+{
+       return _pMailboxManager->GetAllAttachmentListN(mailId);
+}
+
+ArrayList*
+BasePresentationModel::GetAttachmentsListN(int mailId)
+{
+       return _pMailboxManager->GetAttachmentsListN(mailId);
+}
+
+ArrayList*
+BasePresentationModel::GetContentImagesListN(int mailId)
+{
+       return _pMailboxManager->GetContentImagesListN(mailId);
+}
+
+void
+BasePresentationModel::GetMailIndex(int mailId, int& groupIndex, int& itemIndex)
+{
+       AppLogDebug("ENTER, mailId:(%d)", mailId);
+
+       int i=0, j=0;
+       EmailMessageListItem* pTmpMsg;
+       IList* pKeyList = __pSortMap->GetKeysN();
+
+       groupIndex = -1;
+       itemIndex  = -1;
+
+       if (pKeyList != null)
+       {
+               for (i=0; i<pKeyList->GetCount(); i++)
+               {
+                       ArrayList* pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(*static_cast<Integer*>(pKeyList->GetAt(i))));
+
+                       for (j=0; j<pTmpArr->GetCount(); j++)
+                       {
+                               pTmpMsg = static_cast<EmailMessageListItem*>(pTmpArr->GetAt(j));
+                               if (pTmpMsg->GetMailId() == mailId)
+                               {
+                                       groupIndex = i;
+                                       itemIndex  = j;
+
+                                       pKeyList->RemoveAll();
+                                       delete pKeyList;
+
+                                       AppLogDebug("EXIT, groupIndex:(%d), itemIndex:(%d)", groupIndex, itemIndex);
+                                       return;
+                               }
+                       }
+               }
+
+               pKeyList->RemoveAll();
+               delete pKeyList;
+       }
+
+       AppLogDebug("EXIT, groupIndex:(%d), itemIndex:(%d)", groupIndex, itemIndex);
+       return;
+}
+
+int
+BasePresentationModel::GetUnreadCount(EmailAccount* pAccount)
+{
+       AppLogDebug("ENTER");
+
+       int count = 0;
+       EmailMailbox* pTmpMailbox = null;
+
+       if (pAccount != null)
+       {
+               IEnumerator* pEnum = _pMailboxManager->GetMailboxesByAccountIdN(pAccount->GetAccountId());
+
+               if (pEnum != null)
+               {
+                       while (!IsFailed(pEnum->MoveNext()))
+                       {
+                               pTmpMailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+                               count += pTmpMailbox->GetUnreadCount();
+                       }
+                       delete pEnum;
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return count;
+}
+
+int
+BasePresentationModel::GetUnreadCountForAllAccounts(EmailMailbox* pMailbox)
+{
+       int count = 0;
+       EmailAccount* pAccount = null;
+       EmailMailbox* pEmailMailbox = null;
+       IMapEnumerator* pMapEnum = _pAccountsManager->GetAccountListN();
+
+       if (pMapEnum != null)
+       {
+               while (!IsFailed(pMapEnum->MoveNext()))
+               {
+                       pAccount = static_cast<EmailAccount*>(pMapEnum->GetValue());
+
+                       IEnumerator* pEnum = _pMailboxManager->GetMailboxesByAccountIdN(pAccount->GetAccountId());
+
+                       if (pEnum != null)
+                       {
+                               while (!IsFailed(pEnum->MoveNext()))
+                               {
+                                       pEmailMailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+                                       if (pEmailMailbox->GetMailboxType() == pMailbox->GetMailboxType())
+                                       {
+                                               count += pEmailMailbox->GetUnreadCount();
+                                       }
+                               }
+                       }
+               }
+       }
+
+       return count;
+}
+
+bool
+BasePresentationModel::CheckIfSelectedMailExists(void)
+{
+       AppLogDebug("ENTER");
+
+       bool retVal = false;
+
+       EmailMessageListItem* pTmpMsg = null;
+       IList* pKeyList = null;
+
+       HashMap* pSelectedMap = new (std::nothrow) HashMap();
+       pSelectedMap->Construct();
+
+       for (int i=0; i<_pSelectedMailList->GetCount(); i++)
+       {
+               EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(_pSelectedMailList->GetAt(i));
+
+               pSelectedMap->Add(new (std::nothrow) Integer(pMsg->GetMailId()), new (std::nothrow) Integer(pMsg->GetMailId()));
+       }
+
+       pKeyList = __pSortMap->GetKeysN();
+
+       if (pKeyList != null)
+       {
+               for (int i=0; i<pKeyList->GetCount(); i++)
+               {
+                       ArrayList* pTmpArr = static_cast<ArrayList*>(__pSortMap->GetValue(*static_cast<Integer*>(pKeyList->GetAt(i))));
+
+                       for (int j=0; j<pTmpArr->GetCount(); j++)
+                       {
+                               pTmpMsg = static_cast<EmailMessageListItem*>(pTmpArr->GetAt(j));
+                               if (pSelectedMap->ContainsValue(Integer(pTmpMsg->GetMailId())) == true)
+                               {
+                                       pKeyList->RemoveAll();
+                                       delete pKeyList;
+
+                                       pSelectedMap->RemoveAll(true);
+                                       delete pSelectedMap;
+
+                                       retVal = true;
+                                       AppLogDebug("EXIT, return:(%d)", retVal);
+                                       return retVal;
+                               }
+                       }
+               }
+
+               pKeyList->RemoveAll();
+               delete pKeyList;
+       }
+
+       pSelectedMap->RemoveAll(true);
+       delete pSelectedMap;
+
+       AppLogDebug("EXIT, return:(%d)", retVal);
+       return retVal;
+}
diff --git a/src/EmBlockForm.cpp b/src/EmBlockForm.cpp
new file mode 100644 (file)
index 0000000..b6b5ef3
--- /dev/null
@@ -0,0 +1,464 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+* @file                       EmBlockForm.cpp
+* @brief                      Provides the user with the list of added addresses and subjects of which user doesn't want to receive mails.
+*
+*/
+
+#include <FApp.h>
+#include <FSystem.h>
+#include "EmBlockForm.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+// Constructor
+BlockAddressProvider::BlockAddressProvider(void)
+       : __fontSize(44.0f)
+       , __itemHeight(150.0f)
+{
+       SetFontValues();
+}
+
+// Destructor
+BlockAddressProvider::~BlockAddressProvider(void)
+{
+       //Empty implementation
+}
+
+// Creates the Listview item
+Tizen::Ui::Controls::ListItemBase*
+BlockAddressProvider::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER");
+//     SimpleItem* pItem = new (std::nothrow) SimpleItem();
+//     String address;
+//     address = EmailSettingsPresentationModel::GetInstance()->GetRuleAt(index, EMAIL_FILTER_FROM);
+//     pItem->Construct(Dimension(itemWidth, H_ADDRESS_LIST_ITEM), LIST_ANNEX_STYLE_NORMAL);
+//     pItem->SetElement(address, null);
+
+       CustomItem* pItem = new (std::nothrow) CustomItem();
+       String address = EmailSettingsPresentationModel::GetInstance()->GetRuleAt(index, EMAIL_FILTER_FROM);
+
+       pItem->Construct(Dimension(itemWidth, __itemHeight), LIST_ANNEX_STYLE_NORMAL);
+       pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, address, __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+// Deletes the Listview item
+bool
+BlockAddressProvider::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null)
+       {
+               CustomItem* pTempItem = static_cast<CustomItem*>(pItem);
+               delete pTempItem;
+               pTempItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+//  Returns number of items to be created in the ListView.
+int
+BlockAddressProvider::GetItemCount(void)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT %d", EmailSettingsPresentationModel::GetInstance()->GetRulesListCount(EMAIL_FILTER_FROM));
+       return EmailSettingsPresentationModel::GetInstance()->GetRulesListCount(EMAIL_FILTER_FROM);
+}
+
+void
+BlockAddressProvider::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+// Constructor
+BlockSubjectProvider::BlockSubjectProvider(void)
+       : __fontSize(44.0f)
+       , __itemHeight(150.0f)
+{
+       SetFontValues();
+}
+
+// Destructor
+BlockSubjectProvider::~BlockSubjectProvider(void)
+{
+       //Empty implementation
+}
+
+// Creates the Listview item
+Tizen::Ui::Controls::ListItemBase*
+BlockSubjectProvider::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER");
+//     SimpleItem* pItem = new (std::nothrow) SimpleItem();
+//     String subject;
+//     subject = EmailSettingsPresentationModel::GetInstance()->GetRuleAt(index, EMAIL_FILTER_SUBJECT);
+//     pItem->Construct(Dimension(itemWidth, H_SUBJECT_LIST_ITEM), LIST_ANNEX_STYLE_NORMAL);
+//     pItem->SetElement(subject, null);
+
+       CustomItem* pItem = new (std::nothrow) CustomItem();
+       String subject = EmailSettingsPresentationModel::GetInstance()->GetRuleAt(index, EMAIL_FILTER_SUBJECT);
+
+       pItem->Construct(Dimension(itemWidth, __itemHeight), LIST_ANNEX_STYLE_NORMAL);
+       pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, subject, __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+// Deletes the Listview item
+bool
+BlockSubjectProvider::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null)
+       {
+               CustomItem* pTempItem = static_cast<CustomItem*>(pItem);
+               delete pTempItem;
+               pTempItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+//  Returns number of items to be created in the ListView.
+int
+BlockSubjectProvider::GetItemCount(void)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT %d", EmailSettingsPresentationModel::GetInstance()->GetRulesListCount(EMAIL_FILTER_SUBJECT));
+       return EmailSettingsPresentationModel::GetInstance()->GetRulesListCount(EMAIL_FILTER_SUBJECT);
+}
+
+void
+BlockSubjectProvider::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+// Constructor
+BlockForm::BlockForm(void)
+       : __isShowAddressListView(true)
+       , __pHeader(null)
+       , __pFooter(null)
+       , __pAddressBlockListView(null)
+       , __pSubjectBlockListView(null)
+       , __pBlockAddressProvider(null)
+       , __pBlockSubjectProvider(null)
+{
+       //Empty implementation
+}
+
+// Destructor
+BlockForm::~BlockForm(void)
+{
+       //Empty implementation
+}
+
+// Called to initialize the form
+bool
+BlockForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       r = Construct(IDL_BLOCK_FORM);
+       TryCatch(r == E_SUCCESS, delete this, "Failed to Construct Form");
+       AppLogDebug("EXIT:r = %s", GetErrorMessage(r));
+       return true;
+
+CATCH:
+       r = false;
+       return r;
+}
+
+// Called after initializing the form
+result
+BlockForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       SetFormBackEventListener(this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+
+       __pBlockAddressProvider = new BlockAddressProvider();
+       __pAddressBlockListView = static_cast<ListView*>(GetControl(IDC_BLOCK_ADDRESS_LISTVIEW));
+       __pAddressBlockListView->SetItemProvider(*__pBlockAddressProvider);
+       __pAddressBlockListView->SetBackgroundColor(COLOR_LIST_BG_NORMAL);
+
+       __pBlockSubjectProvider = new BlockSubjectProvider();
+       __pSubjectBlockListView = static_cast<ListView*>(GetControl(IDC_BLOCK_SUBJECT_LISTVIEW));
+       __pSubjectBlockListView->SetItemProvider(*__pBlockSubjectProvider);
+       __pSubjectBlockListView->SetBackgroundColor(COLOR_LIST_BG_NORMAL);
+
+       __pHeader = GetHeader();
+       __pHeader->AddActionEventListener(*this);
+       __pHeader->SetTabEditModeEnabled(false);
+
+       __pFooter = GetFooter();
+       __pFooter->AddActionEventListener(*this);
+
+       AppLogDebug("EXIT:r = %s", GetErrorMessage(r));
+       return r;
+}
+
+// Called when form is about to terminate
+result
+BlockForm::OnTerminating(void)
+{
+       result r = E_SUCCESS;
+
+       if (__pBlockAddressProvider != null)
+       {
+               delete __pBlockAddressProvider;
+               __pBlockAddressProvider = null;
+       }
+
+       if (__pBlockSubjectProvider != null)
+       {
+               delete __pBlockSubjectProvider;
+               __pBlockSubjectProvider = null;
+       }
+
+       return r;
+}
+
+// Called when an action is performed on an entity.
+void
+BlockForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+
+       if (actionId == IDA_BLOCK_EMAIL_FORM_FOOTER_DELETE_BUTTON)
+       {
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+               pArgs->Add(new (std::nothrow) Boolean(__isShowAddressListView));
+               pSceneManager->GoForward((ForwardSceneTransition(IDSCN_DELETE_ADDRESS_SUBJECT)), pArgs);
+       }
+       else if (actionId == IDA_BLOCK_EMAIL_FORM_FOOTER_ADD_BUTTON)
+       {
+               if (__isShowAddressListView)
+               {
+                       pSceneManager->GoForward((ForwardSceneTransition(IDSCN_ADD_ADDRESS)));
+               }
+               else
+               {
+                       pSceneManager->GoForward((ForwardSceneTransition(IDSCN_ADD_SUBJECT)));
+               }
+       }
+       else if (actionId == IDA_BLOCK_EMAIL_FORM_HEADER_SUBJECT_BUTTON)
+       {
+               if (__isShowAddressListView == true)
+               {
+                       int count;
+                       __isShowAddressListView = false;
+                       __pAddressBlockListView->SetShowState(false);
+                       __pSubjectBlockListView->SetShowState(true);
+                       count = EmailSettingsPresentationModel::GetInstance()->GetRulesListCount(EMAIL_FILTER_SUBJECT);
+
+                       if (count == 0)
+                       {
+                               __pFooter->SetItemEnabled(1, false);
+                       }
+                       else
+                       {
+                               __pFooter->SetItemEnabled(1, true);
+                       }
+
+                       __pFooter->Invalidate(true);
+               }
+       }
+       else if (actionId == IDA_BLOCK_EMAIL_FORM_HEADER_ADDRESS_BUTTON)
+       {
+               if (__isShowAddressListView == false)
+               {
+                       int count;
+                       __isShowAddressListView = true;
+                       __pSubjectBlockListView->SetShowState(false);
+                       __pAddressBlockListView->SetShowState(true);
+                       count = EmailSettingsPresentationModel::GetInstance()->GetRulesListCount(EMAIL_FILTER_FROM);
+
+                       if (count == 0)
+                       {
+                               __pFooter->SetItemEnabled(1, false);
+                       }
+                       else
+                       {
+                               __pFooter->SetItemEnabled(1, true);
+                       }
+
+                       __pFooter->Invalidate(true);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+// Called when form back is requested.
+void
+BlockForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       __isShowAddressListView = true;
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+       pSceneManager->GoBackward((BackwardSceneTransition(IDSCN_EMAIL_SETTING)));
+
+       AppLogDebug("EXIT");
+}
+
+// Called when scene is activated.
+void
+BlockForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                         const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+       int count;
+
+       if (__isShowAddressListView == true)
+       {
+               __pHeader->SetItemSelected(0);
+               __pSubjectBlockListView->SetShowState(false);
+               __pAddressBlockListView->SetShowState(true);
+               __pAddressBlockListView->UpdateList();
+               count = EmailSettingsPresentationModel::GetInstance()->GetRulesListCount(EMAIL_FILTER_FROM);
+
+               if (count == 0)
+               {
+                       __pFooter->SetItemEnabled(1, false);
+               }
+               else
+               {
+                       __pFooter->SetItemEnabled(1, true);
+               }
+       }
+       else
+       {
+               __pHeader->SetItemSelected(1);
+               __pAddressBlockListView->SetShowState(false);
+               __pSubjectBlockListView->SetShowState(true);
+               __pSubjectBlockListView->UpdateList();
+               count = EmailSettingsPresentationModel::GetInstance()->GetRulesListCount(EMAIL_FILTER_SUBJECT);
+
+               if (count == 0)
+               {
+                       __pFooter->SetItemEnabled(1, false);
+               }
+               else
+               {
+                       __pFooter->SetItemEnabled(1, true);
+               }
+       }
+
+       __pFooter->Invalidate(true);
+
+       AppLogDebug("EXIT");
+}
+
+// Called when scene is Deactivated.
+void
+BlockForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                          const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       // Empty implementation
+}
diff --git a/src/EmComposerForm.cpp b/src/EmComposerForm.cpp
new file mode 100755 (executable)
index 0000000..f0e3540
--- /dev/null
@@ -0,0 +1,2050 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file    EmComposerForm.cpp
+ * @brief      Provides the implementation for the composer form
+ */
+
+#include "EmEmailApp.h"
+#include "EmComposerForm.h"
+#include "EmTypes.h"
+#include "EmEmailSettingProvider.h"
+#include "EmSearchPresentationModel.h"
+#include "EmStateInfo.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Messaging;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+enum
+{
+       TO_FIELD_ITEM = 0,
+       CC_FIELD_ITEM,
+       BCC_FIELD_ITEM,
+       SUBJECT_FIELD_ITEM,
+       ATTACHMENT_ITEM,
+       EMAIL_BODY_ITEM
+};
+
+
+ComposerForm::ComposerForm(void)
+       : __accountId(-1)
+       , __selectedViewMailId(-1)
+       , __fontSize(44.0f)
+       , __isCcBccPanelExpanded(false)
+       , __changeHeight(false)
+       , __waitForNoti(false)
+       , __waitForSendNoti(false)
+       , __showStatus(false)
+       , __keyPadOpen(false)
+       , __isMailSelected(false)
+       , __appControlLaunched(false)
+       , __isMessageBoxShown(false)
+       , __plainTextPath(L"")
+       , __pMoreOptionMenu(null)
+       , __pEmailTextArea(null)
+       , __pSubjectField(null)
+       , __pAttachmentPanel(null)
+       , __pMsg(null)
+       , __pComposerPresentationModelInstance(null)
+       , __pToFieldPanel(null)
+       , __pCCFieldPanel(null)
+       , __pBCCFieldPanel(null)
+       , __pContactAppControlLauncher(null)
+{
+       // empty implementation
+}
+
+ComposerForm::~ComposerForm(void)
+{
+       // empty implementation
+}
+
+bool
+ComposerForm::Initialize()
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       r = Construct(IDL_COMPOSE_FORM);
+
+       AppLogDebug("EXIT r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+ComposerForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       Rectangle clientArea = GetClientAreaBounds();
+       Footer* pFooter = GetFooter();
+
+       SetFormMenuEventListener(this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       pFooter->AddActionEventListener(*this);
+       AddOrientationEventListener(*this);
+       SetFormBackEventListener(this);
+       SetFontValues();
+       RelativeLayout layout;
+       layout.Construct();
+
+//      Initialize instance of presentation model
+       __pComposerPresentationModelInstance = ComposerPresentationModel::GetInstance();
+
+       __pTableView = static_cast<TableView*>(GetControl(L"IDC_TABLEVIEW", true));
+       TryCatch(__pTableView != null, r = E_FAILURE, "Failed to get table view");
+
+       __pAttachmentPanel = new (std::nothrow) AttachmentPanel(__pComposerPresentationModelInstance);
+       TryCatch(__pAttachmentPanel != null, r = E_FAILURE, "Failed to create attachment panel");
+
+       r = __pAttachmentPanel->Construct(layout, Rectangle(5,5,clientArea.width - 10,H_ATTACHMENT + 20));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct Attachment panel");
+
+       __pAttachmentPanel->SetAttachmentPanelListener(this);
+
+       __pToFieldPanel = new (std::nothrow) RecipientField();
+       TryCatch(__pToFieldPanel != null, r = E_FAILURE, "Failed to create to field panel");
+
+       r = __pToFieldPanel->Construct(FloatRectangle(0,0,clientArea.width,H_ATTACHMENT));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct to field panel");
+
+       __pToFieldPanel->SetExpandableEditAreaTitle(Utils::GetResourceString(L"IDS_EMAIL_BODY_TO_MRECIPENT"));
+       __pToFieldPanel->SetTokenChangedEventListener(*this);
+       __pToFieldPanel->SetAddContactButtonEventListener(*this);
+       __pToFieldPanel->SetKeyPadEventListener(*this);
+
+       __pCCFieldPanel = new (std::nothrow) RecipientField();
+       TryCatch(__pCCFieldPanel != null, r = E_FAILURE, "Failed to create cc field panel");
+
+       r = __pCCFieldPanel->Construct(FloatRectangle(0,0,clientArea.width,H_ATTACHMENT));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct cc field panel");
+
+       __pCCFieldPanel->SetExpandableEditAreaTitle(Utils::GetResourceString(L"IDS_EMAIL_BODY_CC"));
+       __pCCFieldPanel->SetTokenChangedEventListener(*this);
+       __pCCFieldPanel->SetAddContactButtonEventListener(*this);
+       __pCCFieldPanel->SetKeyPadEventListener(*this);
+
+       __pBCCFieldPanel = new (std::nothrow) RecipientField();
+       TryCatch(__pBCCFieldPanel != null, r = E_FAILURE, "Failed to create bcc field panel");
+
+       r = __pBCCFieldPanel->Construct(FloatRectangle(0,0,clientArea.width,H_ATTACHMENT));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct bcc field panel");
+
+       __pBCCFieldPanel->SetExpandableEditAreaTitle(Utils::GetResourceString(L"IDS_EMAIL_BODY_BCC"));
+       __pBCCFieldPanel->SetTokenChangedEventListener(*this);
+       __pBCCFieldPanel->SetAddContactButtonEventListener(*this);
+       __pBCCFieldPanel->SetKeyPadEventListener(*this);
+
+       __pSubjectField = new (std::nothrow) EditField();
+       TryCatch(__pSubjectField != null, r = E_FAILURE, "Failed to create subject field");
+
+       __pSubjectField->Construct(FloatRectangle(0, 0, clientArea.width, H_SUBJECT_FIELD), EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_NONE, true, MAX_EMAIL_SUBJ_LENGTH);
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct subject field");
+
+       __pSubjectField->SetGuideText(Utils::GetResourceString(L"IDS_EMAIL_BODY_SUBJECT"));
+       __pSubjectField->SetColor(EDIT_STATUS_NORMAL, Color(0,0,0,0));
+       __pSubjectField->SetColor(EDIT_STATUS_PRESSED, __pSubjectField->GetColor(EDIT_STATUS_NORMAL));
+       //__pSubjectField->SetColor(EDIT_STATUS_HIGHLIGHTED, __pSubjectField->GetColor(EDIT_STATUS_NORMAL));
+       __pSubjectField->SetColor(EDIT_STATUS_DISABLED, __pSubjectField->GetColor(EDIT_STATUS_NORMAL));
+       __pSubjectField->SetTextColor(EDIT_TEXT_COLOR_HIGHLIGHTED, Color::GetColor(COLOR_ID_BLACK));
+       __pSubjectField->SetTextColor(EDIT_TEXT_COLOR_NORMAL, Color::GetColor(COLOR_ID_BLACK));
+       __pSubjectField->SetKeypadEnabled(true);
+       __pSubjectField->SetOverlayKeypadCommandButtonVisible(false);
+       __pSubjectField->AddKeypadEventListener(*this);
+       __pSubjectField->SetKeypadAction(KEYPAD_ACTION_DONE);
+
+       __pEmailTextArea = new (std::nothrow) EditArea();
+       TryCatch(__pEmailTextArea != null, r = E_FAILURE, "Failed to create email text area");
+
+       __pEmailTextArea->Construct(Rectangle(0, 0, clientArea.width, clientArea.height-H_ATTACHMENT), INPUT_STYLE_OVERLAY, MAX_EMAIL_BODY_LENGTH);
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct email text area");
+
+       __pEmailTextArea->SetColor(EDIT_STATUS_NORMAL, Color::GetColor(COLOR_ID_WHITE));
+       __pEmailTextArea->SetColor(EDIT_STATUS_PRESSED, Color::GetColor(COLOR_ID_WHITE));
+       __pEmailTextArea->SetColor(EDIT_STATUS_HIGHLIGHTED, Color::GetColor(COLOR_ID_WHITE));
+       __pEmailTextArea->SetTextColor(EDIT_TEXT_COLOR_NORMAL, Color::GetColor(COLOR_ID_BLACK));
+       __pEmailTextArea->SetTextColor(EDIT_TEXT_COLOR_HIGHLIGHTED, Color::GetColor(COLOR_ID_BLACK));
+       __pEmailTextArea->AddKeypadEventListener(*this);
+       __pEmailTextArea->SetOverlayKeypadCommandButtonVisible(false);
+       __pEmailTextArea->SetKeypadAction(KEYPAD_ACTION_ENTER);
+       __pEmailTextArea->SetTextSize(__fontSize);
+
+CATCH:
+       AppLogDebug("EXIT r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+ComposerForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pMoreOptionMenu != null)
+       {
+               __pMoreOptionMenu->RemoveAllItems();
+               delete __pMoreOptionMenu;
+               __pMoreOptionMenu = null;
+       }
+
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+void
+ComposerForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       if (actionId == IDA_HEADER_CONTEXTMENU_ADD_CC_BCC)
+       {
+               HideAllKeypads();
+               if (__isCcBccPanelExpanded == true)
+               {
+                       __isCcBccPanelExpanded = false;
+                       __pToFieldPanel->SetFocus();
+               }
+               else
+               {
+                       __isCcBccPanelExpanded = true;
+                       __pCCFieldPanel->SetFocus();
+               }
+               __pTableView->RefreshItem(CC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+               __pTableView->RefreshItem(BCC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+       else if (actionId == IDA_HEADER_CONTEXTMENU_ATTACH_FILES)
+       {
+               HideAllKeypads();
+               if (__pAttachmentPanel->GetAttachmentList()->GetCount() < MAX_ATTACHMENT_COUNT)
+               {
+                       HashMap* pDataMap = new (std::nothrow) HashMap();
+                       pDataMap->Construct();
+
+                       String* pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_TYPE);
+                       String* pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_ALL);
+                       pDataMap->Add(pKey, pVal);
+
+                       pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_SELECTION_MODE);
+                       pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_MULTIPLE);
+                       pDataMap->Add(pKey, pVal);
+
+                       AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_FILEMANAGER, IDS_TIZEN_OPERATIONID_PICK);
+
+                       if (pAc)
+                       {
+                               EmailApp::GetInstance()->DisableFrame();
+                               pAc->Start(null, null, pDataMap, this);
+                               delete pAc;
+                       }
+                       else
+                       {
+                               int modalRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Unable to launch File Manager App Control", MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modalRes);
+                       }
+
+                       pDataMap->RemoveAll(true);
+                       delete pDataMap;
+               }
+               else
+               {
+                       int modalResult;
+                       String errorMsg;
+                       MessageBox msgBox;
+
+                       errorMsg.Format(256, Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD").GetPointer(), MAX_ATTACHMENT_COUNT);
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), errorMsg, MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalResult);
+               }
+       }
+       else if (actionId == IDA_COMPOSER_FORM_BUTTON_SEND)
+       {
+               String tokenTo = __pToFieldPanel->GetRecipientArea()->GetText();
+               String tokenCc = __pCCFieldPanel->GetRecipientArea()->GetText();
+               String tokenBcc = __pBCCFieldPanel->GetRecipientArea()->GetText();
+               AppLogDebug("token = (%ls)", tokenTo.GetPointer());
+               tokenTo.Trim();
+               tokenCc.Trim();
+               tokenBcc.Trim();
+
+               if ((tokenTo.IsEmpty() == false && Utils::ValidateEmailAddress(tokenTo) == false) ||
+                       (tokenCc.IsEmpty() == false && Utils::ValidateEmailAddress(tokenCc) == false) ||
+                       (tokenBcc.IsEmpty() == false && Utils::ValidateEmailAddress(tokenBcc) == false))
+               {
+                       SetFocus();
+#if 0
+                       int modalRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalRes);
+#endif
+               }
+               else if (((tokenTo.IsEmpty() == true && __pToFieldPanel->GetRecipientArea()->GetTokenCount() == 0) &&
+                                 (tokenCc.IsEmpty() == true && __pCCFieldPanel->GetRecipientArea()->GetTokenCount() == 0) &&
+                                 (tokenBcc.IsEmpty() == true && __pBCCFieldPanel->GetRecipientArea()->GetTokenCount() == 0)) &&
+                                 (__pToFieldPanel->GetRecipientList()->GetCount() == 0 &&
+                                 __pCCFieldPanel->GetRecipientList()->GetCount() == 0 &&
+                                 __pBCCFieldPanel->GetRecipientList()->GetCount() == 0))
+               {
+                       HideAllKeypads();
+
+                       int modalRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalRes);
+                       __pToFieldPanel->SetFocus();
+               }
+               else
+               {
+                       ComposerNS::SendFailure sendResult;
+                       SetFocus();
+//                     HideAllKeypads();
+
+                       int modalRes;
+                       MessageBox msgBox;
+                       String body = __pEmailTextArea->GetText();
+                       String subject = __pSubjectField->GetText();
+
+                       if (subject.IsEmpty() == true)
+                       {
+                               subject.Append(Utils::GetResourceString(L"IDS_EMAIL_BODY_NO_SUBJECT"));
+                       }
+
+                       if (body.IsEmpty() == true)
+                       {
+                               body.Append(' '); // Since emails with empty body are not sent.
+                       }
+
+                       if (((tokenTo.IsEmpty() == true && __pToFieldPanel->GetRecipientArea()->GetTokenCount() == 0) &&
+                               (tokenCc.IsEmpty() == true && __pCCFieldPanel->GetRecipientArea()->GetTokenCount() == 0) &&
+                               (tokenBcc.IsEmpty() == true && __pBCCFieldPanel->GetRecipientArea()->GetTokenCount() == 0)) &&
+                               (__pToFieldPanel->GetRecipientList()->GetCount() == 0 &&
+                               __pCCFieldPanel->GetRecipientList()->GetCount() == 0 &&
+                               __pBCCFieldPanel->GetRecipientList()->GetCount() == 0))
+                       {
+                               int modalRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_NO_RECIPIENTS_ADDED_ENTER_RECIPIENTS"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modalRes);
+                       }
+                       else
+                       {
+                               EmailApp::GetInstance()->DisableFrame();
+                               GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
+                               GetFooter()->SetItemEnabled(0, false);
+
+                               r = __pComposerPresentationModelInstance->SendMessage(subject, body, __pToFieldPanel->GetRecipientList(), __pCCFieldPanel->GetRecipientList(), __pBCCFieldPanel->GetRecipientList(), __pAttachmentPanel->GetAttachmentList(), sendResult);
+                               AppLogDebug("Result of send:(%s)", GetErrorMessage(r));
+
+                               if (r == E_SUCCESS)
+                               {
+                                       __waitForSendNoti = true;
+                               }
+                               else if (r == E_MAX_EXCEEDED)
+                               {
+                                       if (sendResult == ComposerNS::E_ATTACHMENT)
+                                       {
+                                               HideAllKeypads();
+                                               EmailApp::GetInstance()->EnableFrame();
+                                               String errorMsg;
+                                               errorMsg.Format(256, Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB").GetPointer(), 5);
+                                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), errorMsg, MSGBOX_STYLE_OK, 300000);
+                                               msgBox.ShowAndWait(modalRes);
+                                               GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+                                               GetFooter()->SetItemEnabled(0, true);
+                                               GetFooter()->Invalidate(true);
+                                       }
+                                       else if (sendResult == ComposerNS::E_USERS)
+                                       {
+                                               HideAllKeypads();
+                                               EmailApp::GetInstance()->EnableFrame();
+                                               String text = Utils::GetResourceString(L"IDS_EMAIL_POP_MAXIMUM_NUMBER_OF_RECIPIENTS_HPD_REACHED");
+                                               String errorMsg;
+                                               errorMsg.Format(text.GetLength()+1, text.GetPointer(), 20);
+                                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), errorMsg, MSGBOX_STYLE_OK, 300000);
+                                               msgBox.ShowAndWait(modalRes);
+                                               GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+                                               GetFooter()->SetItemEnabled(0, true);
+                                               GetFooter()->Invalidate(true);
+                                       }
+                                       else if (sendResult == ComposerNS::E_BODY)
+                                       {}
+                                       else if (sendResult == ComposerNS::E_SUBJECT)
+                                       {}
+                               }
+                               else
+                               {
+                                       HideAllKeypads();
+                                       EmailApp::GetInstance()->EnableFrame();
+                                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_SEND_EMAIL"), MSGBOX_STYLE_OK, 300000);
+                                       msgBox.ShowAndWait(modalRes);
+                                       GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+                                       GetFooter()->SetItemEnabled(0, true);
+                                       GetFooter()->Invalidate(true);
+                               }
+                       }
+
+                       SetFocus();
+               }
+               //HideAllKeypads();
+//             SetFocus();
+       }
+       else if (actionId == IDA_COMPOSER_FORM_BUTTON_CANCEL)
+       {
+               HideAllKeypads();
+               if (__pToFieldPanel->GetTokenCount() > 0 ||
+                        __pCCFieldPanel->GetTokenCount() > 0 ||
+                        __pBCCFieldPanel->GetTokenCount() > 0 ||
+                        __pSubjectField->GetText().IsEmpty() == false ||
+                        __pEmailTextArea->GetText().IsEmpty() == false ||
+                        __pAttachmentPanel->GetAttachmentList()->GetCount() > 0)
+               {
+                       int modResult;
+                       MessageBox msgBox;
+                       msgBox.Construct(L"", Utils::GetResourceString(L"IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q"), MSGBOX_STYLE_YESNOCANCEL, 300000);
+                       msgBox.ShowAndWait(modResult);
+
+                       if (modResult == MSGBOX_RESULT_NO)
+                       {
+                               if (__pMsg != null)
+                               {
+                                       delete __pMsg;
+                                       __pMsg = null;
+                               }
+
+                               GoBack();
+                       }
+                       else if (modResult == MSGBOX_RESULT_YES)
+                       {
+                               SaveDraftMessage();
+                       }
+               }
+               else
+               {
+                       GoBack();
+               }
+       }
+       else if (actionId == IDA_TOFIELDPANEL_ADD_CONTACT_BUTTON && __appControlLaunched == false)
+       {
+               HideAllKeypads();
+
+               if (__appControlLaunched == false)
+               {
+                       __appControlLaunched = true;
+                       __pContactAppControlLauncher = static_cast<RecipientField*>(static_cast<const Button*>(&source)->GetParent());
+                       SendUserEvent(IDA_LAUNCH_CONTACTS_APPCONTROL, null);
+                       EmailApp::GetInstance()->DisableFrame();
+               }
+
+//             AppLogDebug("Launching contacts appcontrol!");
+//             HashMap* pDataMap = new (std::nothrow) HashMap();
+//             pDataMap->Construct();
+//
+//             String* pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_SELECTION_MODE);
+//             String* pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_MULTIPLE);
+//             pDataMap->Add(pKey, pVal);
+//
+//             pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_ITEM_TYPE);
+//             pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_PERSON);
+//             pDataMap->Add(pKey, pVal);
+//
+//             pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_RESULT_TYPE);
+//             pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_EMAIL);
+//             pDataMap->Add(pKey, pVal);
+//
+//             AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_CONTACTS, IDS_TIZEN_OPERATIONID_SOCIAL_PICK);
+//
+//             if (pAc)
+//             {
+//                     pAc->Start(null, null, pDataMap, this);
+//                     EmailApp::GetInstance()->DisableFrame();
+//                     delete pAc;
+//
+//                     __appControlLaunched = true;
+//                     __pContactAppControlLauncher = static_cast<RecipientField*>(static_cast<const Button*>(&source)->GetParent());
+//             }
+//
+//             pDataMap->RemoveAll(true);
+//             delete pDataMap;
+       }
+
+       AppLogDebug("EXIT r = %s", GetErrorMessage(r));
+       return;
+}
+
+void
+SetMimeType(EmailAttachment* pAttachment, const String& attachmentType)
+{
+       AppLogDebug("ENTER");
+
+       if (attachmentType.Equals(L"jpeg", true) || attachmentType.Equals(L"jpg", true))
+       {
+               pAttachment->SetAttachmentMimeType(L"image/jpeg");
+       }
+       else if (attachmentType.Equals(L"bmp", true))
+       {
+               pAttachment->SetAttachmentMimeType(L"image/bmp");
+       }
+       else if (attachmentType.Equals(L"png", true))
+       {
+               pAttachment->SetAttachmentMimeType(L"image/png");
+       }
+       else if (attachmentType.Equals(L"wbmp", true))
+       {
+               pAttachment->SetAttachmentMimeType(L"image/vnd.wap.wbmp");
+       }
+       else if (attachmentType.Equals(L"gif", true))
+       {
+               pAttachment->SetAttachmentMimeType(L"image/gif");
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+ArrayList*
+ComposerForm::ExtractFilenamesN(const String* pStr)
+{
+       int i=0, length=0;
+       wchar_t tmp;
+       wchar_t delim = L';';
+
+       result r = E_SUCCESS;
+       String filePath = L"";
+       FileAttributes fileAttributes;
+
+       ArrayList* pFilePathList = new (std::nothrow) ArrayList();
+
+       if (pFilePathList != null)
+       {
+               pFilePathList->Construct();
+               length = pStr->GetLength();
+
+               for (i=0; i<length; i++)
+               {
+                       pStr->GetCharAt(i, tmp);
+                       if (tmp == delim)
+                       {
+                               r = File::GetAttributes(filePath, fileAttributes);
+                               if (r != E_FILE_NOT_FOUND && fileAttributes.IsDirectory() == false)
+                               {
+                                       pFilePathList->Add(new (std::nothrow) String(filePath));
+                                       AppLogDebug("Got filepath:(%ls)", filePath.GetPointer());
+                                       filePath.Clear();
+                               }
+                               else
+                               {
+                                       filePath.Append(tmp);
+                               }
+                       }
+                       else
+                       {
+                               filePath.Append(tmp);
+                       }
+               }
+       }
+
+       if (filePath.IsEmpty() == false && File::IsFileExist(filePath) == true)
+       {
+               pFilePathList->Add(new (std::nothrow) String(filePath));
+               AppLogDebug("Got filepath:(%ls)", filePath.GetPointer());
+               filePath.Clear();
+       }
+
+       return pFilePathList;
+}
+
+void
+ComposerForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER, prev scene:(%ls), curr scene:(%ls), pArgs:(%x)", previousSceneId.GetPointer(), currentSceneId.GetPointer(), pArgs);
+
+       int accountId = 0;
+       result r = E_SUCCESS;
+//     int i = 0;
+
+       __keyPadOpen = false;
+       __isMailSelected = false;
+
+       __prevSceneId.Clear();
+       __prevSceneId.Append(previousSceneId);
+
+       __pTableView->SetItemProvider(this);
+       __pTableView->UpdateTableView();
+
+       if ( pArgs != null)
+       {
+               AppLogDebug("Args count:(%d)", pArgs->GetCount());
+               String emailIds;
+               StateInfo* pStateInfo = static_cast<StateInfo*>(pArgs->GetAt(0));
+
+               Control* pCurrentFocusOwner = FocusManager::GetInstance()->GetCurrentFocusOwner();
+
+               if (EmailApp::GetInstance()->GetOperationType() == EMAIL_OPERATION_NONE || pArgs->GetCount() >= 1)
+               {
+                       __accountId = pStateInfo->accountId;
+                       accountId = __accountId;
+                       __mailboxId = pStateInfo->mailboxId;
+                       __pLauncherPresentationModel = pStateInfo->pPresentationModel;
+                       __mailboxType = pStateInfo->mailboxType;
+
+//                     __accountId = static_cast<Integer*>(pArgs->GetAt(i++))->ToInt();
+//                     accountId = __accountId;
+//                     __mailboxId = static_cast<Integer*>(pArgs->GetAt(i++))->ToInt();
+//                     __pLauncherPresentationModel = static_cast<BasePresentationModel*>(pArgs->GetAt(i++));
+//                     __mailboxType = (email_mailbox_type_e)(static_cast<Integer*>(pArgs->GetAt(i++))->ToInt());
+               }
+
+               if (__accountId <= 0)
+               {
+                       accountId = EmailSettingsProvider::GetInstance()->GetDefaultAccountId();
+               }
+
+               __pMsg = CreateMessageItem(accountId);
+
+               String str = pStateInfo->toFieldValue; //static_cast<String*>(pArgs->GetAt(i++));
+
+//             if (str != null)
+               {
+                       __pToFieldPanel->SetFocus();
+
+                       emailIds.Clear();
+                       emailIds.Append(str);
+                       AppLogDebug("Got To list:(%ls)", emailIds.GetPointer());
+                       Utils::RemoveDuplicateEmailId(emailIds);
+                       __pToFieldPanel->AddNewToken(emailIds);
+                       __pToFieldPanel->AdjustHeight();
+               }
+
+               str = pStateInfo->ccFieldValue; //static_cast<String*>(pArgs->GetAt(i++));
+
+//             if (str != null)
+               {
+                       __pCCFieldPanel->SetFocus();
+
+                       emailIds.Clear();
+                       emailIds.Append(str);
+                       AppLogDebug("Got Cc list:(%ls)", emailIds.GetPointer());
+                       Utils::RemoveDuplicateEmailId(emailIds);
+                       __pCCFieldPanel->AddNewToken(emailIds, false);
+                       __pCCFieldPanel->AdjustHeight();
+
+                       str.Trim();
+
+                       if (!str.IsEmpty())
+                       {
+                               __isCcBccPanelExpanded = true;
+                               __pTableView->RefreshItem(CC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                               __pTableView->RefreshItem(BCC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       }
+               }
+
+               str = pStateInfo->bccFieldValue; //static_cast<String*>(pArgs->GetAt(i++));
+
+//             if (str != null)
+               {
+                       __pBCCFieldPanel->SetFocus();
+
+                       emailIds.Clear();
+                       emailIds.Append(str);
+                       AppLogDebug("Got Bcc list:(%ls)", emailIds.GetPointer());
+                       Utils::RemoveDuplicateEmailId(emailIds);
+                       __pBCCFieldPanel->AddNewToken(emailIds, false);
+                       __pBCCFieldPanel->AdjustHeight();
+
+                       str.Trim();
+
+                       if (!str.IsEmpty())
+                       {
+                               __isCcBccPanelExpanded = true;
+                               __pTableView->RefreshItem(CC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                               __pTableView->RefreshItem(BCC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       }
+               }
+
+               str = pStateInfo->subjectFieldValue; //static_cast<String*>(pArgs->GetAt(i++));
+
+//             if (str != null)
+               {
+                       AppLogDebug("Got Subject:(%ls)", str.GetPointer());
+                       r = __pSubjectField->SetText(str);
+                       AppLogDebug("Result of settext:(%s)", GetErrorMessage(r));
+
+                       if (r == E_INVALID_ARG)
+                       {
+                               int modRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+               }
+
+               str = pStateInfo->bodyFieldValue; //static_cast<String*>(pArgs->GetAt(i++));
+
+//             if (str != null)
+               {
+                       AppLogDebug("Got Text:(%ls)", str.GetPointer());
+                       r = __pEmailTextArea->SetText(str);
+                       AppLogDebug("Result of settext:(%s)", GetErrorMessage(r));
+
+                       if (r == E_INVALID_ARG)
+                       {
+                               int modRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_COM_POP_MAXIMUM_NUMBER_OF_CHARACTERS_REACHED"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+               }
+
+               EmailAccount* pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__pMsg->GetAccountId());
+
+               if (pAccount != null)
+               {
+                       EmailOption* pOption = pAccount->GetOptions();
+
+                       if (pOption != null && pOption->GetAddSignature() != 0)
+                       {
+                               String signatureText = pOption->GetSignature();
+
+                               if (signatureText.GetLength() != 0 && __pEmailTextArea->GetText().EndsWith(signatureText) == false)
+                               {
+                                       __pEmailTextArea->AppendText(L"\n\n" + signatureText);
+                               }
+                       }
+
+                       AddSenderAddressToBcc(pAccount);
+               }
+
+               str = pStateInfo->attachmentsPath; //static_cast<String*>(pArgs->GetAt(i++));
+
+               if (/*str != null && */str.GetLength() > 0 && __pMsg != null)
+               {
+                       AppLogDebug("Got Attachments:(%ls)", str.GetPointer());
+
+                       ArrayList* pFilePathList = null;
+
+                       AppLogDebug("Got Attachments:(%ls)", str.GetPointer());
+
+                       pFilePathList = ExtractFilenamesN(&str);
+
+                       if (pFilePathList != null && pFilePathList->GetCount() > 0)
+                       {
+                               AttachFiles(pFilePathList);
+                               pFilePathList->RemoveAll(true);
+                               delete pFilePathList;
+                       }
+                       else
+                       {
+                               int modRes;
+                               MessageBox msgBox;
+
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Some invalid files were not attached", MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+               }
+
+               __isMailSelected = pStateInfo->isMailSelected; //(static_cast<Boolean*>(pArgs->GetAt(i++)))->ToBool();
+
+               if (pStateInfo->mailId > 0)
+               {
+                       __selectedViewMailId = pStateInfo->mailId;
+               }
+
+               pCurrentFocusOwner->SetFocus();
+               __pToFieldPanel->SetFocus();
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                     const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER");
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
+{
+       //Empty implementation
+}
+
+void
+ComposerForm::OnKeypadOpened(Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER");
+
+       __keyPadOpen = true;
+
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::OnKeypadClosed(Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER");
+       Rectangle clientRect = GetClientAreaBounds();
+
+       __pEmailTextArea->SetSize(clientRect.width, clientRect.height-H_ATTACHMENT);
+       __pTableView->RefreshItem(EMAIL_BODY_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
+       __keyPadOpen = false;
+
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction)
+{
+       AppLogDebug("ENTER");
+
+       switch (keypadAction)
+       {
+       case KEYPAD_ACTION_DONE:
+       {
+               __pToFieldPanel->HideKeypad();
+               __pEmailTextArea->HideKeypad();
+               __pSubjectField->HideKeypad();
+
+               Invalidate(true);
+       }
+       break;
+
+       default:
+       {
+       }
+       break;
+       } // switch
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::SaveDraftMessage(void)
+{
+       AppLogDebug("ENTER");
+
+       int count = 0;
+       bool firstToken = true;
+       result r = E_SUCCESS;
+       String token;
+       String tmpAddress;
+       String contentFilePath;
+       ArrayList* pRecipientList = null;
+
+       if (__pMsg != null)
+       {
+               if (__pSubjectField->GetTextLength() != 0)
+               {
+                       __pMsg->SetSubject(__pSubjectField->GetText());
+                       AppLogDebug("Mail subject set to:(%ls)", __pMsg->GetSubject().GetPointer());
+               }
+
+               pRecipientList = __pToFieldPanel->GetRecipientList();
+               count = pRecipientList->GetCount();
+
+               for (int i=0; i<count; i++)
+               {
+                       token.Clear();
+                       token.Append(*static_cast<String*>(pRecipientList->GetAt(i)));
+
+                       tmpAddress.Append("<");
+                       tmpAddress.Append(token);
+                       tmpAddress.Append(">;");
+
+                       if (firstToken == true)
+                       {
+                               __pMsg->SetAliasRecipient(token);
+                               firstToken = false;
+                       }
+               }
+               AppLogDebug("Setting full address To : (%ls)",tmpAddress.GetPointer());
+               __pMsg->SetFullAddressTo(tmpAddress);
+               tmpAddress.Clear();
+
+               pRecipientList = __pCCFieldPanel->GetRecipientList();
+               count = pRecipientList->GetCount();
+
+               for (int i=0; i<count; i++)
+               {
+                       token.Clear();
+                       token.Append(*static_cast<String*>(pRecipientList->GetAt(i)));
+
+                       tmpAddress.Append("<");
+                       tmpAddress.Append(token);
+                       tmpAddress.Append(">;");
+               }
+               AppLogDebug("Setting full address Cc : (%ls)",tmpAddress.GetPointer());
+               __pMsg->SetFullAddressCc(tmpAddress);
+               tmpAddress.Clear();
+
+               pRecipientList = __pBCCFieldPanel->GetRecipientList();
+               count = pRecipientList->GetCount();
+
+               for (int i=0; i<count; i++)
+               {
+                       token.Clear();
+                       token.Append(*static_cast<String*>(pRecipientList->GetAt(i)));
+
+                       tmpAddress.Append("<");
+                       tmpAddress.Append(token);
+                       tmpAddress.Append(">;");
+               }
+               AppLogDebug("Setting full address Bcc : (%ls)",tmpAddress.GetPointer());
+               __pMsg->SetFullAddressBcc(tmpAddress);
+               tmpAddress.Clear();
+
+               if (__pAttachmentPanel != null && __pAttachmentPanel->GetAttachmentList() != null && __pAttachmentPanel->GetAttachmentList()->GetCount() > 0)
+               {
+                       __pMsg->SetAttachmentCount(__pAttachmentPanel->GetAttachmentList()->GetCount());
+               }
+
+               String fullAddressFrom;
+               EmailAccount* pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__pMsg->GetAccountId());
+
+               if (pAccount != null)
+               {
+                       fullAddressFrom.Append(L"\"");
+
+                       if (pAccount->GetUserDisplayName().IsEmpty() == false)
+                       {
+                               fullAddressFrom.Append(pAccount->GetUserDisplayName());
+                       }
+
+                       fullAddressFrom.Append(L"\"<");
+
+                       if (pAccount->GetUserEmailAddress().IsEmpty() == false)
+                       {
+                               fullAddressFrom.Append(pAccount->GetUserEmailAddress());
+                       }
+
+                       fullAddressFrom.Append(L">");
+               }
+               else
+               {
+                       fullAddressFrom.Append(L"\"\"<>");
+               }
+
+               __pMsg->SetFullAddressFrom(fullAddressFrom);
+
+               if (__pEmailTextArea->GetTextLength() != 0)
+               {
+                       File content;
+                       contentFilePath = __pMsg->GetFilePathPlain();
+                       result r = content.Construct(contentFilePath, L"w");
+                       AppLogDebug("content text file creation result:(%s)", GetErrorMessage(r));
+
+                       if (r == E_SUCCESS)
+                       {
+                               content.Write(__pEmailTextArea->GetText());
+                       }
+                       content.Flush();
+               }
+
+               if (__pAttachmentPanel != null)
+               {
+                       r = EmailMailboxManager::GetInstance()->AddMailMessage(__pMsg, __pAttachmentPanel->GetAttachmentList());
+
+                       if (r != E_SUCCESS)
+                       {
+                               int  modRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_SAVE_IN_DRAFTS"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+                       else
+                       {
+                               __waitForNoti = true;
+                       }
+               }
+               else
+               {
+                       r = EmailMailboxManager::GetInstance()->AddMailMessage(__pMsg, null);
+                       __waitForNoti = true;
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+//     __pToFieldPanel->HideKeypad();
+//     __pSubjectField->HideKeypad();
+//     __pEmailTextArea->HideKeypad();
+
+       __pToFieldPanel->SetUserEventFlagValue(false);
+       __pCCFieldPanel->SetUserEventFlagValue(false);
+       __pBCCFieldPanel->SetUserEventFlagValue(false);
+       SetFocus();
+
+       if (__pToFieldPanel->GetTokenCount() > 0 ||
+               __pCCFieldPanel->GetTokenCount() > 0 ||
+               __pBCCFieldPanel->GetTokenCount() > 0 ||
+               __pSubjectField->GetText().IsEmpty() == false ||
+               __pEmailTextArea->GetText().IsEmpty() == false ||
+               __pAttachmentPanel->GetAttachmentList()->GetCount() > 0)
+       {
+               if (__isMessageBoxShown == true)
+               {
+                       return;
+               }
+               else
+               {
+                       EmailAccount* pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__pMsg->GetAccountId());
+                       String signature = pAccount->GetOptions()->GetSignature();
+                       signature.Insert(L"\n\n",0);
+
+                       if(__pEmailTextArea->GetText().Equals(signature) &&
+                          __pToFieldPanel->GetTokenCount() == 0 &&
+                          __pCCFieldPanel->GetTokenCount() == 0 &&
+                          __pBCCFieldPanel->GetTokenCount() == 0 &&
+                          __pSubjectField->GetText().IsEmpty() == true &&
+                          __pAttachmentPanel->GetAttachmentList()->GetCount() == 0)
+                       {
+                               GoBack();
+                               return;
+                       }
+
+                       int modResult;
+                       MessageBox msgBox;
+                       msgBox.Construct(L"", Utils::GetResourceString(L"IDS_EMAIL_POP_SAVE_IN_DRAFTS_Q"), MSGBOX_STYLE_YESNOCANCEL, 300000);
+                       __isMessageBoxShown = true;
+                       msgBox.ShowAndWait(modResult);
+                       __isMessageBoxShown = false;
+                       __pToFieldPanel->SetUserEventFlagValue(true);
+                       __pCCFieldPanel->SetUserEventFlagValue(true);
+                       __pBCCFieldPanel->SetUserEventFlagValue(true);
+
+                       if (modResult == MSGBOX_RESULT_NO)
+                       {
+                               if (__pMsg != null)
+                               {
+                                       delete __pMsg;
+                                       __pMsg = null;
+                               }
+
+                               GoBack();
+                       }
+                       else if (modResult == MSGBOX_RESULT_YES)
+                       {
+                               SaveDraftMessage();
+                       }
+               }
+       }
+       else
+       {
+               GoBack();
+       }
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::OnFormMenuRequested(Form& source)
+{
+       AppLogDebug("ENTER");
+
+       SetFocus();
+       MoreOptionMenu();
+
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::AddSenderAddressToBcc(EmailAccount* pAccount)
+{
+       AppLogDebug("ENTER");
+
+       if (pAccount == null)
+       {
+               pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__pMsg->GetAccountId());
+
+               if (pAccount == null)
+               {
+                       AppLogDebug("Failed to get account data");
+                       return;
+               }
+       }
+
+       bool addAddress = pAccount->GetOptions()->GetAddMyAddressToBcc();
+       AppLogDebug("Add address, db:(%d), bool:(%d)", pAccount->GetOptions()->GetAddMyAddressToBcc(), addAddress);
+
+       if (addAddress == true)
+       {
+               __pBCCFieldPanel->AddNewToken(pAccount->GetUserEmailAddress(), false);
+               __isCcBccPanelExpanded = true;
+               __pTableView->RefreshItem(CC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+               __pTableView->RefreshItem(BCC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::AttachFiles(const ArrayList* pFilePathList)
+{
+       AppLogDebug("ENTER");
+
+       const String* pFilePath;
+       EmailAttachment* pAttachment;
+       ArrayList* pAttachmentList = new (std::nothrow) ArrayList();
+       pAttachmentList->Construct();
+       __showStatus = true;
+       bool errormessage = false;
+       bool isMaxSizeExceeded = false;
+       bool isDuplicateFileExists = false;
+
+       SetFocus();
+       FileAttributes tmpFileAttrib;
+       for (int i=0; i<pFilePathList->GetCount(); i++)
+       {
+               pFilePath = static_cast<const String*>(pFilePathList->GetAt(i));
+               File::GetAttributes(*pFilePath, tmpFileAttrib);
+
+               if (tmpFileAttrib.GetFileSize()+__pAttachmentPanel->GetTotalAttachmentSize() > MAX_MAIL_SIZE)
+               {
+                       isMaxSizeExceeded = true;
+               }
+               else if (__pAttachmentPanel->GetAttachmentList()->GetCount()+pAttachmentList->GetCount() >= MAX_ATTACHMENT_COUNT)
+               {
+                       if (!errormessage)
+                       {
+                               errormessage = true;
+                               this->SendUserEvent(IDA_SHOW_MAX_NUMBER_OF_ATTACHMENTS_MESSAGE_BOX, null);
+                       }
+               }
+               else
+               {
+                       bool isFileDuplicate = false;
+                       ArrayList* pAttachedAttachmentList = __pAttachmentPanel->GetAttachmentList();
+
+                       for (int j = 0; j < pAttachedAttachmentList->GetCount(); j++)
+                       {
+                               EmailAttachment* pAttachmentItem = static_cast<EmailAttachment*>(pAttachedAttachmentList->GetAt(j));
+
+                               if (pAttachmentItem->GetAttachmentPath().Equals(*pFilePath, false))
+                               {
+                                       isDuplicateFileExists = true;
+                                       isFileDuplicate = true;
+                                       break;
+                               }
+                       }
+
+                       if (isFileDuplicate == false)
+                       {
+                               for (int j = 0; j < pAttachmentList->GetCount(); j++)
+                               {
+                                       EmailAttachment* pAttachmentItem = static_cast<EmailAttachment*>(pAttachmentList->GetAt(j));
+
+                                       if (pAttachmentItem->GetAttachmentPath().Equals(*pFilePath, false))
+                                       {
+                                               isDuplicateFileExists = true;
+                                               isFileDuplicate = true;
+                                               break;
+                                       }
+                               }
+                       }
+
+                       if (isFileDuplicate == false)
+                       {
+                               pAttachment = GetAttachmentN(pFilePath, __pMsg);
+                               pAttachmentList->Add(pAttachment);
+
+                               __pAttachmentPanel->SetTotalAttachmentSize(tmpFileAttrib.GetFileSize()+__pAttachmentPanel->GetTotalAttachmentSize());
+                       }
+               }
+       }
+
+       if (isMaxSizeExceeded)
+       {
+               this->SendUserEvent(IDA_SHOW_MAX_SIZE_EXCEEDED_MESSAGE_BOX, null);
+       }
+
+       if (isDuplicateFileExists)
+       {
+               this->SendUserEvent(IDA_SHOW_DUPLICATE_FILES_MESSAGE_BOX, null);
+       }
+
+       if (pAttachmentList->GetCount() > 0)
+       {
+               __pAttachmentPanel->AttachFilesN(pAttachmentList);
+
+               int count = __pAttachmentPanel->GetAttachmentList()->GetCount();
+
+               if (count < 5)
+               {
+                       __pAttachmentPanel->SetSize(__pAttachmentPanel->GetWidth(), (count+1)*H_ATTACHMENT + 10);
+               }
+               else
+               {
+                       __pAttachmentPanel->SetSize(__pAttachmentPanel->GetWidth(), (5)*H_ATTACHMENT + 10);
+               }
+
+               __pAttachmentPanel->UpdateAttachmentList();
+               __pTableView->RefreshItem(ATTACHMENT_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::GoBack(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       if (EmailApp::GetInstance()->GetOperationType() == EMAIL_OPERATION_COMPOSE)
+       {
+               // Terminate since we launched through appcontrol.
+               App::GetInstance()->Terminate();
+
+       }
+       else
+       {
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+               pArgs->Construct();
+
+               if (__pLauncherPresentationModel != null)
+               {
+                       if (__accountId != -1)
+                       {
+                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                               {
+                                       __pLauncherPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                               }
+                               else
+                               {
+                                       __pLauncherPresentationModel->FetchData(__accountId);
+                               }
+                       }
+                       else
+                       {
+                               __pLauncherPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                       }
+
+                       __pLauncherPresentationModel->SortBy(__pLauncherPresentationModel->GetSortType());
+               }
+
+               SceneManager* pSceneManager = SceneManager::GetInstance();
+               IListT<SceneId>* pSceneHistory = pSceneManager->GetSceneHistoryN();
+
+               if (pSceneHistory != null && pSceneHistory->GetCount() > 0)
+               {
+                       SceneId prevScene;
+                       pSceneHistory->GetAt(pSceneHistory->GetCount()-1, prevScene);
+
+                       if (prevScene.Equals(IDSCN_SEARCH, false) == true)
+                       {
+                               SearchPresentationModel* pPresentationModel = SearchPresentationModel::GetInstance();
+
+                               if (pPresentationModel != null)
+                               {
+                                       pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+                                       pPresentationModel->Initialize(pPresentationModel->GetPresentationModel());
+                                       pPresentationModel->PerformSearch(L"");
+                               }
+                       }
+
+                       pSceneHistory->RemoveAll();
+                       delete pSceneHistory;
+               }
+
+               pStateInfo->accountId = __accountId;
+               pStateInfo->mailboxId = __mailboxId;
+               pStateInfo->pPresentationModel = __pLauncherPresentationModel;
+               pStateInfo->mailboxType = __mailboxType;
+               pStateInfo->mailId = __selectedViewMailId;
+
+               pArgs->Add(pStateInfo);
+
+               if (__pLauncherPresentationModel != null && __pLauncherPresentationModel->GetMailData(__selectedViewMailId) != null)
+               {
+                       r = SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(), pArgs);
+               }
+               else
+               {
+                       r = SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_INBOX), pArgs);
+               }
+
+               if (r == E_UNDERFLOW)
+               {
+                       // Probably an appcontrol call
+                       AppLogDebug("Go back failed with error:(%s)", GetErrorMessage(r));
+                       App::GetInstance()->Terminate();
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::OnUserEventReceivedN(RequestId requestId, IList* pArgs)
+{
+       AppLogDebug("ENTER, requestid:(%d)", requestId);
+
+       if (requestId == IDA_NOTI_MAIL_ADD && pArgs != null)
+       {
+               if (__waitForSendNoti == true)
+               {
+                       __waitForSendNoti = false;
+
+                       EmailApp::GetInstance()->EnableFrame();
+                       GetFooter()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+                       GetFooter()->SetItemEnabled(0, true);
+
+                       int mailId    = (static_cast<Integer*>(pArgs->GetAt(1)))->ToInt();
+                       int mailboxId = (static_cast<Integer*>(pArgs->GetAt(2)))->ToInt();
+                       EmailMailboxManager::GetInstance()->AddData(mailId, mailboxId);
+                       GoBack();
+               }
+               else if (__waitForNoti == true)
+               {
+                       __waitForNoti = false;
+
+                       int mailId    = (static_cast<Integer*>(pArgs->GetAt(1)))->ToInt();
+                       int mailboxId = (static_cast<Integer*>(pArgs->GetAt(2)))->ToInt();
+                       EmailMailboxManager::GetInstance()->AddData(mailId, mailboxId);
+
+                       if (__isMailSelected)
+                       {
+                               ArrayList* pMailList = EmailMailboxManager::GetInstance()->GetData(EmailMailboxManager::GetInstance()->GetMailboxById(mailboxId));
+
+                               if (pMailList != null)
+                               {
+                                       for (int i = 0; i < pMailList->GetCount(); i++)
+                                       {
+                                               EmailMessageListItem* pMail = static_cast<EmailMessageListItem*>(pMailList->GetAt(i));
+
+                                               if (mailId == pMail->GetMailId())
+                                               {
+                                                       __pLauncherPresentationModel->AddMailToSelectedMailList(pMail);
+                                               }
+                                       }
+                               }
+                       }
+
+                       GoBack();
+               }
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+       }
+       else if (requestId == IDA_SHOW_MAX_NUMBER_OF_ATTACHMENTS_MESSAGE_BOX)
+       {
+               int modalResult;
+               String errorMsg;
+               MessageBox msgBox;
+
+               errorMsg.Format(256, Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_NUMBER_OF_FILES_IS_PD").GetPointer(), 20);
+               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), errorMsg, MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modalResult);
+       }
+       else if (requestId == IDA_SHOW_MAX_SIZE_EXCEEDED_MESSAGE_BOX)
+       {
+               int modRes;
+               MessageBox msgBox;
+               String errormsg;
+
+               errormsg.Format(256, Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ATTACH_MAXIMUM_SIZE_OF_FILES_IS_PD_KB").GetPointer(), 5);
+               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), errormsg, MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+       }
+       else if (requestId == IDA_SHOW_DUPLICATE_FILES_MESSAGE_BOX)
+       {
+               int modRes;
+               MessageBox msgBox;
+               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_COM_POP_ALREDY_EXISTS"), MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+       }
+       else if (requestId == IDA_LAUNCH_CONTACTS_APPCONTROL)
+       {
+               AppLogDebug("launching contacts app control");
+               HashMap* pDataMap = new (std::nothrow) HashMap();
+               pDataMap->Construct();
+
+               String* pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_SELECTION_MODE);
+               String* pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_MULTIPLE);
+               pDataMap->Add(pKey, pVal);
+
+               pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_ITEM_TYPE);
+               pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_PERSON);
+               pDataMap->Add(pKey, pVal);
+
+               pKey = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_KEY_RESULT_TYPE);
+               pVal = new (std::nothrow) String(IDS_TIZEN_APPCONTROL_VAL_EMAIL);
+               pDataMap->Add(pKey, pVal);
+
+               AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_CONTACTS, IDS_TIZEN_OPERATIONID_SOCIAL_PICK);
+
+               if (pAc)
+               {
+                       result r = pAc->Start(null, null, pDataMap, this);
+                       AppLogDebug("result of start : (%s)", GetErrorMessage(r));
+
+                       if (r != E_SUCCESS)
+                       {
+                               AppLogDebug("failed to start contacts app control");
+                               __appControlLaunched = false;
+                               EmailApp::GetInstance()->EnableFrame();
+                       }
+
+                       delete pAc;
+               }
+               else
+               {
+                       AppLogDebug("failed to launch contacts app control");
+                       __appControlLaunched = false;
+                       EmailApp::GetInstance()->EnableFrame();
+               }
+
+               pDataMap->RemoveAll(true);
+               delete pDataMap;
+       }
+       else if (requestId == IDA_EMAIL_APP_FOREGROUND)
+       {
+               __pAttachmentPanel->SendUserEvent(IDA_EMAIL_APP_FOREGROUND, null);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::LineCountChanged(const RecipientField& src)
+{
+       AppLogDebug("ENTER");
+
+       int hashCode = src.GetHashCode();
+
+       if (hashCode == __pToFieldPanel->GetHashCode())
+       {
+               __pTableView->RefreshItem(TO_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+       else if (hashCode == __pCCFieldPanel->GetHashCode())
+       {
+               __pTableView->RefreshItem(CC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+       else if (hashCode == __pBCCFieldPanel->GetHashCode())
+       {
+               __pTableView->RefreshItem(BCC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::OnAppControlStartResponseReceived(const AppId& appId, const Tizen::Base::String& operationId, result r)
+{
+       AppLogDebug("ENTER");
+}
+
+void
+ComposerForm::OnAppControlCompleteResponseReceived(const AppId& appId, const String& operationId, AppCtrlResult appControlResult, const IMap* pExtraData)
+{
+       AppLogDebug("ENTER, appId:(%ls), operationId:(%ls), appControlResult:(%d), pExtraData:(%x)",appId.GetPointer(), operationId.GetPointer(), appControlResult, pExtraData);
+
+       FileAttributes fileAttributes;
+       String appDataPath;
+       String attachmentName;
+       String attachmentPath;
+       String attachmentType;
+
+       AppLogDebug("===", Utils::ParseExtraData(pExtraData));
+
+       EmailApp::GetInstance()->EnableFrame();
+
+       if (appId.Equals(IDS_TIZEN_APPID_FILEMANAGER, true) &&
+               operationId.Equals(IDS_TIZEN_OPERATIONID_PICK, true))
+       {
+               if (appControlResult == APP_CTRL_RESULT_SUCCEEDED && pExtraData != null)
+               {
+                       const ArrayList* pArr = static_cast<const ArrayList*>(pExtraData->GetValue(String(IDS_TIZEN_APPCONTROL_KEY_SELECTED)));
+                       if (pArr != null)
+                       {
+                               if (pArr != null && pArr->GetCount() > 0)
+                               {
+                                       AttachFiles(pArr);
+                               }
+                               else
+                               {
+                                       int modRes;
+                                       String text;
+                                       MessageBox msgBox;
+                                       text.Append(L"Some invalid files were not attached");
+                                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), text, MSGBOX_STYLE_OK, 300000);
+                                       msgBox.ShowAndWait(modRes);
+                               }
+                       }
+                       else
+                       {
+                               int modRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), "Failed to get attachment list!", MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+               }
+       }
+       else if (appId.Equals(IDS_TIZEN_APPID_CONTACTS, true) &&
+                        operationId.Equals(IDS_TIZEN_OPERATIONID_SOCIAL_PICK, true))
+       {
+               __appControlLaunched = false;
+
+               if (appControlResult == APP_CTRL_RESULT_SUCCEEDED && pExtraData != null)
+               {
+                       const ArrayList* pArr = static_cast<const ArrayList*>(pExtraData->GetValue(String(IDS_TIZEN_APPCONTROL_KEY_SOCIAL_EMAIL)));
+
+                       if (pArr != null && __pContactAppControlLauncher != null)
+                       {
+                               String emailIds;
+
+                               Utils::BuildEmailIdStringFromArray(pArr, emailIds);
+                               __pContactAppControlLauncher->AddNewToken(emailIds);
+                               __pContactAppControlLauncher->SetFocus();
+                               __pContactAppControlLauncher = null;
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::OnShowAttachmentValueChanged(bool showStatus)
+{
+       AppLogDebug("ENTER, val:(%d)", showStatus);
+
+       __showStatus = showStatus;
+       __pTableView->RefreshItem(ATTACHMENT_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::SetFocusToFrom(void)
+{
+       AppLogDebug("ENTER");
+
+//     if (__keyPadOpen == true)
+       {
+               SetFocus();
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerForm::MoreOptionMenu(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pMoreOptionMenu == null)
+       {
+               __pMoreOptionMenu = new (std::nothrow) OptionMenu();
+               __pMoreOptionMenu->Construct();
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_ATTACH_FILES"), IDA_HEADER_CONTEXTMENU_ATTACH_FILES);
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_BODY_CC_BCC"), IDA_HEADER_CONTEXTMENU_ADD_CC_BCC);
+               __pMoreOptionMenu->AddActionEventListener(*this);
+       }
+
+       __pMoreOptionMenu->SetShowState(true);
+       __pMoreOptionMenu->Show();
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+EmailMessageItem*
+ComposerForm::CreateMessageItem(int accountId)
+{
+       AppLogDebug("ENTER");
+
+       int mailboxid;
+       result r = E_SUCCESS;
+       DateTime currentDateTime;
+       EmailMessageItem* pMsg = null;
+       String plainTextPath;
+       File plainTextFile;
+
+       pMsg = new (std::nothrow) EmailMessageItem();
+
+       if (pMsg != null)
+       {
+               pMsg->SetAccountId(accountId);
+               pMsg->SetBodyDownloadStatus(1);
+               pMsg->SetSaveStatus(EMAIL_MAIL_STATUS_RECEIVED);
+               pMsg->SetFlagsSeenField(true);
+
+               mailboxid = EmailMailboxManager::GetInstance()->GetMailboxIdByType(accountId, EMAIL_MAILBOX_TYPE_DRAFT);
+               pMsg->SetMailboxId(mailboxid);
+               pMsg->SetMailboxType(EMAIL_MAILBOX_TYPE_DRAFT);
+
+               SystemTime::GetCurrentTime(UTC_TIME, currentDateTime);
+               pMsg->GetDateTime() = currentDateTime;
+
+               plainTextPath = App::GetInstance()->GetAppSharedPath();
+               plainTextPath.Append(L"/data/utf-8");
+
+               pMsg->SetFilePathPlain(plainTextPath);
+               plainTextFile.Construct(plainTextPath, L"w");
+       }
+       else
+       {
+               r = E_FAILURE;
+       }
+
+       SetLastResult(r);
+
+       AppLogDebug("EXIT");
+       return pMsg;
+}
+
+EmailAttachment*
+ComposerForm::GetAttachmentN(const Tizen::Base::String* pSrcAttachmentPath, EmailMessageItem *pMsg)
+{
+       AppLogDebug("ENTER, attachment path:(%ls), mail_id:(%d)", pSrcAttachmentPath->GetPointer(), pMsg->GetMailId());
+
+       FileAttributes fileAttributes;
+       result r = E_SUCCESS;
+       String attachmentName;
+       String attachmentType;
+       EmailAttachment* pAttachment = null;
+
+       attachmentName = File::GetFileName(*pSrcAttachmentPath);
+       attachmentType = File::GetFileExtension(*pSrcAttachmentPath);
+       attachmentType.ToLowerCase();
+
+       r = File::GetAttributes(*pSrcAttachmentPath, fileAttributes);
+       if (r != E_FILE_NOT_FOUND)
+       {
+               pAttachment = new (std::nothrow) EmailAttachment();
+               pAttachment->SetAccountId(pMsg->GetAccountId());
+               pAttachment->SetAttachmentName(attachmentName);
+               pAttachment->SetAttachmentPath(*pSrcAttachmentPath);
+               pAttachment->SetSaveStatus(true);
+               pAttachment->SetAttachmentSize(fileAttributes.GetFileSize());
+               SetMimeType(pAttachment, attachmentType);
+       }
+
+       AppLogDebug("EXIT");
+       return pAttachment;
+}
+
+int
+ComposerForm::GetItemCount(void)
+{
+       return 6;
+}
+
+TableViewItem*
+ComposerForm::CreateItem(int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       FloatDimension convertedSize;
+       RelativeLayout relLayout;
+       Label* pDividerLabel = null;
+       TableViewItem* pItem = null;
+       result r = E_SUCCESS;
+
+       relLayout.Construct();
+
+       switch (itemIndex)
+       {
+       case TO_FIELD_ITEM:
+               pItem = new (std::nothrow) TableViewItem();
+               r = pItem->Construct(relLayout, FloatDimension(itemWidth, H_TO_PANEL+2.0));
+
+               pDividerLabel = new (std::nothrow) Label();
+               pDividerLabel->Construct(FloatRectangle(0,H_TO_PANEL,itemWidth,1.0), L"");
+               pDividerLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_GREY));
+               pDividerLabel->SetName(L"DIV");
+
+               pItem->AddControl(__pToFieldPanel);
+               pItem->AddControl(pDividerLabel);
+               pItem->SetControlAlwaysOnTop(*pDividerLabel, true);
+
+               relLayout.SetHorizontalFitPolicy(*pDividerLabel, FIT_POLICY_PARENT);
+               relLayout.SetRelation(*pDividerLabel, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+//             relLayout.SetRelation(*__pToFieldPanel, *pDividerLabel, RECT_EDGE_RELATION_BOTTOM_TO_TOP);
+               break;
+
+       case CC_FIELD_ITEM:
+               pItem = new (std::nothrow) TableViewItem();
+               r = pItem->Construct(relLayout, FloatDimension(itemWidth, 0), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+               pDividerLabel = new (std::nothrow) Label();
+               pDividerLabel->Construct(FloatRectangle(0,H_TO_PANEL,itemWidth,1), L"");
+               pDividerLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_GREY));
+               pDividerLabel->SetName(L"DIV");
+
+               pItem->AddControl(__pCCFieldPanel);
+               pItem->AddControl(pDividerLabel);
+               pItem->SetControlAlwaysOnTop(*pDividerLabel, true);
+               pItem->SetShowState(false);
+               relLayout.SetHorizontalFitPolicy(*pDividerLabel, FIT_POLICY_PARENT);
+               relLayout.SetRelation(*pDividerLabel, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+//             relLayout.SetRelation(*__pCCFieldPanel, *pDividerLabel, RECT_EDGE_RELATION_BOTTOM_TO_TOP);
+               break;
+
+       case BCC_FIELD_ITEM:
+               pItem = new (std::nothrow) TableViewItem();
+               r = pItem->Construct(relLayout, FloatDimension(itemWidth, 0.0), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+               pDividerLabel = new (std::nothrow) Label();
+               pDividerLabel->Construct(FloatRectangle(0.0,H_TO_PANEL,itemWidth,1.0), L"");
+               pDividerLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_GREY));
+               pDividerLabel->SetName(L"DIV");
+
+               pItem->AddControl(__pBCCFieldPanel);
+               pItem->AddControl(pDividerLabel);
+               pItem->SetControlAlwaysOnTop(*pDividerLabel, true);
+               pItem->SetShowState(false);
+               relLayout.SetHorizontalFitPolicy(*pDividerLabel, FIT_POLICY_PARENT);
+               relLayout.SetRelation(*pDividerLabel, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+//             relLayout.SetRelation(*__pBCCFieldPanel, *pDividerLabel, RECT_EDGE_//RELATION_BOTTOM_TO_TOP);
+               break;
+
+       case SUBJECT_FIELD_ITEM:
+               convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(itemWidth, __pSubjectField->GetHeightF()+2.0));
+               pItem = new (std::nothrow) TableViewItem();
+               r = pItem->Construct(relLayout, convertedSize, TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+               pDividerLabel = new (std::nothrow) Label();
+               pDividerLabel->Construct(FloatRectangle(0.0,__pSubjectField->GetHeightF(),itemWidth,convertedSize.height-__pSubjectField->GetHeightF()), L"");
+               pDividerLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_GREY));
+               pDividerLabel->SetName(L"DIV");
+
+               pItem->AddControl(__pSubjectField);
+               pItem->AddControl(pDividerLabel);
+
+               relLayout.SetHorizontalFitPolicy(*pDividerLabel, FIT_POLICY_PARENT);
+               relLayout.SetRelation(*pDividerLabel, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+//             relLayout.SetRelation(*__pSubjectField, *pDividerLabel, RECT_EDGE_RELATION_BOTTOM_TO_TOP);
+               break;
+
+       case ATTACHMENT_ITEM:
+               pItem = new (std::nothrow) TableViewItem();
+               r = pItem->Construct(relLayout, Dimension(itemWidth, 0), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+               pItem->SetShowState(false);
+               pItem->AddControl(__pAttachmentPanel);
+               relLayout.SetRelation(*__pAttachmentPanel, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+               relLayout.SetRelation(*__pAttachmentPanel, pItem, RECT_EDGE_RELATION_TOP_TO_TOP);
+               relLayout.SetRelation(*__pAttachmentPanel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+               relLayout.SetRelation(*__pAttachmentPanel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               relLayout.SetMargin(*__pAttachmentPanel, 5, 5, 5, 5);
+
+               break;
+
+       case EMAIL_BODY_ITEM:
+               RelativeLayout layout;
+               layout.Construct();
+               convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(itemWidth, GetClientAreaBounds().height-H_ATTACHMENT));
+               pItem = new (std::nothrow) TableViewItem();
+               r = pItem->Construct(layout, convertedSize, TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+               pItem->AddControl(__pEmailTextArea);
+
+//             layout.SetHorizontalFitPolicy(*__pEmailTextArea, FIT_POLICY_PARENT);
+//             layout.SetVerticalFitPolicy(*__pEmailTextArea, FIT_POLICY_PARENT);
+               layout.SetRelation(*__pEmailTextArea, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+               layout.SetRelation(*__pEmailTextArea, pItem, RECT_EDGE_RELATION_TOP_TO_TOP);
+               layout.SetRelation(*__pEmailTextArea, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+               layout.SetRelation(*__pEmailTextArea, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               layout.SetMargin(*__pEmailTextArea, 5, 5, 5, 5);
+               layout.Update();
+
+               break;
+       }
+
+       if (pItem != null)
+       {
+               Color bgColor = pItem->GetBackgroundColor(TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
+       }
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+bool
+ComposerForm::DeleteItem(int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null)
+       {
+               delete pItem;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+ComposerForm::UpdateItem(int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER, itemIndex:(%d), pItem:(%x)", itemIndex, pItem);
+
+       int count;
+       result r = E_SUCCESS;
+       Label* pLabel = null;
+       FloatDimension convertedBounds;
+
+       switch (itemIndex)
+       {
+       case TO_FIELD_ITEM:
+               convertedBounds = CoordinateSystem::AlignToDevice(FloatDimension(pItem->GetWidthF(), __pToFieldPanel->GetHeightF()+2.0f));
+               pLabel = static_cast<Label*>(pItem->GetControl(1));
+               AppLogDebug(" Setting item size:(%f,%f)", convertedBounds.width, convertedBounds.height);
+               r = pItem->SetSize(convertedBounds);
+               AppLogDebug(" item size:(%f,%f,%f,%f)", pItem->GetXF(), pItem->GetYF(), pItem->GetWidthF(), pItem->GetHeightF());
+               AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+
+               if (pLabel != null)
+               {
+                       pLabel->SetBounds(pItem->GetXF(), __pToFieldPanel->GetHeightF(), convertedBounds.width, convertedBounds.height-__pToFieldPanel->GetHeightF());
+                       AppLogDebug(" panel bounds:(%f,%f,%f,%f)", __pToFieldPanel->GetXF(), __pToFieldPanel->GetYF(), __pToFieldPanel->GetWidthF(), __pToFieldPanel->GetHeightF());
+                       AppLogDebug(" label bounds:(%f,%f,%f,%f)", pLabel->GetXF(), pLabel->GetYF(), pLabel->GetWidthF(), pLabel->GetHeightF());
+               }
+
+               break;
+
+       case CC_FIELD_ITEM:
+               if (__isCcBccPanelExpanded == true)
+               {
+                       pItem->SetShowState(true);
+                       convertedBounds = CoordinateSystem::AlignToDevice(FloatDimension(pItem->GetWidthF(), __pCCFieldPanel->GetHeightF()+2.0f));
+                       pLabel = static_cast<Label*>(pItem->GetControl(1));
+                       AppLogDebug(" Setting item size:(%f,%f)", convertedBounds.width, convertedBounds.height);
+                       r = pItem->SetSize(convertedBounds);
+                       AppLogDebug(" item bounds:(%f,%f,%f,%f)", pItem->GetXF(), pItem->GetYF(), pItem->GetWidthF(), pItem->GetHeightF());
+                       AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+
+                       if (pLabel != null)
+                       {
+                               pLabel->SetBounds(pItem->GetXF(), __pCCFieldPanel->GetHeightF(), convertedBounds.width, convertedBounds.height-__pCCFieldPanel->GetHeightF());
+                               AppLogDebug(" panel bounds:(%f,%f,%f,%f)", __pCCFieldPanel->GetXF(), __pCCFieldPanel->GetYF(), __pCCFieldPanel->GetWidthF(), __pCCFieldPanel->GetHeightF());
+                               AppLogDebug(" label bounds:(%f,%f,%f,%f)", pLabel->GetXF(), pLabel->GetYF(), pLabel->GetWidthF(), pLabel->GetHeightF());
+                       }
+               }
+               else
+               {
+                       r = pItem->SetSize(pItem->GetWidth(), 0);
+                       pItem->SetShowState(false);
+                       AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+               }
+               break;
+
+       case BCC_FIELD_ITEM:
+               if (__isCcBccPanelExpanded == true)
+               {
+                       pItem->SetShowState(true);
+                       convertedBounds = CoordinateSystem::AlignToDevice(FloatDimension(pItem->GetWidthF(), __pBCCFieldPanel->GetHeightF()+2.0f));
+                       pLabel = static_cast<Label*>(pItem->GetControl(1));
+                       AppLogDebug(" Setting item size:(%f,%f)", convertedBounds.width, convertedBounds.height);
+                       r = pItem->SetSize(FloatDimension(convertedBounds.width, convertedBounds.height));
+                       AppLogDebug(" item bounds:(%f,%f,%f,%f)", pItem->GetXF(), pItem->GetYF(), pItem->GetWidthF(), pItem->GetHeightF());
+                       AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+
+                       if (pLabel != null)
+                       {
+                               pLabel->SetBounds(pItem->GetXF(), __pBCCFieldPanel->GetHeightF(), convertedBounds.width, convertedBounds.height-__pBCCFieldPanel->GetHeightF());
+                               AppLogDebug(" panel bounds:(%f,%f,%f,%f)", __pBCCFieldPanel->GetXF(), __pBCCFieldPanel->GetYF(), __pBCCFieldPanel->GetWidthF(), __pBCCFieldPanel->GetHeightF());
+                               AppLogDebug(" label bounds:(%f,%f,%f,%f)", pLabel->GetXF(), pLabel->GetYF(), pLabel->GetWidthF(), pLabel->GetHeightF());
+                       }
+               }
+               else
+               {
+                       r = pItem->SetSize(pItem->GetWidthF(), 0.0);
+                       pItem->SetShowState(false);
+                       AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+               }
+               break;
+
+       case ATTACHMENT_ITEM:
+               count = __pAttachmentPanel->GetAttachmentList()->GetCount();
+               AppLogDebug("Got count:(%d)", count);
+
+               if (count > 0)
+               {
+                       pItem->SetShowState(true);
+
+                       if (__showStatus)
+                       {
+                               if (count < 5)
+                               {
+                                       r = pItem->SetSize(pItem->GetWidth(), (count+1)*H_ATTACHMENT + 31);
+                               }
+                               else
+                               {
+                                       r = pItem->SetSize(pItem->GetWidth(), (5)*H_ATTACHMENT + 31);
+                               }
+
+//                             __pAttachmentPanel->SetSize(__pAttachmentPanel->GetWidth(), (count+1)*H_ATTACHMENT + 20);
+                               AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+                       }
+                       else
+                       {
+                               r = pItem->SetSize(pItem->GetWidth(), H_ATTACHMENT + 31);
+//                             __pAttachmentPanel->SetSize(__pAttachmentPanel->GetWidth(), H_ATTACHMENT + 20);
+                               AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+                       }
+               }
+               else
+               {
+                       r = pItem->SetSize(pItem->GetWidth(), 0);
+                       pItem->SetShowState(false);
+                       AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+               }
+
+               break;
+
+       case EMAIL_BODY_ITEM:
+
+               __pEmailTextArea->SetSize(GetClientAreaBounds().width, GetClientAreaBounds().height - H_ATTACHMENT);
+               AppLogDebug("Setting item size:(%d,%d)", pItem->GetWidth(), __pEmailTextArea->GetHeight());
+               r = pItem->SetSize(pItem->GetWidth(), __pEmailTextArea->GetHeight());
+               AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+               break;
+       }
+
+       __pTableView->Invalidate(true);
+       AppLogDebug("EXIT");
+       return;
+}
+
+int
+ComposerForm::GetDefaultItemHeight(void)
+{
+       AppLogDebug("Returning 0");
+       return 0;
+}
+
+void
+ComposerForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER");
+
+       FloatRectangle clientRect = GetClientAreaBoundsF();
+       AppLogDebug("ClientRect: (%d,%d,%d,%d)", clientRect.x, clientRect.y, clientRect.width, clientRect.height);
+
+//     __pToFieldPanel->SetSize(clientRect.width, __pToFieldPanel->GetHeightF());
+//     __pCCFieldPanel->SetSize(clientRect.width, __pCCFieldPanel->GetHeightF());
+//     __pBCCFieldPanel->SetSize(clientRect.width, __pBCCFieldPanel->GetHeightF());
+
+       __pToFieldPanel->SetSize(clientRect.width, H_ATTACHMENT * 1.0);
+       __pCCFieldPanel->SetSize(clientRect.width, H_ATTACHMENT * 1.0);
+       __pBCCFieldPanel->SetSize(clientRect.width, H_ATTACHMENT * 1.0);
+
+       __pSubjectField->SetSize(clientRect.width, __pSubjectField->GetHeightF());
+
+//     if (clientRect.height - H_ATTACHMENT > __pEmailTextArea->GetHeightF())
+//     {
+//             __pEmailTextArea->SetSize(clientRect.width, clientRect.height - H_ATTACHMENT);
+//     }
+//     else
+//     {
+//             __pEmailTextArea->SetSize(clientRect.width,  __pEmailTextArea->GetHeightF());
+//     }
+
+       __pTableView->RefreshItem(TO_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       __pTableView->RefreshItem(CC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       __pTableView->RefreshItem(BCC_FIELD_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       __pTableView->RefreshItem(EMAIL_BODY_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
+       __pAttachmentPanel->SetSize(clientRect.width - 10, __pAttachmentPanel->GetHeightF());
+//     __pAttachmentPanel->UpdateAttachmentList();
+
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::HideAllKeypads(void)
+{
+       AppLogDebug("ENTER");
+
+       __pToFieldPanel->HideKeypad();
+       __pCCFieldPanel->HideKeypad();
+       __pBCCFieldPanel->HideKeypad();
+       __pSubjectField->HideKeypad();
+       __pEmailTextArea->HideKeypad();
+
+       AppLogDebug("EXIT");
+}
+
+void
+ComposerForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 98.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmComposerPresentationModel.cpp b/src/EmComposerPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..803e5db
--- /dev/null
@@ -0,0 +1,220 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmComposerPresentationModel.cpp
+ * @brief      Keeps the implementations of ComposerPresentationModel class
+ */
+
+#include <cstdlib>
+#include "EmComposerPresentationModel.h"
+#include "EmNativeMailboxManager.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Messaging;
+using namespace Tizen::Shell;
+
+ComposerPresentationModel* ComposerPresentationModel::__pInstance = null;
+
+ComposerPresentationModel::ComposerPresentationModel()
+       : __pEmailManager(null)
+{
+}
+
+ComposerPresentationModel::~ComposerPresentationModel()
+{
+       AppLogDebug("ENTER & EXIT");
+}
+
+result
+ComposerPresentationModel::Construct()
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       __pEmailManager = new (std::nothrow) EmailManager();
+       r = __pEmailManager->Construct(*this);
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+ComposerPresentationModel*
+ComposerPresentationModel::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pInstance;
+}
+
+void
+ComposerPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance != null)
+       {
+               __pInstance->CleanupInstance();
+               delete __pInstance;
+               __pInstance = null;
+       }
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pInstance = new (std::nothrow) ComposerPresentationModel();
+       r = __pInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInstance;
+               __pInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pEmailManager != null)
+       {
+               delete __pEmailManager;
+               __pEmailManager = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ComposerPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       // Empty implementation
+}
+
+result
+ComposerPresentationModel::SendMessage(const String& subject, const String& body, ArrayList* pToList, ArrayList* pCcList, ArrayList* pBccList, ArrayList* pAttachmentsList, ComposerNS::SendFailure& sendResult)
+{
+       AppLogDebug("ENTER, tofieldcount:(%d), ccfieldcount:(%d), bccfieldcount:(%d), subject:(%ls), body:(%ls)", pToList->GetCount(), pCcList->GetCount(), pBccList->GetCount(), subject.GetPointer(), body.GetPointer());
+
+       if (pAttachmentsList != null)
+       {
+               AppLogDebug("attachment count:(%d)", pAttachmentsList->GetCount());
+       }
+
+       int i;
+       result r = E_SUCCESS;
+
+       EmailMessage emailMessage;
+       RecipientList recipients;
+       String* pRecipients;
+       IEnumerator* pEnum = null;
+
+       r = emailMessage.SetSubject(subject);
+       TryCatch(r == E_SUCCESS, sendResult=ComposerNS::E_SUBJECT, "Subject size limit exceeded");
+
+       r = emailMessage.SetText(body);
+       TryCatch(r == E_SUCCESS, sendResult=ComposerNS::E_BODY, "Body text size limit exceeded");
+
+       if (pAttachmentsList && pAttachmentsList->GetCount())
+       {
+               pEnum = pAttachmentsList->GetEnumeratorN();
+               if (pEnum != null)
+               {
+                       while (!IsFailed(pEnum->MoveNext()))
+                       {
+                               EmailAttachment* pAttachment = static_cast<EmailAttachment*>(pEnum->GetCurrent());
+                               r = emailMessage.AddAttachment(pAttachment->GetAttachmentPath());
+                               TryCatch(r == E_SUCCESS, do{delete pEnum; sendResult=ComposerNS::E_ATTACHMENT;}while(0), "Attachment size limit exceeded");
+                       }
+                       delete pEnum;
+               }
+       }
+
+       for (i = 0; i < pToList->GetCount(); i++)
+       {
+               pRecipients = static_cast<String*>(pToList->GetAt(i));
+               r = recipients.Add(RECIPIENT_TYPE_TO, *pRecipients);
+               AppLogDebugIf(r != E_SUCCESS, "Add recipient:(%ls) failed with error:(%s)", pRecipients->GetPointer(), GetErrorMessage(r));
+       }
+
+       for (i = 0; i < pCcList->GetCount(); i++)
+       {
+               pRecipients = static_cast<String*>(pCcList->GetAt(i));
+               r = recipients.Add(RECIPIENT_TYPE_CC, *pRecipients);
+               AppLogDebugIf(r != E_SUCCESS, "Add recipient:(%ls) failed with error:(%s)", pRecipients->GetPointer(), GetErrorMessage(r));
+       }
+
+       for (i = 0; i < pBccList->GetCount(); i++)
+       {
+               pRecipients = static_cast<String*>(pBccList->GetAt(i));
+               r = recipients.Add(RECIPIENT_TYPE_BCC, *pRecipients);
+               AppLogDebugIf(r != E_SUCCESS, "Add recipient:(%ls) failed with error:(%s)", pRecipients->GetPointer(), GetErrorMessage(r));
+       }
+
+       r = __pEmailManager->Send(emailMessage, recipients, true);
+       TryCatch(r == E_SUCCESS, sendResult=ComposerNS::E_USERS, "Send failed with error:(%s)", GetErrorMessage(r));
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+ComposerPresentationModel::OnEmailMessageSent(result r)
+{
+       AppLogDebug("ENTER, result:(%s)", GetErrorMessage(r));
+
+       NotificationManager notiMgr;
+       result res = notiMgr.Construct();
+
+       if (res == E_SUCCESS)
+       {
+               if (r == E_SUCCESS)
+               {
+                       //notiMgr.Notify(L"Email sent successfully");
+                       notiMgr.NotifyTextMessage(L"Email sent successfully");
+               }
+               else
+               {
+                       //notiMgr.Notify(L"Email send failed");
+                       notiMgr.NotifyTextMessage(L"Email send failed");
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmDeleteSubjectAddress.cpp b/src/EmDeleteSubjectAddress.cpp
new file mode 100755 (executable)
index 0000000..45dae72
--- /dev/null
@@ -0,0 +1,434 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+* @file                       EmDeleteSubjectAddress.cpp
+* @brief                      DeleteSubjectAddress View provides the user to delete
+* addresses from which he/she doesn't want to receive mails.
+*
+*/
+
+#include <FApp.h>
+#include <FSystem.h>
+#include "EmDeleteSubjectAddress.h"
+#include "EmEmailSettingPresentationModel.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+// Constructor
+DeleteSubjectAddressForm::DeleteSubjectAddressForm(void)
+       : __numberOfSelectedItems(0)
+       , __fontSize(44.0f)
+       , __itemHeight(150.0f)
+       , __pFooter(null)
+       , __pBlockList(null)
+       , __pBlockListView(null)
+       , __pSelectedLabel(null)
+{
+       __sceneDifferentiator = -1;
+}
+
+// Destructor
+DeleteSubjectAddressForm::~DeleteSubjectAddressForm(void)
+{
+// Empty implementation
+}
+
+// Called to initialize the form
+bool
+DeleteSubjectAddressForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       r = Construct(IDL_DELETE_ADDRESS_SUBJECT_FORM);
+       TryCatch(r == E_SUCCESS, delete this, "Failed to Construct Form");
+       AppLogDebug("EXIT:r = %s", GetErrorMessage(r));
+       return true;
+
+CATCH:
+       r = false;
+       return r;
+}
+
+// Called after initializing the form
+result
+DeleteSubjectAddressForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       Header* pHeader = GetHeader();
+       SetFormBackEventListener(this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+
+       __pBlockListView = static_cast<ListView*>(GetControl(IDC_DELETE_ADDRESS_SUBJECT_LISTVIEW));
+       __pBlockListView->SetItemProvider(*this);
+       __pBlockListView->AddListViewItemEventListener(*this);
+
+       __pSelectedLabel = static_cast<Label*>(GetControl(IDC_DELETE_ADDRESS_SUBJECT_SELECTED_LABEL));
+
+       __pFooter = GetFooter();
+       __pFooter->AddActionEventListener(*this);
+       __pFooter->SetItemEnabled(0, false);
+
+       if (pHeader != null)
+       {
+               pHeader->AddActionEventListener(*this);
+       }
+
+       SetFontValues();
+
+       AppLogDebug("EXIT:r = %s", GetErrorMessage(r));
+       return r;
+}
+
+// Called when form is about to terminate
+result
+DeleteSubjectAddressForm::OnTerminating(void)
+{
+       result r = E_SUCCESS;
+
+       // TODO:
+       // Add your termination code here
+       return r;
+}
+
+// Called when an action is performed on an entity.
+void
+DeleteSubjectAddressForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+       EmailRule* pEmailRule;
+       String labelText;
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+
+       if (actionId == IDA_DELETE_SUBJECT_ADDRESS_FORM_FOOTER_DELETE)
+       {
+               int count = __pBlockList->GetCount();
+
+               for (int j = count - 1; j >= 0; j--)
+               {
+                       if (__pBlockListView->IsItemChecked(j))
+                       {
+                               __pBlockListView->SetItemChecked(j, false);
+                               pEmailRule = static_cast<EmailRule*>(__pBlockList->GetAt(j));
+                               EmailSettingsProvider::GetInstance()->DeleteRule(pEmailRule);
+                               __pBlockList->RemoveAt(j, true);
+                       }
+               }
+
+               if (__sceneDifferentiator == 0)
+               {
+                       labelText = Utils::GetResourceString(L"IDS_SELECTED_SUBJECT");
+               }
+               else
+               {
+                       labelText = Utils::GetResourceString(L"IDS_SELECTED_ADDRESS");
+               }
+
+               __numberOfSelectedItems = 0;
+               labelText.Append(L" (");
+               labelText.Append(__numberOfSelectedItems);
+               labelText.Append(L")");
+               __pFooter->SetItemEnabled(0, false);
+               __pSelectedLabel->SetText(labelText);
+               __pSelectedLabel->Invalidate(false);
+               __pBlockListView->UpdateList();
+               __pFooter->Invalidate(true);
+
+               if (__pBlockList->GetCount() == 0)
+               {
+                       pSceneManager->GoBackward((BackwardSceneTransition(IDSCN_EMAIL_BLOCK)));
+
+//                     if (__sceneDifferentiator == 1)
+//                     {
+//                             pSceneManager->GoBackward((BackwardSceneTransition(IDSCN_EMAIL_BLOCK)));
+//                     }
+//
+//                     if (__sceneDifferentiator == 0)
+//                     {
+//                             pSceneManager->GoBackward((BackwardSceneTransition(IDSCN_BLOCK_EMAIL_SUBJECT)));
+//                     }
+               }
+       }
+       else if (actionId == IDA_DELETE_SUBJECT_ADDRESS_FORM_SELECT_ALL)
+       {
+               int count = __pBlockList->GetCount();
+
+               if (__numberOfSelectedItems == count)
+               {
+                       for (int i = 0; i < count; i++)
+                       {
+                               __pBlockListView->SetItemChecked(i, false);
+                       }
+
+                       __numberOfSelectedItems = 0;
+               }
+               else
+               {
+                       for (int i = 0; i < count; i++)
+                       {
+                               __pBlockListView->SetItemChecked(i, true);
+                       }
+
+                       __numberOfSelectedItems = count;
+               }
+
+               if (__numberOfSelectedItems == 0)
+               {
+                       __pFooter->SetItemEnabled(0, false);
+               }
+               else
+               {
+                       __pFooter->SetItemEnabled(0, true);
+               }
+
+               if (__sceneDifferentiator == 0)
+               {
+                       labelText = Utils::GetResourceString(L"IDS_SELECTED_SUBJECT");
+               }
+               else
+               {
+                       labelText = Utils::GetResourceString(L"IDS_SELECTED_ADDRESS");
+               }
+
+               labelText.Append(L" (");
+               labelText.Append(__numberOfSelectedItems);
+               labelText.Append(L")");
+               __pSelectedLabel->SetText(labelText);
+               __pSelectedLabel->Invalidate(false);
+               __pBlockListView->Invalidate(true);
+               __pFooter->Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+// Called when form back is requested.
+void
+DeleteSubjectAddressForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+       pSceneManager->GoBackward((BackwardSceneTransition(IDSCN_EMAIL_BLOCK)));
+
+       AppLogDebug("EXIT");
+}
+
+// Called when scene is activated.
+void
+DeleteSubjectAddressForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                            const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+       Header* pHeader = GetHeader();
+       String headerText;
+       String labelText;
+       bool isAdressList = (static_cast<Boolean*>(pArgs->GetAt(0)))->ToBool();
+
+       headerText = Utils::GetResourceString(L"IDS_EMAIL_HEADER_DELETE");
+       headerText.Append(" ");
+
+       if (isAdressList == true)
+       {
+               headerText.Append(Utils::GetResourceString(L"IDS_EMAIL_BODY_ADDRESS"));
+               labelText = Utils::GetResourceString(L"IDS_SELECTED_ADDRESS");
+               __sceneDifferentiator = 1;
+               __pBlockList = EmailSettingsPresentationModel::GetInstance()->GetRulesList(EMAIL_FILTER_FROM);
+       }
+       else
+       {
+               headerText.Append(Utils::GetResourceString(L"IDS_EMAIL_BODY_SUBJECT"));
+               labelText = Utils::GetResourceString(L"IDS_SELECTED_SUBJECT");
+               __sceneDifferentiator = 0;
+               __pBlockList = EmailSettingsPresentationModel::GetInstance()->GetRulesList(EMAIL_FILTER_SUBJECT);
+       }
+
+       pHeader->SetTitleText(headerText);
+       labelText.Append(L" (");
+       labelText.Append(__numberOfSelectedItems);
+       labelText.Append(L")");
+       __pSelectedLabel->SetText(labelText);
+       __pBlockListView->UpdateList();
+       AppLogDebug("EXIT");
+}
+
+// Called when scene is Deactivated.
+void
+DeleteSubjectAddressForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                             const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       // TODO:
+       // Add your scene deactivate code here
+}
+
+// Called when Listview context item state changed.
+void
+DeleteSubjectAddressForm::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state)
+{
+       //Empty implementation
+}
+
+// Called when Listview item state changed.
+void
+DeleteSubjectAddressForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView &listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
+{
+       AppLogDebug("ENTER");
+       String labelText;
+       int count = __pBlockList->GetCount();
+
+       if (__pBlockListView->IsItemChecked(index))
+       {
+               __numberOfSelectedItems++;
+       }
+       else
+       {
+               __numberOfSelectedItems--;
+       }
+
+       if (__numberOfSelectedItems == 0)
+       {
+               __pFooter->SetItemEnabled(0, false);
+       }
+       else
+       {
+               __pFooter->SetItemEnabled(0, true);
+       }
+
+       if (__sceneDifferentiator == 0)
+       {
+               labelText = Utils::GetResourceString(L"IDS_SELECTED_SUBJECT");
+       }
+       else
+       {
+               labelText = Utils::GetResourceString(L"IDS_SELECTED_ADDRESS");
+       }
+
+       labelText.Append(L" (");
+       labelText.Append(__numberOfSelectedItems);
+       labelText.Append(L")");
+       __pSelectedLabel->SetText(labelText);
+       __pSelectedLabel->Invalidate(false);
+       __pBlockListView->Invalidate(true);
+       __pFooter->Invalidate(true);
+       AppLogDebug("EXIT");
+       return;
+}
+
+// Called when Listview item swept.
+void
+DeleteSubjectAddressForm::OnListViewItemSwept(Tizen::Ui::Controls::ListView &listView, int index, Tizen::Ui::Controls::SweepDirection direction)
+{
+       //Empty implementation
+}
+
+// Creates the Listview item
+Tizen::Ui::Controls::ListItemBase*
+DeleteSubjectAddressForm::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER");
+       CustomItem* pItem = new (std::nothrow) CustomItem();
+       EmailRule* pEmailRule;
+       String str;
+
+       pEmailRule = static_cast <EmailRule*>(__pBlockList->GetAt(index));
+       str = pEmailRule->GetValue();
+       pItem->Construct(Dimension(itemWidth, __itemHeight), LIST_ANNEX_STYLE_MARK);
+       pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - 2 * X_COMMON_CUSTOM_ITEM - pItem->GetAnnexWidth(LIST_ANNEX_STYLE_MARK) - LIST_ITEM_LEFT_MARGIN, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, str, __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+// Deletes the Listview item
+bool
+DeleteSubjectAddressForm::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null)
+       {
+               CustomItem* pTempItem = static_cast<CustomItem*>(pItem);
+               delete pTempItem;
+               pTempItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+//  Returns number of items to be created in the ListView.
+int
+DeleteSubjectAddressForm::GetItemCount(void)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT");
+
+       if (__pBlockList != null)
+       {
+               return __pBlockList->GetCount();
+       }
+       else
+       {
+               return 0;
+       }
+}
+
+void
+DeleteSubjectAddressForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmDetailForm.cpp b/src/EmDetailForm.cpp
new file mode 100755 (executable)
index 0000000..e41d372
--- /dev/null
@@ -0,0 +1,2218 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmDetailForm.cpp
+ * @brief      Email Detail view: Provides UI for viewing the Message
+ *
+ */
+
+#include "EmDetailForm.h"
+#include "EmSearchPresentationModel.h"
+#include "EmStateInfo.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Locales;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::Web::Controls;
+
+enum
+{
+       SUBJECT_ITEM_INDEX = 0,
+       TO_CC_ITEM_INDEX,
+       ATTACHMENT_ITEM_INDEX,
+       DOWNLOAD_BODY_ITEM_INDEX,
+       BODY_ITEM_INDEX
+};
+
+DetailForm::DetailForm(void)
+       : __waitForNoti(false)
+       , __attachmentsShowState(true)
+       , __showAttachmentPanel(false)
+       , __showToCcField(false)
+       , __forwardAfterDownload(false)
+       , __userCancelledAttachmentDownload(false)
+       , __isMessageBoxShown(false)
+       , __downloadAttachments(0)
+       , __starFlag(0)
+       , __arrowFlag(0)
+       , __indexValue(0)
+       , __mailId(-1)
+       , __viewType(0)
+       , __groupCount(0)
+       , __accountId(0)
+       , __mailboxId(0)
+       , __downloadBodyHandle(-1)
+       , __attachmentCount(0)
+       , __mailboxType(EMAIL_MAILBOX_TYPE_NONE)
+       , __urlStr(L"")
+       , __path(L"")
+       , __pAttachButton(null)
+       , __pReplyContextMenu(null)
+       , __pMoreOptionMenu(null)
+       , __pDownloadBodyPopup(null)
+       , __pDownloadAttachmentsPopup(null)
+       , __pTableView(null)
+       , __pWeb(null)
+       , __pAttachmentDownloadHandleMap(null)
+       , __pAttachmentPanel(null)
+       , __pPresentationModel(null)
+       , __pMail(null)
+       , __pToFieldPanel(null)
+       , __pCcFieldPanel(null)
+       , __pProgressPanel(null)
+       , __pDeleteConfirmationPopup(null)
+       , __pAttachmentDownloadFailedPopup(null)
+       , __pMoveOrDeleteFailedPopup(null)
+{
+       // Empty implementation
+}
+
+DetailForm::~DetailForm(void)
+{
+}
+
+bool
+DetailForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+
+       Construct(IDL_EMAIL_DETAIL_FORM);
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+result
+DetailForm::LoadIcons(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       __pExpandButtonOpenedIcon = AppResource::GetInstance()->GetBitmapN(IDB_BUTTON_EXPAND_OPENED);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get expand opened icon", GetErrorMessage(r));
+
+       __pExpandButtonClosedIcon = AppResource::GetInstance()->GetBitmapN(IDB_BUTTON_EXPAND_CLOSED);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get expand closed icon", GetErrorMessage(r));
+
+       __pExpandButtonOpenedPressedIcon = AppResource::GetInstance()->GetBitmapN(IDB_BUTTON_EXPAND_OPENED_PRESS);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get expand opened pressed icon", GetErrorMessage(r));
+
+       __pExpandButtonClosedPressedIcon = AppResource::GetInstance()->GetBitmapN(IDB_BUTTON_EXPAND_CLOSED_PRESS);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get expand closed pressed icon", GetErrorMessage(r));
+
+       __pAttachIcon = AppResource::GetInstance()->GetBitmapN(IDB_ATTACH_ICON);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get attach icon", GetErrorMessage(r));
+
+       __pPressedAttachIcon = AppResource::GetInstance()->GetBitmapN(IDB_ATTACH_ICON_PRESSED);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get pressed attach icon", GetErrorMessage(r));
+
+       __pBlockIcon = AppResource::GetInstance()->GetBitmapN(IDB_BLOCK);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get block icon", GetErrorMessage(r));
+
+       __pMoveIcon = AppResource::GetInstance()->GetBitmapN(IDB_MOVE);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get move icon", GetErrorMessage(r));
+
+       __pMarkReadUnreadIcon = AppResource::GetInstance()->GetBitmapN(IDB_MARK_UNREAD);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get mark unread icon", GetErrorMessage(r));
+
+       __pForwardIcon = AppResource::GetInstance()->GetBitmapN(IDB_FORWARD);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get mark unread icon", GetErrorMessage(r));
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+DetailForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       Dimension dim(W_VIEW_AS_POPUP, H_VIEW_AS_POPUP);
+       Rectangle tmpBounds;
+       Rectangle clientRect = GetClientAreaBounds();
+       int xPosition = 0;
+       int yPosition = 0;
+
+       AddOrientationEventListener(*this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       SetFormBackEventListener(this);
+       SetFormMenuEventListener(this);
+
+       __pDownloadBodyPopup = new (std::nothrow) ProgressPopup();
+       __pDownloadBodyPopup->Construct(true, false);
+       __pDownloadBodyPopup->SetTitleText(L"Downloading body...");
+       __pDownloadBodyPopup->AddProgressPopupEventListener(*this);
+
+       __pProgressPanel = new (std::nothrow) ProgressPopup();
+       __pProgressPanel->Construct(false, false);
+
+       r = LoadIcons();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to load icons");
+
+       GetFooter()->AddActionEventListener(*this);
+       tmpBounds = GetFooter()->GetButtonBounds(BUTTON_POSITION_LEFT);
+       yPosition = GetFooter()->GetPosition().y;;
+
+       // More PopUp: Creates the More Option Pop Up.
+       xPosition = tmpBounds.x+tmpBounds.width/2;
+
+       // Creates a Pop Up and shows the same when tapped on Reply Footer Item.
+       xPosition = ((720-(((tmpBounds.x*2)+tmpBounds.width)*2))/4)+(tmpBounds.x*2)+tmpBounds.width;
+       AppLogDebug("xPosition:(%d)", xPosition);
+       __pReplyContextMenu = new (std::nothrow) ContextMenu();
+       __pReplyContextMenu->Construct(Point(xPosition, yPosition), CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
+       __pReplyContextMenu->AddActionEventListener(*this);
+
+       __pTableView = static_cast<TableView*>(GetControl(L"IDC_TABLEVIEW"));
+       __pTableView->SetItemProvider(this);
+
+       __pMoreOptionMenu = new (std::nothrow) OptionMenu();
+       __pMoreOptionMenu->Construct();
+       __pMoreOptionMenu->AddActionEventListener(*this);
+       __pMoreOptionMenu->SetShowState(false);
+
+       InitDeleteConfirmationPopup();
+       InitAttachmentDownloadFailedPopup();
+       InitMoveOrDeleteFailedPopup();
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+DetailForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       delete __pExpandButtonOpenedIcon;
+       delete __pExpandButtonClosedIcon;
+       delete __pExpandButtonOpenedPressedIcon;
+       delete __pExpandButtonClosedPressedIcon;
+       delete __pAttachIcon;
+       delete __pPressedAttachIcon;
+
+       delete __pBlockIcon;
+       delete __pMoveIcon;
+       delete __pMarkReadUnreadIcon;
+
+       delete __pDownloadBodyPopup;
+       delete __pProgressPanel;
+
+       if (__pMoreOptionMenu != null)
+       {
+               __pMoreOptionMenu->RemoveAllItems();
+               delete __pMoreOptionMenu;
+               __pMoreOptionMenu = null;
+       }
+
+       if (__pReplyContextMenu != null)
+       {
+               __pReplyContextMenu->RemoveAllItems();
+               delete __pReplyContextMenu;
+               __pReplyContextMenu = null;
+       }
+
+       if (__pDownloadAttachmentsPopup != null)
+       {
+               delete __pDownloadAttachmentsPopup;
+               __pDownloadAttachmentsPopup = null;
+       }
+
+       if (__pDeleteConfirmationPopup != null)
+       {
+               __pDeleteConfirmationPopup->RemoveAllControls();
+               delete __pDeleteConfirmationPopup;
+               __pDeleteConfirmationPopup = null;
+       }
+
+       if (__pAttachmentDownloadFailedPopup != null)
+       {
+               __pAttachmentDownloadFailedPopup->RemoveAllControls();
+               delete __pAttachmentDownloadFailedPopup;
+               __pAttachmentDownloadFailedPopup = null;
+       }
+
+       if (__pMoveOrDeleteFailedPopup != null)
+       {
+               __pMoveOrDeleteFailedPopup->RemoveAllControls();
+               delete __pMoveOrDeleteFailedPopup;
+               __pMoveOrDeleteFailedPopup = null;
+       }
+//
+//     if (__pAttachmentPanel != null)
+//     {
+//             __pAttachmentPanel = null;
+//     }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+DetailForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER, actionId:(%d)", actionId);
+
+       String recFrom;
+       String token;
+       String delim(";");
+
+       if (actionId == IDA_EMAIL_DETAIL_FORM_FAVORITE_BUTTON)
+       {
+               if (__pPresentationModel->GetMailData(__mailId) != null)
+               {
+                       if (__pMail->isFlagsFlaggedField())
+                       {
+                               __pPresentationModel->SetFlag(__pPresentationModel->GetMailData(__pMail->GetMailId()), EMAIL_FLAGS_FLAGGED_FIELD, false, true);
+                               __pMail->SetFlagsFlaggedField(false);
+                               __pFavIcon = Utils::GetDetailFormFavoriteIconOff();
+                               __pTableView->RefreshItem(SUBJECT_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       }
+                       else
+                       {
+                               __pPresentationModel->SetFlag(__pPresentationModel->GetMailData(__pMail->GetMailId()), EMAIL_FLAGS_FLAGGED_FIELD, true, true);
+                               __pMail->SetFlagsFlaggedField(true);
+                               __pFavIcon = Utils::GetDetailFormFavoriteIconOn();
+                               __pTableView->RefreshItem(SUBJECT_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       }
+               }
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_TO_CC_EXPAND_COLLAPSE)
+       {
+               if (__showToCcField == true)
+               {
+                       __showToCcField = false;
+               }
+               else
+               {
+                       __showToCcField = true;
+               }
+
+               __pTableView->RefreshItem(TO_CC_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_ATTACHMENT_EXPAND_COLLAPSE)
+       {
+               if (__showAttachmentPanel)
+               {
+                       __showAttachmentPanel = false;
+               }
+               else
+               {
+                       __showAttachmentPanel = true;
+               }
+
+               __pTableView->RefreshItem(ATTACHMENT_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_SENDEMAIL_POPUP || actionId == IDA_EMAIL_DETAIL_FORM_BLOCK_POPUP)
+       {
+               HidePopup();
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_FOOTER_DELETE)
+       {
+               EmailApp::GetInstance()->SetShowDeletePopupStatus(EMAIL_FOOTER_DELETE, __pMail->GetMailId());
+
+               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_Q"));
+               __pDeleteConfirmationPopup->SetShowState(true);
+               __pDeleteConfirmationPopup->Show();
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_FOOTER_REPLY)
+       {
+               PopulateReplyContextMenu();
+               __pReplyContextMenu->SetShowState(true);
+               __pReplyContextMenu->Show();
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_REPLYSENDER_POPUP || actionId == IDA_EMAIL_DETAIL_FORM_REPLYALL_POPUP)
+       {
+               __pReplyContextMenu->SetShowState(false);
+               Invalidate(true);
+
+               if (__pMail != null)
+               {
+                       ArrayList* pArgs = null;
+                       EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(__pMail->GetMailId());
+
+                       if (pDetailedMail != null)
+                       {
+                               pArgs = new (std::nothrow) ArrayList();
+                               if (pArgs != null && E_SUCCESS == pArgs->Construct())
+                               {
+                                       String emailId;
+                                       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                                       pStateInfo->accountId = __accountId;
+                                       pStateInfo->mailboxId = __mailboxId;
+                                       pStateInfo->pPresentationModel = __pPresentationModel;
+                                       pStateInfo->mailboxType = __mailboxType;
+                                       pStateInfo->mailId = __mailId;
+
+                                       if (actionId == IDA_EMAIL_DETAIL_FORM_REPLYSENDER_POPUP)
+                                       {
+                                               if (__mailboxType == EMAIL_MAILBOX_TYPE_OUTBOX || __mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX)
+                                               {
+                                                       String emailIds;
+
+                                                       Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressTo(), emailIds);
+                                                       pStateInfo->toFieldValue = emailIds;
+
+                                                       Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressCc(), emailIds);
+                                                       pStateInfo->ccFieldValue = emailIds;
+                                               }
+                                               else
+                                               {
+                                                       pStateInfo->toFieldValue = pDetailedMail->GetEmailAddressSender();
+                                                       pStateInfo->ccFieldValue = L"";
+                                               }
+                                       }
+                                       else if (actionId == IDA_EMAIL_DETAIL_FORM_REPLYALL_POPUP)
+                                       {
+                                               String emailIds;
+
+                                               Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressTo(), emailIds);
+                                               //                                      pArgs->Add(new (std::nothrow) String(emailIds)); // to field
+                                               pStateInfo->toFieldValue = emailIds;
+
+                                               Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressCc(), emailIds);
+                                               //                                      pArgs->Add(new (std::nothrow) String(emailIds)); // cc field
+                                               pStateInfo->ccFieldValue = emailIds;
+                                       }
+
+                                       //                              pArgs->Add(new (std::nothrow) String(L"")); // bcc field
+                                       pStateInfo->bccFieldValue = L"";
+
+                                       String subject = L"Re: ";
+                                       subject.Append(pDetailedMail->GetSubject());
+                                       //                              pArgs->Add(subject); // subject field
+                                       pStateInfo->subjectFieldValue = subject;
+
+                                       EmailAccount* pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__accountId);
+                                       String body = L"";
+
+                                       if (pAccount->GetOptions()->GetReplyWithBody() == true)
+                                       {
+                                               body.Append(L"\n\n----Original Message----\n");
+                                               body.Append(L"From: ");
+                                               body.Append(pDetailedMail->GetFullAddressFrom());
+                                               body.Append(L"\nSent: ");
+
+                                               DateTimeFormatter* pDateFormatter = Utils::GetDetailFormTimeFormatter();
+                                               String dateString;
+                                               pDateFormatter->Format(__pMail->GetLocalDateTime(), dateString);
+                                               body.Append(dateString);
+                                               body.Append(L"\nTo: ");
+                                               Utils::ExtractEmailIdFromFullAddress(pDetailedMail->GetFullAddressTo(), emailId);
+                                               body.Append(emailId);
+                                               body.Append(L"\nSubject: ");
+                                               body.Append(pDetailedMail->GetSubject());
+
+                                               String mailBody;
+                                               File file;
+                                               result r = file.Construct(pDetailedMail->GetFilePathPlain(), L"r");
+                                               if (r == E_SUCCESS)
+                                               {
+                                                       while (file.Read(mailBody) == E_SUCCESS)
+                                                       {
+                                                               body.Append(mailBody);
+                                                       }
+                                               }
+                                       }
+
+                                       //                              pArgs->Add(body); // body field
+                                       //                              pArgs->Add(new String(L"")); // attachments field
+
+                                       pStateInfo->bodyFieldValue = body;
+                                       pStateInfo->attachmentsPath = L"";
+
+                                       pArgs->Add(pStateInfo);
+                               }
+
+                               delete pDetailedMail;
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER), pArgs);
+                       }
+               }
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_MARK_UNREAD_POPUP)
+       {
+               if (__pPresentationModel->GetMailData(__mailId) != null)
+               {
+                       __pPresentationModel->SetFlag(__pPresentationModel->GetMailData(__pMail->GetMailId()), EMAIL_FLAGS_SEEN_FIELD, false, true);
+                       __pMail->SetFlagsSeenField(false);
+               }
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_MARK_READ_POPUP)
+       {
+               if (__pPresentationModel->GetMailData(__mailId) != null)
+               {
+                       __pPresentationModel->SetFlag(__pPresentationModel->GetMailData(__pMail->GetMailId()), EMAIL_FLAGS_SEEN_FIELD, true, true);
+                       __pMail->SetFlagsSeenField(true);
+               }
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_MOVE_POPUP)
+       {
+               if (__pMail != null)
+               {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+
+                       if (pArgs != null && E_SUCCESS == pArgs->Construct())
+                       {
+                               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                               pStateInfo->accountId = __pMail->GetAccountId();
+                               pStateInfo->mailboxId = __mailboxId;
+                               pStateInfo->pPresentationModel = __pPresentationModel;
+                               pStateInfo->mailboxType = __pMail->GetMailboxType();
+                               pStateInfo->mailId = __mailId;
+
+                               pArgs->Add(pStateInfo);
+                       }
+                       // goes to the move mail form and passes args containing mailbox type and selected mails list
+                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_MOVEMAIL), pArgs);
+               }
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_BLOCK1_POPUP)
+       {
+               if (__pMail != null)
+               {
+                       EmailRule* pRule = new (std::nothrow) EmailRule();
+                       String address = __pMail->GetEmailAddressSender();
+
+                       if (pRule != null)
+                       {
+                               pRule->SetAccountId(0);
+                               pRule->SetFaction(EMAIL_FILTER_BLOCK);
+                               pRule->SetType(EMAIL_FILTER_FROM);
+                               pRule->SetValue(address);
+                               pRule->SetFlag1(1); // Set it to 'ON'
+                               pRule->SetFlag2(RULE_TYPE_INCLUDES);
+                               EmailSettingsPresentationModel::GetInstance()->AddRule(pRule);
+                               delete pRule;
+                               pRule = null;
+                       }
+
+                       __waitForNoti = true;
+                       int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(__pMail->GetAccountId(), EMAIL_MAILBOX_TYPE_SPAMBOX);
+                       __pPresentationModel->MoveMail(__pMail->GetMailId(), mailboxId);
+                       ShowPopUp(Utils::GetResourceString(L"IDS_BLOCKING"));
+               }
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_FORWARD_POPUP)
+       {
+               if (__pMail != null)
+               {
+                       ArrayList* pArgs = null;
+
+                       EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(__pMail->GetMailId());
+                       EmailAccount* pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__accountId);
+
+                       if (pDetailedMail != null && pDetailedMail->GetHasAttachment() == true && pAccount->GetOptions()->GetForwardWithFiles() == true && IsAttachmentDownload(pDetailedMail) == false)
+                       {
+                               __forwardAfterDownload = true;
+                               DownloadAllAttachments(pDetailedMail);
+                       }
+                       else if (pDetailedMail != null)
+                       {
+                               pArgs = new (std::nothrow) ArrayList();
+                               if (pArgs != null && E_SUCCESS == pArgs->Construct())
+                               {
+                                       String emailId;
+                                       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                                       pStateInfo->accountId = __accountId;
+                                       pStateInfo->mailboxId = __mailboxId;
+                                       pStateInfo->pPresentationModel = __pPresentationModel;
+                                       pStateInfo->mailboxType = __mailboxType;
+                                       pStateInfo->mailId = __mailId;
+                                       pStateInfo->toFieldValue = L"";
+                                       pStateInfo->ccFieldValue = L"";
+                                       pStateInfo->bccFieldValue = L"";
+
+                                       String subject = L"Fwd: ";
+                                       subject.Append(pDetailedMail->GetSubject());
+                                       pStateInfo->subjectFieldValue = subject;
+
+                                       String body = L"\n\n----Original Message----\n";
+                                       body.Append(L"From: ");
+                                       body.Append(pDetailedMail->GetFullAddressFrom());
+                                       body.Append(L"\nSent: ");
+
+                                       DateTimeFormatter* pDateFormatter = Utils::GetDetailFormTimeFormatter();
+                                       String dateString;
+                                       pDateFormatter->Format(__pMail->GetLocalDateTime(), dateString);
+                                       body.Append(dateString);
+                                       body.Append(L"\nTo: ");
+                                       Utils::ExtractEmailIdFromFullAddress(pDetailedMail->GetFullAddressTo(), emailId);
+                                       body.Append(emailId);
+                                       body.Append(L"\nSubject: ");
+                                       body.Append(pDetailedMail->GetSubject());
+                                       body.Append(L"\n");
+
+                                       String mailBody;
+                                       File file;
+                                       result r = file.Construct(pDetailedMail->GetFilePathPlain(), L"r");
+                                       if (r == E_SUCCESS)
+                                       {
+                                               while (file.Read(mailBody) == E_SUCCESS)
+                                               {
+                                                       body.Append(mailBody);
+                                               }
+                                       }
+                                       pStateInfo->bodyFieldValue = body;
+
+                                       String attachmentStr = L"";
+
+                                       if (pDetailedMail->GetHasAttachment() == true && pAccount->GetOptions()->GetForwardWithFiles() == true)
+                                       {
+                                               ArrayList* pAttachments = __pPresentationModel->GetAllAttachmentListN(pDetailedMail->GetMailId());
+                                               for (int i = 0; i < pAttachments->GetCount(); i++)
+                                               {
+                                                       attachmentStr.Append(static_cast<EmailAttachment*>(pAttachments->GetAt(i))->GetAttachmentPath());
+                                                       attachmentStr.Append(';');
+                                               }
+                                       }
+
+                                       pStateInfo->attachmentsPath = attachmentStr;
+
+                                       pArgs->Add(pStateInfo);
+                               }
+
+                               delete pDetailedMail;
+
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER), pArgs);
+                       }
+               }
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_DELETE_CONFIRMATION_NO)
+       {
+               EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+               __pDeleteConfirmationPopup->SetShowState(false);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_DELETE_CONFIRMATION_YES)
+       {
+               int mailId;
+               DeletionMode mode;
+
+               __pDeleteConfirmationPopup->SetShowState(false);
+               Invalidate(true);
+
+               if (EmailApp::GetInstance()->GetShowDeletePopupStatus(mailId, mode) == true)
+               {
+                       if (mode == EMAIL_FOOTER_DELETE || mode == EMAIL_SWIPE_DELETE)
+                       {
+                               EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+                               EmailMessageListItem* pMail = __pPresentationModel->GetMailData(__mailId);
+                               int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(__pMail->GetAccountId(), EMAIL_MAILBOX_TYPE_TRASH);
+                               email_mailbox_type_e mailboxType = __pMail->GetMailboxType();
+
+                               __waitForNoti = true;
+
+                               __pPresentationModel->RemoveMailFromSelectedMailList(pMail);
+
+                               if (mailboxType == EMAIL_MAILBOX_TYPE_TRASH)
+                               {
+                                       __pPresentationModel->DeleteMail(__mailId, false);
+                               }
+                               else
+                               {
+                                       __pPresentationModel->MoveMail(__pMail->GetMailId(), mailboxId);
+                               }
+
+                               ShowPopUp(Utils::GetResourceString(L"IDS_EMAIL_POP_DELETING_ING"));
+                       }
+               }
+       }
+       else if (actionId == IDA_EMAIL_DETAIL_FORM_DOWNLOAD_BUTTON)
+       {
+               ShowDownloadBodyPopup();
+
+               __pPresentationModel->DownloadBody(__pMail->GetMailId(), false, __downloadBodyHandle);
+               EmailApp::GetInstance()->SetDownloadBodyPopupStatus(__pMail->GetAccountId(), __downloadBodyHandle);
+       }
+       else if (actionId == IDA_ATTACHMENT_DOWNLOAD_FAILED_OK)
+       {
+               EmailApp::GetInstance()->SetDownloadFailedPopupStatus(false);
+
+               __pAttachmentDownloadFailedPopup->SetShowState(false);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_MOVE_OR_DELETE_FAILED_OK)
+       {
+               EmailApp::GetInstance()->ClearMoveOrDeleteFailedPopupStatus();
+
+               __pMoveOrDeleteFailedPopup->SetShowState(false);
+               Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+bool
+DetailForm::IsAttachmentDownload(const EmailMessageItem* pDetailedMail)
+{
+       AppLogDebug("ENTER, pDetailedMsg:(%x)", pDetailedMail);
+       AppLogDebugIf(pDetailedMail != null, "mailId:(%d)", pDetailedMail->GetMailId());
+
+       ArrayList* pAttachments = __pPresentationModel->GetAllAttachmentListN(pDetailedMail->GetMailId());
+
+       for (int i=0; i<pAttachments->GetCount(); i++)
+       {
+               EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(pAttachments->GetAt(i));
+
+               if (pTmpAttachment->GetSaveStatus() == false)
+               {
+                       pAttachments->RemoveAll(true);
+                       delete pAttachments;
+
+                       AppLogDebug("EXIT, returning false");
+                       return false;
+               }
+       }
+
+       pAttachments->RemoveAll(true);
+       delete pAttachments;
+
+       AppLogDebug("EXIT, returning true");
+       return true;
+}
+
+void
+DetailForm::DownloadAllAttachments(const EmailMessageItem* pDetailedMail)
+{
+       AppLogDebug("ENTER, pDetailedMsg:(%x)", pDetailedMail);
+       AppLogDebugIf(pDetailedMail != null, "mailId:(%d)", pDetailedMail->GetMailId());
+
+       result r = E_SUCCESS;
+
+       __downloadAttachments = 0;
+
+       if (__pDownloadAttachmentsPopup == null)
+       {
+               __pDownloadAttachmentsPopup = new (std::nothrow) ProgressPopup();
+               __pDownloadAttachmentsPopup->Construct(true, false);
+               __pDownloadAttachmentsPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING"));
+               __pDownloadAttachmentsPopup->AddProgressPopupEventListener(*this);
+       }
+
+       __pDownloadAttachmentsPopup->SetShowState(true);
+       __pDownloadAttachmentsPopup->Show();
+       EmailApp::GetInstance()->SetDownloadAttachmentPopupStatus(pDetailedMail->GetMailId(), EMAIL_FOOTER_FORWARD);
+
+       if (__pAttachmentDownloadHandleMap == null)
+       {
+               __pAttachmentDownloadHandleMap = new (std::nothrow) HashMap();
+               __pAttachmentDownloadHandleMap->Construct();
+       }
+
+       __pAttachmentDownloadHandleMap->RemoveAll(true);
+
+       ArrayList* pAttachments = __pPresentationModel->GetAllAttachmentListN(pDetailedMail->GetMailId());
+
+       for (int i=0; i<pAttachments->GetCount(); i++)
+       {
+               int handle;
+               EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(pAttachments->GetAt(i));
+
+               if (pTmpAttachment->GetSaveStatus() == false)
+               {
+                       __downloadAttachments++;
+                       r = __pPresentationModel->DownloadAttachment(pDetailedMail->GetMailId(), i+1, handle);
+
+                       if (r == E_SUCCESS)
+                       {
+                               AppLogDebug("Adding accountId:(%d), handle:(%d) to map", pDetailedMail->GetAccountId(), handle);
+                               r = __pAttachmentDownloadHandleMap->Add(new (std::nothrow) Integer(pDetailedMail->GetAccountId()), new (std::nothrow) Integer(handle));
+                               AppLogDebugIf(r != E_SUCCESS, "Failed to add attachment download handle to map");
+                       }
+               }
+       }
+
+       pAttachments->RemoveAll(true);
+       delete pAttachments;
+
+       AppLogDebug("EXIT, download attachment count:(%d)", __downloadAttachments);
+}
+
+void
+DetailForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER");
+       FloatRectangle clientRect = GetClientAreaBoundsF();
+       Rectangle client = GetClientAreaBounds();
+
+       if (__pToFieldPanel != null)
+       {
+               __pToFieldPanel->SetSize(client.width, H_ATTACHMENT * 1.0);
+       }
+
+       if (__pCcFieldPanel != null)
+       {
+               __pCcFieldPanel->SetSize(client.width, H_ATTACHMENT * 1.0);
+       }
+
+//     if (__pWeb != null)
+//     {
+//             if (clientRect.height - 244.0 > __pWeb->GetHeightF())
+//             {
+//                     __pWeb->SetSize(clientRect.width, clientRect.height - 244);
+//             }
+//             else
+//             {
+//                     __pWeb->SetSize(clientRect.width,  __pWeb->GetHeightF());
+//             }
+//     }
+
+       __pTableView->RefreshItem(TO_CC_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
+       __pTableView->RefreshItem(SUBJECT_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       __pTableView->RefreshItem(BODY_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
+       if (__pAttachmentPanel != null)
+       {
+               __pAttachmentPanel->SetSize(clientRect.width - 10, __pAttachmentPanel->GetHeightF());
+               __pAttachmentPanel->UpdateAttachmentList();
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+DetailForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+       pStateInfo->accountId = __accountId;
+       pStateInfo->mailboxId = __mailboxId;
+       pStateInfo->pPresentationModel = __pPresentationModel;
+       pStateInfo->mailboxType = __mailboxType;
+
+       pArgs->Add(pStateInfo);
+       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pArgs);
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::OnFormMenuRequested(Form& source)
+{
+       AppLogDebug("ENTER");
+
+       if (__pMail != null)
+       {
+               PopulateMoreOptionMenu();
+               __pMoreOptionMenu->SetShowState(true);
+               __pMoreOptionMenu->Show();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       int mailId;
+       DeletionMode mode;
+
+       Rectangle clientRect = GetClientAreaBounds();
+
+       __waitForNoti = false;
+       __showAttachmentPanel = false;
+       __showToCcField = false;
+
+       if (pArgs != null)
+       {
+               String subjectText;
+               String token;
+
+               if (pArgs->GetCount() >= 1)
+               {
+                       StateInfo* pStateInfoObj = static_cast<StateInfo*>(pArgs->GetAt(0));
+
+                       __accountId = pStateInfoObj->accountId;
+                       __mailboxId = pStateInfoObj->mailboxId;
+                       __pPresentationModel = pStateInfoObj->pPresentationModel;
+                       __mailboxType = pStateInfoObj->mailboxType;
+                       __mailId = pStateInfoObj->mailId;
+               }
+
+               if (__pPresentationModel != null)
+               {
+                       __pMail = __pPresentationModel->GetCompleteMailDataN(__mailId);
+               }
+
+               if (__pMail != null)
+               {
+                       if (__pMail->GetFullAddressCc().IsEmpty() == true || __mailboxType == EMAIL_MAILBOX_TYPE_OUTBOX || __mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX)
+                       {
+                               FooterItem replyButtonItem;
+                               replyButtonItem.Construct(IDA_EMAIL_DETAIL_FORM_REPLYSENDER_POPUP);
+                               replyButtonItem.SetText(Utils::GetResourceString(L"IDS_EMAIL_OPT_REPLY"));
+
+                               GetFooter()->SetItemAt(0, replyButtonItem);
+                               GetFooter()->Invalidate(true);
+                       }
+
+                       if (__pMail->isFlagsFlaggedField())
+                       {
+                               __pFavIcon = Utils::GetDetailFormFavoriteIconOn();
+                       }
+                       else
+                       {
+                               __pFavIcon = Utils::GetDetailFormFavoriteIconOff();
+                       }
+               }
+               else
+               {
+                       int modRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Failed to get data", MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modRes);
+
+                       GetFooter()->SetEnabled(false);
+               }
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+
+               __pTableView->UpdateTableView();
+
+               if (__pMail != null)
+               {
+                       String url;
+
+                       if (__pMail->GetFilePathHtml().IsEmpty() == false)
+                       {
+                               url.Append(__pMail->GetFilePathHtml());
+                       }
+                       else
+                       {
+                               url.Append(__pMail->GetFilePathPlain());
+                       }
+
+                       if (url.IsEmpty() == false && __pWeb != null)
+                       {
+                               url.Insert(L"file://", 0);
+                               AppLogDebug("Loading url:(%ls)", url.GetPointer());
+                               __pWeb->LoadUrl(url);
+                               AppLogDebug("Result of LoadUrl:(%s)", url.GetPointer(), GetErrorMessage(GetLastResult()));
+                       }
+               }
+
+               Invalidate(true);
+       }
+
+//     RelativeLayout layout;
+//     layout.Construct();
+//     __pAttachmentPanel = new (std::nothrow) AttachmentPanel(__pPresentationModel);
+//     __pAttachmentPanel->Construct(layout, Rectangle(5, 5, GetClientAreaBounds().width - 20,2 *H_ATTACHMENT + 20));
+//     __pAttachmentPanel->SetAttachmentPanelListener(this);
+//     __pAttachmentPanel->SetDetailView(true);
+
+       if (EmailApp::GetInstance()->GetShowDeletePopupStatus(mailId, mode) == true)
+       {
+               bool hideDelPopup = false;
+
+               if (mode == EMAIL_DELETE_ALL)
+               {
+                       if (__pPresentationModel->GetItemCount(0) > 0)
+                       {
+                               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_EMAIL_POP_DELETE_ALL_Q"));
+                               __pDeleteConfirmationPopup->SetShowState(true);
+                               __pDeleteConfirmationPopup->Show();
+                       }
+                       else
+                       {
+                               hideDelPopup = true;
+                       }
+               }
+               else if (mode == EMAIL_SELECTED_DELETE)
+               {
+                       if (__pPresentationModel->CheckIfSelectedMailExists() == true)
+                       {
+                               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_Q"));
+                               __pDeleteConfirmationPopup->SetShowState(true);
+                               __pDeleteConfirmationPopup->Show();
+                       }
+                       else
+                       {
+                               hideDelPopup = true;
+                       }
+               }
+               else
+               {
+                       if (mailId == __pMail->GetMailId())
+                       {
+                               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_Q"));
+
+                               __pDeleteConfirmationPopup->SetShowState(true);
+                               __pDeleteConfirmationPopup->Show();
+                       }
+                       else
+                       {
+                               hideDelPopup = true;
+                       }
+               }
+
+               if (hideDelPopup == true)
+               {
+                       EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+               }
+       }
+
+       int accountId, handle;
+       if (EmailApp::GetInstance()->GetDownloadBodyPopupStatus(accountId, handle) == true)
+       {
+               ShowDownloadBodyPopup();
+               __downloadBodyHandle = handle;
+       }
+
+       int forwardMailId;
+       DownloadInitiatorMode forwardMode;
+
+       if (EmailApp::GetInstance()->GetDownloadAttachmentPopupStatus(forwardMailId, forwardMode) == true)
+       {
+               if (forwardMode == EMAIL_FOOTER_FORWARD)
+               {
+                       EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(forwardMailId);
+
+                       if (pDetailedMail != null)
+                       {
+                               DownloadAllAttachments(pDetailedMail);
+                               __forwardAfterDownload = true;
+                       }
+               }
+       }
+
+       if (EmailApp::GetInstance()->GetDownloadFailedPopupStatus() == true)
+       {
+               EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+               __pAttachmentDownloadFailedPopup->SetShowState(true);
+               __pAttachmentDownloadFailedPopup->Show();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                  const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       // TODO:
+       // Add your scene deactivate code here
+}
+
+int
+DetailForm::GetItemCount(void)
+{
+       return 5;
+}
+
+TableViewItem*
+DetailForm::CreateItem(int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, itemIndex:(%d), itemWidth:(%d)", itemIndex, itemWidth);
+
+       int subjectLabelHeight;
+       Color bgColor;
+       Label* pDividerLabel = null;
+       Label* pDividerLabel1 = null;
+       TableViewItem* pItem = new (std::nothrow) TableViewItem();
+       RelativeLayout layout;
+       layout.Construct();
+
+       switch (itemIndex)
+       {
+       case SUBJECT_ITEM_INDEX:
+               //subject area
+               pItem->Construct(layout, Dimension(itemWidth, 234));
+               bgColor = pItem->GetBackgroundColor();
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
+
+               if (__pMail != null)
+               {
+                       int xPos, yPos;
+                       Dimension dim;
+                       Label* pSubjectLabel = new (std::nothrow) Label();
+                       Font font;
+                       font.Construct(FONT_STYLE_BOLD, FONT_SIZE_INBOX_TOP_MAIN);
+                       font.GetTextExtent(__pMail->GetSubject(), __pMail->GetSubject().GetLength(), dim);
+
+                       if (dim.width > (itemWidth-22-74))
+                       {
+                               int height =0;
+                               height = dim.width/(itemWidth-22-74);
+                               height++;
+                               subjectLabelHeight = height * H_SUBJECTLABEL;
+                               Rectangle rect = pItem->GetBounds();
+                               rect.height = rect.height+ subjectLabelHeight- H_SUBJECTLABEL;
+                               pItem->SetBounds(rect);
+                       }
+                       else
+                       {
+                               subjectLabelHeight = H_SUBJECTLABEL;
+                       }
+
+                       pSubjectLabel->Construct(Rectangle(X_SUBJECTLABEL, Y_SUBJECTLABEL, itemWidth-22-74, subjectLabelHeight), L"");
+                       pSubjectLabel->SetTextColor(INBOX_TOP_MAIN_TEXT_COLOR);
+                       pSubjectLabel->SetTextConfig(FONT_SIZE_INBOX_TOP_MAIN, LABEL_TEXT_STYLE_BOLD);
+                       pSubjectLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pSubjectLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pSubjectLabel->SetText(__pMail->GetSubject());
+                       pSubjectLabel->SetName(L"subjectlabel");
+                       pItem->AddControl(pSubjectLabel);
+
+                       Label*pSenderLabel = new (std::nothrow) Label();
+                       pSenderLabel->Construct(Rectangle(X_SENDERLABEL, Y_SUBJECTLABEL+subjectLabelHeight+Y_SENDERLABEL_OFFSET_FROM_SUBJECT_LABEL, itemWidth-26-74-162-26-X_SENDERLABEL, H_SENDERLABEL), L"");
+                       pSenderLabel->SetTextColor(INBOX_TOP_MAIN_TEXT_COLOR);
+                       pSenderLabel->SetTextConfig(FONT_SIZE_INBOX_TOP_NAME, LABEL_TEXT_STYLE_BOLD);
+                       pSenderLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pSenderLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pSenderLabel->SetText(__pMail->GetAliasSender());
+                       pItem->AddControl(pSenderLabel);
+
+                       Label* pDateTimeLabel = new (std::nothrow) Label();
+                       pDateTimeLabel->Construct(Rectangle(X_DATETIMELABEL, Y_SUBJECTLABEL+subjectLabelHeight+Y_DATETIMELABEL_OFFSET_FROM_SUBJECT_LABEL, pSenderLabel->GetWidth(), H_DATETIMELABEL), L"");
+                       pDateTimeLabel->SetTextColor(COLOR_DATE_TIME_LABEL_TEXT);
+                       pDateTimeLabel->SetTextConfig(FONT_SIZE_DATETIME_LABEL, LABEL_TEXT_STYLE_NORMAL);
+                       pDateTimeLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pDateTimeLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+
+                       DateTimeFormatter* pDateFormatter = Utils::GetDetailFormTimeFormatter();
+                       String dateString;
+                       pDateFormatter->Format(__pMail->GetLocalDateTime(), dateString);
+                       pDateTimeLabel->SetText(dateString);
+                       pItem->AddControl(pDateTimeLabel);
+
+                       __pFavoriteButton = new (std::nothrow) Button();
+                       __pFavoriteButton->Construct(Rectangle(itemWidth-26-74, Y_SUBJECTLABEL + ((subjectLabelHeight - H_STAROFFLABEL) / 2), W_STAROFFLABEL, H_STAROFFLABEL), L"");
+                       __pFavoriteButton->SetColor(BUTTON_STATUS_PRESSED, __pFavoriteButton->GetColor(BUTTON_STATUS_NORMAL));
+                       __pFavoriteButton->SetNormalBackgroundBitmap(*__pFavIcon);
+                       __pFavoriteButton->SetPressedBackgroundBitmap(*__pFavIcon);
+                       __pFavoriteButton->SetActionId(IDA_EMAIL_DETAIL_FORM_FAVORITE_BUTTON);
+                       __pFavoriteButton->AddActionEventListener(*this);
+                       pItem->AddControl(__pFavoriteButton);
+
+                       if (__pMail->GetHasAttachment() == true)
+                       {
+                               String attachmentText;
+                               attachmentText.Append(__attachmentCount);
+
+                               __pAttachButton = new (std::nothrow) Button();
+                               __pAttachButton->Construct(Rectangle(itemWidth-26-74-100,30+subjectLabelHeight+20,100,74), attachmentText);
+                               __pAttachButton->SetActionId(IDA_EMAIL_DETAIL_FORM_ATTACHMENT_EXPAND_COLLAPSE);
+                               __pAttachButton->SetTextHorizontalAlignment(ALIGNMENT_RIGHT);
+                               __pAttachButton->AddActionEventListener(*this);
+                               __pAttachButton->SetNormalBitmap(Point(X_COMMON_CUSTOM_ITEM, (__pAttachButton->GetHeight()-__pAttachIcon->GetHeight())/2), *__pAttachIcon);
+                               __pAttachButton->SetPressedBitmap(Point(X_COMMON_CUSTOM_ITEM, (__pAttachButton->GetHeight()-__pPressedAttachIcon->GetHeight())/2), *__pPressedAttachIcon);
+                               pItem->AddControl(__pAttachButton);
+                       }
+
+                       __pToCcExpandButton = new (std::nothrow) Button();
+                       __pToCcExpandButton->Construct(Rectangle(itemWidth-26-74,30+subjectLabelHeight+20,74,74), L"");
+                       __pToCcExpandButton->SetActionId(IDA_EMAIL_DETAIL_FORM_TO_CC_EXPAND_COLLAPSE);
+                       __pToCcExpandButton->AddActionEventListener(*this);
+                       pItem->AddControl(__pToCcExpandButton);
+
+                       xPos = (__pToCcExpandButton->GetWidth()-__pExpandButtonClosedIcon->GetWidth())/2;
+                       yPos = (__pToCcExpandButton->GetHeight()-__pExpandButtonClosedIcon->GetHeight())/2;
+
+                       __pToCcExpandButton->SetNormalBitmap(Point(xPos, yPos), *__pExpandButtonClosedIcon);
+                       __pToCcExpandButton->SetPressedBitmap(Point(xPos, yPos), *__pExpandButtonClosedPressedIcon);
+
+                       pDividerLabel = new (std::nothrow) Label();
+                       pDividerLabel->Construct(Rectangle(0,233,itemWidth,1), L"");
+                       pDividerLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_GREY));
+                       pDividerLabel->SetName(L"DIV");
+                       pItem->AddControl(pDividerLabel);
+
+                       layout.SetMargin(*pSubjectLabel, X_SUBJECTLABEL, 0, Y_SUBJECTLABEL, 0);
+                       layout.SetRelation(*pSubjectLabel, pItem, RECT_EDGE_RELATION_TOP_TO_TOP);
+                       layout.SetRelation(*pSubjectLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*pSubjectLabel, __pFavoriteButton, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+
+                       layout.SetMargin(*pSenderLabel, X_SENDERLABEL, 0, Y_SENDERLABEL_OFFSET_FROM_SUBJECT_LABEL, 0);
+                       layout.SetRelation(*pSenderLabel, pSubjectLabel, RECT_EDGE_RELATION_TOP_TO_BOTTOM);
+                       layout.SetRelation(*pSenderLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+
+                       layout.SetMargin(*pDateTimeLabel, X_DATETIMELABEL, 0, 15, 20);
+                       layout.SetRelation(*pDateTimeLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*pDateTimeLabel, pDividerLabel, RECT_EDGE_RELATION_BOTTOM_TO_TOP);
+                       layout.SetRelation(*pDateTimeLabel, pSenderLabel, RECT_EDGE_RELATION_TOP_TO_BOTTOM);
+
+                       layout.SetRelation(*__pFavoriteButton, pItem, RECT_EDGE_RELATION_TOP_TO_TOP);
+                       layout.SetRelation(*__pFavoriteButton, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetRelation(*__pToCcExpandButton, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetRelation(*__pToCcExpandButton, pSubjectLabel, RECT_EDGE_RELATION_TOP_TO_BOTTOM);
+
+                       layout.SetHorizontalFitPolicy(*pDividerLabel, FIT_POLICY_PARENT);
+                       layout.SetRelation(*pDividerLabel, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+
+                       layout.SetMargin(*__pToCcExpandButton, 12, 12, 20 ,0);
+                       layout.SetMargin(*__pFavoriteButton, 12, 12, Y_SUBJECTLABEL ,0);
+
+                       if (__pMail->GetHasAttachment() == true)
+                       {
+                               layout.SetRelation(*pSenderLabel, __pAttachButton, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+                               layout.SetRelation(*pDateTimeLabel, __pAttachButton, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+                               layout.SetRelation(*__pAttachButton, pSubjectLabel, RECT_EDGE_RELATION_TOP_TO_BOTTOM);
+                               layout.SetRelation(*__pAttachButton, __pToCcExpandButton, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+                               layout.SetMargin(*__pAttachButton, 12, 0, 20 ,0);
+                       }
+                       else
+                       {
+                               layout.SetRelation(*pSenderLabel, __pToCcExpandButton, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+                               layout.SetRelation(*pDateTimeLabel, __pToCcExpandButton, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+                       }
+
+                       layout.Update();
+               }
+               break;
+
+       case TO_CC_ITEM_INDEX: //to/cc fields
+               pItem->Construct(layout, Dimension(itemWidth, 0));
+               bgColor = pItem->GetBackgroundColor();
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
+
+               if (__pMail != null)
+               {
+                       String emailAddress;
+
+                       __pToFieldPanel = new (std::nothrow) RecipientField();
+                       __pToFieldPanel->Construct(FloatRectangle(1,0,itemWidth-2,H_ATTACHMENT), READ_MODE);
+                       __pToFieldPanel->SetExpandableEditAreaTitle(Utils::GetResourceString(L"IDS_EMAIL_BODY_TO_MRECIPENT"));
+                       pItem->AddControl(__pToFieldPanel);
+
+                       Utils::BuildEmailIdStringFromFullAddress(__pMail->GetFullAddressTo(), emailAddress);
+                       __pToFieldPanel->AddNewToken(emailAddress, false);
+
+                       pDividerLabel = new (std::nothrow) Label();
+                       pDividerLabel->Construct(Rectangle(0,0,itemWidth,1), L"");
+                       pDividerLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_GREY));
+                       pDividerLabel->SetName(L"DIV1");
+                       pItem->AddControl(pDividerLabel);
+
+                       Utils::BuildEmailIdStringFromFullAddress(__pMail->GetFullAddressCc(), emailAddress);
+                       if (emailAddress.IsEmpty() == false)
+                       {
+                               __pCcFieldPanel = new (std::nothrow) RecipientField();
+                               __pCcFieldPanel->Construct(FloatRectangle(1,__pToFieldPanel->GetHeight(),itemWidth-2,H_ATTACHMENT), READ_MODE);
+                               __pCcFieldPanel->SetExpandableEditAreaTitle(Utils::GetResourceString(L"IDS_EMAIL_BODY_CC"));
+                               pItem->AddControl(__pCcFieldPanel);
+
+       //                      Utils::BuildEmailIdStringFromFullAddress(__pMail->GetFullAddressCc(), emailAddress);
+                               __pCcFieldPanel->AddNewToken(emailAddress, false);
+
+                               pDividerLabel1 = new (std::nothrow) Label();
+                               pDividerLabel1->Construct(Rectangle(0,0,itemWidth,1), L"");
+                               pDividerLabel1->SetBackgroundColor(Color::GetColor(COLOR_ID_GREY));
+                               pDividerLabel1->SetName(L"DIV2");
+                               pItem->AddControl(pDividerLabel1);
+
+                               layout.SetHorizontalFitPolicy(*pDividerLabel1, FIT_POLICY_PARENT);
+                               layout.SetHorizontalFitPolicy(*__pCcFieldPanel, FIT_POLICY_PARENT);
+                       }
+
+                       layout.SetHorizontalFitPolicy(*pDividerLabel, FIT_POLICY_PARENT);
+                       layout.Update();
+               }
+
+               pItem->SetShowState(false);
+               break;
+
+       case ATTACHMENT_ITEM_INDEX: //Attachment panel
+               if (__pMail != null && __pMail->GetHasAttachment() == true)
+               {
+                       ArrayList* filePath;
+                       filePath = static_cast<ArrayList*>(__pPresentationModel->GetAttachmentsListN(__pMail->GetMailId()));
+
+                       __attachmentCount = filePath->GetCount();
+
+                       __pAttachmentPanel = new (std::nothrow) AttachmentPanel(__pPresentationModel);
+                       __pAttachmentPanel->Construct(layout, Rectangle(5,5,itemWidth-10,(filePath->GetCount()+1)*H_ATTACHMENT + 20));
+                       __pAttachmentPanel->SetAttachmentPanelListener(this);
+                       __pAttachmentPanel->SetDetailView(true);
+                       __pAttachmentPanel->SetAttachmentList(filePath);
+                       __pAttachmentPanel->UpdateAttachmentList();
+
+                       pItem->Construct(layout, Dimension(itemWidth, H_ATTACHMENT*(filePath->GetCount()+31)));
+                       pItem->AddControl(__pAttachmentPanel);
+
+                       layout.SetRelation(*__pAttachmentPanel, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+                       layout.SetRelation(*__pAttachmentPanel, pItem, RECT_EDGE_RELATION_TOP_TO_TOP);
+                       layout.SetRelation(*__pAttachmentPanel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*__pAttachmentPanel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*__pAttachmentPanel, 5, 5, 5, 5);
+//                     layout.SetHorizontalFitPolicy(*__pAttachmentPanel, FIT_POLICY_PARENT);
+                       layout.Update();
+
+                       pItem->SetSize(itemWidth, 0);
+
+                       if (__attachmentCount > 0 && __pAttachButton != null)
+                       {
+                               SendUserEvent(IDA_EMAIL_DETAIL_FORM_UPDATE_ATTACHMENT_COUNT, null);
+                       }
+               }
+               else
+               {
+                       pItem->Construct(Dimension(itemWidth, 0));
+               }
+               bgColor = pItem->GetBackgroundColor();
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
+               pItem->SetShowState(false);
+
+               break;
+
+       case DOWNLOAD_BODY_ITEM_INDEX:
+               if (__pMail != null && (__pMail->GetBodyDownloadStatus() == 0 || __pMail->GetBodyDownloadStatus() == 2))
+               {
+                       pItem->Construct(layout, Dimension(itemWidth, H_ATTACHMENT));
+
+                       Button* pDownloadButton = new (std::nothrow) Button();
+                       pDownloadButton->Construct(Rectangle(0, 0, itemWidth, 72), Utils::GetResourceString(L"IDS_EMAIL_BODY_DOWNLOAD_FULL_MESSAGE"));
+                       pDownloadButton->SetActionId(IDA_EMAIL_DETAIL_FORM_DOWNLOAD_BUTTON);
+                       pDownloadButton->AddActionEventListener(*this);
+
+                       pItem->AddControl(pDownloadButton);
+                       pItem->SetIndividualSelectionEnabled(pDownloadButton, true);
+
+                       layout.SetRelation(*pDownloadButton, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*pDownloadButton, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*pDownloadButton, 100, 100, 0, 0);
+
+                       layout.SetCenterAligned(*pDownloadButton, CENTER_ALIGN_VERTICAL);
+                       layout.SetCenterAligned(*pDownloadButton, CENTER_ALIGN_HORIZONTAL);
+                       layout.Update();
+               }
+               else
+               {
+                       pItem->Construct(layout, Dimension(itemWidth, 0));
+                       pItem->SetShowState(false);
+               }
+
+               break;
+
+       case BODY_ITEM_INDEX: //email body
+               int height = GetClientAreaBounds().height - 244;
+               pItem->Construct(layout, Dimension(itemWidth, height + 10));
+               bgColor = pItem->GetBackgroundColor();
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED);
+               pItem->SetBackgroundColor(bgColor, TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED);
+
+               __pWeb = new (std::nothrow) Web();
+               result r = __pWeb->Construct(Rectangle(0,0,itemWidth,height));
+               AppLogDebug("Result of construct:(%s)", GetErrorMessage(r));
+
+               if (r != E_SUCCESS)
+               {
+                       delete __pWeb;
+                       __pWeb = null;
+               }
+               else
+               {
+                       r = pItem->AddControl(__pWeb);
+                       AppLogDebug("Result of add control:(%s)", GetErrorMessage(r));
+
+                       __pWeb->SetLoadingListener(this);
+
+//                     layout.SetHorizontalFitPolicy(*__pWeb, FIT_POLICY_PARENT);
+//                     layout.SetVerticalFitPolicy(*__pWeb, FIT_POLICY_PARENT);
+                       layout.SetRelation(*__pWeb, pItem, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+                       layout.SetRelation(*__pWeb, pItem, RECT_EDGE_RELATION_TOP_TO_TOP);
+                       layout.SetRelation(*__pWeb, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*__pWeb, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+//                     layout.SetMargin(*__pWeb, 5, 5, 5, 5);
+                       layout.Update();
+               }
+
+               break;
+       }
+
+       AppLogDebug("EXIT, pItem:(%x)", pItem);
+       return pItem;
+
+}
+
+bool
+DetailForm::DeleteItem(int itemIndex, TableViewItem* pItem)
+{
+       if (pItem != null)
+       {
+               pItem->RemoveAllControls();
+               delete pItem;
+       }
+
+       if (itemIndex == TO_CC_ITEM_INDEX)
+       {
+               __pToFieldPanel = null;
+               __pCcFieldPanel = null;
+       }
+
+       if (itemIndex == SUBJECT_ITEM_INDEX)
+       {
+               __pAttachButton = null;
+       }
+
+       if (itemIndex == ATTACHMENT_ITEM_INDEX)
+       {
+               __pAttachmentPanel = null;
+       }
+
+       if (itemIndex == BODY_ITEM_INDEX)
+       {
+               __pWeb = null;
+       }
+
+       return true;
+}
+
+void
+DetailForm::UpdateItem(int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER");
+       int count;
+       result r = E_SUCCESS;
+
+       Label* pLabel = null;
+
+       if (__pMail != null)
+       {
+               switch (itemIndex)
+               {
+               case SUBJECT_ITEM_INDEX:
+               {
+                       int subjectLabelHeight;
+                       Dimension dim;
+                       Label* pSubjectLabel;
+                       Font font;
+
+                       font.Construct(FONT_STYLE_BOLD, FONT_SIZE_INBOX_TOP_MAIN);
+                       font.GetTextExtent(__pMail->GetSubject(), __pMail->GetSubject().GetLength(), dim);
+                       pSubjectLabel = static_cast<Label*>(pItem->GetControl(L"subjectlabel", true));
+
+                       if (dim.width > (pItem->GetWidth() - 22 - 74))
+                       {
+                               int height =0;
+                               height = dim.width/(pItem->GetWidth()-22-74);
+                               height++;
+                               subjectLabelHeight = height * H_SUBJECTLABEL;
+                               Rectangle rect = pItem->GetBounds();
+                               rect.height = subjectLabelHeight + 160;
+
+                               pItem->SetBounds(rect);
+                       }
+                       else
+                       {
+                               subjectLabelHeight = H_SUBJECTLABEL;
+                               Rectangle rect = pItem->GetBounds();
+                               rect.height = 234;
+                               pItem->SetBounds(rect);
+                       }
+
+                       pSubjectLabel->SetSize(pItem->GetWidth() - 22 - 74, subjectLabelHeight);
+
+                       __pFavoriteButton->SetNormalBackgroundBitmap(*__pFavIcon);
+                       __pFavoriteButton->SetPressedBackgroundBitmap(*__pFavIcon);
+
+                       if (__attachmentCount > 0 && __pAttachButton != null)
+                       {
+                               String text;
+                               text.Append(__attachmentCount);
+                               __pAttachButton->SetText(text);
+                               __pAttachButton->Invalidate(true);
+                       }
+               }
+               break;
+
+               case TO_CC_ITEM_INDEX:
+
+                       if (__showToCcField == false)
+                       {
+                               String emailAddress;
+                               int xPos = (__pToCcExpandButton->GetWidth()-__pExpandButtonClosedIcon->GetWidth())/2;
+                               int yPos = (__pToCcExpandButton->GetHeight()-__pExpandButtonClosedIcon->GetHeight())/2;
+                               Utils::BuildEmailIdStringFromFullAddress(__pMail->GetFullAddressCc(), emailAddress);
+
+                               __pToCcExpandButton->SetNormalBitmap(Point(xPos, yPos), *__pExpandButtonClosedIcon);
+                               __pToCcExpandButton->SetPressedBitmap(Point(xPos, yPos), *__pExpandButtonClosedPressedIcon);
+                               pItem->SetSize(GetClientAreaBounds().width, 0);
+
+                               pLabel = static_cast<Label*>(pItem->GetControl(L"DIV1", true));
+                               pLabel->SetPosition(Point(0, 0));
+
+                               if (emailAddress.IsEmpty() == false)
+                               {
+                                       pLabel = static_cast<Label*>(pItem->GetControl(L"DIV2", true));
+                                       pLabel->SetPosition(Point(0, 0));
+                               }
+
+                               pItem->SetShowState(false);
+                       }
+                       else
+                       {
+                               String emailAddress;
+                               int xPos = (__pToCcExpandButton->GetWidth()-__pExpandButtonClosedIcon->GetWidth())/2;
+                               int yPos = (__pToCcExpandButton->GetHeight()-__pExpandButtonClosedIcon->GetHeight())/2;
+                               Utils::BuildEmailIdStringFromFullAddress(__pMail->GetFullAddressCc(), emailAddress);
+                               pItem->SetShowState(true);
+                               __pToCcExpandButton->SetNormalBitmap(Point(xPos, yPos), *__pExpandButtonOpenedIcon);
+                               __pToCcExpandButton->SetPressedBitmap(Point(xPos, yPos), *__pExpandButtonOpenedPressedIcon);
+
+                               if (emailAddress.IsEmpty() == false)
+                               {
+                                       pItem->SetSize(GetClientAreaBounds().width, __pToFieldPanel->GetHeight()+__pCcFieldPanel->GetHeight());
+                                       __pCcFieldPanel->SetPosition(0.0, __pToFieldPanel->GetHeightF());
+                               }
+                               else
+                               {
+                                       pItem->SetSize(GetClientAreaBounds().width, __pToFieldPanel->GetHeight());
+                               }
+
+                               pLabel = static_cast<Label*>(pItem->GetControl(L"DIV1", true));
+                               pLabel->SetPosition(Point(0, __pToFieldPanel->GetHeight()-1));
+
+                               if (emailAddress.IsEmpty() == false)
+                               {
+                                       pLabel = static_cast<Label*>(pItem->GetControl(L"DIV2", true));
+                                       pLabel->SetPosition(Point(0, pItem->GetHeight()-1));
+                               }
+                       }
+                       break;
+
+               case ATTACHMENT_ITEM_INDEX:
+
+                       if (__showAttachmentPanel)
+                       {
+                               count = __pAttachmentPanel->GetAttachmentList()->GetCount();
+                               AppLogDebug("Got count:(%d)", count);
+
+                               if (count > 0)
+                               {
+                                       pItem->SetShowState(true);
+
+                                       if (__attachmentsShowState)
+                                       {
+                                               if (count < 5)
+                                               {
+                                                       r = pItem->SetSize(pItem->GetWidth(), (count+1)*H_ATTACHMENT + 31);
+                                                       __pAttachmentPanel->SetSize(pItem->GetWidth() - 10, (count+1)*H_ATTACHMENT + 20);
+                                               }
+                                               else
+                                               {
+                                                       r = pItem->SetSize(pItem->GetWidth(), (5)*H_ATTACHMENT + 31);
+                                                       __pAttachmentPanel->SetSize(pItem->GetWidth() - 10, (5)*H_ATTACHMENT + 20);
+                                               }
+
+                                               AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+                                       }
+                                       else
+                                       {
+                                               r = pItem->SetSize(pItem->GetWidth(), H_ATTACHMENT+31);
+                                               __pAttachmentPanel->SetSize(pItem->GetWidth() - 10, H_ATTACHMENT + 20);
+                                               AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+                                       }
+                               }
+                               else
+                               {
+                                       r = pItem->SetSize(pItem->GetWidth(), 0);
+                                       AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+                               }
+
+                               pItem->Invalidate(true);
+                       }
+                       else
+                       {
+                               pItem->SetSize(pItem->GetWidth(), 0);
+                               pItem->SetShowState(false);
+                       }
+
+                       break;
+
+               case BODY_ITEM_INDEX:
+                       if (__pWeb != null)
+                       {
+                               __pWeb->SetSize(GetClientAreaBounds().width, GetClientAreaBounds().height - 244);
+                               AppLogDebug("Setting item size:(%d,%d)", pItem->GetWidth(), __pWeb->GetHeight());
+                               r = pItem->SetSize(pItem->GetWidth(), __pWeb->GetHeight());
+                               AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+                       }
+                       break;
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+int
+DetailForm::GetDefaultItemHeight(void)
+{
+       return 0;
+}
+
+void
+DetailForm::HidePopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pProgressPanel->SetShowState(false);
+       Invalidate(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+DetailForm::ShowDownloadBodyPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pDownloadBodyPopup->SetShowState(true);
+       __pDownloadBodyPopup->Show();
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::HideDownloadBodyPopup(void)
+{
+       __pDownloadBodyPopup->SetShowState(false);
+       Invalidate(true);
+}
+
+void
+DetailForm::OnShowAttachmentValueChanged(bool showStatus)
+{
+       AppLogDebug("ENTER, val:(%d)", showStatus);
+
+       __attachmentsShowState = showStatus;
+       __pTableView->RefreshItem(ATTACHMENT_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+DetailForm::OnProgressPopupCanceled(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pDownloadAttachmentsPopup != null && __pDownloadAttachmentsPopup->GetShowState() == true)
+       {
+               AppLogDebug("User cancelled download of attachments");
+
+               if (__pAttachmentDownloadHandleMap != null)
+               {
+                       IMapEnumerator* pMapEnum = __pAttachmentDownloadHandleMap->GetMapEnumeratorN();
+
+                       if (pMapEnum != null)
+                       {
+                               while (!IsFailed(pMapEnum->MoveNext()))
+                               {
+                                       int accountId = static_cast<Integer*>(pMapEnum->GetKey())->ToInt();
+                                       int handle = static_cast<Integer*>(pMapEnum->GetValue())->ToInt();
+                                       __pPresentationModel->CancelJob(accountId, handle, EMAIL_CANCELED_BY_USER);
+                               }
+                               delete pMapEnum;
+                       }
+               }
+
+               if (__pAttachmentDownloadHandleMap != null)
+               {
+                       __pAttachmentDownloadHandleMap->RemoveAll(true);
+                       delete __pAttachmentDownloadHandleMap;
+                       __pAttachmentDownloadHandleMap = null;
+               }
+
+               __forwardAfterDownload = false;
+               __downloadAttachments = 0;
+               __userCancelledAttachmentDownload = true;
+
+               if (__pDownloadAttachmentsPopup != null)
+               {
+                       __pDownloadAttachmentsPopup->SetShowState(false);
+               }
+
+               EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+
+               Invalidate(true);
+       }
+       else if (__pDownloadBodyPopup->GetShowState() == true)
+       {
+               AppLogDebug("User cancelled download of body");
+
+               __pPresentationModel->CancelJob(__pMail->GetAccountId(), __downloadBodyHandle, EMAIL_CANCELED_BY_USER);
+               EmailApp::GetInstance()->ClearDownloadBodyPopupStatus();
+
+               HideDownloadBodyPopup();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER, requestId:(%d), pArgs:(%x)", requestId, pArgs);
+
+       if (requestId == IDA_NOTI_DOWNLOAD_BODY_FAIL)
+       {
+               int modRes;
+               MessageBox msgBox;
+
+               EmailApp::GetInstance()->ClearDownloadBodyPopupStatus();
+
+               HideDownloadBodyPopup();
+               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_DOWNLOAD"), MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+       }
+       else if (requestId == IDA_NOTI_DOWNLOAD_BODY_FINISH)
+       {
+               EmailApp::GetInstance()->ClearDownloadBodyPopupStatus();
+               HideDownloadBodyPopup();
+               EmailMessageItem* pMsg = __pPresentationModel->GetCompleteMailDataN(__pMail->GetMailId());
+
+               if (pMsg != null)
+               {
+                       String str = pMsg->GetFilePathHtml();
+
+                       if (str.GetLength() <= 0)
+                       {
+                               str = pMsg->GetFilePathPlain();
+                       }
+
+                       __pMail->SetBodyDownloadStatus(true);
+                       __pTableView->UpdateTableView();
+
+                       if (__pWeb != null)
+                       {
+                               str.Insert(L"file://", 0);
+                               __pWeb->LoadUrl(str);
+                               AppLogDebug("EmailApp::Result of loadURL:(%s), url:(%ls)", GetErrorMessage(GetLastResult()), str.GetPointer());
+                       }
+
+                       delete pMsg;
+               }
+
+               Invalidate(true);
+       }
+       else if (requestId == IDA_NOTI_MAIL_MOVE_FINISHED || requestId == IDA_NOTI_DELETE_FINISHED)
+       {
+               if (__waitForNoti == true)
+               {
+                       HidePopup();
+
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+
+                       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                       pStateInfo->accountId = __accountId;
+                       pStateInfo->mailboxId = __mailboxId;
+                       pStateInfo->pPresentationModel = __pPresentationModel;
+                       pStateInfo->mailboxType = __mailboxType;
+
+                       pArgs->Add(pStateInfo);
+
+                       __pPresentationModel->UpdateUnreadCount(__accountId);
+
+                       if (__accountId != -1)
+                       {
+                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                               {
+                                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                               }
+                               else
+                               {
+                                       __pPresentationModel->FetchData(__accountId);
+                               }
+                       }
+                       else
+                       {
+                               __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                       }
+
+                       __pPresentationModel->SortBy(__pPresentationModel->GetSortType());
+
+                       SearchPresentationModel* pSearchPresentationModel = SearchPresentationModel::GetInstance();
+
+                       if (pSearchPresentationModel != null)
+                       {
+                               BasePresentationModel* pBasePresentationModel = pSearchPresentationModel->GetPresentationModel();
+
+                               if (pBasePresentationModel != null)
+                               {
+                                       pBasePresentationModel->FetchData(__accountId, true);
+                                       pSearchPresentationModel->Initialize(pSearchPresentationModel->GetPresentationModel());
+                                       pSearchPresentationModel->PerformSearch(L"");
+                               }
+                       }
+
+                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(), pArgs);
+               }
+       }
+       else if (requestId == IDA_NOTI_MAIL_MOVE_FAIL)
+       {
+               if (__waitForNoti == true)
+               {
+                       __waitForNoti = false;
+                       EmailApp::GetInstance()->SetMoveOrDeleteFailedPopupStatus(false);
+                       SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_FAILED"));
+
+                       HidePopup();
+
+                       __pMoveOrDeleteFailedPopup->SetShowState(true);
+                       __pMoveOrDeleteFailedPopup->Show();
+                       Invalidate(true);
+               }
+       }
+       else if ((requestId == IDA_NOTI_DOWNLOAD_ATTACH_START ||
+                       requestId == IDA_NOTI_DOWNLOAD_ATTACH_FINISH ||
+                       requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL) && pArgs != null)
+       {
+               if (__downloadAttachments > 0)
+               {
+                       if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL)
+                       {
+                               if (__userCancelledAttachmentDownload == false)
+                               {
+                                       EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+                                       EmailApp::GetInstance()->SetDownloadFailedPopupStatus(true);
+                                       __pAttachmentDownloadFailedPopup->SetShowState(true);
+                                       __pAttachmentDownloadFailedPopup->Show();
+                               }
+
+                               __userCancelledAttachmentDownload = false;
+                               OnProgressPopupCanceled();
+                       }
+                       else
+                       {
+                               if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FINISH)
+                               {
+                                       __downloadAttachments--;
+                                       AppLogDebug("Decrementing download attachment count to:(%d)", __downloadAttachments);
+
+                                       if (__pAttachmentPanel != null)
+                                       {
+                                               __pAttachmentPanel->SendUserEvent(requestId, pArgs);
+                                       }
+                               }
+
+                               if (__downloadAttachments == 0)
+                               {
+                                       EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+
+                                       if (__forwardAfterDownload)
+                                       {
+                                               OnActionPerformed(*GetFooter(), IDA_EMAIL_DETAIL_FORM_FORWARD_POPUP);
+                                       }
+
+                                       OnProgressPopupCanceled();
+
+                                       if (__pAttachmentPanel != null)
+                                       {
+                                               __pAttachmentPanel->UpdateAttachmentList();
+                                       }
+                               }
+                       }
+               }
+               else if (__pAttachmentPanel != null)
+               {
+                       __pAttachmentPanel->SendUserEvent(requestId, pArgs);
+
+                       if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL)
+                       {
+                               EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+                               EmailApp::GetInstance()->SetDownloadFailedPopupStatus(true);
+                               __pAttachmentDownloadFailedPopup->SetShowState(true);
+                               __pAttachmentDownloadFailedPopup->Show();
+                       }
+               }
+       }
+       else if (requestId == IDA_EMAIL_DETAIL_FORM_UPDATE_ATTACHMENT_COUNT)
+       {
+               __pTableView->RefreshItem(SUBJECT_ITEM_INDEX, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+       }
+       else if (requestId == IDA_NOTI_MAIL_FIELD_UPDATE)
+       {
+               if (__mailboxType == EMAIL_MAILBOX_TYPE_OUTBOX)
+               {
+                       if (__pPresentationModel->GetMailData(__mailId) == null)
+                       {
+                               ArrayList* pSceneTransitionArgs = new (std::nothrow) ArrayList();
+
+                               pSceneTransitionArgs->Construct();
+
+                               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                               pStateInfo->accountId = __accountId;
+                               pStateInfo->mailboxId = __mailboxId;
+                               pStateInfo->pPresentationModel = __pPresentationModel;
+                               pStateInfo->mailboxType = __mailboxType;
+
+                               pSceneTransitionArgs->Add(pStateInfo);
+
+                               GetFooter()->SetEnabled(false);
+                               GetFooter()->Invalidate(true);
+
+                               if (__pDeleteConfirmationPopup != null && __pDeleteConfirmationPopup->GetShowState() == true)
+                               {
+                                       EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+                                       __pDeleteConfirmationPopup->SetShowState(false);
+                                       __pDeleteConfirmationPopup->Invalidate(true);
+                               }
+
+                               if (__accountId != -1)
+                               {
+                                       if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                       {
+                                               __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                                       }
+                                       else
+                                       {
+                                               __pPresentationModel->FetchData(__accountId);
+                                       }
+                               }
+                               else
+                               {
+                                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                               }
+
+                               __pPresentationModel->SortBy(__pPresentationModel->GetSortType());
+
+                               if (__isMessageBoxShown == false)
+                               {
+                                       int modRes;
+                                       MessageBox msgBox;
+                                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"This mail no more exists", MSGBOX_STYLE_OK, 300000);
+                                       __isMessageBoxShown = true;
+                                       msgBox.ShowAndWait(modRes);
+                                       __isMessageBoxShown = false;
+                                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(), pSceneTransitionArgs);
+                               }
+                       }
+               }
+       }
+       else if (requestId == IDA_EMAIL_APP_FOREGROUND)
+       {
+               __pAttachmentPanel->SendUserEvent(IDA_EMAIL_APP_FOREGROUND, null);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+DetailForm::ShowPopUp(const String& popupTitle)
+{
+       AppLogDebug("ENTER");
+
+       __pProgressPanel->SetTitleText(popupTitle);
+       __pProgressPanel->SetShowState(true);
+       __pProgressPanel->Show();
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+DetailForm::PopulateMoreOptionMenu(void)
+{
+       AppLogDebug("ENTER");
+
+       __pMoreOptionMenu->RemoveAllItems();
+
+       if (__pMail != null && __pMail->isFlagsSeenField() == true)
+       {
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_MARK_AS_UNREAD"), IDA_EMAIL_DETAIL_FORM_MARK_UNREAD_POPUP, *__pMarkReadUnreadIcon);
+       }
+       else
+       {
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_MARK_AS_READ"), IDA_EMAIL_DETAIL_FORM_MARK_READ_POPUP, *__pMarkReadUnreadIcon);
+       }
+
+       if (__mailboxType != EMAIL_MAILBOX_TYPE_SPAMBOX && __mailboxType != EMAIL_MAILBOX_TYPE_DRAFT && __mailboxType != EMAIL_MAILBOX_TYPE_OUTBOX && __mailboxType != EMAIL_MAILBOX_TYPE_SENTBOX)
+       {
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_BLOCK"), IDA_EMAIL_DETAIL_FORM_BLOCK1_POPUP, *__pBlockIcon);
+       }
+
+       if (__mailboxType != EMAIL_MAILBOX_TYPE_OUTBOX)
+       {
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_SK_MOVE"), IDA_EMAIL_DETAIL_FORM_MOVE_POPUP, *__pMoveIcon);
+       }
+
+       __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_FORWARD"), IDA_EMAIL_DETAIL_FORM_FORWARD_POPUP, *__pForwardIcon);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+DetailForm::PopulateReplyContextMenu(void)
+{
+       AppLogDebug("ENTER");
+
+       int xPosition, yPosition;
+       int footerItemWidth;
+//     Rectangle tmpRect;
+       Footer* pFooter = GetFooter();
+
+       if (pFooter != null)
+       {
+               pFooter->GetPosition(xPosition, yPosition);
+               footerItemWidth = pFooter->GetBounds().width/pFooter->GetItemCount();
+//             tmpRect = pFooter->GetButtonBounds(BUTTON_POSITION_LEFT);
+//             xPosition = ((pFooter->GetWidth()-(((tmpRect.x*2)+tmpRect.width)*2))/4)+(tmpRect.x*2)+tmpRect.width;
+               xPosition = pFooter->GetBounds().x + footerItemWidth/2;
+               __pReplyContextMenu->SetAnchorPosition(Point(xPosition, yPosition));
+       }
+
+       __pReplyContextMenu->RemoveAllItems();
+
+       __pReplyContextMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_SK_REPLY_ALL"), IDA_EMAIL_DETAIL_FORM_REPLYALL_POPUP);
+       __pReplyContextMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_REPLY_TO_SENDER"), IDA_EMAIL_DETAIL_FORM_REPLYSENDER_POPUP);
+       __pReplyContextMenu->SetFocusable(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+bool
+DetailForm::OnHttpAuthenticationRequestedN(const String& host, const String& realm, const AuthenticationChallenge& authentication)
+{
+       return false;
+}
+
+void
+DetailForm::OnHttpAuthenticationCanceled(void)
+{
+// Empty Implementation
+}
+
+void
+DetailForm::OnLoadingStarted(void)
+{
+// Empty Implementation
+}
+
+void
+DetailForm::OnLoadingCanceled(void)
+{
+// Empty Implementation
+}
+
+void
+DetailForm::OnLoadingErrorOccurred(LoadingErrorType error, const String& reason)
+{
+// Empty Implementation
+}
+
+void
+DetailForm::OnLoadingCompleted(void)
+{
+// Empty Implementation
+}
+
+void
+DetailForm::OnEstimatedProgress(int progress)
+{
+// Empty Implementation
+}
+
+void
+DetailForm::OnPageTitleReceived(const String& title)
+{
+// Empty Implementation
+}
+
+bool
+DetailForm::OnLoadingRequested(const String& url, WebNavigationType type)
+{
+       AppLogDebug("ENTER, url:(%ls)", url.GetPointer());
+
+       if (url.StartsWith(L"http", 0) == true || url.StartsWith(L"www", 0) == true)
+       {
+               AppControl* pAc = AppManager::FindAppControlN(IDS_TIZEN_APPID_INTERNET, IDS_TIZEN_OPERATIONID_VIEW);
+               if (pAc)
+               {
+                       pAc->Start(&url, null, null, null);
+                       delete pAc;
+               }
+
+               AppLogDebug("EXIT");
+               return true;
+       }
+
+       AppLogDebug("EXIT");
+       return false;
+}
+
+DecisionPolicy
+DetailForm::OnWebDataReceived(const String& mime, const Tizen::Net::Http::HttpHeader& httpHeader)
+{
+       return WEB_DECISION_CONTINUE;
+}
+
+void
+DetailForm::InitDeleteConfirmationPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pDeleteConfirmationPopup = new (std::nothrow) Popup();
+       __pDeleteConfirmationPopup->Construct(L"IDL_POPUP_DELETE");
+       __pDeleteConfirmationPopup->SetPropagatedKeyEventListener(this);
+
+       Button* pDeleteButton = static_cast<Button*>(__pDeleteConfirmationPopup->GetControl(L"IDC_BUTTON_DELETE", true));
+       pDeleteButton->AddActionEventListener(*this);
+       pDeleteButton->SetActionId(IDA_EMAIL_DETAIL_FORM_DELETE_CONFIRMATION_YES);
+
+       Button* pCancelButton = static_cast<Button*>(__pDeleteConfirmationPopup->GetControl(L"IDC_BUTTON_CANCEL", true));
+       pCancelButton->AddActionEventListener(*this);
+       pCancelButton->SetActionId(IDA_EMAIL_DETAIL_FORM_DELETE_CONFIRMATION_NO);
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::SetDeleteConfirmationPopupTitle(const String& title)
+{
+       AppLogDebug("ENTER, title:(%ls)", title.GetPointer());
+
+       Label* pTitleLabel = static_cast<Label*>(__pDeleteConfirmationPopup->GetControl(L"IDC_LABEL_TITLE", true));
+       pTitleLabel->SetText(title);
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::InitAttachmentDownloadFailedPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pAttachmentDownloadFailedPopup = new Popup();
+       __pAttachmentDownloadFailedPopup->Construct(L"IDL_POPUP_ATTACHMENT_FAILED");
+
+       Button* pOkButton = static_cast<Button*>(__pAttachmentDownloadFailedPopup->GetControl(L"IDC_BUTTON_OK", true));
+       pOkButton->AddActionEventListener(*this);
+       pOkButton->SetActionId(IDA_ATTACHMENT_DOWNLOAD_FAILED_OK);
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::InitMoveOrDeleteFailedPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pMoveOrDeleteFailedPopup = new Popup();
+       __pMoveOrDeleteFailedPopup->Construct(L"IDL_POPUP_MOVE_OR_DELETE_FAILED");
+
+       Button* pOkButton = static_cast<Button*>(__pMoveOrDeleteFailedPopup->GetControl(L"IDC_BUTTON_OK", true));
+       pOkButton->AddActionEventListener(*this);
+       pOkButton->SetActionId(IDA_MOVE_OR_DELETE_FAILED_OK);
+
+       AppLogDebug("EXIT");
+}
+
+void
+DetailForm::SetMoveOrDeleteFailedPopupTitle(const String& title)
+{
+       AppLogDebug("ENTER, title:(%ls)", title.GetPointer());
+
+       Label* pTitleLabel = static_cast<Label*>(__pMoveOrDeleteFailedPopup->GetControl(L"IDC_LABEL_TITLE", true));
+       pTitleLabel->SetText(title);
+
+       AppLogDebug("EXIT");
+}
+
+bool
+DetailForm::OnKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return false;
+}
+
+bool
+DetailForm::OnKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+
+       if (keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC)
+       {
+               if (__pDeleteConfirmationPopup != null && __pDeleteConfirmationPopup->GetShowState() == true)
+               {
+                       AppLogDebug("Delete popup");
+                       EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+                       __pDeleteConfirmationPopup->SetShowState(false);
+                       Invalidate(true);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return false;
+}
+
+bool
+DetailForm::OnPreviewKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return false;
+}
+
+bool
+DetailForm::OnPreviewKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return false;
+}
+
diff --git a/src/EmDraftboxPresentationModel.cpp b/src/EmDraftboxPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..6d7a86d
--- /dev/null
@@ -0,0 +1,118 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+ * @file                       EmDraftboxPresntationModel.cpp
+ * @brief                      This is presentation model module for DraftList form. This manages and serves
+ *                  all view specific data requests
+ */
+
+#include <cstdlib>
+#include "EmDraftboxPresentationModel.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+DraftListPresentationModel* DraftListPresentationModel::__pInstance = null;
+
+DraftListPresentationModel::DraftListPresentationModel(void)
+{
+       // Empty Implementation
+}
+
+DraftListPresentationModel::~DraftListPresentationModel(void)
+{
+       //Empty implementation
+}
+
+DraftListPresentationModel*
+DraftListPresentationModel::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pInstance;
+}
+
+void
+DraftListPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance != null)
+       {
+               __pInstance->CleanupInstance();
+               delete __pInstance;
+               __pInstance = null;
+       }
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+DraftListPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pInstance = new (std::nothrow) DraftListPresentationModel();
+       r = __pInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInstance;
+               __pInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+DraftListPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+DraftListPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       BasePresentationModel::Construct();
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+void
+DraftListPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       _pMailList = _pMailboxManager->GetData(accountId, EMAIL_MAILBOX_TYPE_DRAFT, forceUpdate);
+}
diff --git a/src/EmEmailApp.cpp b/src/EmEmailApp.cpp
new file mode 100755 (executable)
index 0000000..31c30d6
--- /dev/null
@@ -0,0 +1,1240 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * Name        : Email
+ * Version     :
+ * Vendor      :
+ * Description :
+ */
+
+#include "EmNativeMailboxManager.h"
+#include "EmEmailApp.h"
+#include "EmMainFrame.h"
+#include "EmFormFactory.h"
+#include "EmTypes.h"
+#include "EmMailSyncThread.h"
+#include "EmEmailSettingPresentationModel.h"
+#include "EmInboxPresentationModel.h"
+#include "EmManualSetUpForm.h"
+#include "EmStateInfo.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Io;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+using namespace Tizen::Graphics;
+using namespace Tizen::Base::Collection;
+
+EmailApp* EmailApp::__application = null;
+
+EmailApp::EmailApp(void)
+       : __downloadBodyHandle(0)
+       , __downloadBodyAccountId(-1)
+       , __returnAppControlResult(false)
+       , __frameDisabled(false)
+       , __showDeletePopup(false)
+       , __showDownloadAttachmentPopup(false)
+       , __showDownloadFailedPopup(false)
+       , __isMoveFailed(false)
+       , __showMoveOrDeleteFailedPopup(false)
+       , __mailId(-1)
+       , __downloadMailId(-1)
+       , __appControlRequestId(0)
+       , __opId(EMAIL_OPERATION_NONE)
+       , __appControlResult(APP_CTRL_RESULT_FAILED)
+       , __pArgs(null)
+{
+       // Empty Implementation
+}
+
+EmailApp::~EmailApp(void)
+{
+       // Empty Implementation
+}
+
+UiApp*
+EmailApp::CreateInstance(void)
+{
+       __application = new (std::nothrow) EmailApp();
+       // Create the instance through the constructor.
+       return __application;
+}
+
+EmailApp*
+EmailApp::GetInstance(void)
+{
+       return __application;
+}
+
+bool
+EmailApp::OnAppInitializing(AppRegistry& appRegistry)
+{
+       // TODO:
+       // Initialize Frame and App specific data.
+       // The App's permanent data and context can be obtained from the appRegistry.
+       //
+       // If this method is successful, return true; otherwise, return false.
+       // If this method returns false, the App will be terminated.
+
+       // Uncomment the following statement to listen to the screen on/off events.
+       // PowerManager::SetScreenEventListener(*this);
+
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       r = AppControlProviderManager::GetInstance()->SetAppControlProviderEventListener(this);
+       AppLogDebug("SetAppControlProviderEventListener result:(%s)", GetErrorMessage(r));
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+bool
+EmailApp::OnAppInitialized(void)
+{
+       AppLogDebug("ENTER");
+
+       int res;
+       int modRes;
+       long long mem;
+
+       result r = E_SUCCESS;
+       MessageBox msgBox;
+       String languageKey = L"http://tizen.org/setting/locale.language";
+       String timeFormatKey = L"http://tizen.org/setting/locale.time.format.24hour";
+
+       String backButtonKey = L"http://tizen.org/feature/input.keys.back";
+       String menuButtonKey = L"http://tizen.org/feature/input.keys.menu";
+
+       // Create a Frame
+       EmailFrame* pEmailFrame = new (std::nothrow) EmailFrame();
+       pEmailFrame->Construct();
+       pEmailFrame->SetName(IDS_EMAIL_TEXT);
+       AddFrame(*pEmailFrame);
+
+       mem = GetAvailableMemory();
+       AppLogDebug("%lld",mem);
+
+       if(mem < MIN_MEMORY_NEEDED)
+       {
+               MessageBox LowMemory;
+               String msg = L"";
+               //LowMemory.Construct(Utils::GetResourceString(L"IDS_COM_BODY_WARNING"), L"Memory Low, Delete some data", MSGBOX_STYLE_NONE,1000);
+               LowMemory.Construct(Utils::GetResourceString(L"IDS_COM_BODY_WARNING"), Utils::GetResourceString(L"IDS_COM_POP_NOT_ENOUGH_MEMORY"), MSGBOX_STYLE_NONE,1000);
+               int modalResult = 0;
+               // Calls ShowAndWait() : Draws and Shows itself and processes events
+               LowMemory.ShowAndWait(modalResult);
+
+               return false;
+       }
+
+       if (email_service_begin() != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Email service begin failed!");
+               msgBox.Construct("Error!", "Launch failed due to Email Service error!", MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+               return false;
+       }
+
+       if ((res=email_open_db()) != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Open db failed with error:(%d)", res);
+               msgBox.Construct("Error!", "Launch failed due to DB error!", MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+               return false;
+       }
+
+       MailNotificationThread* pNotiThread = MailNotificationThread::GetInstance();
+       pNotiThread->Start();
+
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+       RegisterScenes();
+
+       if (__opId == EMAIL_OPERATION_COMPOSE)
+       {
+               if (EmailSettingsProvider::GetInstance()->GetDefaultAccountId() > 0)
+               {
+                       AppLogDebug("Args count:(%d)", __pArgs->GetCount());
+                       r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER), __pArgs);
+                       AppLogDebug("Result of goforward:(%s)", GetErrorMessage(r));
+               }
+               else
+               {
+                       r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ADD_ACCOUNT), __pArgs);
+                       AppLogDebug("Result of goforward:(%s)", GetErrorMessage(r));
+               }
+       }
+       else if (__opId == EMAIL_OPERATION_SETTINGS)
+       {
+               //              Create Email settings manager...
+               EmailSettingsProvider* pMailSettingsProvider = EmailSettingsProvider::GetInstance();
+
+               if (pMailSettingsProvider == null)
+               {
+                       AppLogDebug("Manager initialization failed!");
+                       AppLogDebug("EXIT, returning false");
+                       return false;
+               }
+
+               r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_EMAIL_SETTING));
+       }
+       else if (__opId == EMAIL_OPERATION_ADD_ACCOUNT)
+       {
+               //              Create Email settings manager...
+               EmailSettingsProvider* pMailSettingsProvider = EmailSettingsProvider::GetInstance();
+
+               if (pMailSettingsProvider == null)
+               {
+                       AppLogDebug("Manager initialization failed!");
+                       AppLogDebug("EXIT, returning false");
+                       return false;
+               }
+
+               r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ADD_ACCOUNT));
+       }
+       else if (__opId == EMAIL_OPERATION_ACCOUNT_CONFIG)
+       {
+               EmailAccount* pTmpAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__accountId);
+
+               ArrayList* pArgs = new ArrayList();
+               pArgs->Construct();
+
+               pArgs->Add(pTmpAccount);
+
+               r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ACCOUNT_CONFIG), pArgs);
+       }
+       else if (__opId == EMAIL_OPERATION_NONE)
+       {
+               int accountId;
+               Orientation frameOrientation;
+
+               // Create Email settings provider...
+               EmailSettingsProvider* pMailSettingsProvider = EmailSettingsProvider::GetInstance();
+
+               // Create Email Mailbox manager...
+               EmailMailboxManager* pMailboxManager = EmailMailboxManager::GetInstance();
+
+               if (pMailSettingsProvider == null || pMailboxManager == null)
+               {
+                       AppLogDebug("Manager initialization failed!");
+                       AppLogDebug("EXIT, returning false");
+                       return false;
+               }
+
+               accountId = pMailSettingsProvider->GetDefaultAccountId();
+               if (accountId > 0)
+               {
+                       Frame* pFrame = GetInstance()->GetFrame(IDS_EMAIL_TEXT);
+
+                       if (pFrame != null)
+                       {
+                               frameOrientation = pFrame->GetOrientation();
+
+                               AppLogDebug("check orientation:(%d)", frameOrientation);
+                               pSceneManager->GoForward(ForwardSceneTransition(IDSCN_INBOX));
+                       }
+               }
+               else
+               {
+                       pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ADD_ACCOUNT));
+               }
+       }
+
+       SettingInfo::GetValue(languageKey, __currentDisplayLanguage);
+       SettingInfo::GetValue(timeFormatKey, __is24HourFormat);
+       SettingInfo::AddSettingEventListener(*this);
+
+       AppLogDebug("EXIT, returning true");
+       return true;
+}
+
+bool
+EmailApp::OnAppWillTerminate(void)
+{
+       // TODO:
+       // Comment.
+       return true;
+}
+
+bool
+EmailApp::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+       AppLogDebug("ENTER");
+
+       if (__returnAppControlResult == true)
+       {
+               AppControlProviderManager::GetInstance()->SendAppControlResult(__appControlRequestId, __appControlResult, null);
+       }
+
+       if(email_close_db() != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Error closing DB!");
+       }
+
+       if(email_service_end() != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Error ending email service");
+       }
+
+       Utils::CleanUp();
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+EmailApp::OnForeground(void)
+{
+       // TODO:
+       // Start or resume drawing when the application is moved to the foreground.
+       AppLogDebug("ENTER");
+
+       Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+
+       if (pFrame != null)
+       {
+               Form* pForm = pFrame->GetCurrentForm();
+
+               if (pForm != null)
+               {
+                       AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                       pForm->SendUserEvent(IDA_EMAIL_APP_FOREGROUND, null);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailApp::OnBackground(void)
+{
+       AppLogDebug("ENTER");
+
+       EnableFrame();
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailApp::OnLowMemory(void)
+{
+       // TODO:
+       // Free unused resources or close the application.
+}
+
+void
+EmailApp::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+       // TODO:
+       // Handle any changes in battery level here.
+       // Stop using multimedia features(camera, mp3 etc.) if the battery level is CRITICAL.
+}
+
+void
+EmailApp::OnScreenOn(void)
+{
+       // TODO:
+       // Get the released resources or resume the operations that were paused or stopped in OnScreenOff().
+}
+
+void
+EmailApp::OnScreenOff(void)
+{
+       // TODO:
+       // Unless there is a strong reason to do otherwise, release resources (such as 3D, media, and sensors) to allow the device
+       // to enter the sleep mode to save the battery.
+       // Invoking a lengthy asynchronous method within this listener method can be risky, because it is not guaranteed to invoke a
+       // callback before the device enters the sleep mode.
+       // Similarly, do not perform lengthy operations in this listener method. Any operation must be a quick one.
+}
+
+void
+EmailApp::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER, requestId:(%d)", requestId);
+
+       if (requestId == IDA_NOTI_DELETE_FINISHED)
+       {
+               if (pArgs != null && pArgs->GetCount() == 2)
+               {
+                       int accountId = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+                       String* pData = static_cast<String*>(pArgs->GetAt(1));
+
+                       if (pData != null)
+                       {
+                               EmailMailboxManager::GetInstance()->RemoveData(accountId, pData);
+                       }
+
+                       Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+                       if(pFrame != null)
+                       {
+                               Form* pForm = pFrame->GetCurrentForm();
+                               if(pForm != null)
+                               {
+                                       AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                                       pForm->SendUserEvent(requestId, null);
+                               }
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_MAIL_MOVE_FINISHED)
+       {
+               AppLogDebug("EmailApp::mail data modified");
+
+               if (requestId == IDA_NOTI_MAIL_MOVE_FINISHED && pArgs != null)
+               {
+                       int fromMailboxId = static_cast<Integer*>(pArgs->GetAt(1))->ToInt();
+                       int toMailboxId = static_cast<Integer*>(pArgs->GetAt(2))->ToInt();
+                       HashMap* pMailIdMap = static_cast<HashMap*>(pArgs->GetAt(3));
+
+                       EmailMailboxManager::GetInstance()->MoveData(fromMailboxId, toMailboxId, pMailIdMap);
+
+                       pMailIdMap->RemoveAll(true);
+                       pArgs->RemoveAll(true);
+                       delete pArgs;
+               }
+
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(requestId, null);
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_MAIL_MOVE_FAIL)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(requestId, null);
+                       }
+               }
+       }
+       else if (requestId == IDA_VALIDATE_AND_CREATE_ACCOUNT_FINISH && pArgs != null)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = static_cast<Form *>(pFrame->GetCurrentForm());
+                       if(pForm != null)
+                       {
+                               if (pForm->GetName().Equals(IDL_LOGIN_FORM, true) == false &&
+                                       pForm->GetName().Equals(IDL_MANUAL_SETUP_FORM, true) == false)
+                               {
+                                       pArgs->RemoveAll(true);
+                                       delete pArgs;
+                                       pArgs = null;
+                               }
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_VALIDATE_AND_CREATE_ACCOUNT_FINISH, pArgs);
+                       }
+               }
+       }
+       else if (requestId == IDA_VALIDATE_AND_CREATE_ACCOUNT_FAIL)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = static_cast<Form *>(pFrame->GetCurrentForm());
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_VALIDATE_AND_CREATE_ACCOUNT_FAIL, null);
+                       }
+               }
+       }
+       else if (requestId == IDA_VALIDATE_ACCOUNT_FINISH)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = static_cast<Form *>(pFrame->GetCurrentForm());
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_VALIDATE_ACCOUNT_FINISH, pArgs);
+                       }
+               }
+       }
+       else if (requestId == IDA_VALIDATE_ACCOUNT_FAIL)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = static_cast<Form *>(pFrame->GetCurrentForm());
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_VALIDATE_ACCOUNT_FAIL, null);
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_MAIL_ADD && pArgs != null)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_NOTI_MAIL_ADD, pArgs);
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_DOWNLOAD_BODY_FAIL)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_NOTI_DOWNLOAD_BODY_FAIL, null);
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_DOWNLOAD_BODY_FINISH)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_NOTI_DOWNLOAD_BODY_FINISH, null);
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_START)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_NOTI_DOWNLOAD_ATTACH_START, pArgs);
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FINISH || requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(requestId, pArgs);
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_DOWNLOAD_FINISH && pArgs != null)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(IDA_NOTI_DOWNLOAD_FINISH, pArgs);
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_MAIL_UPDATE || requestId == IDA_NOTI_MAIL_FIELD_UPDATE)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(requestId, pArgs);
+                       }
+               }
+       }
+       else if (requestId == IDA_SYNC_IMAP_MAILBOX_LIST_FINISH || requestId == IDA_SYNC_IMAP_MAILBOX_LIST_FAIL)
+       {
+               Frame* pFrame = GetFrame(IDS_EMAIL_TEXT);
+
+               if(pFrame != null)
+               {
+                       Form* pForm = pFrame->GetCurrentForm();
+                       if(pForm != null)
+                       {
+                               AppLogDebug("Sending user event to form:(%ls)", pForm->GetName().GetPointer());
+                               pForm->SendUserEvent(requestId, pArgs);
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+ParseURI(const String* pBaseUri, ArrayList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       int index;
+       Uri baseUri;
+
+       String strTo;
+       String strCc;
+       String strBcc;
+       String strSubject;
+       String strBody;
+       String hname, hvalue, dHValue;
+       String token;
+       String encodedURI;
+       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+       result r = E_SUCCESS;
+
+       if (pBaseUri != null)
+       {
+               baseUri.SetUri(*pBaseUri);
+               encodedURI = baseUri.GetEncodedSchemeSpecificPart();
+
+               //set the text after 'mailto:' as part of 'to' email address
+               encodedURI.Insert(L"to=",0);
+
+               // Replace only the very first '?' with an '&'
+               r = encodedURI.IndexOf(L'?',0,index);
+               if (r == E_SUCCESS)
+               {
+                       encodedURI.SetCharAt(L'&',index);
+               }
+
+               StringTokenizer strTok(encodedURI, L"&");
+               while (strTok.HasMoreTokens())
+               {
+                       strTok.GetNextToken(token);
+
+                       AppLogDebug("Got token:(%ls)", token.GetPointer());
+
+                       // extract pairs of the form 'hname=hvalue'
+                       r = token.IndexOf(L'=', 0, index);
+                       if (r == E_SUCCESS)
+                       {
+                               r = token.SubString(0,index, hname);
+                               r |= token.SubString(index+1, hvalue);
+
+                               AppLogDebug("Got hname:(%ls), hvalue:(%ls)", hname.GetPointer(), hvalue.GetPointer());
+
+                               if (r == E_SUCCESS && hname.IsEmpty() == false)
+                               {
+                                       if (hname.Equals(L"to", false) == true && hvalue.IsEmpty() == false)
+                                       {
+                                               UrlDecoder::Decode(hvalue, L"UTF-8", dHValue);
+                                               strTo.Append(dHValue);
+                                               strTo.Append(", ");
+                                       }
+                                       else if (hname.Equals(L"cc", false) == true && hvalue.IsEmpty() == false)
+                                       {
+                                               UrlDecoder::Decode(hvalue, L"UTF-8", dHValue);
+                                               strCc.Append(dHValue);
+                                               strCc.Append(", ");
+                                       }
+                                       else if (hname.Equals(L"bcc", false) == true && hvalue.IsEmpty() == false)
+                                       {
+                                               UrlDecoder::Decode(hvalue, L"UTF-8", dHValue);
+                                               strBcc.Append(dHValue);
+                                               strBcc.Append(", ");
+                                       }
+                                       else if (hname.Equals(L"subject", false) == true)
+                                       {
+                                               UrlDecoder::Decode(hvalue, L"UTF-8", dHValue);
+                                               strSubject.Clear();
+                                               strSubject.Append(dHValue);
+                                       }
+                                       else if (hname.Equals(L"body", false) == true && hvalue.IsEmpty() == false)
+                                       {
+                                               if (strBody.IsEmpty() == true && hvalue.IsEmpty() == false)
+                                               {
+                                                       strBody.Append(hvalue);
+                                               }
+                                               else if (strBody.IsEmpty() == false && hvalue.IsEmpty() == false)
+                                               {
+                                                       strBody.Append(L"%0D%0A");
+                                                       strBody.Append(hvalue);
+                                               }
+                                               else if (strBody.IsEmpty() == false && hvalue.IsEmpty() == true)
+                                               {
+                                                       strBody.Append(L"%0D%0A");
+                                               }
+                                       }
+                               }
+                       }
+               }
+
+               if (strBody.IsEmpty() == false)
+               {
+                       UrlDecoder::Decode(strBody, L"UTF-8", dHValue);
+                       strBody.Clear(); strBody.Append(dHValue);
+               }
+       }
+
+       Utils::BuildEmailIdStringFromCSV(strTo, token);
+//     pArgs->Add(new (std::nothrow) String(token));       // To
+       pStateInfo->toFieldValue = token;
+
+       Utils::BuildEmailIdStringFromCSV(strCc, token);
+//     pArgs->Add(new (std::nothrow) String(token));       // Cc
+       pStateInfo->ccFieldValue = token;
+
+       Utils::BuildEmailIdStringFromCSV(strBcc, token);
+//     pArgs->Add(new (std::nothrow) String(token));       // Bcc
+       pStateInfo->bccFieldValue = token;
+
+//     pArgs->Add(new (std::nothrow) String(strSubject));  // Subject
+//     pArgs->Add(new (std::nothrow) String(strBody));     // Body
+//     pArgs->Add(new (std::nothrow) String());            // Attachments
+
+       pStateInfo->subjectFieldValue = strSubject;
+       pStateInfo->bodyFieldValue = strBody;
+       pStateInfo->attachmentsPath = L"";
+
+       pArgs->Add(pStateInfo);
+
+       AppLogDebug("to:(%ls)", strTo.GetPointer());
+       AppLogDebug("cc:(%ls)", strCc.GetPointer());
+       AppLogDebug("bcc:(%ls)", strBcc.GetPointer());
+       AppLogDebug("subj:(%ls)", strSubject.GetPointer());
+       AppLogDebug("body:(%ls)", strBody.GetPointer());
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailApp::OnAppControlRequestReceived(RequestId reqId, const String& operationId, const String* pUriData, const String* pMimeType, const IMap* pExtraData)
+{
+       AppLogDebug("ENTER, reqID:(%ld), operationID:(%ls)", reqId, operationId.GetPointer());
+       AppLogDebug("===", Utils::ParseExtraData(pExtraData));
+
+       __appControlRequestId = reqId;
+
+       if (operationId.Equals(IDS_TIZEN_OPERATIONID_COMPOSE, true))
+       {
+               __opId = EMAIL_OPERATION_COMPOSE;
+
+               AppLogDebug("Going to compose scene");
+
+               const String* pTmpVal = null;
+               const ArrayList* pTmpArr = null;
+               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+               __pArgs = new (std::nothrow) ArrayList();
+               __pArgs->Construct();
+
+               if (pExtraData)
+               {
+                       pTmpVal = static_cast<const String*>(pExtraData->GetValue(String(IDS_APPCONTROL_REQUEST_KEY_TO)));
+                       if (pTmpVal != null)
+                       {
+                               String tmpStr(*pTmpVal);
+                               tmpStr.Replace(L",", IDS_DELIM_SEMICOLON);
+//                             __pArgs->Add(new (std::nothrow) String(tmpStr));
+                               pStateInfo->toFieldValue = tmpStr;
+                       }
+                       else
+                       {
+//                             __pArgs->Add(new (std::nothrow) String());
+                               pStateInfo->toFieldValue = L"";
+                       }
+
+                       pTmpVal = static_cast<const String*>(pExtraData->GetValue(String(IDS_APPCONTROL_REQUEST_KEY_CC)));
+                       if (pTmpVal != null)
+                       {
+                               String tmpStr(*pTmpVal);
+                               tmpStr.Replace(L",", IDS_DELIM_SEMICOLON);
+//                             __pArgs->Add(new (std::nothrow) String(tmpStr));
+                               pStateInfo->ccFieldValue = tmpStr;
+                       }
+                       else
+                       {
+//                             __pArgs->Add(new (std::nothrow) String());
+                               pStateInfo->ccFieldValue = L"";
+                       }
+
+                       pTmpVal = static_cast<const String*>(pExtraData->GetValue(String(IDS_APPCONTROL_REQUEST_KEY_BCC)));
+                       if (pTmpVal != null)
+                       {
+                               String tmpStr(*pTmpVal);
+                               tmpStr.Replace(L",", IDS_DELIM_SEMICOLON);
+//                             __pArgs->Add(new (std::nothrow) String(tmpStr));
+                               pStateInfo->bccFieldValue = tmpStr;
+                       }
+                       else
+                       {
+//                             __pArgs->Add(new (std::nothrow) String());
+                               pStateInfo->bccFieldValue = L"";
+                       }
+
+                       pTmpVal = static_cast<const String*>(pExtraData->GetValue(String(IDS_APPCONTROL_REQUEST_KEY_SUBJECT)));
+                       if (pTmpVal != null)
+                       {
+//                             __pArgs->Add(new (std::nothrow) String(*pTmpVal));
+                               pStateInfo->subjectFieldValue = *pTmpVal;
+                       }
+                       else
+                       {
+//                             __pArgs->Add(new (std::nothrow) String());
+                               pStateInfo->subjectFieldValue = L"";
+                       }
+
+                       pTmpVal = static_cast<const String*>(pExtraData->GetValue(String(IDS_APPCONTROL_REQUEST_KEY_TEXT)));
+                       if (pTmpVal != null)
+                       {
+//                             __pArgs->Add(new (std::nothrow) String(*pTmpVal));
+                               pStateInfo->bodyFieldValue = *pTmpVal;
+                       }
+                       else
+                       {
+//                             __pArgs->Add(new (std::nothrow) String());
+                               pStateInfo->bodyFieldValue = L"";
+                       }
+
+                       pTmpArr = static_cast<const ArrayList*>(pExtraData->GetValue(String(IDS_APPCONTROL_REQUEST_KEY_ATTACH)));
+                       if (pTmpArr != null)
+                       {
+                               String val;
+                               String tmpVal;
+
+                               for (int i=0; i<pTmpArr->GetCount(); i++)
+                               {
+                                       tmpVal.Clear();
+                                       tmpVal.Append(*static_cast<const String*>(pTmpArr->GetAt(i)));
+
+                                       val.Append(tmpVal);
+                                       val.Append(IDS_DELIM_SEMICOLON);
+                               }
+
+//                             __pArgs->Add(new (std::nothrow) String(val));
+                               pStateInfo->attachmentsPath = val;
+                       }
+                       else
+                       {
+//                             __pArgs->Add(new (std::nothrow) String());
+                               pStateInfo->attachmentsPath = L"";
+                       }
+
+                       pTmpVal = static_cast<const String*>(pExtraData->GetValue(String(IDS_APPCONTROL_REQUEST_KEY_RETURN_RESULT)));
+                       if (pTmpVal != null && pTmpVal->Equals(L"true", false) == true)
+                       {
+                               SetAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
+                       }
+                       __pArgs->Add(pStateInfo);
+               }
+               else if (pUriData != null)
+               {
+                       AppLogDebug("Parsing uridata");
+
+                       //handle mailto uri scheme...
+                       const String* pBaseUri = pUriData;
+                       ParseURI(pBaseUri, __pArgs);
+               }
+               else
+               {
+                       AppLogDebug("ExtraData and pUriData were null");
+//                     __pArgs->Add(new (std::nothrow) String());
+//                     __pArgs->Add(new (std::nothrow) String());
+//                     __pArgs->Add(new (std::nothrow) String());
+//                     __pArgs->Add(new (std::nothrow) String());
+//                     __pArgs->Add(new (std::nothrow) String());
+//                     __pArgs->Add(new (std::nothrow) String());
+                       __pArgs->Add(pStateInfo);
+               }
+       }
+       else if (operationId.Equals(IDS_TIZEN_OPERATIONID_ACCOUNT_ADD, true))
+       {
+               AppLogDebug("Going to add account scene");
+               __opId = EMAIL_OPERATION_ADD_ACCOUNT;
+       }
+       else if (operationId.Equals(IDS_TIZEN_OPERATIONID_ACCOUNT_CONFIGURE, true))
+       {
+               AppLogDebug("Going to account config scene");
+               __opId = EMAIL_OPERATION_ACCOUNT_CONFIG;
+
+               if (pExtraData != null)
+               {
+                       Integer::Parse(*static_cast<const String*>(pExtraData->GetValue(String(IDS_TIZEN_APPCONTROL_KEY_ACCOUNT_ID))), __accountId);
+                       AppLogDebug("Got Account DB account id:(%d)", __accountId);
+
+                       IMapEnumerator* pMapEnum = EmailSettingsProvider::GetInstance()->GetAccountListN();
+
+                       if (pMapEnum != null)
+                       {
+                               while (!IsFailed(pMapEnum->MoveNext()))
+                               {
+                                       EmailAccount* pAccount = dynamic_cast<EmailAccount*>(pMapEnum->GetValue());
+
+                                       if (pAccount != null && pAccount->GetAccountSvcId() == __accountId)
+                                       {
+                                               __accountId = pAccount->GetAccountId();
+                                               break;
+                                       }
+                               }
+                               delete pMapEnum;
+                       }
+               }
+               else
+               {
+                       AppLogDebug("ExtraData was null");
+               }
+       }
+       else if (operationId.Equals(IDS_TIZEN_OPERATIONID_CONFIGURE, true))
+       {
+               AppLogDebug("Going to configure scene");
+               __opId = EMAIL_OPERATION_SETTINGS;
+       }
+       else if (operationId.Equals(IDS_TIZEN_OPERATIONID_SHARE_TEXT, true))
+       {
+               __opId = EMAIL_OPERATION_COMPOSE;
+
+               const String* pTmpVal = null;
+               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+               __pArgs = new (std::nothrow) ArrayList();
+               __pArgs->Construct();
+
+               if (pExtraData)
+               {
+                       pTmpVal = static_cast<const String*>(pExtraData->GetValue(String(IDS_APPCONTROL_REQUEST_KEY_SHARE_TEXT)));
+
+                       if (pTmpVal != null)
+                       {
+                               pStateInfo->bodyFieldValue = *pTmpVal;
+                       }
+               }
+
+               SetAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
+               __pArgs->Add(pStateInfo);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+OperationType
+EmailApp::GetOperationType(void)
+{
+       return __opId;
+}
+
+void
+EmailApp::SetAppControlResult(AppCtrlResult appCtrlResult)
+{
+       __returnAppControlResult = true;
+       __appControlResult = appCtrlResult;
+       return;
+}
+
+bool
+EmailApp::IsReturnResultSet(void)
+{
+       return __returnAppControlResult;
+}
+
+void
+EmailApp::OnSettingChanged(String& key)
+{
+       AppLogDebug("ENTER, key:(%ls)", key.GetPointer());
+
+       String languageSettingKey = L"http://tizen.org/setting/locale.language";
+       String timeFormatKey = L"http://tizen.org/setting/locale.time.format.24hour";
+       String fontSettingKey = L"http://tizen.org/setting/font.size";
+       String languageSelected;
+       bool is24HourFormat;
+
+       if (key.Equals(languageSettingKey, false) == true)
+       {
+               SettingInfo::GetValue(languageSettingKey, languageSelected);
+
+               if (__currentDisplayLanguage.Equals(languageSelected, false) == false)
+               {
+                       Application::Terminate();
+               }
+       }
+
+       if (key.Equals(timeFormatKey, false) == true)
+       {
+               SettingInfo::GetValue(timeFormatKey, is24HourFormat);
+
+               if (__is24HourFormat != is24HourFormat)
+               {
+                       Application::Terminate();
+               }
+       }
+
+       if (key.Equals(fontSettingKey, false) == true)
+       {
+               Application::Terminate();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailApp::DisableFrame(void)
+{
+       AppLogDebug("ENTER");
+
+       __frameDisabled = true;
+       GetAppFrame()->GetFrame()->SetEnabled(false);
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailApp::EnableFrame(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__frameDisabled)
+       {
+               AppLogDebug("Enabling frame");
+               GetAppFrame()->GetFrame()->SetEnabled(true);
+               GetAppFrame()->GetFrame()->Invalidate(true);
+               __frameDisabled = false;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+bool
+EmailApp::GetShowDeletePopupStatus(int& mailId, DeletionMode& delMode)
+{
+       AppLogDebug("Returning bool:(%d), mailId:(%d)", __showDeletePopup, __mailId);
+
+       delMode = __delMode;
+       mailId  = __mailId;
+
+       return __showDeletePopup;
+}
+
+void
+EmailApp::SetShowDeletePopupStatus(DeletionMode delMode, const int mailId)
+{
+       AppLogDebug("ENTER, delMode:(%d), mailId:(%d)", delMode, mailId);
+
+       __delMode = delMode;
+       __mailId  = mailId;
+       __showDeletePopup = true;
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailApp::ClearShowDeletePopupStatus(void)
+{
+       AppLogDebug("Cleared show delete popup status");
+
+       __mailId = -1;
+       __showDeletePopup = false;
+}
+
+bool
+EmailApp::GetDownloadBodyPopupStatus(int& accountId, int& handle)
+{
+       accountId = __downloadBodyAccountId;
+       handle = __downloadBodyHandle;
+
+       return __downloadBodyHandle;
+}
+
+void
+EmailApp::SetDownloadBodyPopupStatus(int accountId, int handle)
+{
+       __downloadBodyAccountId = accountId;
+       __downloadBodyHandle = handle;
+
+       return;
+}
+
+void
+EmailApp::ClearDownloadBodyPopupStatus(void)
+{
+       __downloadBodyAccountId = 0;
+       __downloadBodyHandle = 0;
+
+       return;
+}
+
+bool
+EmailApp::GetDownloadAttachmentPopupStatus(int& mailId, DownloadInitiatorMode& forwardMode)
+{
+       AppLogDebug("ENTER");
+
+       mailId = __downloadMailId;
+       forwardMode = __downloadMode;
+
+       AppLogDebug("EXIT maildId:(%d), forwardMode:(%d)", mailId, forwardMode);
+       return __showDownloadAttachmentPopup;
+}
+
+void
+EmailApp::SetDownloadAttachmentPopupStatus(const int mailId, DownloadInitiatorMode downloadMode)
+{
+       AppLogDebug("ENTER");
+
+       __downloadMailId = mailId;
+       __downloadMode = downloadMode;
+       __showDownloadAttachmentPopup = true;
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailApp::ClearDownloadAttachmentPopupStatus(void)
+{
+       AppLogDebug("ENTER");
+
+       __downloadMailId = -1;
+       __showDownloadAttachmentPopup = false;
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailApp::SetDownloadFailedPopupStatus(bool showPopup)
+{
+       AppLogDebug("ENTER");
+
+       __showDownloadFailedPopup = showPopup;
+
+       AppLogDebug("EXIT");
+}
+
+bool
+EmailApp::GetDownloadFailedPopupStatus(void)
+{
+       AppLogDebug("ENTER & EXIT");
+       return __showDownloadFailedPopup;
+}
+
+void
+EmailApp::SetMoveOrDeleteFailedPopupStatus(bool isMoveFailed)
+{
+       AppLogDebug("ENTER");
+
+       __showMoveOrDeleteFailedPopup = true;
+       __isMoveFailed = isMoveFailed;
+
+       AppLogDebug("EXIT");
+}
+
+bool
+EmailApp::GetMoveOrDeleteFailedPopupStatus(bool& isMoveFailed)
+{
+       AppLogDebug("ENTER");
+
+       isMoveFailed = __isMoveFailed;
+
+       AppLogDebug("EXIT");
+       return __showMoveOrDeleteFailedPopup;
+}
+
+void
+EmailApp::ClearMoveOrDeleteFailedPopupStatus(void)
+{
+       AppLogDebug("ENTER");
+
+       __showMoveOrDeleteFailedPopup = false;
+       __isMoveFailed = false;
+
+       AppLogDebug("EXIT");
+}
+
+long long
+EmailApp::GetAvailableMemory(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       String key(L"http://tizen.org/runtime/storage.available.internal");
+       long long allocatedMemory = 0;
+
+       r = RuntimeInfo::GetValue(key, allocatedMemory);
+       TryCatch(r == E_SUCCESS, , "MyRuntimeInfo: Failed to get value");
+
+       AppLogDebug("EXIT, allocatedMemory:(%ll)", allocatedMemory);
+       return allocatedMemory;
+
+CATCH:
+       AppLogDebug("EXIT, allocatedMemory:(0)");
+       return 0;
+}
+
+void
+EmailApp::RegisterScenes(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+
+       static EmailFormFactory formFactory;
+       r = pSceneManager->RegisterFormFactory(formFactory);
+       AppLogDebugIf(r != E_SUCCESS, "Failed to register form factory");
+
+       r |= pSceneManager->RegisterScene(IDSCN_ADD_ACCOUNT,              ADD_ACCOUNT_FORM,              L"");
+       r |= pSceneManager->RegisterScene(IDSCN_INBOX,                    INBOX_FORM,                    L"");
+       r |= pSceneManager->RegisterScene(IDSCN_EMAIL_COMPOSER,           EMAIL_COMPOSER_FORM,           L"");
+       r |= pSceneManager->RegisterScene(IDSCN_EMAIL_DETAIL,             EMAIL_DETAIL_FORM,             L"");
+       r |= pSceneManager->RegisterScene(IDSCN_MOVEMAIL,                 MOVEMAIL_FORM,                 L"");
+       r |= pSceneManager->RegisterScene(IDSCN_MOVEMAIL_SELECTED,        MOVEMAIL_SELECTED_FORM,        L"");
+       r |= pSceneManager->RegisterScene(IDSCN_EMAIL_SETTING,            EMAIL_SETTING_FORM,            L"");
+       r |= pSceneManager->RegisterScene(IDSCN_ADD_ADDRESS,              ADD_ADDRESS_FORM,              L"");
+       r |= pSceneManager->RegisterScene(IDSCN_EMAIL_BLOCK,              BLOCK_EMAIL_FORM,              L"");
+       r |= pSceneManager->RegisterScene(IDSCN_ACCOUNT_SETTING,          ACCOUNT_SETTING_FORM,          L"");
+       r |= pSceneManager->RegisterScene(IDSCN_ADD_SUBJECT,              ADD_SUBJECT_FORM,              L"");
+       r |= pSceneManager->RegisterScene(IDSCN_DELETE_ADDRESS_SUBJECT,   DELETE_ADDRESS_SUBJECT_FORM,   L"");
+       r |= pSceneManager->RegisterScene(IDSCN_SETTING_SETUP_MAILBOX,    SETTING_SETUP_MAILBOX_FORM,    L"");
+       r |= pSceneManager->RegisterScene(IDSCN_ADD_ACCOUNT_MANUAL_SETUP, ADD_ACCOUNT_MANUAL_SETUP_FORM, L"");
+       r |= pSceneManager->RegisterScene(IDSCN_SEARCH,                   SEARCH_FORM,                   L"");
+       r |= pSceneManager->RegisterScene(IDSCN_SPLIT_VIEW,               SPLIT_VIEW_FORM,               L"");
+       r |= pSceneManager->RegisterScene(IDSCN_FOLDERS_VIEW,             FOLDERS_VIEW_FORM,             L"");
+       r |= pSceneManager->RegisterScene(IDSCN_ACCOUNT_CONFIG,           ACCOUNT_CONFIG_FORM,           L"");
+
+       AppLogDebugIf(r != E_SUCCESS, "Failed to register scene");
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmEmailEntry.cpp b/src/EmEmailEntry.cpp
new file mode 100755 (executable)
index 0000000..a16d31d
--- /dev/null
@@ -0,0 +1,76 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * This file contains the Tizen application entry point.
+ */
+#include "EmEmailApp.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+_EXPORT_ int OspMain(int argc, char* pArgv[]);
+#ifdef _PROFILE
+extern void start_profile(void);
+extern void end_profile(void);
+#else // ifdef _PROFILE
+#define start_profile()
+#define end_profile()
+#endif // ifdef _PROFILE
+
+/**
+ * The entry function of Tizen application called by the operating system.
+ */
+int
+OspMain(int argc, char* pArgv[])
+{
+       result r = E_SUCCESS;
+
+       AppLogDebug("Application started.");
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+       pArgs->Construct();
+
+       for (int i = 0; i < argc; i++)
+       {
+               pArgs->Add((new (std::nothrow) String(pArgv[i])));
+       }
+
+       start_profile();
+       r = Tizen::App::UiApp::Execute(EmailApp::CreateInstance, pArgs);
+
+       if (IsFailed(r))
+       {
+               AppLogException("Application execution failed-[%s].", GetErrorMessage(r));
+               r &= 0x0000FFFF;
+       }
+
+       end_profile();
+
+       pArgs->RemoveAll(true);
+       delete pArgs;
+       AppLogDebug("Application finished.");
+
+       return static_cast<int>(r);
+}
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/src/EmEmailSettingForm.cpp b/src/EmEmailSettingForm.cpp
new file mode 100755 (executable)
index 0000000..7a21cf5
--- /dev/null
@@ -0,0 +1,1006 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file                             EmailSettingsForm.cpp
+ * @brief                                   EmailSetting View provides the user with Email Settings in choosing
+ * default account, options like showing recent mails
+ * many other features.
+ *
+ */
+
+#include <FApp.h>
+#include "EmEmailApp.h"
+#include "EmEmailSettingForm.h"
+#include "EmEmailSettingProvider.h"
+#include "EmEmailSettingPresentationModel.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+const int GROUP_COUNT = 2;
+const int SHOW_RECENT_EMAILS_COUNT = 8;
+
+enum
+{
+       ACCOUNT_GROUP,
+       ALL_ACCOUNTS_GROUP
+};
+
+enum
+{
+       DEFAULT_SENDING_ACCOUNT = 0,
+       SHOW_EMAILS = 10000,
+       BLOCK_EMAILS = 12000
+};
+
+// Constructor.
+EmailSettingsForm::EmailSettingsForm(void)
+       : __fontSize(44.0f)
+       , __itemHeight(150.0f)
+       , __pInputArguments(null)
+       , __pAllAccountList(null)
+       , __pAccountGroupList(null)
+       , __pArrowBmpDown(null)
+       , __pArrowBmpUp(null)
+{
+       //Empty implementation
+}
+
+// Destructor.
+EmailSettingsForm::~EmailSettingsForm(void)
+{
+       if (__pArrowBmpDown)
+       {
+               delete __pArrowBmpDown;
+               __pArrowBmpDown = null;
+       }
+
+       if (__pArrowBmpUp)
+       {
+               delete __pArrowBmpUp;
+               __pArrowBmpUp = null;
+       }
+}
+
+// Called to Initialize the form.
+bool
+EmailSettingsForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       r = Construct(IDL_SETTINGS_FORM);
+
+       AppLogDebug("EXIT r = %s", GetErrorMessage(r));
+       return true;
+}
+
+// Called after initializing the form.
+result
+EmailSettingsForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       Button* pDoneButton = null;
+       Button* pCancelButton = null;
+
+       AddOrientationEventListener(*this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       GetFooter()->AddActionEventListener(*this);
+       SetFormBackEventListener(this);
+
+       __pMainSectionTableView = static_cast<SectionTableView*>(GetControl(IDC_SECTIONTABLEVIEW, true));
+       __pColorPickerPanel = static_cast<ScrollPanel*>(GetControl(IDC_COLOR_PICKER_SCROLLPANEL, true));
+       __pPanel = static_cast<Panel*>(GetControl(IDC_PANEL, true));
+       __pColorPicker = static_cast<ColorPicker*>(GetControl(IDC_COLOR_PICKER, true));
+       __pselectedColorLabel = static_cast<Label*>(GetControl(IDC_SELECTED_COLOR_LABEL, true));
+       pDoneButton = static_cast<Button*>(GetControl(IDC_DONE_BUTTON, true));
+       pCancelButton = static_cast<Button*>(GetControl(IDC_CANCEL_BUTTON, true));
+
+       pDoneButton->SetActionId(IDA_EMAIL_SETTING_FORM_BUTTON_SAVE_COLOR);
+       pDoneButton->AddActionEventListener(*this);
+       pCancelButton->SetActionId(IDA_EMAIL_SETTING_FORM_BUTTON_CANCEL_COLOR);
+       pCancelButton->AddActionEventListener(*this);
+
+       __pColorPicker->AddColorChangeEventListener(*this);
+
+       __pArrowBmpDown = App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BUTTON_EXPAND_CLOSED);
+       __pArrowBmpUp = App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BUTTON_EXPAND_OPENED);
+
+       __pAccountGroupList = new (std::nothrow) ArrayList();
+       __pAccountGroupList->Construct();
+
+       __pAllAccountList = new (std::nothrow) ArrayList();
+       __pAllAccountList->Construct();
+
+       SetFontValues();
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+EmailSettingsForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+// Called when the form is about to terminate.
+result
+EmailSettingsForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pAccountGroupList != null)
+       {
+               __pAccountGroupList->RemoveAll(true);
+               delete __pAccountGroupList;
+               __pAccountGroupList = null;
+       }
+
+       if (__pAllAccountList != null)
+       {
+               __pAllAccountList->RemoveAll(false);
+               delete __pAllAccountList;
+               __pAllAccountList = null;
+       }
+
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+// Called when the action is performed on UI control.
+void
+EmailSettingsForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+
+       if (actionId >= 0 && actionId < __pAllAccountList->GetCount())
+       {
+               FloatRectangle panelBounds, labelBounds;
+               EmailAccount* pAcc = static_cast <EmailAccount*>(__pAllAccountList->GetAt(actionId));
+               Color accountColor = pAcc->GetColorCode();
+               panelBounds = __pPanel->GetBoundsF();
+               panelBounds.height = 55.0;
+               __pPanel->SetBounds(panelBounds);
+               labelBounds = __pselectedColorLabel->GetBoundsF();
+               labelBounds.x = (this->GetBounds().width - labelBounds.width)/2;
+               __pselectedColorLabel->SetBounds(labelBounds);
+               __pselectedColorLabel->SetBackgroundColor(accountColor);
+               __color = accountColor;
+               __pColorPicker->SetColor(accountColor);
+
+               if (GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE || GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
+               {
+                       FloatRectangle colorPickerBounds;
+                       colorPickerBounds = __pColorPickerPanel->GetBoundsF();
+                       colorPickerBounds.height = 145.0;
+                       __pColorPickerPanel->SetBounds(colorPickerBounds);
+               }
+               else
+               {
+                       FloatRectangle colorPickerBounds;
+                       colorPickerBounds = __pColorPickerPanel->GetBoundsF();
+                       colorPickerBounds.height = 336.0;
+                       __pColorPickerPanel->SetBounds(colorPickerBounds);
+               }
+
+               __accountIndex = actionId;
+               __pColorPickerPanel->SetShowState(true);
+               __pPanel->SetShowState(true);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_EMAIL_SETTING_FORM_FOOTER_ADD_ACCOUNT)
+       {
+               pSceneManager->GoForward((ForwardSceneTransition(IDSCN_ADD_ACCOUNT)), __pInputArguments);
+       }
+       else if (actionId == IDA_EMAIL_SETTING_FORM_BUTTON_SAVE_COLOR)
+       {
+               FloatRectangle colorPickerBounds, panelBounds;
+               colorPickerBounds = __pColorPickerPanel->GetBoundsF();
+               colorPickerBounds.height = 0;
+               __pColorPickerPanel->SetBounds(colorPickerBounds);
+               __pColorPickerPanel->SetShowState(false);
+               panelBounds = __pPanel->GetBoundsF();
+               panelBounds.height = 0;
+               __pPanel->SetBounds(panelBounds);
+               __pPanel->SetShowState(false);
+
+               EmailAccount* pAcc = static_cast <EmailAccount*>(__pAllAccountList->GetAt(__accountIndex));
+               pAcc->SetColorCode(__color);
+
+               __pMainSectionTableView->RefreshItem(ALL_ACCOUNTS_GROUP, __accountIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+               EmailSettingsPresentationModel::GetInstance()->SaveSettings(pAcc);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_EMAIL_SETTING_FORM_BUTTON_CANCEL_COLOR)
+       {
+               FloatRectangle colorPickerBounds, panelBounds;
+               colorPickerBounds = __pColorPickerPanel->GetBoundsF();
+               colorPickerBounds.height = 0;
+               __pColorPickerPanel->SetBounds(colorPickerBounds);
+               __pColorPickerPanel->SetShowState(false);
+               panelBounds = __pPanel->GetBoundsF();
+               panelBounds.height = 0;
+               __pPanel->SetBounds(panelBounds);
+               __pPanel->SetShowState(false);
+               Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+// Called when form back is requested.
+void
+EmailSettingsForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       if (EmailApp::GetInstance()->GetOperationType() == EMAIL_OPERATION_SETTINGS)
+       {
+               // Terminate since we launched through appcontrol.
+               App::GetInstance()->Terminate();
+
+       }
+       else
+       {
+               result r = SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), __pInputArguments);
+
+               if (r == E_UNDERFLOW)
+               {
+                       // Terminate app since this is an appcontrol call;
+                       App::GetInstance()->Terminate();
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+// Called when scene is activated.
+void
+EmailSettingsForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+                                     const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+       int defaultAccountId = 0;
+       FloatRectangle colorPickerBounds, panelBounds;
+       EmailSettingsProvider* pAccMgr = EmailSettingsProvider::GetInstance();
+       __pAllAccountList->RemoveAll(false);
+       __pAccountGroupList->RemoveAll(true);
+
+       if (pArgs != null)
+       {
+               __pInputArguments = new (std::nothrow) ArrayList();
+               __pInputArguments->Construct();
+               __pInputArguments->AddItems(*pArgs);
+       }
+
+       if (pAccMgr != null)
+       {
+               IMapEnumerator* pMapEnum = pAccMgr->GetAccountListN();
+               defaultAccountId = pAccMgr->GetDefaultAccountId();
+
+               if (pMapEnum != null)
+               {
+                       while (!IsFailed(pMapEnum->MoveNext()))
+                       {
+                               EmailAccount* pAcc = static_cast<EmailAccount*>(pMapEnum->GetValue());
+
+                               __pAllAccountList->Add(pAcc);
+                       }
+
+                       delete pMapEnum;
+               }
+       }
+
+       if (defaultAccountId > 0)
+       {
+               __pAccountGroupList->Add(new (std::nothrow) Integer(DEFAULT_SENDING_ACCOUNT));
+               __pAccountGroupList->Add(new (std::nothrow) Integer(SHOW_EMAILS));
+               __pAccountGroupList->Add(new (std::nothrow) Integer(BLOCK_EMAILS));
+       }
+
+       if (__pMainSectionTableView != null)
+       {
+               __pMainSectionTableView->SetItemProvider(this);
+               __pMainSectionTableView->UpdateTableView();
+               __pMainSectionTableView->AddSectionTableViewItemEventListener(*this);
+       }
+
+       colorPickerBounds = __pColorPickerPanel->GetBoundsF();
+       colorPickerBounds.height = 0;
+       __pColorPickerPanel->SetBounds(colorPickerBounds);
+       __pColorPickerPanel->SetShowState(false);
+       panelBounds = __pPanel->GetBoundsF();
+       panelBounds.height = 0;
+       __pPanel->SetBounds(panelBounds);
+       __pPanel->SetShowState(false);
+       Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+// Called when scene is Deactivated.
+void
+EmailSettingsForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER");
+
+//     __pAllAccountList->RemoveAll(false);
+//     __pAccountGroupList->RemoveAll(true);
+       __pMainSectionTableView->RemoveSectionTableViewItemEventListener(*this);
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailSettingsForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER");
+
+       if (__pPanel->GetShowState())
+       {
+               FloatRectangle labelBounds,panelBounds;
+               panelBounds = __pPanel->GetBoundsF();
+               panelBounds.height = 55.0;
+               __pPanel->SetBounds(panelBounds);
+               labelBounds = __pselectedColorLabel->GetBoundsF();
+               labelBounds.x = (this->GetBounds().width - labelBounds.width)/2;
+               __pselectedColorLabel->SetBounds(labelBounds);
+               __pselectedColorLabel->Invalidate(true);
+       }
+       else
+       {
+               FloatRectangle colorPickerBounds, panelBounds;
+               colorPickerBounds = __pColorPickerPanel->GetBoundsF();
+               colorPickerBounds.height = 0;
+               __pColorPickerPanel->SetBounds(colorPickerBounds);
+               __pColorPickerPanel->SetShowState(false);
+               panelBounds = __pPanel->GetBoundsF();
+               panelBounds.height = 0;
+               __pPanel->SetBounds(panelBounds);
+               __pPanel->SetShowState(false);
+               Invalidate(true);
+       }
+
+       if (__pColorPickerPanel->GetShowState() == true)
+       {
+               if (GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE || GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
+               {
+                       FloatRectangle colorPickerBounds;
+                       colorPickerBounds = __pColorPickerPanel->GetBoundsF();
+                       colorPickerBounds.height = 145.0;
+                       __pColorPickerPanel->SetBounds(colorPickerBounds);
+               }
+               else
+               {
+                       FloatRectangle colorPickerBounds;
+                       colorPickerBounds = __pColorPickerPanel->GetBoundsF();
+                       colorPickerBounds.height = 336.0;
+                       __pColorPickerPanel->SetBounds(colorPickerBounds);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailSettingsForm::OnColorChanged(const Control& source, const Color& color)
+{
+       AppLogDebug("ENTER");
+
+       __color = color;
+       __pselectedColorLabel->SetBackgroundColor(color);
+
+       AppLogDebug("EXIT: shravya OnColorChanged %d %d %d", color.GetRed(), color.GetGreen(), __color.GetBlue());
+       return;
+}
+
+int
+EmailSettingsForm::GetSectionCount(void)
+{
+       return GROUP_COUNT;
+}
+
+int
+EmailSettingsForm::GetItemCount(int sectionIndex)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d)", sectionIndex);
+
+       int retVal = 0;
+
+       switch (sectionIndex)
+       {
+       case ACCOUNT_GROUP:
+               retVal =  __pAccountGroupList->GetCount();
+               break;
+
+       case ALL_ACCOUNTS_GROUP:
+               retVal = __pAllAccountList->GetCount();
+               break;
+       }
+
+       AppLogDebug("EXIT, returning:(%d)", retVal);
+       return retVal;
+}
+
+TableViewItem*
+EmailSettingsForm::CreateItem(int sectionIndex, int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       int index;
+
+       Color textColor(45,45,45);
+
+       Label* pLabel = null;
+       Label* pLabel1 = null;
+       Label* pLabel2 = null;
+       Button* pButton = null;
+       TableViewItem* pItem = null;
+       Rectangle bounds = Rectangle(0, 0, itemWidth, __itemHeight);
+       RelativeLayout layout;
+       layout.Construct();
+
+       if (sectionIndex == ACCOUNT_GROUP)
+       {
+               pItem = new (std::nothrow) TableViewItem();
+               index = static_cast<Integer*>(__pAccountGroupList->GetAt(itemIndex))->ToInt();
+
+               if (index == DEFAULT_SENDING_ACCOUNT)
+               {
+                       String defaultAccAddress;
+                       EmailSettingsProvider* pAccMgr = EmailSettingsProvider::GetInstance();
+
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+                       pItem->SetName(IDS_ITEM_CLOSED);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(X_ORIGIN,Y_ORIGIN,itemWidth, __itemHeight - H_MANUAL_SETUP_ITEM/2), Utils::GetResourceString(L"IDS_EMAIL_BODY_DEFAULT_SENDING_ACCOUNT"));
+                       pLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+                       pItem->AddControl(pLabel);
+//                     layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       pLabel1 = new (std::nothrow) Label();
+                       pLabel1->Construct(Rectangle(0,__itemHeight - H_MANUAL_SETUP_ITEM/2,itemWidth, H_MANUAL_SETUP_ITEM/2), L"");
+                       pLabel1->SetName(L"defaultaccountname");
+                       pLabel1->SetTextColor(textColor);
+                       pLabel1->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel1->SetTextVerticalAlignment(ALIGNMENT_TOP);
+                       pItem->AddControl(pLabel1);
+//                     layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       if (pAccMgr != null)
+                       {
+                               int defaultAccountId = pAccMgr->GetDefaultAccountId();
+
+                               if (defaultAccountId > 0)
+                               {
+                                       defaultAccAddress = pAccMgr->GetAccountById(defaultAccountId)->GetUserEmailAddress();
+                               }
+                               else
+                               {
+                                       defaultAccAddress = L"None";
+                               }
+                       }
+
+                       pLabel1->SetText(defaultAccAddress);
+
+                       pLabel2 = new (std::nothrow) Label();
+                       pLabel2->Construct(Rectangle(itemWidth-GENERIC_OFFSET_16-64,(__itemHeight-64)/2,64,64), L"");
+                       pLabel2->SetBackgroundBitmap(*__pArrowBmpDown);
+                       pLabel2->SetName(L"arrow");
+                       pItem->AddControl(pLabel2);
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*pLabel, pLabel2, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+                       layout.SetRelation(*pLabel2, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*pLabel2, GENERIC_OFFSET_16,GENERIC_OFFSET_16,0,0);
+               }
+               else if (index > DEFAULT_SENDING_ACCOUNT && index < SHOW_EMAILS)
+               {
+                       EmailSettingsProvider* pAccMgr = EmailSettingsProvider::GetInstance();
+                       EmailAccount* pAcc = pAccMgr->GetAccountById(index);
+                       String emailAddress = pAcc->GetUserEmailAddress();
+
+                       pItem->Construct(layout, Dimension(bounds.width, __itemHeight), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(X_ORIGIN, Y_ORIGIN, bounds.width, __itemHeight), emailAddress);
+                       pLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*pLabel, pItem->GetAnnexWidth(TABLE_VIEW_ANNEX_STYLE_RADIO) + GENERIC_OFFSET_16,0,0,0);
+               }
+               else if (index == SHOW_EMAILS)
+               {
+                       int showEmailCount;
+                       String showEmailLabel(Utils::GetResourceString(L"IDS_EMAIL_BODY_RECENT"));
+                       EmailSettingsPresentationModel* pSettingMgr = EmailSettingsPresentationModel::GetInstance();
+
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+                       pItem->SetName(IDS_ITEM_CLOSED);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(X_ORIGIN,Y_ORIGIN,itemWidth, __itemHeight - H_MANUAL_SETUP_ITEM/2), Utils::GetResourceString(L"IDS_EMAIL_BODY_SHOW_EMAILS"));
+                       pLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+                       pItem->AddControl(pLabel);
+//                     layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       pLabel1 = new (std::nothrow) Label();
+                       pLabel1->Construct(Rectangle(0, __itemHeight - H_MANUAL_SETUP_ITEM/2, itemWidth, H_MANUAL_SETUP_ITEM/2), L"");
+                       pLabel1->SetName(L"showrecent");
+                       pLabel1->SetTextColor(textColor);
+                       pLabel1->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel1->SetTextVerticalAlignment(ALIGNMENT_TOP);
+                       pItem->AddControl(pLabel1);
+//                     layout.SetHorizontalFitPolicy(*pLabel1, FIT_POLICY_PARENT);
+                       showEmailCount = pSettingMgr->GetShowEmails();
+                       showEmailLabel.Append(L" ");
+                       showEmailLabel.Append(showEmailCount);
+                       pLabel1->SetText(showEmailLabel);
+
+                       pLabel2 = new (std::nothrow) Label();
+                       pLabel2->Construct(Rectangle(itemWidth-GENERIC_OFFSET_16-64,(__itemHeight - 64)/2,64,64), L"");
+                       pLabel2->SetBackgroundBitmap(*__pArrowBmpDown);
+                       pLabel2->SetName(L"arrow");
+                       pItem->AddControl(pLabel2);
+
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*pLabel, pLabel2, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+                       layout.SetRelation(*pLabel2, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*pLabel2, GENERIC_OFFSET_16,GENERIC_OFFSET_16,0,0);
+               }
+               else if (index > SHOW_EMAILS && index < BLOCK_EMAILS)
+               {
+                       String recentValue(Utils::GetResourceString(L"IDS_EMAIL_BODY_RECENT"));
+                       index = index - SHOW_EMAILS;
+                       recentValue.Append(L" ");
+                       recentValue.Append(index);
+
+                       pItem->Construct(layout, Dimension(bounds.width, __itemHeight), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(X_ORIGIN, Y_ORIGIN, itemWidth, __itemHeight), recentValue);
+                       pLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*pLabel, pItem->GetAnnexWidth(TABLE_VIEW_ANNEX_STYLE_RADIO) + GENERIC_OFFSET_16,0,0,0);
+               }
+               else if (index == BLOCK_EMAILS)
+               {
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(X_ORIGIN,Y_ORIGIN,itemWidth, __itemHeight), Utils::GetResourceString(L"IDS_EMAIL_BODY_BLOCK_EMAILS"));
+                       pLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+               }
+       }
+       else if (sectionIndex == ALL_ACCOUNTS_GROUP)
+       {
+               Label* pAccountColorLabel = null;
+               Label* pLogoLabel = null;
+               Label* pAccountNameLabel = null;
+               Label* pAddressLabel = null;
+               String colorLabel(L"colorlabel");
+               String colorButton(L"colorbutton");
+
+               AppResource* pAppRes = App::GetInstance()->GetAppResource();
+               EmailAccount* pAcc = static_cast <EmailAccount*>(__pAllAccountList->GetAt(itemIndex));
+               Bitmap* pLogo = pAppRes->GetBitmapN(File::GetFileName(pAcc->GetLogoIconPath()));
+               Color accountColor = pAcc->GetColorCode();
+
+               pItem = new (std::nothrow) TableViewItem();
+               pItem->Construct(layout, Dimension(bounds.width, __itemHeight), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+               colorLabel.Append(itemIndex);
+               pAccountColorLabel = new (std::nothrow) Label();
+               pAccountColorLabel->Construct(Rectangle(X_ORIGIN, 6, W_SELECTEDCOLOR_ITEM, H_SELECTEDCOLOR_ITEM), L"");
+               pAccountColorLabel->SetName(colorLabel);
+               pAccountColorLabel->SetBackgroundColor(accountColor);
+               pItem->AddControl(pAccountColorLabel);
+
+               pLogoLabel = new (std::nothrow) Label();
+               pLogoLabel->Construct(Rectangle(X_ACCOUNT_BITMAP_ITEM, (__itemHeight /*- H_DEFAULTACCOUNT_ITEM/2*/ - H_ACCOUNT_BITMAP_ITEM)/2, W_ACCOUNT_BITMAP_ITEM, H_ACCOUNT_BITMAP_ITEM), L"");
+               pLogoLabel->SetBackgroundBitmap(*pLogo);
+               pItem->AddControl(pLogoLabel);
+
+               pAccountNameLabel = new (std::nothrow) Label();
+               pAccountNameLabel->Construct(Rectangle(X_ACCOUNT_NAME_ITEM, Y_ORIGIN, W_ACCOUNT_NAME_ITEM, __itemHeight - H_DEFAULTACCOUNT_ITEM/2), pAcc->GetAccountName());
+               pAccountNameLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+               pAccountNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+               pAccountNameLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+//             pAccountNameLabel->SetTextConfig(FONT_SIZE_MAIN_TEXT, LABEL_TEXT_STYLE_NORMAL);
+               pItem->AddControl(pAccountNameLabel);
+
+               pAddressLabel = new (std::nothrow) Label();
+               pAddressLabel->Construct(Rectangle(X_ACCOUNT_NAME_ITEM, __itemHeight - H_DEFAULTACCOUNT_ITEM/2, W_ACCOUNT_NAME_ITEM, H_DEFAULTACCOUNT_ITEM/2), pAcc->GetUserEmailAddress());
+               pAddressLabel->SetTextColor(Color::GetColor(COLOR_ID_GREY));
+               pAddressLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+               pAddressLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
+               pAddressLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
+               pItem->AddControl(pAddressLabel);
+
+               colorButton.Append(itemIndex);
+               pButton = new (std::nothrow) Button();
+               pButton->Construct(Rectangle(pItem->GetWidth() - W_CHOOSE_COLOR_ITEM, (__itemHeight - H_CHOOSE_COLOR_ITEM) / 2, W_CHOOSE_COLOR_ITEM, H_CHOOSE_COLOR_ITEM), L"");
+               pButton->SetName(colorButton);
+               pButton->SetActionId(itemIndex);
+               pButton->SetColor(BUTTON_STATUS_NORMAL, accountColor);
+               pButton->SetColor(BUTTON_STATUS_PRESSED, accountColor);
+               pButton->AddActionEventListener(*this);
+               pItem->AddControl(pButton);
+               pItem->SetIndividualSelectionEnabled(pButton, true);
+
+               layout.SetRelation(*pAccountColorLabel, pItem, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+               layout.SetRelation(*pAccountNameLabel, pLogoLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+               layout.SetRelation(*pAddressLabel, pLogoLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+               layout.SetRelation(*pAccountNameLabel, pButton, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+               layout.SetRelation(*pAddressLabel, pButton, RECT_EDGE_RELATION_RIGHT_TO_LEFT);
+               layout.SetRelation(*pButton, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               layout.SetMargin(*pLogoLabel, 10, 10, (__itemHeight - H_ACCOUNT_BITMAP_ITEM) / 2, (__itemHeight - H_ACCOUNT_BITMAP_ITEM) / 2);
+               layout.SetMargin(*pButton, 10, 10, (__itemHeight - H_CHOOSE_COLOR_ITEM) / 2, (__itemHeight - H_CHOOSE_COLOR_ITEM) / 2);
+       }
+
+       layout.Update();
+       AppLogDebug("EXIT, item address:(%x)", pItem);
+       return pItem;
+}
+
+bool
+EmailSettingsForm::DeleteItem(int sectionIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("deleting item - sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       delete pItem;
+
+       return true;
+}
+
+void
+EmailSettingsForm::UpdateItem(int sectionIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+       Label* pLabel = null;
+       Button* pButton = null;
+
+       if (sectionIndex == ACCOUNT_GROUP)
+       {
+               int index = static_cast<Integer*>(__pAccountGroupList->GetAt(itemIndex))->ToInt();
+
+               if (index == DEFAULT_SENDING_ACCOUNT)
+               {
+                       String defaultAccAddress;
+                       EmailSettingsProvider* pAccMgr = EmailSettingsProvider::GetInstance();
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"defaultaccountname", true));
+
+                       if (pAccMgr != null)
+                       {
+                               int defaultAccountId = pAccMgr->GetDefaultAccountId();
+
+                               if (defaultAccountId > 0)
+                               {
+                                       defaultAccAddress = pAccMgr->GetAccountById(defaultAccountId)->GetUserEmailAddress();
+                               }
+                               else
+                               {
+                                       defaultAccAddress = L"None";
+                               }
+                       }
+
+                       pLabel->SetText(defaultAccAddress);
+               }
+               else if (index == SHOW_EMAILS)
+               {
+                       int showEmailCount;
+                       String showEmailLabel(Utils::GetResourceString(L"IDS_EMAIL_BODY_RECENT"));
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"showrecent", true));
+
+                       showEmailCount = EmailSettingsPresentationModel::GetInstance()->GetShowEmails();
+                       showEmailLabel.Append(L" ");
+                       showEmailLabel.Append(showEmailCount);
+                       pLabel->SetText(showEmailLabel);
+               }
+       }
+       else if (sectionIndex == ALL_ACCOUNTS_GROUP)
+       {
+               String colorLabel(L"colorlabel");
+               String colorButton(L"colorbutton");
+               EmailAccount* pAcc = static_cast <EmailAccount*>(__pAllAccountList->GetAt(itemIndex));
+               Color accountColor = pAcc->GetColorCode();
+
+               colorLabel.Append(itemIndex);
+               colorButton.Append(itemIndex);
+               pLabel = static_cast<Label*>(pItem->GetControl(colorLabel, true));
+               pButton = static_cast<Button*>(pItem->GetControl(colorButton, true));
+               pLabel->SetBackgroundColor(accountColor);
+               pButton->SetColor(BUTTON_STATUS_NORMAL, accountColor);
+               pButton->SetColor(BUTTON_STATUS_PRESSED, accountColor);
+       }
+
+       __pMainSectionTableView->Invalidate(true);
+       AppLogDebug("EXIT");
+       return;
+}
+
+String
+EmailSettingsForm::GetSectionHeader(int sectionIndex)
+{
+       AppLogDebug("ENTER & EXIT");
+
+       return L"";
+}
+
+bool
+EmailSettingsForm::HasSectionHeader(int sectionIndex)
+{
+       AppLogDebug("ENTER");
+
+       if (sectionIndex == ALL_ACCOUNTS_GROUP)
+       {
+               return true;
+       }
+       else
+       {
+               return false;
+       }
+}
+
+String
+EmailSettingsForm::GetSectionFooter(int sectionIndex)
+{
+       AppLogDebug("ENTER & EXIT");
+
+       return L"";
+}
+
+bool
+EmailSettingsForm::HasSectionFooter(int sectionIndex)
+{
+       AppLogDebug("ENTER & EXIT");
+
+       return false;
+}
+
+int
+EmailSettingsForm::GetDefaultItemHeight(void)
+{
+       return H_MANUAL_SETUP_ITEM;
+}
+
+void
+EmailSettingsForm::OnSectionTableViewItemStateChanged(SectionTableView& tableView, int sectionIndex, int itemIndex, TableViewItem* pItem, TableViewItemStatus status)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d), pItem:(%x), status:(%d)", sectionIndex, itemIndex, pItem, status);
+       int index;
+       Label* pLabel = null;
+
+       if (sectionIndex == ACCOUNT_GROUP)
+       {
+               index = static_cast<Integer*>(__pAccountGroupList->GetAt(itemIndex))->ToInt();
+
+               if (index == DEFAULT_SENDING_ACCOUNT)
+               {
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"arrow", true));
+
+                       if (pItem->GetName() == IDS_ITEM_CLOSED)
+                       {
+                               int defaultAccountId = EmailSettingsProvider::GetInstance()->GetDefaultAccountId();
+                               int defaultAccountIndex = 0;
+
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpUp);
+                               pItem->SetName(IDS_ITEM_OPEN);
+
+                               for (int i = 0; i < __pAllAccountList->GetCount(); i++)
+                               {
+                                       EmailAccount* pAcc = static_cast <EmailAccount*>(__pAllAccountList->GetAt(i));
+                                       int accountId = pAcc->GetAccountId();
+
+                                       if (accountId == defaultAccountId)
+                                       {
+                                               defaultAccountIndex = itemIndex + i + 1;
+                                       }
+
+                                       __pAccountGroupList->InsertAt(new (std::nothrow) Integer(accountId), itemIndex + i + 1);
+                               }
+
+                               for (int i = 0; i < __pAllAccountList->GetCount(); i++)
+                               {
+                                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex + i + 1, TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+                               }
+
+                               __pMainSectionTableView->SetItemChecked(sectionIndex, defaultAccountIndex, true);
+                       }
+                       else if (pItem->GetName() == IDS_ITEM_OPEN)
+                       {
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpDown);
+                               pItem->SetName(IDS_ITEM_CLOSED);
+
+                               for (int i = __pAllAccountList->GetCount(); i > 0; i--)
+                               {
+                                       __pAccountGroupList->RemoveAt(i, true);
+                               }
+
+                               for (int i = __pAllAccountList->GetCount(); i > 0; i--)
+                               {
+                                       __pMainSectionTableView->RefreshItem(sectionIndex, i, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                               }
+                       }
+
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+               }
+               else if (index > DEFAULT_SENDING_ACCOUNT && index < SHOW_EMAILS)
+               {
+                       EmailSettingsProvider* pAccMgr = EmailSettingsProvider::GetInstance();
+                       pAccMgr->SetDefaultAccountId(index);
+
+                       for (int i = 0; i < __pAllAccountList->GetCount(); i++)
+                       {
+                               if (itemIndex == i + 1)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, i + 1, true);
+                               }
+                               else
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, i + 1, false);
+                               }
+                       }
+
+                       __pMainSectionTableView->RefreshItem(sectionIndex, 0, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // deafult account item
+                       __pMainSectionTableView->Invalidate(true);
+               }
+               else if (index == SHOW_EMAILS)
+               {
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"arrow", true));
+
+                       if (pItem->GetName() == IDS_ITEM_CLOSED)
+                       {
+                               int showEmailsCount = EmailSettingsPresentationModel::GetInstance()->GetShowEmails();
+                               int showEmailsRecentIndex;
+
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpUp);
+                               pItem->SetName(IDS_ITEM_OPEN);
+
+                               for (int i = 0; i < SHOW_RECENT_EMAILS_COUNT; i++)
+                               {
+                                       if (showEmailsCount == (i + 1) * 25)
+                                       {
+                                               showEmailsRecentIndex = __pAccountGroupList->GetCount() - 1;
+                                       }
+
+                                       __pAccountGroupList->InsertAt(new (std::nothrow) Integer(SHOW_EMAILS + (i + 1) * 25), __pAccountGroupList->GetCount() - 1);
+                               }
+
+                               for (int i = SHOW_RECENT_EMAILS_COUNT; i > 0; i--)
+                               {
+                                       __pMainSectionTableView->RefreshItem(sectionIndex, __pAccountGroupList->GetCount() - (i + 1), TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+                               }
+
+                               __pMainSectionTableView->SetItemChecked(sectionIndex, showEmailsRecentIndex, true);
+                       }
+                       else if (pItem->GetName() == IDS_ITEM_OPEN)
+                       {
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpDown);
+                               pItem->SetName(IDS_ITEM_CLOSED);
+
+                               for (int i = SHOW_RECENT_EMAILS_COUNT; i > 0; i--)
+                               {
+                                       __pMainSectionTableView->RefreshItem(sectionIndex, __pAccountGroupList->GetCount() - (2), TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                                       __pAccountGroupList->RemoveAt(__pAccountGroupList->GetCount() - 2, true);
+                               }
+                       }
+
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+               }
+               else if (index > SHOW_EMAILS && index < BLOCK_EMAILS)
+               {
+                       int showEmailsRecentCount = index - SHOW_EMAILS;
+                       EmailSettingsPresentationModel::GetInstance()->SetShowEmails(showEmailsRecentCount);
+
+                       for (int i = 0; i < SHOW_RECENT_EMAILS_COUNT; i++)
+                       {
+                               if (showEmailsRecentCount == (i + 1) * 25)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, __pAccountGroupList->GetCount() + i - SHOW_RECENT_EMAILS_COUNT - 1, true);
+                               }
+                               else
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, __pAccountGroupList->GetCount() + i - SHOW_RECENT_EMAILS_COUNT - 1, false);
+                               }
+                       }
+
+                       __pMainSectionTableView->RefreshItem(sectionIndex, __pAccountGroupList->GetCount() - SHOW_RECENT_EMAILS_COUNT - 2, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // show recent mails item
+                       __pMainSectionTableView->Invalidate(true);
+               }
+               else if (index == BLOCK_EMAILS)
+               {
+                       SceneManager::GetInstance()->GoForward((ForwardSceneTransition(IDSCN_EMAIL_BLOCK)));
+               }
+       }
+       else if (sectionIndex == ALL_ACCOUNTS_GROUP)
+       {
+               EmailAccount* pAcc = static_cast<EmailAccount*>(__pAllAccountList->GetAt(itemIndex));
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+               pArgs->Add(pAcc);
+               SceneManager::GetInstance()->GoForward((ForwardSceneTransition(IDSCN_ACCOUNT_SETTING)), pArgs);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailSettingsForm::OnSectionTableViewContextItemActivationStateChanged(SectionTableView& tableView, int sectionIndex, int itemIndex, TableViewContextItem* pContextItem, bool activated)
+{
+       // Empty Implementation
+}
diff --git a/src/EmEmailSettingPresentationModel.cpp b/src/EmEmailSettingPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..1e43ae7
--- /dev/null
@@ -0,0 +1,345 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ *
+ * @file                       EmEmailSettingsPresentationModel.cpp
+ * @brief                      Provides the implementation of the email settings form.
+ *
+ */
+
+#include <cstdlib>
+
+#include <FApp.h>
+#include <FIo.h>
+#include "EmEmailSettingPresentationModel.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Io;
+
+EmailSettingsPresentationModel* EmailSettingsPresentationModel::__pInstance = null;
+
+EmailSettingsPresentationModel::EmailSettingsPresentationModel()
+       : __pEmailAccountSettingsList(null)
+       , __threadedMsgEnabled(true)
+{
+       // No implementation required
+}
+
+EmailSettingsPresentationModel::~EmailSettingsPresentationModel()
+{
+}
+
+EmailSettingsPresentationModel*
+EmailSettingsPresentationModel::GetInstance()
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pInstance;
+}
+
+void
+EmailSettingsPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance != null)
+       {
+               __pInstance->CleanupInstance();
+               delete __pInstance;
+               __pInstance = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailSettingsPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pInstance = new (std::nothrow) EmailSettingsPresentationModel();
+       r = __pInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInstance;
+               __pInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailSettingsPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+EmailSettingsPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       EmailSettingsProvider::GetInstance()->GetRuleList();
+       __pAddressRuleList = EmailSettingsProvider::GetInstance()->GetRulesList(EMAIL_FILTER_FROM);
+       __pSubjectRuleList = EmailSettingsProvider::GetInstance()->GetRulesList(EMAIL_FILTER_SUBJECT);
+
+       __pEmailAccountSettingsList = new (std::nothrow) ArrayListT<EmailAccountSettings*>();
+       __pEmailAccountSettingsList->Construct();
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+int
+EmailSettingsPresentationModel::GetShowEmails(void) const
+{
+       AppLogDebug("ENTER");
+
+       int numberOfShowMails = 25;
+       int defaultAccountId = 0;
+       EmailAccount* pDefaultEmailAccount = null;
+
+       defaultAccountId = EmailSettingsProvider::GetInstance()->GetDefaultAccountId();
+
+       if (defaultAccountId > 0)
+       {
+               pDefaultEmailAccount = EmailSettingsProvider::GetInstance()->GetAccountById(defaultAccountId);
+
+               if (pDefaultEmailAccount != null)
+               {
+                       numberOfShowMails = pDefaultEmailAccount->GetDefaultMailSlotSize();
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return numberOfShowMails;
+}
+
+void
+EmailSettingsPresentationModel::SetShowEmails(const int& showEmails)
+{
+       AppLogDebug("ENTER, mail slot size:(%d)", showEmails);
+
+       int r;
+       int accountCount = EmailSettingsProvider::GetInstance()->GetAccountCount();
+       EmailAccount* pTmpAccount;
+
+       if(accountCount > 0)
+       {
+               IMapEnumerator* pMapEnum = EmailSettingsProvider::GetInstance()->GetAccountListN();
+
+               if (pMapEnum != null)
+               {
+                       while (!IsFailed(pMapEnum->MoveNext()))
+                       {
+                               pTmpAccount = static_cast<EmailAccount*>(pMapEnum->GetValue());
+                               pTmpAccount->SetDefaultMailSlotSize(showEmails);
+                               EmailSettingsProvider::GetInstance()->UpdateAccount(pTmpAccount);
+
+                               r = email_set_mail_slot_size(pTmpAccount->GetAccountId(), 0, showEmails);
+
+                               AppLogDebugIf(r != EMAIL_ERROR_NONE, "Failed to update mail slot size:(%d)", r);
+                       }
+
+                       delete pMapEnum;
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+EmailSettingsPresentationModel::SaveSettings(EmailAccount* pAcc)
+{
+       AppLogDebug("ENTER");
+
+       result r = EmailSettingsProvider::GetInstance()->UpdateAccount(pAcc);
+
+       AppLogDebug("EXIT, r:(%s)", GetErrorMessage(r));
+       return r;
+}
+
+
+EmailAccountSettings::EmailAccountSettings(int accountId)
+       : __accountId(accountId)
+       , __replyWithBody(false)
+       , __forwardWithFiles(false)
+       , __bccMyself(false)
+       , __addSignature(false)
+{
+       // No implementation needed
+}
+
+EmailAccountSettings::~EmailAccountSettings()
+{
+       // No implementation needed
+}
+
+bool
+EmailAccountSettings::IsAddSignature() const
+{
+       return __addSignature;
+}
+
+bool
+EmailAccountSettings::IsBccMyself() const
+{
+       return __bccMyself;
+}
+
+bool
+EmailAccountSettings::IsFwdWithFiles() const
+{
+       return __forwardWithFiles;
+}
+
+bool
+EmailAccountSettings::IsReplyWithBody() const
+{
+       return __replyWithBody;
+}
+
+void
+EmailAccountSettings::SetFwdWithFiles(bool fwdWithFiles)
+{
+       __forwardWithFiles = fwdWithFiles;
+}
+
+void
+EmailAccountSettings::SetReplyWithBody(bool replyWithBody)
+{
+       __replyWithBody = replyWithBody;
+}
+
+void
+EmailAccountSettings::SetAddSignature(bool addSignature)
+{
+       __addSignature = addSignature;
+}
+
+void
+EmailAccountSettings::SetBccMyself(bool bccMyself)
+{
+       __bccMyself = bccMyself;
+}
+
+int
+EmailAccountSettings::GetAccountId() const
+{
+       return __accountId;
+}
+
+result
+EmailSettingsPresentationModel::AddRule(EmailRule* pRule)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       r = EmailSettingsProvider::GetInstance()->AddRule(pRule);
+       EmailSettingsProvider::GetInstance()->GetRuleList();
+       __pAddressRuleList = EmailSettingsProvider::GetInstance()->GetRulesList(EMAIL_FILTER_FROM);
+       __pSubjectRuleList = EmailSettingsProvider::GetInstance()->GetRulesList(EMAIL_FILTER_SUBJECT);
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+ArrayList*
+EmailSettingsPresentationModel::GetRulesList(email_rule_type_t ruleType)
+{
+       AppLogDebug("ENTER");
+
+       if (ruleType == EMAIL_FILTER_FROM)
+       {
+               AppLogDebug("EXIT %d", __pAddressRuleList->GetCount());
+               return __pAddressRuleList;
+       }
+       else if (ruleType == EMAIL_FILTER_SUBJECT)
+       {
+               AppLogDebug("EXIT");
+               return __pSubjectRuleList;
+       }
+
+       AppLogDebug("EXIT");
+       return null;
+}
+
+int
+EmailSettingsPresentationModel::GetRulesListCount(email_rule_type_t ruleType)
+{
+       AppLogDebug("ENTER");
+       int count = 0;
+
+       if (ruleType == EMAIL_FILTER_FROM)
+       {
+               count = __pAddressRuleList->GetCount();
+       }
+       else if (ruleType == EMAIL_FILTER_SUBJECT)
+       {
+               count = __pSubjectRuleList->GetCount();
+       }
+
+       AppLogDebug("EXIT %d", count);
+       return count;
+}
+
+String
+EmailSettingsPresentationModel::GetRuleAt(int index, email_rule_type_t ruleType)
+{
+       AppLogDebug("ENTER");
+
+       String retVal;
+       EmailRule* pRule = null;
+
+       if (ruleType == EMAIL_FILTER_FROM)
+       {
+               pRule = static_cast<EmailRule*>(__pAddressRuleList->GetAt(index));
+       }
+       else if (ruleType == EMAIL_FILTER_SUBJECT)
+       {
+               pRule = static_cast<EmailRule*>(__pSubjectRuleList->GetAt(index));
+       }
+
+       if (pRule != null)
+       {
+               retVal = pRule->GetValue();
+       }
+
+       AppLogDebug("EXIT, value:(%ls)", retVal.GetPointer());
+       return retVal;
+}
diff --git a/src/EmEmailSettingProvider.cpp b/src/EmEmailSettingProvider.cpp
new file mode 100755 (executable)
index 0000000..6ec9783
--- /dev/null
@@ -0,0 +1,2008 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+* @file             EmEmailSettingsProvider.cpp
+* @brief               Contains the implementation of Email settings which fetches the data regarding
+*                                      the accounts and the respective mailboxes.
+*
+*/
+
+#include <cstdlib>
+#include <FSocial.h>
+#include "EmEmailSettingProvider.h"
+#include "EmNativeMailboxManager.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Social;
+
+EmailSettingsProvider* EmailSettingsProvider::__pInstance = null;
+
+EmailAccount::EmailAccount()
+       : __accountId(-1)
+       , __accountSvcId(0)
+       , __syncStatus(0)
+       , __syncDisabled(0)
+       , __defaultMailSlotSize(0)
+       , __userDataLength(0)
+       , __incomingServerPortNum(0)
+       , __incomingServerSecureConnection(0)
+       , __keepMailsAfterDownload(0)
+       , __checkInterval(0)
+       , __autoDownloadSize(0)
+       , __outgoingServerPortNum(0)
+       , __outgoingServerSecureConnection(0)
+       , __outgoingServerNeedAuthentication(0)
+       , __outgoingServerUseSameAuthenticator(0)
+       , __popBeforeSmtp(0)
+       , __incomingServerRequiresApop(0)
+       , __accountName(L"")
+       , __logoIconPath(L"")
+       , __userDisplayName(L"")
+       , __userEmailAddress(L"")
+       , __replyToAddress(L"")
+       , __returnAddress(L"")
+       , __certificatePath(L"")
+       , __incomingServerAddr(L"")
+       , __incomingServerUsername(L"")
+       , __incomingServerPassword(L"")
+       , __outgoingServerAddr(L"")
+       , __outgoingServerUsername(L"")
+       , __outgoingServerPassword(L"")
+       , __colorCode()
+       , __lastSyncTime(0)
+       , __userData(0)
+       , __options()
+       , __smimeType(EMAIL_SMIME_NONE)
+       , __cipherType(CIPHER_TYPE_DES3)
+       , __digestType(DIGEST_TYPE_SHA1)
+       , __incomingServerType(EMAIL_SERVER_TYPE_POP3)
+       , __outgoingServerType(EMAIL_SERVER_TYPE_SMTP)
+       , __retrievalMode(EMAIL_IMAP4_RETRIEVAL_MODE_NEW)
+       , __serverType(SERVER_AUTO)
+{
+       //Empty implementation
+}
+
+EmailAccount::~EmailAccount()
+{
+       //Empty implementation
+}
+
+EmailOption::EmailOption()
+       : __keepLocalCopy(0)
+       , __reqDeliveryReceipt(0)
+       , __reqReadReceipt(0)
+       , __downloadLimit(0)
+       , __blockAddress(0)
+       , __blockSubject(0)
+       , __replyWithBody(0)
+       , __forwardWithFiles(0)
+       , __addMynameCard(0)
+       , __addSignature(0)
+       , __displayNameFrom()
+       , __signature(L"")
+       , __priority(EMAIL_MAIL_PRIORITY_NORMAL)
+       , __addMyAddressToBcc(EMAIL_ADD_MY_ADDRESS_OPTION_DO_NOT_ADD)
+{
+
+}
+
+EmailOption::~EmailOption()
+{
+
+}
+
+EmailRule::EmailRule(void)
+       : __targetMailboxId(0)
+{
+       AppLogDebug("setting target mailboxid to %d", __targetMailboxId);
+}
+
+EmailRule::~EmailRule(void)
+{
+
+}
+
+EmailSettingsProvider::EmailSettingsProvider(void)
+       : __pAccountsCollection(null)
+       , __pAddressRuleList(null)
+       , __pSubjectRuleList(null)
+       , __pEmailSettingsEventListener(null)
+
+{
+//     Empty implementation
+}
+
+EmailSettingsProvider::~EmailSettingsProvider(void)
+{
+//     Empty implementation
+}
+
+EmailSettingsProvider*
+EmailSettingsProvider::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       if (__pInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return __pInstance;
+}
+
+result
+EmailSettingsProvider::Construct(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pAccountsCollection = new (std::nothrow) HashMap();
+       r = __pAccountsCollection->Construct();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Construct failed!");
+
+       __pAddressRuleList = new (std::nothrow) ArrayList();
+       __pAddressRuleList->Construct();
+       __pSubjectRuleList = new (std::nothrow) ArrayList();
+       __pSubjectRuleList->Construct();
+
+       InitializeAccounts();
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return r;
+
+CATCH:
+
+       if (__pAccountsCollection != null)
+       {
+               delete __pAccountsCollection;
+       }
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return r;
+}
+
+void
+EmailSettingsProvider::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance != null)
+       {
+               __pInstance->CleanupInstance();
+               delete __pInstance;
+               __pInstance = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailSettingsProvider::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pInstance = new (std::nothrow) EmailSettingsProvider();
+       r = __pInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInstance;
+               __pInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailSettingsProvider::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pAccountsCollection != null)
+       {
+               __pAccountsCollection->RemoveAll(true);
+               delete __pAccountsCollection;
+               __pAccountsCollection = null;
+       }
+
+       if (__pAddressRuleList != null)
+       {
+               __pAddressRuleList->RemoveAll(true);
+               delete __pAddressRuleList;
+               __pAddressRuleList = null;
+       }
+
+       if (__pSubjectRuleList != null)
+       {
+               __pSubjectRuleList->RemoveAll(true);
+               delete __pSubjectRuleList;
+               __pSubjectRuleList = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+EmailSettingsProvider::InitializeAccounts(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+//     int handle;
+       int res;                // Email api error checking
+       int count;
+       email_account_t* accList = null;
+       EmailAccount* pTmpAcc = null;
+
+       res = email_get_account_list(&accList, &count);
+
+       if (res == EMAIL_ERROR_NONE)
+       {
+               for (int i = 0; i < count; i++)
+               {
+                       pTmpAcc = new (std::nothrow) EmailAccount();
+                       ConvertToOspObj(&accList[i], pTmpAcc);
+
+                       __pAccountsCollection->Add((new (std::nothrow) Integer(pTmpAcc->GetAccountId())), pTmpAcc);
+                       AppLogDebug("Got account:(%ls) with id:(%d)", pTmpAcc->GetAccountName().GetPointer(), pTmpAcc->GetAccountId());
+
+//                     if (pTmpAcc->GetIncomingServerType() == EMAIL_SERVER_TYPE_IMAP4)
+//                     {
+//                             res = email_sync_imap_mailbox_list(pTmpAcc->GetAccountId(), &handle);
+
+//                             if (res != EMAIL_ERROR_NONE)
+//                             {
+//                                     AppLogDebug("Failed to sync imap mailbox list for account:(%d)", pTmpAcc->GetAccountId());
+//                             }
+//                     }
+               }
+
+               res = email_free_account(&accList, count);
+       }
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailSettingsProvider::InitializeNewAccount(int accountId)
+{
+       AppLogDebug("ENTER");
+
+       int res;
+       result r = E_SUCCESS;
+       email_account_t* account = null;
+       EmailAccount* pTmpAcc = null;
+
+       res = email_get_account(accountId, GET_FULL_DATA, &account);
+
+       if (res == EMAIL_ERROR_NONE)
+       {
+
+               pTmpAcc = new (std::nothrow) EmailAccount();
+               ConvertToOspObj(account, pTmpAcc);
+
+               r = __pAccountsCollection->Add((new (std::nothrow) Integer(pTmpAcc->GetAccountId())), pTmpAcc);
+               AppLogDebug("Result of add account to accountsCollection:(%s), new count:(%d)", GetErrorMessage(r), __pAccountsCollection->GetCount());
+               AppLogDebug("EmailApp::Got account:(%ls) with id:(%d)", pTmpAcc->GetAccountName().GetPointer(), pTmpAcc->GetAccountId());
+
+               EmailMailboxManager::GetInstance()->InitializeMailboxes(accountId);
+
+               res = email_free_account(&account, 1);
+       }
+       CleanUpNativeObj(account);
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return r;
+}
+
+EmailAccount*
+EmailSettingsProvider::GetAccountById(const int& id)
+{
+       AppLogDebug("ENTER, accountId:(%d)", id);
+
+       int accId = id;
+       EmailAccount* pEmailAcc = null;
+
+       if (accId == -1)
+       {
+               accId = GetDefaultAccountId();
+               AppLogDebug("Returning default account id:(%d)", accId);
+       }
+
+       pEmailAcc = static_cast<EmailAccount*>(__pAccountsCollection->GetValue(Integer(accId)));
+
+       AppLogDebug("EXIT, returning:(%x)", pEmailAcc);
+       return pEmailAcc;
+}
+
+void
+EmailSettingsProvider::InitializeAccountData(EmailAccount* pAccount, ServerType serverType)
+{
+       AppLogDebug("ENTER");
+
+       String resourcePath(App::GetInstance()->GetAppResourcePath());
+
+       if (pAccount != null)
+       {
+               if (pAccount->GetServerType() != SERVER_NONE)
+               {
+                       pAccount->SetRetrievalMode(EMAIL_IMAP4_RETRIEVAL_MODE_ALL);
+                       pAccount->SetIncomingServerSecureConnection(1);
+                       pAccount->SetOutgoingServerType(EMAIL_SERVER_TYPE_SMTP);
+                       pAccount->SetAutoDownloadSize(EMAIL_DEFAULT_SIZE);
+
+                       pAccount->SetOutgoingServerUseSameAuthenticator(1);
+                       pAccount->SetPopBeforeSmtp(0);
+                       pAccount->SetIncomingServerRequiresApop(0);
+
+                       pAccount->GetUserData() = NULL;
+                       pAccount->SetUserDataLength(0);
+
+                       pAccount->SetCheckInterval(0);
+                       pAccount->SetKeepMailsAfterDownload(1);
+                       pAccount->SetDefaultMailSlotSize(25);
+
+                       pAccount->GetOptions()->SetBlockAddress(1);
+                       pAccount->GetOptions()->SetBlockSubject(1);
+
+                       pAccount->GetOptions()->SetAddSignature(1);
+                       pAccount->GetOptions()->SetSignature(IDS_DEFAULT_SIGNATURE);
+               }
+               else
+               {
+                       pAccount->SetRetrievalMode(EMAIL_IMAP4_RETRIEVAL_MODE_NEW);
+                       pAccount->SetIncomingServerSecureConnection(0);
+                       pAccount->SetOutgoingServerType(EMAIL_SERVER_TYPE_SMTP);
+                       pAccount->SetAutoDownloadSize(0);
+
+                       pAccount->SetOutgoingServerUseSameAuthenticator(0);
+                       pAccount->SetPopBeforeSmtp(0);
+                       pAccount->SetIncomingServerRequiresApop(0);
+
+                       pAccount->GetUserData() = NULL;
+                       pAccount->SetUserDataLength(0);
+
+                       pAccount->SetCheckInterval(0);
+                       pAccount->SetKeepMailsAfterDownload(0);
+                       pAccount->SetDefaultMailSlotSize(0);
+
+                       pAccount->GetOptions()->SetBlockAddress(0);
+                       pAccount->GetOptions()->SetBlockSubject(0);
+
+                       pAccount->GetOptions()->SetAddSignature(0);
+                       pAccount->GetOptions()->SetSignature(L"");
+               }
+
+               switch(serverType)
+               {
+               case SERVER_SAMSUNG:
+                       pAccount->SetAccountName(L"Samsung");
+                       pAccount->SetIncomingServerType(EMAIL_SERVER_TYPE_POP3);
+                       pAccount->SetIncomingServerAddr("pop3.samsung.com");
+                       pAccount->SetIncomingServerPortNum(995);
+                       pAccount->SetIncomingServerSecureConnection(1);
+
+                       pAccount->SetOutgoingServerAddr("smtp.samsung.com");
+                       pAccount->SetOutgoingServerPortNum(25);
+                       pAccount->SetOutgoingServerSecureConnection(1);
+                       pAccount->SetOutgoingServerNeedAuthentication(1);
+
+                       pAccount->SetLogoIconPath(resourcePath + IDS_SAMSUNG_LOGO_FILE);
+                       break;
+
+               case SERVER_GOOGLE:
+                       pAccount->SetAccountName(L"Google");
+                       pAccount->SetIncomingServerType(EMAIL_SERVER_TYPE_IMAP4);
+                       pAccount->SetIncomingServerAddr(L"imap.gmail.com");
+                       pAccount->SetIncomingServerPortNum(993);
+                       pAccount->SetIncomingServerSecureConnection(1);
+
+                       pAccount->SetOutgoingServerAddr(L"smtp.gmail.com");
+                       pAccount->SetOutgoingServerPortNum(465);
+                       pAccount->SetOutgoingServerSecureConnection(1);
+                       pAccount->SetOutgoingServerNeedAuthentication(1);
+
+                       pAccount->SetLogoIconPath(resourcePath + IDS_GMAIL_LOGO_FILE);
+                       break;
+
+               case SERVER_YAHOO:
+                       pAccount->SetAccountName(L"Yahoo");
+                       pAccount->SetIncomingServerType(EMAIL_SERVER_TYPE_IMAP4);
+                       pAccount->SetIncomingServerAddr(L"imap.mail.yahoo.com");
+                       pAccount->SetIncomingServerPortNum(993);
+                       pAccount->SetIncomingServerSecureConnection(1);
+
+                       pAccount->SetOutgoingServerAddr(L"smtp.mail.yahoo.com");
+                       pAccount->SetOutgoingServerPortNum(465);
+                       pAccount->SetOutgoingServerSecureConnection(1);
+                       pAccount->SetOutgoingServerNeedAuthentication(1);
+
+                       pAccount->SetLogoIconPath(resourcePath + IDS_YAHOO_LOGO_FILE);
+                       break;
+
+               case SERVER_HOTMAIL:
+                       pAccount->SetAccountName(L"Hotmail");
+                       pAccount->SetIncomingServerType(EMAIL_SERVER_TYPE_POP3);
+                       pAccount->SetIncomingServerAddr(L"pop3.live.com");
+                       pAccount->SetIncomingServerPortNum(995);
+                       pAccount->SetIncomingServerSecureConnection(1);
+
+                       pAccount->SetOutgoingServerAddr(L"smtp.live.com");
+                       pAccount->SetOutgoingServerPortNum(587);
+                       pAccount->SetOutgoingServerSecureConnection(1);
+                       pAccount->SetOutgoingServerNeedAuthentication(1);
+
+                       pAccount->SetLogoIconPath(resourcePath + IDS_HOTMAIL_LOGO_FILE);
+                       break;
+
+               case SERVER_NAVER:
+                       pAccount->SetAccountName(L"Naver");
+                       pAccount->SetIncomingServerType(EMAIL_SERVER_TYPE_IMAP4);
+                       pAccount->SetIncomingServerAddr(L"imap.naver.com");
+                       pAccount->SetIncomingServerPortNum(993);
+                       pAccount->SetIncomingServerSecureConnection(1);
+
+                       pAccount->SetOutgoingServerAddr(L"smtp.naver.com");
+                       pAccount->SetOutgoingServerPortNum(465);
+                       pAccount->SetOutgoingServerSecureConnection(1);
+                       pAccount->SetOutgoingServerNeedAuthentication(1);
+
+                       pAccount->SetLogoIconPath(resourcePath + IDS_NAVER_LOGO_FILE);
+                       break;
+
+               default:
+                       pAccount->SetAccountName(L"");
+                       pAccount->SetIncomingServerType(EMAIL_SERVER_TYPE_POP3);
+                       pAccount->SetIncomingServerAddr(L"");
+                       pAccount->SetIncomingServerPortNum(0);
+                       pAccount->SetIncomingServerSecureConnection(0);
+
+                       pAccount->SetOutgoingServerAddr(L"");
+                       pAccount->SetOutgoingServerPortNum(0);
+                       pAccount->SetOutgoingServerSecureConnection(0);
+                       pAccount->SetOutgoingServerNeedAuthentication(0);
+
+                       pAccount->SetLogoIconPath(resourcePath + IDS_DEFAULT_LOGO_FILE);
+                       break;
+               }
+       }
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailSettingsProvider::InitializeManualSetUpData(EmailAccount* account, ArrayList* pArgs)
+{
+
+}
+
+void
+EmailSettingsProvider::UpdateLastSyncTime(int accId, const Tizen::Base::TimeSpan& timeSpan)
+{
+       AppLogDebug("ENTER");
+       EmailAccount* pAcc = static_cast<EmailAccount*>(__pAccountsCollection->GetValue(Integer(accId)));
+
+       if (pAcc != null)
+       {
+               if(pAcc->GetLastSyncTime().CompareTo(timeSpan) < 0)
+               {
+                       pAcc->SetLastSyncTime(timeSpan);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+EmailSettingsProvider::AddAccount(EmailAccount* pAcc, int& accountId, int& accountSvcId)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       Account socialAccount(pAcc->GetUserDisplayName());
+       AccountManager* pSocialAccountMgr = AccountManager::GetInstance();
+
+       if (pSocialAccountMgr != null)
+       {
+               socialAccount.SetUserName(pAcc->GetUserEmailAddress());
+               r = pSocialAccountMgr->AddAccount(socialAccount);
+
+               if (r == E_SUCCESS)
+               {
+                       accountSvcId = socialAccount.GetId();
+                       pAcc->SetAccountSvcId(accountSvcId);
+
+                       email_account_t* pNativeAcc = new (std::nothrow) email_account_t();
+                       ConvertToNativeObjN(pAcc, pNativeAcc);
+                       r = AddAccount(pNativeAcc, accountId);
+
+                       if (r != E_SUCCESS)
+                       {
+                               result res = E_SUCCESS;
+                               int socialAccountId = socialAccount.GetId();
+                               res = pSocialAccountMgr->RemoveAccount(socialAccountId);
+                               AppLogDebug("Removing social account:(%d), result:(%s)", socialAccountId, GetErrorMessage(res));
+                       }
+
+                       CleanUpNativeObj(pNativeAcc);
+                       delete pNativeAcc;
+               }
+               else
+               {
+                       r = E_FAILURE;
+                       AppLogDebug("Add account in accounts db failed with error:(%s)", GetErrorMessage(r));
+               }
+       }
+       else
+       {
+               r = E_FAILURE;
+               AppLogDebug("Failed to get Account Manager");
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailSettingsProvider::CancelJob(int accountId, int& handle, email_cancelation_type type)
+{
+       AppLogDebug("ENTER");
+
+       int res = E_SUCCESS;
+       result r = E_SUCCESS;
+       r = email_cancel_job(accountId, handle, type);
+       if (r != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Job:(%d) cancellation failed with error:(%s)", handle, GetErrorMessage(r));
+               res = E_FAILURE;
+       }
+       else
+       {
+               handle = -1;
+       }
+
+       AppLogDebug("EXIT");
+       return res;
+}
+
+int
+EmailSettingsProvider::GetAccountCount(void)
+{
+       AppLogDebug("ENTER");
+
+       int count = __pAccountsCollection->GetCount();
+
+       AppLogDebug("EXIT, returning count:(%d)", count);
+       return count;
+}
+
+result
+EmailSettingsProvider::DeleteAccount(int accountId)
+{
+       AppLogDebug("ENTER, accountId:(%d)", accountId);
+
+       int r;
+       result res = E_SUCCESS;
+       r = email_delete_account(accountId);
+       if (r != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Delete account failed with error:(%s)", GetErrorMessage(res));
+               res = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT, result:(%s)", GetErrorMessage(res));
+       return res;
+}
+
+result
+EmailSettingsProvider::AddAccount(email_account_t* account, int& accountId)
+{
+       AppLogDebug("ENTER, account:(%x)", account);
+       result r = E_SUCCESS;
+       int res;
+
+       // Add account
+       res = email_add_account(account);
+       if (EMAIL_ERROR_NONE != res)
+       {
+               AppLogDebug("Add account failed with error:(%d)", res);
+               accountId = -1;
+               r = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT: r = (%s)", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailSettingsProvider::UpdateAccount(EmailAccount* pAcc)
+{
+       AppLogDebug("ENTER, pAcc:(%x)", pAcc);
+       AppLogDebugIf(pAcc != null, "Account id:(%d)", pAcc->GetAccountId());
+
+       int res;
+       result r = E_SUCCESS;
+       email_account_t* pDest = new (std::nothrow) email_account_t();
+       ConvertToNativeObjN(pAcc, pDest);
+       res = email_update_account(pAcc->GetAccountId(), pDest);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Update account failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+
+       CleanUpNativeObj(pDest);
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+EmailSettingsProvider::ValidateAccount(EmailAccount* pAcc, int& handle)
+{
+       AppLogDebug("ENTER, pAcc:(%x)", pAcc);
+
+       int res;
+       result r = E_SUCCESS;
+       email_account_t* pNativeAccount = new email_account_t();
+
+       ConvertToNativeObjN(pAcc, pNativeAccount);
+       res = email_validate_account_ex(pNativeAccount, &handle);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Failed to validate account with error:(%d)", res);
+               r = E_FAILURE;
+       }
+
+       CleanUpNativeObj(pNativeAccount);
+       delete pNativeAccount;
+
+       AppLogDebug("EXIT, result:(%s)", GetErrorMessage(r));
+       return r;
+}
+
+int
+EmailSettingsProvider::GetDefaultAccountId(void)
+{
+       AppLogDebug("ENTER");
+       int accountId = 0;
+       int res;
+
+       res = email_load_default_account_id(&accountId);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Failed to get default account with error:(%d)", res);
+               accountId = 0;
+       }
+       AppLogDebug("EXIT, returning account id:(%d)", accountId);
+       return accountId;
+}
+
+result
+EmailSettingsProvider::SetDefaultAccountId(const int& accId)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       int res;
+
+       res = email_save_default_account_id(accId);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Failed to set default account with error:(%d)", res);
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+IMapEnumerator*
+EmailSettingsProvider::GetAccountListN(void)
+{
+       AppLogDebug("ENTER");
+       IMapEnumerator* pEnum = __pAccountsCollection->GetMapEnumeratorN();
+       AppLogDebug("EXIT");
+       return pEnum;
+}
+
+result
+EmailSettingsProvider::ConvertToOspObj(email_account_t* pSrc, EmailAccount* pDest)
+{
+       AppLogDebug("ENTER");
+       int* pColorArray = null;
+       result r = E_SUCCESS;
+       String accNameLowerCase;
+       pDest->SetAccountId(pSrc->account_id);
+       pDest->SetAccountName(String(pSrc->account_name));
+
+       pDest->SetAccountSvcId(pSrc->account_svc_id);
+       pDest->SetSyncStatus(pSrc->sync_status);
+       pDest->SetSyncDisabled(pSrc->sync_disabled);
+       pDest->SetDefaultMailSlotSize(pSrc->default_mail_slot_size);
+
+       pDest->SetLogoIconPath(pSrc->logo_icon_path);
+       pDest->SetUserDisplayName(pSrc->user_display_name);
+       pDest->SetUserEmailAddress(pSrc->user_email_address);
+       pDest->SetReplyToAddress(pSrc->reply_to_address);
+       pDest->SetReturnAddress(pSrc->return_address);
+
+       pDest->SetIncomingServerType(pSrc->incoming_server_type);
+       pDest->SetIncomingServerAddr(pSrc->incoming_server_address);
+       pDest->SetIncomingServerPortNum(pSrc->incoming_server_port_number);
+       pDest->SetIncomingServerUsername(pSrc->incoming_server_user_name);
+       pDest->SetIncomingServerPassword(pSrc->incoming_server_password);
+       pDest->SetIncomingServerSecureConnection(pSrc->incoming_server_secure_connection);
+
+       pDest->SetRetrievalMode(pSrc->retrieval_mode);
+       pDest->SetKeepMailsAfterDownload(pSrc->keep_mails_on_pop_server_after_download);
+       pDest->SetCheckInterval(pSrc->check_interval);
+       pDest->SetAutoDownloadSize(pSrc->auto_download_size);
+
+       pDest->SetOutgoingServerType(pSrc->outgoing_server_type);
+       pDest->SetOutgoingServerAddr(pSrc->outgoing_server_address);
+       pDest->SetOutgoingServerPortNum(pSrc->outgoing_server_port_number);
+       pDest->SetOutgoingServerUsername(pSrc->outgoing_server_user_name);
+       pDest->SetOutgoingServerPassword(pSrc->outgoing_server_password);
+       pDest->SetOutgoingServerSecureConnection(pSrc->outgoing_server_secure_connection);
+       pDest->SetOutgoingServerNeedAuthentication(pSrc->outgoing_server_need_authentication);
+       pDest->SetOutgoingServerUseSameAuthenticator(pSrc->outgoing_server_use_same_authenticator);
+
+       // TODO
+       pDest->GetOptions()->SetAddMyAddressToBcc(pSrc->options.add_my_address_to_bcc);
+       pDest->GetOptions()->SetAddMynameCard(pSrc->options.add_myname_card);
+       pDest->GetOptions()->SetAddSignature(pSrc->options.add_signature);
+       pDest->GetOptions()->SetBlockAddress(pSrc->options.block_address);
+       pDest->GetOptions()->SetBlockSubject(pSrc->options.block_subject);
+       pDest->GetOptions()->SetDisplayNameFrom(pSrc->options.display_name_from);
+       pDest->GetOptions()->SetDownloadLimit(pSrc->options.download_limit);
+       pDest->GetOptions()->SetForwardWithFiles(pSrc->options.forward_with_files);
+       pDest->GetOptions()->SetKeepLocalCopy(pSrc->options.keep_local_copy);
+       pDest->GetOptions()->SetPriority(pSrc->options.priority);
+       pDest->GetOptions()->SetReplyWithBody(pSrc->options.reply_with_body);
+       pDest->GetOptions()->SetReqDeliveryReceipt(pSrc->options.req_delivery_receipt);
+       pDest->GetOptions()->SetReqReadReceipt(pSrc->options.req_read_receipt);
+       pDest->GetOptions()->SetSignature(pSrc->options.signature);
+
+
+       pDest->SetPopBeforeSmtp(pSrc->pop_before_smtp);
+       pDest->SetIncomingServerRequiresApop(pSrc->incoming_server_requires_apop);
+
+       pDest->SetSmimeType(pSrc->smime_type);
+       pDest->SetCertificatePath(pSrc->certificate_path);
+       pDest->SetCipherType(pSrc->cipher_type);
+       pDest->SetDigestType(pSrc->digest_type);
+
+       pColorArray = (int*)pSrc->user_data;
+       if(pColorArray)
+       {
+               pDest->SetColorCode(Tizen::Graphics::Color(pColorArray[0], pColorArray[1], pColorArray[2]));
+               pDest->SetUserDataLength(pSrc->user_data_length);
+       }
+       else
+       {
+               pDest->SetColorCode(Tizen::Graphics::Color(rand() % 255, rand() % 255, rand() % 255, 255));
+               pDest->SetUserDataLength(sizeof(int)*3);
+       }
+
+       pDest->GetAccountName().ToLowerCase(accNameLowerCase);
+       pDest->SetLogoIconPath(pSrc->logo_icon_path);
+
+/*     if (accNameLowerCase.Contains(L"google") || accNameLowerCase.Contains(L"gmail"))
+       {
+               pDest->SetLogoIconPath(IDS_GMAIL_LOGO_FILE);
+       }
+       else if (accNameLowerCase.Contains(L"yahoo"))
+       {
+               pDest->SetLogoIconPath(IDS_YAHOO_LOGO_FILE);
+       }
+       else
+       {
+               pDest->SetLogoIconPath(IDS_HOTMAIL_LOGO_FILE);
+       }*/
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+EmailSettingsProvider::CleanUpNativeObj(email_account_t* pObj)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       if (pObj != null)
+       {
+               if (pObj->account_name)
+               {
+                       delete[] pObj->account_name;
+               }
+
+               if (pObj->logo_icon_path)
+               {
+                       delete[] pObj->logo_icon_path;
+               }
+
+               if (pObj->user_display_name)
+               {
+                       delete[] pObj->user_display_name;
+               }
+
+               if (pObj->user_email_address)
+               {
+                       delete[] pObj->user_email_address;
+               }
+
+               if (pObj->reply_to_address)
+               {
+                       delete[] pObj->reply_to_address;
+               }
+
+               if (pObj->return_address)
+               {
+                       delete[] pObj->return_address;
+               }
+
+               if (pObj->incoming_server_address)
+               {
+                       delete[] pObj->incoming_server_address;
+               }
+
+               if (pObj->incoming_server_user_name)
+               {
+                       delete[] pObj->incoming_server_user_name;
+               }
+
+               if (pObj->incoming_server_password)
+               {
+                       delete[] pObj->incoming_server_password;
+               }
+
+               if (pObj->outgoing_server_address)
+               {
+                       delete[] pObj->outgoing_server_address;
+               }
+
+               if (pObj->outgoing_server_user_name)
+               {
+                       delete[] pObj->outgoing_server_user_name;
+               }
+
+               if (pObj->outgoing_server_password)
+               {
+                       delete[] pObj->outgoing_server_password;
+               }
+
+               if (pObj->certificate_path)
+               {
+                       delete[] pObj->certificate_path;
+               }
+
+               if (pObj->user_data)
+               {
+                       int* pUserData;
+                       pUserData = (int*)(pObj->user_data);
+                       delete[] pUserData;
+               }
+
+               if (pObj->options.display_name_from)
+               {
+                       delete[] pObj->options.display_name_from;
+               }
+
+               if (pObj->options.signature)
+               {
+                       delete [] pObj->options.signature;
+               }
+       }
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+EmailSettingsProvider::ConvertToNativeObjN(const EmailAccount* pSrc, email_account_t* pDest)
+{
+       AppLogDebug("ENTER");
+       const int NUM_PRIMARY_COLORS = 3;
+       result r = E_SUCCESS;
+       String srcDisplayName;
+       char* pDestDisplayName;
+       String srcSignature;
+
+       pDest->account_id = pSrc->GetAccountId();
+       AppLogDebug("account_id:(%d)", pDest->account_id);
+       pDest->account_svc_id = pSrc->GetAccountSvcId();
+       AppLogDebug("account_svc_id:(%d)", pDest->account_svc_id);
+       pDest->sync_status = pSrc->GetSyncStatus();
+       AppLogDebug("sync_status:(%d)", pDest->sync_status);
+       pDest->sync_disabled = pSrc->GetSyncDisabled();
+       AppLogDebug("sync_disabled:(%d)", pDest->sync_disabled);
+       pDest->default_mail_slot_size = pSrc->GetDefaultMailSlotSize();
+       AppLogDebug("default_mail_slot_size:(%d)", pDest->default_mail_slot_size);
+
+       pDest->incoming_server_type = pSrc->GetIncomingServerType();
+       AppLogDebug("incoming_server_type:(%d)", pDest->incoming_server_type);
+       pDest->incoming_server_port_number = pSrc->GetIncomingServerPortNum();
+       AppLogDebug("incoming_server_port_number:(%d)", pDest->incoming_server_port_number);
+       pDest->incoming_server_secure_connection = pSrc->GetIncomingServerSecureConnection();
+       AppLogDebug("incoming_server_secure_connection:(%d)", pDest->incoming_server_secure_connection);
+       pDest->retrieval_mode = pSrc->GetRetrievalMode();
+       AppLogDebug("retrieval_mode:(%d)", pDest->retrieval_mode);
+
+       pDest->keep_mails_on_pop_server_after_download = pSrc->GetKeepMailsAfterDownload();
+       AppLogDebug("keep_mails_on_pop_server_after_download:(%d)", pDest->keep_mails_on_pop_server_after_download);
+       pDest->check_interval = pSrc->GetCheckInterval();
+       AppLogDebug("check_interval:(%d)", pDest->check_interval);
+       pDest->auto_download_size = pSrc->GetAutoDownloadSize();
+       AppLogDebug("auto_download_size:(%d)", pDest->auto_download_size);
+       pDest->outgoing_server_type = pSrc->GetOutgoingServerType();
+       AppLogDebug("outgoing_server_type:(%d)", pDest->outgoing_server_type);
+
+       pDest->outgoing_server_port_number = pSrc->GetOutgoingServerPortNum();
+       AppLogDebug("outgoing_server_port_number:(%d)", pDest->outgoing_server_port_number);
+       pDest->outgoing_server_secure_connection = pSrc->GetOutgoingServerSecureConnection();
+       AppLogDebug("outgoing_server_secure_connection:(%d)", pDest->outgoing_server_secure_connection);
+       pDest->outgoing_server_need_authentication = pSrc->GetOutgoingServerNeedAuthentication();
+       AppLogDebug("outgoing_server_need_authentication:(%d)", pDest->outgoing_server_need_authentication);
+       pDest->outgoing_server_use_same_authenticator = pSrc->GetOutgoingServerUseSameAuthenticator();
+       AppLogDebug("outgoing_server_use_same_authenticator:(%d)", pDest->outgoing_server_use_same_authenticator);
+
+       pDest->options.add_my_address_to_bcc = pSrc->GetOptions()->GetAddMyAddressToBcc();
+       AppLogDebug("options.add_my_address_to_bcc:(%d)", pDest->options.add_my_address_to_bcc);
+       pDest->options.add_myname_card = pSrc->GetOptions()->GetAddMynameCard();
+       AppLogDebug("options.add_myname_card:(%d)", pDest->options.add_myname_card);
+       pDest->options.add_signature = pSrc->GetOptions()->GetAddSignature();
+       AppLogDebug("options.add_signature:(%d)", pDest->options.add_signature);
+       pDest->options.block_address = pSrc->GetOptions()->GetBlockAddress();
+       AppLogDebug("options.block_address:(%d)", pDest->options.block_address);
+       pDest->options.block_subject = pSrc->GetOptions()->GetBlockSubject();
+       AppLogDebug("options.block_subject:(%d)", pDest->options.block_subject);
+       srcDisplayName = pSrc->GetOptions()->GetDisplayNameFrom();
+       pDestDisplayName = pDest->options.display_name_from;
+       Utils::StringToChar(&srcDisplayName, &pDestDisplayName);
+       pDest->options.download_limit = pSrc->GetOptions()->GetDownloadLimit();
+       AppLogDebug("options.download_limit:(%d)", pDest->options.download_limit);
+       pDest->options.forward_with_files = pSrc->GetOptions()->GetForwardWithFiles();
+       AppLogDebug("options.forward_with_files:(%d)", pDest->options.forward_with_files);
+       pDest->options.keep_local_copy = pSrc->GetOptions()->GetKeepLocalCopy();
+       AppLogDebug("options.keep_local_copy:(%d)", pDest->options.keep_local_copy);
+       pDest->options.priority = pSrc->GetOptions()->GetPriority();
+       AppLogDebug("options.priority:(%d)", pDest->options.priority);
+       pDest->options.reply_with_body = pSrc->GetOptions()->GetReplyWithBody();
+       AppLogDebug("options.reply_with_body:(%d)", pDest->options.reply_with_body);
+       pDest->options.req_delivery_receipt = pSrc->GetOptions()->GetReqDeliveryReceipt();
+       AppLogDebug("options.req_delivery_receipt:(%d)", pDest->options.req_delivery_receipt);
+       pDest->options.req_read_receipt = pSrc->GetOptions()->GetReqReadReceipt();
+       AppLogDebug("options.req_read_receipt:(%d)", pDest->options.req_read_receipt);
+       srcSignature = pSrc->GetOptions()->GetSignature();
+       Utils::StringToChar(&srcSignature, &pDest->options.signature);
+       pDest->pop_before_smtp = pSrc->GetPopBeforeSmtp();
+       AppLogDebug("pop_before_smtp:(%d)", pDest->pop_before_smtp);
+       pDest->smime_type = pSrc->GetSmimeType();
+       AppLogDebug("smime_type:(%d)", pDest->smime_type);
+       pDest->cipher_type = pSrc->GetCipherType();
+       AppLogDebug("cipher_type:(%d)", pDest->cipher_type);
+       pDest->digest_type = pSrc->GetDigestType();
+       AppLogDebug("digest_type:(%d)", pDest->digest_type);
+       pDest->incoming_server_requires_apop = pSrc->GetIncomingServerRequiresApop();
+       AppLogDebug("incoming_server_requires_apop:(%d)", pDest->incoming_server_requires_apop);
+
+       pDest->user_data = new (std::nothrow) int[NUM_PRIMARY_COLORS];
+       int* pColorArray = (int*)pDest->user_data;
+
+       if (pColorArray != null)
+       {
+               pDest->user_data_length = sizeof(int)*NUM_PRIMARY_COLORS;
+               pColorArray[0] = pSrc->GetColorCode().GetRed();
+               pColorArray[1] = pSrc->GetColorCode().GetGreen();
+               pColorArray[2] = pSrc->GetColorCode().GetBlue();
+       }
+
+       Utils::StringToChar(&pSrc->GetAccountName(), &pDest->account_name);
+       Utils::StringToChar(&pSrc->GetLogoIconPath(), &pDest->logo_icon_path);
+       Utils::StringToChar(&pSrc->GetUserDisplayName(), &pDest->user_display_name);
+       Utils::StringToChar(&pSrc->GetUserEmailAddress(), &pDest->user_email_address);
+       Utils::StringToChar(&pSrc->GetReplyToAddress(), &pDest->reply_to_address);
+       Utils::StringToChar(&pSrc->GetReturnAddress(), &pDest->return_address);
+       Utils::StringToChar(&pSrc->GetIncomingServerAddr(), &pDest->incoming_server_address);
+       Utils::StringToChar(&pSrc->GetIncomingServerUsername(), &pDest->incoming_server_user_name);
+       Utils::StringToChar(&pSrc->GetIncomingServerPassword(), &pDest->incoming_server_password);
+       Utils::StringToChar(&pSrc->GetOutgoingServerAddr(), &pDest->outgoing_server_address);
+       Utils::StringToChar(&pSrc->GetOutgoingServerUsername(), &pDest->outgoing_server_user_name);
+       Utils::StringToChar(&pSrc->GetOutgoingServerPassword(), &pDest->outgoing_server_password);
+       Utils::StringToChar(&pSrc->GetCertificatePath(), &pDest->certificate_path);
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+const int&
+EmailAccount::GetAccountId() const
+{
+    return __accountId;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetAccountName() const
+{
+    return __accountName;
+}
+
+const int&
+EmailAccount::GetAccountSvcId() const
+{
+    return __accountSvcId;
+}
+
+const int&
+EmailAccount::GetAutoDownloadSize() const
+{
+    return __autoDownloadSize;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetCertificatePath() const
+{
+    return __certificatePath;
+}
+
+const int&
+EmailAccount::GetCheckInterval() const
+{
+    return __checkInterval;
+}
+
+const email_cipher_type&
+EmailAccount::GetCipherType() const
+{
+    return __cipherType;
+}
+
+const Tizen::Graphics::Color&
+EmailAccount::GetColorCode() const
+{
+    return __colorCode;
+}
+
+const int&
+EmailAccount::GetDefaultMailSlotSize() const
+{
+    return __defaultMailSlotSize;
+}
+
+const email_digest_type&
+EmailAccount::GetDigestType() const
+{
+    return __digestType;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetIncomingServerAddr() const
+{
+    return __incomingServerAddr;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetIncomingServerPassword() const
+{
+    return __incomingServerPassword;
+}
+
+const int&
+EmailAccount::GetIncomingServerPortNum() const
+{
+    return __incomingServerPortNum;
+}
+
+const int&
+EmailAccount::GetIncomingServerRequiresApop() const
+{
+    return __incomingServerRequiresApop;
+}
+
+const int&
+EmailAccount::GetIncomingServerSecureConnection() const
+{
+    return __incomingServerSecureConnection;
+}
+
+const email_account_server_t&
+EmailAccount::GetIncomingServerType() const
+{
+    return __incomingServerType;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetIncomingServerUsername() const
+{
+    return __incomingServerUsername;
+}
+
+const int&
+EmailAccount::GetKeepMailsAfterDownload() const
+{
+    return __keepMailsAfterDownload;
+}
+
+const Tizen::Base::TimeSpan&
+EmailAccount::GetLastSyncTime() const
+{
+    return __lastSyncTime;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetLogoIconPath() const
+{
+    return __logoIconPath;
+}
+
+//inline email_option_t&
+//EmailAccount::GetOptions()
+//{
+//    return __options;
+//}
+
+EmailOption*
+EmailAccount::GetOptions()
+{
+    return &__options;
+}
+
+
+const EmailOption*
+EmailAccount::GetOptions() const
+{
+    return &__options;
+}
+
+//inline const email_option_t&
+//EmailAccount::GetOptions() const
+//{
+//    return __options;
+//}
+
+const Tizen::Base::String&
+EmailAccount::GetOutgoingServerAddr() const
+{
+    return __outgoingServerAddr;
+}
+
+const int&
+EmailAccount::GetOutgoingServerNeedAuthentication() const
+{
+    return __outgoingServerNeedAuthentication;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetOutgoingServerPassword() const
+{
+    return __outgoingServerPassword;
+}
+
+const int&
+EmailAccount::GetOutgoingServerPortNum() const
+{
+    return __outgoingServerPortNum;
+}
+
+const int&
+EmailAccount::GetOutgoingServerSecureConnection() const
+{
+    return __outgoingServerSecureConnection;
+}
+
+const email_account_server_t&
+EmailAccount::GetOutgoingServerType() const
+{
+    return __outgoingServerType;
+}
+
+const int&
+EmailAccount::GetOutgoingServerUseSameAuthenticator() const
+{
+    return __outgoingServerUseSameAuthenticator;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetOutgoingServerUsername() const
+{
+    return __outgoingServerUsername;
+}
+
+const int&
+EmailAccount::GetPopBeforeSmtp() const
+{
+    return __popBeforeSmtp;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetReplyToAddress() const
+{
+    return __replyToAddress;
+}
+
+const email_imap4_retrieval_mode_t&
+EmailAccount::GetRetrievalMode() const
+{
+    return __retrievalMode;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetReturnAddress() const
+{
+    return __returnAddress;
+}
+
+const email_smime_type&
+EmailAccount::GetSmimeType() const
+{
+    return __smimeType;
+}
+
+const int&
+EmailAccount::GetSyncDisabled() const
+{
+    return __syncDisabled;
+}
+
+const int&
+EmailAccount::GetSyncStatus() const
+{
+    return __syncStatus;
+}
+
+void*&
+EmailAccount::GetUserData()
+{
+    return __userData;
+}
+
+const int&
+EmailAccount::GetUserDataLength() const
+{
+    return __userDataLength;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetUserDisplayName() const
+{
+    return __userDisplayName;
+}
+
+const Tizen::Base::String&
+EmailAccount::GetUserEmailAddress() const
+{
+    return __userEmailAddress;
+}
+
+void
+EmailAccount::SetAccountId(const int& accountId)
+{
+    __accountId = accountId;
+}
+
+void
+EmailAccount::SetAccountName(const Tizen::Base::String& accountName)
+{
+    __accountName = accountName;
+}
+
+void
+EmailAccount::SetAccountSvcId(const int& accountSvcId)
+{
+    __accountSvcId = accountSvcId;
+}
+
+void
+EmailAccount::SetAutoDownloadSize(const int& autoDownloadSize)
+{
+    __autoDownloadSize = autoDownloadSize;
+}
+
+void
+EmailAccount::SetCertificatePath(const Tizen::Base::String& certificatePath)
+{
+    __certificatePath = certificatePath;
+}
+
+void
+EmailAccount::SetCheckInterval(const int& checkInterval)
+{
+    __checkInterval = checkInterval;
+}
+
+void
+EmailAccount::SetCipherType(const email_cipher_type& cipherType)
+{
+    __cipherType = cipherType;
+}
+
+void
+EmailAccount::SetColorCode(const Tizen::Graphics::Color& colorCode)
+{
+    __colorCode = colorCode;
+}
+
+void
+EmailAccount::SetDefaultMailSlotSize(const int& defaultMailSlotSize)
+{
+    __defaultMailSlotSize = defaultMailSlotSize;
+}
+
+void
+EmailAccount::SetDigestType(const email_digest_type& digestType)
+{
+    __digestType = digestType;
+}
+
+void
+EmailAccount::SetIncomingServerAddr(const Tizen::Base::String& incomingServerAddr)
+{
+    __incomingServerAddr = incomingServerAddr;
+}
+
+void
+EmailAccount::SetIncomingServerPassword(const Tizen::Base::String& incomingServerPassword)
+{
+    __incomingServerPassword = incomingServerPassword;
+}
+
+void
+EmailAccount::SetIncomingServerPortNum(const int& incomingServerPortNum)
+{
+    __incomingServerPortNum = incomingServerPortNum;
+}
+
+void
+EmailAccount::SetIncomingServerRequiresApop(const int& incomingServerRequiresApop)
+{
+    __incomingServerRequiresApop = incomingServerRequiresApop;
+}
+
+void
+EmailAccount::SetIncomingServerSecureConnection(const int& incomingServerSecureConnection)
+{
+    __incomingServerSecureConnection = incomingServerSecureConnection;
+}
+
+void
+EmailAccount::SetIncomingServerType(const email_account_server_t& incomingServerType)
+{
+    __incomingServerType = incomingServerType;
+}
+
+void
+EmailAccount::SetIncomingServerUsername(const Tizen::Base::String& incomingServerUsername)
+{
+    __incomingServerUsername = incomingServerUsername;
+}
+
+void
+EmailAccount::SetKeepMailsAfterDownload(const int& keepMailsAfterDownload)
+{
+    __keepMailsAfterDownload = keepMailsAfterDownload;
+}
+
+void
+EmailAccount::SetLastSyncTime(const Tizen::Base::TimeSpan& lastSyncTime)
+{
+    __lastSyncTime = lastSyncTime;
+}
+
+void
+EmailAccount::SetLogoIconPath(const Tizen::Base::String& logoIconPath)
+{
+    __logoIconPath = logoIconPath;
+}
+
+//void
+//EmailAccount::SetOptions(email_option_t options)
+//{
+//    __options = options;
+//}
+
+void
+EmailAccount::SetOutgoingServerAddr(const Tizen::Base::String& outgoingServerAddr)
+{
+    __outgoingServerAddr = outgoingServerAddr;
+}
+
+void
+EmailAccount::SetOutgoingServerNeedAuthentication(const int& outgoingServerNeedAuthentication)
+{
+    __outgoingServerNeedAuthentication = outgoingServerNeedAuthentication;
+}
+
+void
+EmailAccount::SetOutgoingServerPassword(const Tizen::Base::String& outgoingServerPassword)
+{
+    __outgoingServerPassword = outgoingServerPassword;
+}
+
+void
+EmailAccount::SetOutgoingServerPortNum(const int& outgoingServerPortNum)
+{
+    __outgoingServerPortNum = outgoingServerPortNum;
+}
+
+void
+EmailAccount::SetOutgoingServerSecureConnection(const int& outgoingServerSecureConnection)
+{
+    __outgoingServerSecureConnection = outgoingServerSecureConnection;
+}
+
+void
+EmailAccount::SetOutgoingServerType(const email_account_server_t& outgoingServerType)
+{
+    __outgoingServerType = outgoingServerType;
+}
+
+void
+EmailAccount::SetOutgoingServerUseSameAuthenticator(const int& outgoingServerUseSameAuthenticator)
+{
+    __outgoingServerUseSameAuthenticator = outgoingServerUseSameAuthenticator;
+}
+
+void
+EmailAccount::SetOutgoingServerUsername(const Tizen::Base::String& outgoingServerUsername)
+{
+    __outgoingServerUsername = outgoingServerUsername;
+}
+
+void
+EmailAccount::SetPopBeforeSmtp(const int& popBeforeSmtp)
+{
+    __popBeforeSmtp = popBeforeSmtp;
+}
+
+void
+EmailAccount::SetReplyToAddress(const Tizen::Base::String& replyToAddress)
+{
+    __replyToAddress = replyToAddress;
+}
+
+void
+EmailAccount::SetRetrievalMode(const email_imap4_retrieval_mode_t& retrievalMode)
+{
+    __retrievalMode = retrievalMode;
+}
+
+void
+EmailAccount::SetReturnAddress(const Tizen::Base::String& returnAddress)
+{
+    __returnAddress = returnAddress;
+}
+
+void
+EmailAccount::SetSmimeType(const email_smime_type& smimeType)
+{
+    __smimeType = smimeType;
+}
+
+void
+EmailAccount::SetSyncDisabled(const int& syncDisabled)
+{
+    __syncDisabled = syncDisabled;
+}
+
+void
+EmailAccount::SetSyncStatus(const int& syncStatus)
+{
+    __syncStatus = syncStatus;
+}
+
+//void
+//EmailAccount::SetUserData(void *userData)
+//{
+//    __userData = userData;
+//}
+
+void
+EmailAccount::SetUserDataLength(const int& userDataLength)
+{
+    __userDataLength = userDataLength;
+}
+
+void
+EmailAccount::SetUserDisplayName(const Tizen::Base::String& userDisplayName)
+{
+       __userDisplayName = userDisplayName;
+}
+
+void
+EmailAccount::SetUserEmailAddress(const Tizen::Base::String& userEmailAddress)
+{
+    __userEmailAddress = userEmailAddress;
+}
+
+void
+EmailAccount::SetServerType(enum ServerType serverType)
+{
+       __serverType = serverType;
+}
+
+ServerType
+EmailAccount::GetServerType(void)
+{
+       return __serverType;
+}
+
+bool
+EmailSettingsProvider::IsAccountExists(const String& newMailId)
+{
+       AppLogDebug("ENTER");
+
+       bool accountExists = false;
+       String accountEmailId;
+       EmailAccount* pTmpAcc = null;
+       IMapEnumerator* pMapEnum = null;
+
+       if (GetAccountCount() > 0)
+       {
+               pMapEnum = GetAccountListN();
+
+               if (pMapEnum != null)
+               {
+                       while (!IsFailed(pMapEnum->MoveNext()))
+                       {
+                               pTmpAcc = static_cast<EmailAccount*>(pMapEnum->GetValue());
+                               accountEmailId.Clear();
+                               accountEmailId.Append(pTmpAcc->GetUserEmailAddress());
+                               accountEmailId.Trim();
+                               if (accountEmailId.Equals(newMailId, true))
+                               {
+                                       accountExists = true;
+                                       break;
+                               }
+                       }
+                       delete pMapEnum;
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return accountExists;
+}
+
+
+
+/*******************************************************************************************/
+
+
+
+int EmailOption::GetAddMynameCard() const
+{
+    return __addMynameCard;
+}
+
+int EmailOption::GetAddSignature() const
+{
+    return __addSignature;
+}
+
+int EmailOption::GetBlockAddress() const
+{
+    return __blockAddress;
+}
+
+int EmailOption::GetBlockSubject() const
+{
+    return __blockSubject;
+}
+
+int EmailOption::GetDownloadLimit() const
+{
+    return __downloadLimit;
+}
+
+int EmailOption::GetForwardWithFiles() const
+{
+    return __forwardWithFiles;
+}
+
+int EmailOption::GetKeepLocalCopy() const
+{
+    return __keepLocalCopy;
+}
+
+
+int EmailOption::GetReplyWithBody() const
+{
+    return __replyWithBody;
+}
+
+int EmailOption::GetReqDeliveryReceipt() const
+{
+    return __reqDeliveryReceipt;
+}
+
+int EmailOption::GetReqReadReceipt() const
+{
+    return __reqReadReceipt;
+}
+
+Tizen::Base::String EmailOption::GetDisplayNameFrom() const
+{
+    return __displayNameFrom;
+}
+
+Tizen::Base::String EmailOption::GetSignature() const
+{
+    return __signature;
+}
+
+email_mail_priority_t EmailOption::GetPriority() const
+{
+    return __priority;
+}
+
+email_add_my_address_option_type EmailOption::GetAddMyAddressToBcc() const
+{
+    return __addMyAddressToBcc;
+}
+
+void EmailOption::SetAddMynameCard(int addMynameCard)
+{
+    __addMynameCard = addMynameCard;
+}
+
+void EmailOption::SetAddSignature(int addSignature)
+{
+    __addSignature = addSignature;
+}
+
+void EmailOption::SetBlockAddress(int blockAddress)
+{
+    __blockAddress = blockAddress;
+}
+
+void EmailOption::SetBlockSubject(int blockSubject)
+{
+    __blockSubject = blockSubject;
+}
+
+void EmailOption::SetDownloadLimit(int downloadLimit)
+{
+    __downloadLimit = downloadLimit;
+}
+
+void EmailOption::SetForwardWithFiles(int forwardWithFiles)
+{
+    __forwardWithFiles = forwardWithFiles;
+}
+
+void EmailOption::SetKeepLocalCopy(int keepLocalCopy)
+{
+    __keepLocalCopy = keepLocalCopy;
+}
+
+void EmailOption::SetReplyWithBody(int replyWithBody)
+{
+    __replyWithBody = replyWithBody;
+}
+
+void EmailOption::SetReqDeliveryReceipt(int reqDeliveryReceipt)
+{
+    __reqDeliveryReceipt = reqDeliveryReceipt;
+}
+
+void EmailOption::SetReqReadReceipt(int reqReadReceipt)
+{
+    __reqReadReceipt = reqReadReceipt;
+}
+
+void EmailOption::SetDisplayNameFrom(Tizen::Base::String displayNameFrom)
+{
+    __displayNameFrom = displayNameFrom;
+}
+
+void EmailOption::SetSignature(Tizen::Base::String signature)
+{
+    __signature = signature;
+}
+
+void EmailOption::SetPriority(email_mail_priority_t priority)
+{
+    __priority = priority;
+}
+
+void EmailOption::SetAddMyAddressToBcc(email_add_my_address_option_type addMyAddressToBcc)
+{
+    __addMyAddressToBcc = addMyAddressToBcc;
+}
+
+int EmailRule::GetAccountId() const
+{
+       return __accountId;
+}
+
+void EmailRule::SetAccountId(int accountId)
+{
+       __accountId = accountId;
+}
+
+email_rule_action_t EmailRule::GetFaction() const
+{
+       return __faction;
+}
+
+void EmailRule::SetFaction(email_rule_action_t faction) {
+       __faction = faction;
+}
+
+int EmailRule::GetFilterId() const
+{
+       return __filterId;
+}
+
+void EmailRule::SetFilterId(int filterId)
+{
+       __filterId = filterId;
+}
+
+int EmailRule::GetFlag1() const
+{
+       return __flag1;
+}
+
+void EmailRule::SetFlag1(int flag1)
+{
+       __flag1 = flag1;
+}
+
+int EmailRule::GetFlag2() const
+{
+       return __flag2;
+}
+
+void EmailRule::SetFlag2(int flag2)
+{
+       __flag2 = flag2;
+}
+
+int EmailRule::GetTargetMailboxId() const
+{
+       return __targetMailboxId;
+}
+
+void EmailRule::SetTargetMailboxId(int targetMailboxId)
+{
+       __targetMailboxId = targetMailboxId;
+}
+
+email_rule_type_t EmailRule::GetType() const
+{
+       return __type;
+}
+
+void EmailRule::SetType(email_rule_type_t type)
+{
+       __type = type;
+}
+
+const String& EmailRule::GetValue() const
+{
+       return __value;
+}
+
+void EmailRule::SetValue(const String& value)
+{
+       __value = value;
+}
+
+result
+EmailSettingsProvider::ConvertToOspRule(email_rule_t* pSrc, EmailRule* pDest)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       pDest->SetAccountId(pSrc->account_id);
+       pDest->SetFaction(pSrc->faction);
+       pDest->SetFilterId(pSrc->filter_id);
+       pDest->SetFlag1(pSrc->flag1);
+       pDest->SetFlag2(pSrc->flag2);
+       pDest->SetTargetMailboxId(pSrc->target_mailbox_id);
+       pDest->SetType(pSrc->type);
+
+       if (pSrc->type == EMAIL_FILTER_SUBJECT)
+       {
+               pDest->SetValue(pSrc->value);
+       }
+       else if (pSrc->type == EMAIL_FILTER_FROM)
+       {
+               pDest->SetValue(pSrc->value2);
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+EmailSettingsProvider::ConvertToNativeRule(const EmailRule* pSrc, email_rule_t* pDest)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       AppLogDebug("Account id:(%d)", pSrc->GetAccountId());
+       pDest->account_id = pSrc->GetAccountId();
+       AppLogDebug("FAction:(%d)", pSrc->GetFaction());
+       pDest->faction = pSrc->GetFaction();
+       AppLogDebug("Filter id:(%d)", pSrc->GetFilterId());
+       pDest->filter_id = pSrc->GetFilterId();
+       pDest->flag1 = pSrc->GetFlag1();
+       pDest->flag2 = pSrc->GetFlag2();
+       pDest->target_mailbox_id = pSrc->GetTargetMailboxId();
+       AppLogDebug("Target mailbox id :(%d)", pSrc->GetTargetMailboxId());
+       AppLogDebug("Type:(%d)", pSrc->GetType());
+       pDest->type = pSrc->GetType();
+       AppLogDebug("Value:(%ls)", pSrc->GetValue().GetPointer());
+
+       if (pSrc->GetType() == EMAIL_FILTER_SUBJECT)
+       {
+               Utils::StringToChar(&pSrc->GetValue(), &pDest->value);
+       }
+       else if (pSrc->GetType() == EMAIL_FILTER_FROM)
+       {
+               Utils::StringToChar(&pSrc->GetValue(), &pDest->value2);
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+EmailSettingsProvider::AddRule(const EmailRule* pRule)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       email_rule_t* pNativeRule = new (std::nothrow) email_rule_t();
+       ConvertToNativeRule(pRule, pNativeRule);
+       r = AddRule(pNativeRule);
+       delete pNativeRule;
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailSettingsProvider::AddRule(email_rule_t* rule)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       int res;
+
+       res = email_add_rule(rule);
+
+       if (EMAIL_ERROR_NONE != res)
+       {
+               AppLogDebug("Add rule failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailSettingsProvider::DeleteRule(const EmailRule* pRule)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       email_rule_t* pNativeRule = new (std::nothrow) email_rule_t();
+       ConvertToNativeRule(pRule, pNativeRule);
+       r = DeleteRule(pNativeRule);
+       delete pNativeRule;
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailSettingsProvider::DeleteRule(email_rule_t* rule)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       int res;
+
+       res = email_delete_rule(rule->filter_id);
+
+       if (EMAIL_ERROR_NONE != res)
+       {
+               AppLogDebug("EmailApp::Delete rule failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailSettingsProvider::GetRuleList(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       int res;
+       email_rule_t* filtering_set = null;
+       int count;
+       res = email_get_rule_list(&filtering_set, &count);
+
+       if (EMAIL_ERROR_NONE != res)
+       {
+               AppLogDebug("EmailApp::Get rule failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+       else
+       {
+               if (__pAddressRuleList != null)
+               {
+                       __pAddressRuleList->RemoveAll(true);
+               }
+
+               if (__pSubjectRuleList != null)
+               {
+                       __pSubjectRuleList->RemoveAll(true);
+               }
+
+               for (int i = 0; i < count; i++)
+               {
+                       EmailRule* pRule = new (std::nothrow) EmailRule();
+
+                       if (pRule != null)
+                       {
+                               ConvertToOspRule(&filtering_set[i], pRule);
+
+                               if (pRule->GetType() == EMAIL_FILTER_FROM && __pAddressRuleList != null)
+                               {
+                                       __pAddressRuleList->Add(pRule);
+                               }
+                               else if (pRule->GetType() == EMAIL_FILTER_SUBJECT && __pSubjectRuleList != null)
+                               {
+                                       __pSubjectRuleList->Add(pRule);
+                               }
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+
+}
+
+ArrayList*
+EmailSettingsProvider::GetRulesList(email_rule_type_t ruleType)
+{
+       if (ruleType == EMAIL_FILTER_FROM)
+       {
+               return __pAddressRuleList;
+       }
+       else if (ruleType == EMAIL_FILTER_SUBJECT)
+       {
+               return __pSubjectRuleList;
+       }
+       else
+       {
+               return null;
+       }
+}
diff --git a/src/EmFoldersForm.cpp b/src/EmFoldersForm.cpp
new file mode 100755 (executable)
index 0000000..f53eb1d
--- /dev/null
@@ -0,0 +1,779 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmFoldersForm.cpp
+ * @brief      Keeps the implementation for the classes needed to show all Folders list
+ */
+
+#include <FApp.h>
+#include <FMedia.h>
+#include <FSystem.h>
+
+#include "EmFoldersForm.h"
+#include "EmEmailApp.h"
+#include "EmTypes.h"
+#include "EmUtils.h"
+#include "EmAllMailsPresentationModel.h"
+#include "EmTrashPresentationModel.h"
+#include "EmSpamboxPresentationModel.h"
+#include "EmOutboxPresentationModel.h"
+#include "EmInboxPresentationModel.h"
+#include "EmSentboxPresentationModel.h"
+#include "EmStateInfo.h"
+
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Locales;
+using namespace Tizen::Media;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+FoldersForm::FoldersForm(void)
+       : __isExpanded(true)
+       , __accountId(0)
+       , __fontSize(44.0f)
+       , __itemHeight(150.0f)
+       , __pArrowBmpUp(null)
+       , __pArrowBmpUpPressed(null)
+       , __pArrowBmpDown(null)
+       , __pArrowBmpDownPressed(null)
+       , __pFoldersListView(null)
+       , __pMailboxList(null)
+       , __pPresentationModel(null)
+{
+       // Empty Implementation
+}
+
+FoldersForm::~FoldersForm(void)
+{
+       // Empty Implementation
+}
+
+bool
+FoldersForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       r = Form::Construct(IDL_ALL_FOLDERS);
+       TryCatch(r == E_SUCCESS, delete this, "Failed to Construct All Accounts Form");
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return true;
+
+CATCH:
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return false;
+}
+
+result
+FoldersForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       String fontSizeString;
+       Rectangle clientRect = GetClientAreaBounds();
+       AppResource* pAppRes = App::GetInstance()->GetAppResource();
+
+       SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_INDICATOR_AUTO_HIDE);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       AddOrientationEventListener(*this);
+
+       if (pAppRes != null)
+       {
+               __pArrowBmpDown = pAppRes->GetBitmapN(IDB_BUTTON_EXPAND_CLOSED);
+               __pArrowBmpUp = pAppRes->GetBitmapN(IDB_BUTTON_EXPAND_OPENED);
+       }
+
+       __pFoldersListView = static_cast<GroupedTableView*>(GetControl(L"IDC_MAIN_GROUPED_TABLEVIEW"));
+       TryCatch(__pFoldersListView != null, r = E_FAILURE, "Failed to get main grouped tableview");
+
+       __pFoldersListView->AddGroupedTableViewItemEventListener(*this);
+       __pFoldersListView->CollapseAllGroups();
+       SetFormBackEventListener(this);
+
+       r = Tizen::System::SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = H_FOLDERS_MAILBOX_ITEM;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = H_FOLDERS_MAILBOX_ITEM;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = H_FOLDERS_MAILBOX_ITEM+17;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = H_FOLDERS_MAILBOX_ITEM+36;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = H_FOLDERS_MAILBOX_ITEM+65;
+       }
+
+       __pMailboxList = new (std::nothrow) ArrayList();
+       __pMailboxList->Construct();
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+FoldersForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pMailboxList != null)
+       {
+               __pMailboxList->RemoveAll(false);
+               delete __pMailboxList;
+               __pMailboxList = null;
+       }
+
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+void
+AddAccountLogo(TableViewGroupItem* pItem, Bitmap* pBmp)
+{
+       AppLogDebug("ENTER");
+
+       Label* pLabel = new (std::nothrow) Label();
+       pLabel->Construct(Rectangle(X_ITEM_BITMAP, Y_ACCOUNT_BITMAP, W_ACCOUNT_BITMAP, H_ACCOUNT_BITMAP), L"");
+       pLabel->SetBackgroundBitmap(*pBmp);
+       pItem->AddControl(pLabel);
+
+       RelativeLayout* pRelLayout = static_cast<RelativeLayout*>(pItem->GetLayoutN());
+
+       if (pRelLayout != null)
+       {
+               pRelLayout->SetCenterAligned(*pLabel, CENTER_ALIGN_VERTICAL);
+               pRelLayout->Update();
+
+               delete pRelLayout;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AddFolderIcon(TableViewItem* pItem, Bitmap* pBmp)
+{
+       AppLogDebug("ENTER");
+
+       Label* pLabel = new (std::nothrow) Label();
+       pLabel->Construct(Rectangle(X_ITEM_BITMAP, Y_ACCOUNT_BITMAP, W_ACCOUNT_BMP, H_ACCOUNT_BITMAP), L"");
+       pLabel->SetBackgroundBitmap(*pBmp);
+       pLabel->SetName(IDS_FOLDERS);
+       pItem->AddControl(pLabel);
+
+       RelativeLayout* pRelLayout = static_cast<RelativeLayout*>(pItem->GetLayoutN());
+
+       if (pRelLayout != null)
+       {
+               pRelLayout->SetCenterAligned(*pLabel, CENTER_ALIGN_VERTICAL);
+               pRelLayout->Update();
+
+               delete pRelLayout;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+FoldersForm::AddAccountName(TableViewGroupItem* pItem, const String& accountName, const int& unreadCount)
+{
+       AppLogDebug("ENTER");
+
+       Label* pLabel = new (std::nothrow) Label();
+
+       String text = accountName;
+       text.Append(L" (");
+       text.Append(unreadCount);
+       text.Append(L")");
+
+       pLabel->Construct(Rectangle(X_ACCOUNT_NAME_LABEL, Y_ACCOUNT_NAME_LABEL, pItem->GetWidth()-X_ACCOUNT_NAME_LABEL-W_ACCOUNT_BITMAP, pItem->GetHeight()-(2*Y_ACCOUNT_NAME_LABEL)-H_ACCOUNT_EMAIL_SUBTEXT), text);
+       pItem->AddControl(pLabel);
+       pLabel->SetMargin(X_ORIGIN, Y_ORIGIN);
+       pLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+FoldersForm::AddAllAccountsText(TableViewGroupItem* pItem)
+{
+       AppLogDebug("ENTER");
+
+       Label* pLabel = new (std::nothrow) Label();
+
+       String text = (Utils::GetResourceString(L"IDS_EMAIL_BODY_ALL_ACCOUNTS"));
+       pLabel->Construct(Rectangle(X_ACCOUNT_NAME_LABEL, Y_ACCOUNT_NAME_LABEL, pItem->GetWidth()-(2*GENERIC_OFFSET_16)-W_ACCOUNT_BITMAP, pItem->GetHeight()-(2*Y_ACCOUNT_NAME_LABEL)), text);
+       pItem->AddControl(pLabel);
+       pLabel->SetMargin(X_ORIGIN, Y_ORIGIN);
+       pLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+FoldersForm::AddMailboxName(TableViewItem* pItem, const String& mailboxName)
+{
+       AppLogDebug("ENTER");
+       Label* pFoldersLabel = null;
+       Label* pLabel = new (std::nothrow) Label();
+       RelativeLayout* pRelativeLayout = dynamic_cast<RelativeLayout*>(pItem->GetLayoutN());
+
+       pLabel->Construct(Rectangle(X_ACCOUNT_NAME_LABEL, Y_ORIGIN, pItem->GetWidth()-X_ACCOUNT_NAME_LABEL, pItem->GetHeight()), mailboxName);
+       pItem->AddControl(pLabel);
+       pLabel->SetMargin(X_ORIGIN, Y_ORIGIN);
+       pLabel->SetTextConfig(__fontSize, LABEL_TEXT_STYLE_NORMAL);
+       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+
+       pFoldersLabel = static_cast<Label*>(pItem->GetControl(IDS_FOLDERS, true));
+
+       if (pRelativeLayout != null)
+       {
+               pRelativeLayout->SetVerticalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+               pRelativeLayout->SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               pRelativeLayout->SetRelation(*pLabel, pFoldersLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+               pRelativeLayout->Update();
+
+               delete pRelativeLayout;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AddAccountEmail(TableViewGroupItem* pItem, const String& email)
+{
+       AppLogDebug("ENTER");
+
+       Label* pLabel = new (std::nothrow) Label();
+       pLabel->Construct(Rectangle(X_ACCOUNT_NAME_LABEL, pItem->GetHeight()-Y_ACCOUNT_NAME_LABEL-H_ACCOUNT_EMAIL_SUBTEXT - 10, pItem->GetWidth()-(2*GENERIC_OFFSET_16)-W_ACCOUNT_BITMAP, H_ACCOUNT_EMAIL_SUBTEXT), email);
+       pItem->AddControl(pLabel);
+       pLabel->SetMargin(X_ORIGIN, Y_ORIGIN);
+       pLabel->SetTextColor(Color::GetColor(COLOR_ID_GREY));
+       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+       pLabel->SetTextConfig(FONT_SIZE_SUB_TEXT, LABEL_TEXT_STYLE_NORMAL);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+AddExpandButton(TableViewGroupItem* pItem, const Bitmap& normalBmp, const Bitmap& pressedBmp)
+{
+       AppLogDebug("ENTER");
+
+       Button* pExpandButton = null;
+
+       RelativeLayout* pLayout = static_cast<RelativeLayout*>(pItem->GetLayoutN());
+
+       pExpandButton = new (std::nothrow) Button();
+       pExpandButton->Construct(Rectangle(pItem->GetWidth()-GENERIC_OFFSET_16-W_ACCOUNT_BITMAP, Y_ACCOUNT_BITMAP, W_ACCOUNT_BITMAP, H_ACCOUNT_BITMAP), L"");
+       pExpandButton->SetName(IDS_MAILBOXLIST_BUTTON_ID_PREFIX);
+       pExpandButton->SetNormalBackgroundBitmap(normalBmp);
+       pExpandButton->SetPressedBackgroundBitmap(pressedBmp);
+       pExpandButton->SetActionId(IDA_ACCOUNT_DETAIL_FORM_EXPAND_COLLAPSE);
+       pItem->AddControl(pExpandButton);
+
+       if (pLayout != null)
+       {
+               pLayout->SetCenterAligned(*pExpandButton, CENTER_ALIGN_VERTICAL);
+               pLayout->SetRelation(*pExpandButton, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               pLayout->SetMargin(*pExpandButton, 0, GENERIC_OFFSET_16, 0, 0);
+               pLayout->Update();
+
+               delete pLayout;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+FoldersForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       StateInfo* pStateInfo;
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+       pArgs->Construct();
+
+       pStateInfo = new (std::nothrow) StateInfo();
+
+       pStateInfo->accountId = __accountId;
+       pStateInfo->mailboxId = __mailboxId;
+       pStateInfo->pPresentationModel = __pPresentationModel;
+       pStateInfo->mailboxType = __mailboxType;
+
+       pArgs->Add(pStateInfo);
+       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_NONE, SCENE_DESTROY_OPTION_KEEP), pArgs);
+
+       AppLogDebug("EXIT");
+}
+
+void
+FoldersForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       EmailMailbox* pMailbox = null;
+       IEnumerator* pMailboxList = null;
+
+       __pMailboxList->RemoveAll(false);
+
+       if (pArgs != null)
+       {
+               StateInfo* pStateInfo = static_cast<StateInfo*>(pArgs->GetAt(0));
+
+               __accountId = pStateInfo->accountId;
+               __mailboxId = pStateInfo->mailboxId;
+               __pPresentationModel = pStateInfo->pPresentationModel;
+               __mailboxType = pStateInfo->mailboxType;
+
+               if (__accountId != -1)
+               {
+                       __pPresentationModel->UpdateUnreadCount(__accountId);
+                       pMailboxList = EmailMailboxManager::GetInstance()->GetMailboxesByAccountIdN(__accountId);
+               }
+               else
+               {
+                       IMapEnumerator* pMapEnum = EmailSettingsProvider::GetInstance()->GetAccountListN();
+
+                       while(!IsFailed(pMapEnum->MoveNext()))
+                       {
+                               EmailAccount* pAccount = static_cast<EmailAccount*>(pMapEnum->GetValue());
+                               __pPresentationModel->UpdateUnreadCount(pAccount->GetAccountId());
+                       }
+
+                       pMailboxList = EmailMailboxManager::GetInstance()->GetMailboxesByAccountIdN(EmailSettingsProvider::GetInstance()->GetDefaultAccountId());
+               }
+
+               if (pMailboxList != null)
+               {
+                       while (!IsFailed(pMailboxList->MoveNext()))
+                       {
+                               pMailbox = static_cast<EmailMailbox*>(pMailboxList->GetCurrent());
+
+                               if (pMailbox->GetNoSelect() == false)
+                               {
+                                       if (__accountId != -1)
+                                       {
+                                               __pMailboxList->Add(pMailbox);
+                                       }
+                                       else
+                                       {
+                                               if (pMailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_USER_DEFINED && pMailbox->GetMailboxType() != EMAIL_MAILBOX_TYPE_ALL_EMAILS)
+                                               {
+                                                       __pMailboxList->Add(pMailbox);
+                                               }
+                                       }
+                               }
+                       }
+
+                       delete pMailboxList;
+               }
+               pArgs->RemoveAt(2);
+               pArgs->RemoveAll(true);
+               delete pArgs;
+       }
+
+       __pFoldersListView->AddGroupedTableViewItemEventListener(*this);
+       __pFoldersListView->SetItemProvider(this);
+       __pFoldersListView->UpdateTableView();
+       Invalidate(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+FoldersForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER");
+
+       __pFoldersListView->RemoveGroupedTableViewItemEventListener(*this);
+
+       AppLogDebug("EXIT");
+}
+
+int
+FoldersForm::GetGroupCount(void)
+{
+       return 1;
+}
+
+int
+FoldersForm::GetItemCount(int groupIndex)
+{
+       return __pMailboxList->GetCount();
+}
+
+TableViewGroupItem*
+FoldersForm::CreateGroupItem(int groupIndex, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       int accountUnreadCount = 0;
+       AppResource* pAppRes = App::GetInstance()->GetAppResource();
+       TableViewGroupItem* pItem = null;
+
+       RelativeLayout layout;
+       layout.Construct();
+
+       pItem = new (std::nothrow) TableViewGroupItem();
+       pItem->Construct(layout, Dimension(itemWidth, __itemHeight+38));
+//     pItem->SetBackgroundColor(Color(0xC3, 0xC3, 0xC3, 0x32));
+
+       if (__accountId != -1)
+       {
+               EmailAccount* pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__accountId);
+
+               if (pAccount != null)
+               {
+                       Bitmap* pLogo = pAppRes->GetBitmapN(File::GetFileName(pAccount->GetLogoIconPath()));
+                       accountUnreadCount = __pPresentationModel->GetUnreadCount(pAccount);
+                       AddAccountLogo(pItem, pLogo);
+                       AddAccountName(pItem, pAccount->GetAccountName(), accountUnreadCount);
+                       AddAccountEmail(pItem, pAccount->GetUserEmailAddress());
+               }
+       }
+       else
+       {
+               Bitmap* pAllAccountsIcon = AppResource::GetInstance()->GetBitmapN(IDB_ALL_ACCOUNTS);
+               AddAccountLogo(pItem, pAllAccountsIcon);
+               AddAllAccountsText(pItem);
+       }
+
+       if (__pFoldersListView->IsGroupExpanded(groupIndex) == true)
+       {
+               AddExpandButton(pItem, *__pArrowBmpUp, *__pArrowBmpUp);
+       }
+       else
+       {
+               AddExpandButton(pItem, *__pArrowBmpDown, *__pArrowBmpDown);
+       }
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+bool
+FoldersForm::DeleteGroupItem(int groupIndex, TableViewGroupItem* pItem)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null)
+       {
+               pItem->RemoveAllControls();
+               delete pItem;
+               pItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+FoldersForm::UpdateGroupItem(int groupIndex, TableViewGroupItem* pItem)
+{
+       //Empty Implementation
+}
+
+TableViewItem*
+FoldersForm::CreateItem(int groupIndex, int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       EmailMailbox* pMailbox;
+       String mailboxText;
+       RelativeLayout relLayout;
+       relLayout.Construct();
+
+       TableViewItem* pItem = new (std::nothrow) TableViewItem();
+       pItem->Construct(relLayout, Dimension(itemWidth, __itemHeight), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+       if (__pMailboxList != null && __pMailboxList->GetCount() > 0)
+       {
+               pMailbox = static_cast<EmailMailbox*>(__pMailboxList->GetAt(itemIndex));
+               AppResource* pAppRes = App::GetInstance()->GetAppResource();
+
+               if (pMailbox != null)
+               {
+                       email_mailbox_type_e mailboxType = pMailbox->GetMailboxType();
+
+                       mailboxText.Append(pMailbox->GetMailboxAlias());
+                       mailboxText.Append(L" (");
+
+                       if (__accountId != -1)
+                       {
+                               mailboxText.Append(pMailbox->GetUnreadCount());
+                       }
+                       else
+                       {
+                               mailboxText.Append( __pPresentationModel->GetUnreadCountForAllAccounts(pMailbox));
+                       }
+
+                       mailboxText.Append(')');
+
+                       switch (mailboxType)
+                       {
+                       case EMAIL_MAILBOX_TYPE_INBOX:
+                               __pFolderIcon = pAppRes->GetBitmapN(IDB_INBOX_ICON);
+                               break;
+
+                       case EMAIL_MAILBOX_TYPE_SENTBOX:
+                               __pFolderIcon = pAppRes->GetBitmapN(IDB_SENTBOX_ICON);
+                               break;
+
+                       case EMAIL_MAILBOX_TYPE_TRASH:
+                               __pFolderIcon = pAppRes->GetBitmapN(IDB_TRASH_ICON);
+                               break;
+
+                       case EMAIL_MAILBOX_TYPE_DRAFT:
+                               __pFolderIcon = pAppRes->GetBitmapN(IDB_DRAFTS_ICON);
+                               break;
+
+                       case EMAIL_MAILBOX_TYPE_SPAMBOX:
+                               __pFolderIcon = pAppRes->GetBitmapN(IDB_SPAMBOX_ICON);
+                               break;
+
+                       case EMAIL_MAILBOX_TYPE_OUTBOX:
+                               __pFolderIcon = pAppRes->GetBitmapN(IDB_OUTBOX_ICON);
+                               break;
+
+                       case EMAIL_MAILBOX_TYPE_FLAGGED:
+                               __pFolderIcon = pAppRes->GetBitmapN(IDB_FAVOURITES_ICON);
+                               break;
+
+                       default:
+                               __pFolderIcon = pAppRes->GetBitmapN(IDB_FOLDER_ICON);
+                               break;
+
+                       }
+
+//                     relLayout.SetHorizontalFitPolicy(*pItem, FIT_POLICY_PARENT);
+//                     relLayout.SetRelation(*pItem, this, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+
+                       AddFolderIcon(pItem, __pFolderIcon);
+                       AddMailboxName(pItem, mailboxText);
+               }
+       }
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+bool
+FoldersForm::DeleteItem(int groupIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null)
+       {
+               pItem->RemoveAllControls();
+               delete pItem;
+               pItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+FoldersForm::UpdateItem(int groupIndex, int itemIndex, TableViewItem* pItem)
+{
+       //Empty implementation
+}
+
+int
+FoldersForm::GetDefaultGroupItemHeight(void)
+{
+       return H_FOLDERS_ACCOUNT_ITEM;
+}
+
+int
+FoldersForm::GetDefaultItemHeight(void)
+{
+       return H_FOLDERS_MAILBOX_ITEM;
+}
+
+void
+FoldersForm::OnGroupedTableViewGroupItemStateChanged(GroupedTableView& tableView, int groupIndex, TableViewGroupItem* pItem, TableViewItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       Bitmap* pBackgroundBmp = null;
+       Button* pExpandButton = null;
+
+       if (__isExpanded == true)
+       {
+               pBackgroundBmp = __pArrowBmpDown;
+               tableView.CollapseGroup(groupIndex);
+               __isExpanded = false;
+       }
+       else
+       {
+               pBackgroundBmp = __pArrowBmpUp;
+               tableView.ExpandGroup(groupIndex);
+               __isExpanded = true;
+       }
+
+       pExpandButton = static_cast<Button*>(pItem->GetControl(IDS_MAILBOXLIST_BUTTON_ID_PREFIX, true));
+
+       if (pExpandButton != null)
+       {
+               pExpandButton->SetNormalBackgroundBitmap(*pBackgroundBmp);
+               pExpandButton->SetPressedBackgroundBitmap(*pBackgroundBmp);
+               pExpandButton->Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+FoldersForm::OnGroupedTableViewItemStateChanged(GroupedTableView& tableView, int groupIndex, int itemIndex, TableViewItem* pItem, TableViewItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       BasePresentationModel* pPresentationModel = null;
+       EmailMailbox* pMailbox = static_cast<EmailMailbox*>(__pMailboxList->GetAt(itemIndex));
+       email_mailbox_type_e mailboxType = pMailbox->GetMailboxType();
+
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+       pArgs->Construct();
+       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+       pStateInfo->accountId = __accountId;
+
+//     pArgs->Add(new (std::nothrow) Integer(__accountId));
+
+       if (__accountId != -1)
+       {
+               pStateInfo->mailboxId = pMailbox->GetMailboxId();
+//             pArgs->Add(new (std::nothrow) Integer(pMailbox->GetMailboxId()));
+
+               if (mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+               {
+                       pPresentationModel = AllMailsPresentationModel::GetInstance();
+               }
+               else if(mailboxType == EMAIL_MAILBOX_TYPE_INBOX)
+               {
+                       pPresentationModel = InboxPresentationModel::GetInstance();
+               }
+               else if(mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX)
+               {
+                       pPresentationModel = SentboxPresentationModel::GetInstance();
+               }
+               else if(mailboxType == EMAIL_MAILBOX_TYPE_TRASH)
+               {
+                       pPresentationModel = TrashPresentationModel::GetInstance();
+               }
+               else if(mailboxType == EMAIL_MAILBOX_TYPE_DRAFT)
+               {
+                       pPresentationModel = DraftListPresentationModel::GetInstance();
+               }
+               else if(mailboxType == EMAIL_MAILBOX_TYPE_SPAMBOX)
+               {
+                       pPresentationModel = SpamPresentationModel::GetInstance();
+               }
+               else if(mailboxType == EMAIL_MAILBOX_TYPE_OUTBOX)
+               {
+                       pPresentationModel = OutboxPresentationModel::GetInstance();
+               }
+               else
+               {
+                       pPresentationModel = __pPresentationModel;
+               }
+
+               if (__accountId != -1)
+               {
+                       if (pMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_USER_DEFINED || pMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_ALL_EMAILS || pMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || pMailbox->GetMailboxType() == EMAIL_MAILBOX_TYPE_FLAGGED)
+                       {
+                               pPresentationModel->FetchData(__accountId, pMailbox->GetMailboxId(), pMailbox->GetMailboxType());
+                       }
+                       else
+                       {
+                               pPresentationModel->FetchData(__accountId);
+                       }
+               }
+
+               pPresentationModel->SortBy(__pPresentationModel->GetSortType());
+               pStateInfo->pPresentationModel = pPresentationModel;
+               pStateInfo->mailboxType = pMailbox->GetMailboxType();
+       }
+       else
+       {
+               pStateInfo->mailboxId = __mailboxId;
+               pStateInfo->pPresentationModel = AllMailsPresentationModel::GetInstance();
+               pStateInfo->mailboxType = mailboxType;
+       }
+
+       pArgs->Add(pStateInfo);
+       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pArgs);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+FoldersForm::OnGroupedTableViewContextItemActivationStateChanged(GroupedTableView& tableView, int groupIndex, int itemIndex, TableViewContextItem* pContextItem, bool activated)
+{
+       // Empty implementation
+}
+
+void
+FoldersForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER");
+
+       __pFoldersListView->UpdateTableView();
+
+       AppLogDebug("EXIT");
+       return;
+}
diff --git a/src/EmFormFactory.cpp b/src/EmFormFactory.cpp
new file mode 100755 (executable)
index 0000000..dd2aa20
--- /dev/null
@@ -0,0 +1,179 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmailFormFactory.cpp
+ * @brief      Provides the implementation of the form factory
+ */
+
+#include "EmFormFactory.h"
+
+#include "EmAccountSettingMainForm.h"
+#include "EmAccountSettingSetUpMailboxForm.h"
+#include "EmAddAccountForm.h"
+#include "EmAddAddressForm.h"
+#include "EmAddSubjectForm.h"
+#include "EmBlockForm.h"
+#include "EmDeleteSubjectAddress.h"
+#include "EmComposerForm.h"
+#include "EmDetailForm.h"
+#include "EmManualSetUpForm.h"
+#include "EmEmailSettingForm.h"
+#include "EmMailListForm.h"
+#include "EmMoveMailForm.h"
+#include "EmTypes.h"
+#include "EmSearchForm.h"
+#include "EmFoldersForm.h"
+#include "EmAccountConfiguration.h"
+
+
+using namespace Tizen::Ui::Scenes;
+
+EmailFormFactory::EmailFormFactory()
+{
+
+}
+
+EmailFormFactory::~EmailFormFactory()
+{
+
+}
+
+Tizen::Ui::Controls::Form*
+EmailFormFactory::CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId)
+{
+       AppLogDebug("ENTER, formId:(%ls) sceneid:(%ls)", formId.GetPointer(), sceneId.GetPointer());
+
+       SceneManager* pSceneManager = SceneManager::GetInstance();
+       Tizen::Ui::Controls::Form* pNewForm = null;
+
+       if (formId == ADD_ACCOUNT_FORM)
+       {
+               AddAccountForm* pForm = new (std::nothrow) AddAccountForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == INBOX_FORM)
+       {
+               MailListForm* pForm = new (std::nothrow) MailListForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == EMAIL_COMPOSER_FORM)
+       {
+               ComposerForm* pForm = new (std::nothrow) ComposerForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == EMAIL_DETAIL_FORM)
+       {
+               DetailForm* pForm = new (std::nothrow) DetailForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == MOVEMAIL_FORM)
+       {
+               EmailMoveMailForm* pForm = new (std::nothrow) EmailMoveMailForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == EMAIL_SETTING_FORM)
+       {
+               EmailSettingsForm* pForm = new (std::nothrow) EmailSettingsForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == BLOCK_EMAIL_FORM)
+       {
+               BlockForm* pForm = new (std::nothrow) BlockForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == ADD_ADDRESS_FORM)
+       {
+               AddAddressForm* pForm = new (std::nothrow) AddAddressForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == ADD_SUBJECT_FORM)
+       {
+               AddSubjectForm* pForm = new (std::nothrow) AddSubjectForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == ACCOUNT_SETTING_FORM)
+       {
+               AccountSettingForm* pForm = new (std::nothrow) AccountSettingForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == DELETE_ADDRESS_SUBJECT_FORM)
+       {
+               DeleteSubjectAddressForm* pForm = new (std::nothrow) DeleteSubjectAddressForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == SETTING_SETUP_MAILBOX_FORM)
+       {
+               AccountSettingSetUpMailboxForm* pForm = new (std::nothrow) AccountSettingSetUpMailboxForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == ADD_ACCOUNT_MANUAL_SETUP_FORM)
+       {
+               ManualSetUpForm* pForm = new (std::nothrow) ManualSetUpForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == SEARCH_FORM)
+       {
+               SearchForm* pForm = new (std::nothrow) SearchForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == FOLDERS_VIEW_FORM)
+       {
+               FoldersForm* pForm = new (std::nothrow) FoldersForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+       else if (formId == ACCOUNT_CONFIG_FORM)
+       {
+               AccountConfigurationForm* pForm = new (std::nothrow) AccountConfigurationForm();
+               pForm->Initialize();
+               pSceneManager->AddSceneEventListener(sceneId, *pForm);
+               pNewForm = pForm;
+       }
+
+       AppLogDebug("EXIT");
+       return pNewForm;
+}
+
diff --git a/src/EmInboxPresentationModel.cpp b/src/EmInboxPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..38a02e0
--- /dev/null
@@ -0,0 +1,123 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmEmInboxPresentationModel.h
+ * @brief                      Keeps the implementation of InboxPresentationModel class
+ */
+
+#include <cstdlib>
+#include "EmInboxPresentationModel.h"
+#include "EmTypes.h"
+#include "EmUtils.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+InboxPresentationModel* InboxPresentationModel::__pInboxPresentationModelInstance = null;
+
+InboxPresentationModel::InboxPresentationModel(void)
+{
+       // Empty Implementation
+}
+
+InboxPresentationModel::~InboxPresentationModel(void)
+{
+       AppLogDebug("ENTER & EXIT");
+}
+
+InboxPresentationModel*
+InboxPresentationModel::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInboxPresentationModelInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pInboxPresentationModelInstance;
+}
+
+void
+InboxPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInboxPresentationModelInstance != null)
+       {
+               __pInboxPresentationModelInstance->CleanupInstance();
+               delete __pInboxPresentationModelInstance;
+               __pInboxPresentationModelInstance = null;
+       }
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+InboxPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pInboxPresentationModelInstance = new (std::nothrow) InboxPresentationModel();
+       r = __pInboxPresentationModelInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInboxPresentationModelInstance;
+               __pInboxPresentationModelInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+InboxPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+InboxPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       BasePresentationModel::Construct();
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+InboxPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       AppLogDebug("ENTER, accountId:(%d), forceUpdate:(%d)", accountId, forceUpdate);
+
+       _pMailList = _pMailboxManager->GetData(accountId, EMAIL_MAILBOX_TYPE_INBOX, forceUpdate);
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmMailListForm.cpp b/src/EmMailListForm.cpp
new file mode 100755 (executable)
index 0000000..82600d2
--- /dev/null
@@ -0,0 +1,3606 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmMailListForm.cpp
+ * @brief      Keeps the implementation of Inbox Form
+ */
+
+#include "EmEmailApp.h"
+#include "EmMailListForm.h"
+#include "EmEmailSettingPresentationModel.h"
+#include "EmStateInfo.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Locales;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Animations;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+MailListForm::MailListForm(void)
+       : __accountId(-1)
+       , __mailboxId(-1)
+       , __groupCount(0)
+       , __downloadAttachments(0)
+       , __groupIndex(-1)
+       , __itemIndex(-1)
+       , __headerTouchPosition(-1)
+       , __waitForDelete(false)
+       , __waitForMove(false)
+       , __futureAction(EmailTypesNS::NONE)
+       , __userCancelledAttachmentDownload(false)
+       , __mailboxType(EMAIL_MAILBOX_TYPE_INBOX)
+       , __mailboxViewType(INBOX_VIEW)
+       , __pFolderContextMenuItemsList(null)
+       , __pAttachmentDownloadHandleMap(null)
+       , __pSortByIcon(null)
+       , __pDeleteAllIcon(null)
+       , __pAddAccountIcon(null)
+       , __pMarkReadUnreadIcon(null)
+       , __pBlockIcon(null)
+       , __pAllAccountsIcon(null)
+       , __pHeaderAllAccountsIcon(null)
+       , __pFavouriteIcon(null)
+       , __pSortByPopupCloseButton(null)
+       , __pMarkAllAsPopupCloseButton(null)
+       , __pSetAllAsPopupCancelButton(null)
+       , __pMoreOptionMenu(null)
+       , __pFolderContextMenu(null)
+       , __pAccountsContextMenu(null)
+       , __pMailGroupedListView(null)
+       , __pSelectedLabel(null)
+       , __pSortByListView(null)
+       , __pMarkAllAsListView(null)
+       , __pSetAllAsListView(null)
+       , __pAccountsListView(null)
+       , __pAccountsListPanel(null)
+       , __pSortByPopup(null)
+       , __pMarkAllAsPopup(null)
+       , __pSetAllAsPopup(null)
+       , __pDeleteConfirmationPopup(null)
+       , __pAttachmentDownloadFailedPopup(null)
+       , __pMoveOrDeleteFailedPopup(null)
+       , __pProgressPopup(null)
+       , __pDownloadAttachmentsPopup(null)
+       , __pSortByListViewItemProvider(null)
+       , __pMarkAllAsListViewItemProvider(null)
+       , __pSetAllAsListViewItemProvider(null)
+       , __pBaseListViewItemProvider(null)
+       , __pPresentationModel(null)
+       , __mode(NORMAL_MODE)
+       , __viewByType(SORT_BY_DATE)
+{
+       __pPresentationModel = InboxPresentationModel::GetInstance();
+}
+
+MailListForm::~MailListForm(void)
+{
+       // Empty Implementation
+}
+
+result
+MailListForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = Construct(IDL_INBOX_LIST_FORM);
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+void
+MailListForm::InitMoreOptionMenu(void)
+{
+       AppLogDebug("ENTER");
+
+       __pMoreOptionMenu = new (std::nothrow) OptionMenu();
+       __pMoreOptionMenu->Construct();
+       __pMoreOptionMenu->AddActionEventListener(*this);
+       __pMoreOptionMenu->SetShowState(false);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::InitFolderContextMenu(void)
+{
+       AppLogDebug("ENTER");
+
+       int xPosition = 0;
+       int yPosition = 0;
+       Footer* pFooter = GetFooter();
+       Rectangle tmpRect;
+
+       if (pFooter != null)
+       {
+               pFooter->AddActionEventListener(*this);
+               pFooter->GetPosition(xPosition, yPosition);
+               tmpRect = pFooter->GetButtonBounds(BUTTON_POSITION_RIGHT);
+
+               xPosition = xPosition + (2*pFooter->GetWidth()/3);
+       }
+
+       __pFolderContextMenu = new (std::nothrow) ContextMenu();
+       __pFolderContextMenu->Construct(Point(xPosition,yPosition), CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
+       __pFolderContextMenu->SetAnchorPosition(Point(xPosition, yPosition));
+       __pFolderContextMenu->AddActionEventListener(*this);
+       __pFolderContextMenu->SetShowState(false);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::InitAccountsContextMenu(void)
+{
+       AppLogDebug("ENTER");
+
+       __pAccountsContextMenu = new (std::nothrow) ContextMenu();
+       __pAccountsContextMenu->Construct(Point(0, GetHeader()->GetHeight()), CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_AUTO);
+       __pAccountsContextMenu->AddActionEventListener(*this);
+       __pAccountsContextMenu->SetShowState(false);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::InitDeleteConfirmationPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pDeleteConfirmationPopup = new (std::nothrow) Popup();
+       __pDeleteConfirmationPopup->Construct(L"IDL_POPUP_DELETE");
+       __pDeleteConfirmationPopup->SetPropagatedKeyEventListener(this);
+
+       Button* pDeleteButton = static_cast<Button*>(__pDeleteConfirmationPopup->GetControl(L"IDC_BUTTON_DELETE", true));
+       pDeleteButton->AddActionEventListener(*this);
+       pDeleteButton->SetActionId(IDA_INBOX_FORM_DELETE_CONFIRMATION_YES);
+
+       Button* pCancelButton = static_cast<Button*>(__pDeleteConfirmationPopup->GetControl(L"IDC_BUTTON_CANCEL", true));
+       pCancelButton->AddActionEventListener(*this);
+       pCancelButton->SetActionId(IDA_INBOX_FORM_DELETE_CONFIRMATION_NO);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::InitAttachmentDownloadFailedPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pAttachmentDownloadFailedPopup = new Popup();
+       __pAttachmentDownloadFailedPopup->Construct(L"IDL_POPUP_ATTACHMENT_FAILED");
+
+       Button* pOkButton = static_cast<Button*>(__pAttachmentDownloadFailedPopup->GetControl(L"IDC_BUTTON_OK", true));
+       pOkButton->AddActionEventListener(*this);
+       pOkButton->SetActionId(IDA_ATTACHMENT_DOWNLOAD_FAILED_OK);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::InitMoveOrDeleteFailedPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pMoveOrDeleteFailedPopup = new Popup();
+       __pMoveOrDeleteFailedPopup->Construct(L"IDL_POPUP_MOVE_OR_DELETE_FAILED");
+
+       Button* pOkButton = static_cast<Button*>(__pMoveOrDeleteFailedPopup->GetControl(L"IDC_BUTTON_OK", true));
+       pOkButton->AddActionEventListener(*this);
+       pOkButton->SetActionId(IDA_MOVE_OR_DELETE_FAILED_OK);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::SetDeleteConfirmationPopupTitle(const String& title)
+{
+       AppLogDebug("ENTER, title:(%ls)", title.GetPointer());
+
+       if (__pDeleteConfirmationPopup == null)
+       {
+               InitDeleteConfirmationPopup();
+       }
+
+       Label* pTitleLabel = static_cast<Label*>(__pDeleteConfirmationPopup->GetControl(L"IDC_LABEL_TITLE", true));
+       pTitleLabel->SetText(title);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::SetMoveOrDeleteFailedPopupTitle(const String& title)
+{
+       AppLogDebug("ENTER, title:(%ls)", title.GetPointer());
+
+       if (__pMoveOrDeleteFailedPopup == null)
+       {
+               InitMoveOrDeleteFailedPopup();
+       }
+
+       Label* pTitleLabel = static_cast<Label*>(__pMoveOrDeleteFailedPopup->GetControl(L"IDC_LABEL_TITLE", true));
+       pTitleLabel->SetText(title);
+
+       AppLogDebug("EXIT");
+}
+
+result
+MailListForm::LoadIcons(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       __pSortByIcon = AppResource::GetInstance()->GetBitmapN(IDB_SORT_BY);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get Sort by icon", GetErrorMessage(r));
+
+       __pDeleteAllIcon = AppResource::GetInstance()->GetBitmapN(IDB_DELETE_ALL);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get Delete all icon", GetErrorMessage(r));
+
+       __pAddAccountIcon = AppResource::GetInstance()->GetBitmapN(IDB_ADD_ACCOUNT);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get Add account icon", GetErrorMessage(r));
+
+       __pSettingsIcon = AppResource::GetInstance()->GetBitmapN(IDB_SETTINGS);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get Add account icon", GetErrorMessage(r));
+
+       __pMarkReadUnreadIcon = AppResource::GetInstance()->GetBitmapN(IDB_MARK_UNREAD);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get mark as unread icon", GetErrorMessage(r));
+
+       __pBlockIcon = AppResource::GetInstance()->GetBitmapN(IDB_BLOCK);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get block icon", GetErrorMessage(r));
+
+       __pAllAccountsIcon = AppResource::GetInstance()->GetBitmapN(IDB_ALL_ACCOUNTS);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get all accounts icon", GetErrorMessage(r));
+
+       __pHeaderAllAccountsIcon = AppResource::GetInstance()->GetBitmapN(IDB_HEADER_ALL_ACCOUNTS_ICON);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get all accounts headericon", GetErrorMessage(r));
+
+       __pFavouriteIcon = AppResource::GetInstance()->GetBitmapN(IDB_FAVOURITES);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get favourites icon", GetErrorMessage(r));
+
+       CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+MailListForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       Rectangle clientRect = GetClientAreaBounds();
+       Header* pHeader = GetHeader();
+
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       AddOrientationEventListener(*this);
+
+       if (pHeader != null)
+       {
+               pHeader->AddActionEventListener(*this);
+               pHeader->AddTouchEventListener(*this);
+       }
+
+       SetFormBackEventListener(this);
+       SetFormMenuEventListener(this);
+
+       __pBaseListViewItemProvider = new (std::nothrow) EmailBaseListViewItemProvider(__pPresentationModel, false);
+       TryCatch(__pBaseListViewItemProvider != null, r = E_FAILURE,"Failed to create Grouped listview item provider");
+
+       __pMailGroupedListView = dynamic_cast<GroupedListView*>(GetControl(IDC_INBOX_GROUPEDLISTVIEW));
+       TryCatch(__pMailGroupedListView != null, r = E_FAILURE,"Failed to get Grouped listview");
+
+       __pMailGroupedListView->AddGroupedListViewItemEventListener(*this);
+
+       __pSelectedLabel = dynamic_cast<Label*>(GetControl(IDC_INBOX_SELECTED_LABEL));
+       TryCatch(__pSelectedLabel != null, r = E_FAILURE,"Failed to get selected label");
+
+       __pSelectedLabel->SetShowState(false);
+
+       __pAccountsListPanel = dynamic_cast<Panel*>(GetControl(IDC_INBOX_ACCOUNTS_LIST_PANEL));
+       TryCatch(__pAccountsListPanel != null, r = E_FAILURE,"Failed to get accounts list panel");
+
+       __pAccountsListPanel->AddTouchEventListener(*this);
+       __pAccountsListPanel->SetShowState(false);
+
+       __pAccountsListView = dynamic_cast<ListView*>(GetControl(IDC_INBOX_ACCOUNTS_LISTVIEW, true));
+       TryCatch(__pAccountsListView != null, r = E_FAILURE,"Failed to get accounts list view");
+
+       __pAccountsListView->AddListViewItemEventListener(*this);
+
+       __pFolderContextMenuItemsList = new (std::nothrow) ArrayList();
+       TryCatch(__pFolderContextMenuItemsList != null, r = E_FAILURE,"Failed to create folder context menu items map");
+
+       r = __pFolderContextMenuItemsList->Construct();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE,"Failed to construct folder context menu items map");
+
+       __pFolderContextMenuItemsList->InsertAt(new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_INBOX"))    , INBOX_VIEW);
+//     __pFolderContextMenuItemsList->InsertAt(new (std::nothrow) String(L"Starred"), FAVORITES_VIEW);
+       __pFolderContextMenuItemsList->InsertAt(new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_DRAFTS"))   , DRAFTS_VIEW);
+       __pFolderContextMenuItemsList->InsertAt(new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_SENTBOX"))  , SENTBOX_VIEW);
+       __pFolderContextMenuItemsList->InsertAt(new (std::nothrow) String(Utils::GetResourceString(L"IDS_EMAIL_BODY_SHOW_ALL_FOLDERS_ABB")), ALL_FOLDERS_VIEW);
+
+       __pProgressPopup = new (std::nothrow) ProgressPopup();
+       __pProgressPopup->Construct(false, false);
+
+       SetControlAlwaysOnTop(*__pSelectedLabel, true);
+
+       r = LoadIcons();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Load icons failed");
+       __pMailGroupedListView->SetSize(clientRect.width, clientRect.height);
+
+       InitFolderContextMenu();
+       InitAccountsContextMenu();
+       __prevOrientation = GetOrientationStatus();
+       CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+MailListForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       if (__pAccountsContextMenu != null)
+       {
+               __pAccountsContextMenu->RemoveAllControls();
+               delete __pAccountsContextMenu;
+               __pAccountsContextMenu = null;
+       }
+
+       delete __pSortByIcon;
+       delete __pDeleteAllIcon;
+       delete __pAddAccountIcon;
+       delete __pAllAccountsIcon;
+       delete __pHeaderAllAccountsIcon;
+       delete __pMarkReadUnreadIcon;
+       delete __pBlockIcon;
+       delete __pFavouriteIcon;
+       delete __pSettingsIcon;
+
+       __pFolderContextMenuItemsList->RemoveAll(true);
+       delete __pFolderContextMenuItemsList;
+
+       delete __pProgressPopup;
+       __pProgressPopup = null;
+
+       if (__pBaseListViewItemProvider != null)
+       {
+               delete __pBaseListViewItemProvider;
+               __pBaseListViewItemProvider = null;
+       }
+
+       if (__pFolderContextMenu != null)
+       {
+               __pFolderContextMenu->RemoveAllItems();
+               delete __pFolderContextMenu;
+               __pFolderContextMenu = null;
+       }
+
+       if (__pMoreOptionMenu != null)
+       {
+               __pMoreOptionMenu->RemoveAllItems();
+               delete __pMoreOptionMenu;
+               __pMoreOptionMenu = null;
+       }
+
+       if (__pDownloadAttachmentsPopup != null)
+       {
+               delete __pDownloadAttachmentsPopup;
+               __pDownloadAttachmentsPopup = null;
+       }
+
+       if (__pSortByPopup != null)
+       {
+               __pSortByPopup->RemoveAllControls();
+               delete __pSortByPopup;
+               __pSortByPopup = null;
+       }
+
+       if (__pSortByListViewItemProvider != null)
+       {
+               delete __pSortByListViewItemProvider;
+               __pSortByListViewItemProvider = null;
+       }
+
+       if (__pMarkAllAsPopup != null)
+       {
+               __pMarkAllAsPopup->RemoveAllControls();
+               delete __pMarkAllAsPopup;
+               __pMarkAllAsPopup = null;
+       }
+
+       if (__pMarkAllAsListViewItemProvider != null)
+       {
+               delete __pMarkAllAsListViewItemProvider;
+               __pMarkAllAsListViewItemProvider = null;
+       }
+
+       if (__pSetAllAsPopup != null)
+       {
+               __pSetAllAsPopup->RemoveAllControls();
+               delete __pSetAllAsPopup;
+               __pSetAllAsPopup = null;
+       }
+
+       if (__pSetAllAsListViewItemProvider != null)
+       {
+               delete __pSetAllAsListViewItemProvider;
+               __pSetAllAsListViewItemProvider = null;
+       }
+
+       if (__pDeleteConfirmationPopup != null)
+       {
+               __pDeleteConfirmationPopup->RemoveAllControls();
+               delete __pDeleteConfirmationPopup;
+               __pDeleteConfirmationPopup = null;
+       }
+
+       if (__pAttachmentDownloadFailedPopup != null)
+       {
+               __pAttachmentDownloadFailedPopup->RemoveAllControls();
+               delete __pAttachmentDownloadFailedPopup;
+               __pAttachmentDownloadFailedPopup = null;
+       }
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+MailListForm::CreateSortByPopup(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       /*-- 'Sort by' popup and child controls --*/
+       __pSortByPopup = new (std::nothrow) Popup();
+       TryCatch(__pSortByPopup != null, r = E_FAILURE,"Failed to create view as popup");
+
+       r = __pSortByPopup->Construct(true, Dimension(W_VIEW_AS_POPUP, H_VIEW_AS_POPUP));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE,"[%s] Failed to construct view as popup", GetErrorMessage(r));
+       __pSortByPopup->SetPropagatedKeyEventListener(this);
+
+       __pSortByPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_OPT_VIEW"));
+
+       __pSortByListViewItemProvider = new (std::nothrow) SortByListViewItemProvider();
+       __pSortByListViewItemProvider->SetEventListener(this);
+
+       __pSortByPopupCloseButton = new (std::nothrow) Button();
+       TryCatch(__pSortByPopupCloseButton != null, r = E_FAILURE,"Failed to create popup close button");
+
+       r = __pSortByPopupCloseButton->Construct(Rectangle(0, 0, W_POPUP_CLOSE_BUTTON, H_POPUP_CLOSE_BUTTON), Utils::GetResourceString(L"IDS_EMAIL_SK3_CANCEL"));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] Failed to construct popup close button", GetErrorMessage(r));
+
+       __pSortByPopupCloseButton->SetActionId(IDA_INBOX_FORM_BTN_POPUP_CANCEL);
+       __pSortByPopupCloseButton->AddActionEventListener(*this);
+       __pSortByPopup->AddControl(__pSortByPopupCloseButton);
+
+       __pSortByListView = new (std::nothrow) ListView();
+       TryCatch(__pSortByListView != null, r = GetLastResult(), "Failed to create ListView Control For Popup");
+
+       r = __pSortByListView->Construct(Rectangle(0, 0, W_VIEW_AS_POPUP, H_VIEW_AS_POPUP), true, SCROLL_STYLE_FADE_OUT);
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] Failed to construct SortBy ListView", GetErrorMessage(r));
+
+       __pSortByListView->AddListViewItemEventListener(*__pSortByListViewItemProvider);
+       __pSortByListView->SetItemProvider(*__pSortByListViewItemProvider);
+       __pSortByPopup->AddControl(__pSortByListView);
+
+       CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+MailListForm::CreateMarkAllAsPopup(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       /*-- Popup and child controls of 'Mark all as' popup --*/
+       __pMarkAllAsPopup = new (std::nothrow) Popup();
+       TryCatch(__pMarkAllAsPopup != null, r = E_FAILURE,"Failed to create mark all as popup");
+
+       r = __pMarkAllAsPopup->Construct(true, Dimension(W_VIEW_AS_POPUP, H_MARK_ALL_AS_POPUP));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE,"[%s] Failed to construct mark all as popup", GetErrorMessage(r));
+       __pMarkAllAsPopup->SetPropagatedKeyEventListener(this);
+
+       __pMarkAllAsPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_OPT_MARK_ALL_AS_ABB"));
+
+       __pMarkAllAsListViewItemProvider = new (std::nothrow) MarkAllAsListViewItemProvider();
+       __pMarkAllAsListViewItemProvider->SetEventListener(this);
+
+       __pMarkAllAsPopupCloseButton = new (std::nothrow) Button();
+       TryCatch(__pMarkAllAsPopupCloseButton != null, r = E_FAILURE,"Failed to create mark all as popup close button");
+
+       r = __pMarkAllAsPopupCloseButton->Construct(Rectangle(0, 0, W_POPUP_CLOSE_BUTTON, H_POPUP_CLOSE_BUTTON), Utils::GetResourceString(L"IDS_EMAIL_SK3_CANCEL"));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] Failed to construct mark all as popup close button", GetErrorMessage(r));
+
+       __pMarkAllAsPopupCloseButton->SetActionId(IDA_INBOX_FORM_BTN_MARK_ALL_AS_POPUP_CLOSE);
+       __pMarkAllAsPopupCloseButton->AddActionEventListener(*this);
+       __pMarkAllAsPopup->AddControl(__pMarkAllAsPopupCloseButton);
+
+       __pMarkAllAsListView = new (std::nothrow) ListView();
+       TryCatch(__pMarkAllAsListView != null, r = GetLastResult(), "Failed to create ListView Control For Mark all as Popup");
+
+       r = __pMarkAllAsListView->Construct(Rectangle(0, 0, W_VIEW_AS_POPUP, H_MARK_ALL_AS_POPUP), true, SCROLL_STYLE_FADE_OUT);
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] Failed to construct Mark all as ListView", GetErrorMessage(r));
+
+       __pMarkAllAsListView->AddListViewItemEventListener(*__pMarkAllAsListViewItemProvider);
+       __pMarkAllAsListView->SetItemProvider(*__pMarkAllAsListViewItemProvider);
+       __pMarkAllAsPopup->AddControl(__pMarkAllAsListView);
+
+       CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+MailListForm::CreateSetAllAsPopup(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       /*-- Popup and child controls of 'Set all as' popup --*/
+       __pSetAllAsPopup = new (std::nothrow) Popup();
+       TryCatch(__pSetAllAsPopup != null, r = E_FAILURE,"Failed to create set all as popup");
+
+       r = __pSetAllAsPopup->Construct(true, Dimension(W_VIEW_AS_POPUP, H_MARK_ALL_AS_POPUP));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE,"[%s] Failed to construct set all as popup", GetErrorMessage(r));
+       __pSetAllAsPopup->SetPropagatedKeyEventListener(this);
+
+       __pSetAllAsPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_OPT_SET_ALL_AS_ABB"));
+
+       __pSetAllAsListViewItemProvider = new (std::nothrow) SetAllAsListViewItemProvider();
+       __pSetAllAsListViewItemProvider->SetEventListener(this);
+
+       __pSetAllAsPopupCancelButton = new (std::nothrow) Button();
+       TryCatch(__pSetAllAsPopupCancelButton != null, r = E_FAILURE,"Failed to create set all as popup cancel button");
+
+       r = __pSetAllAsPopupCancelButton->Construct(Rectangle(0, 0, W_POPUP_CLOSE_BUTTON, H_POPUP_CLOSE_BUTTON), Utils::GetResourceString(L"IDS_EMAIL_SK3_CANCEL"));
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] Failed to construct set all as popup cancel button", GetErrorMessage(r));
+
+       __pSetAllAsPopupCancelButton->SetActionId(IDA_INBOX_FORM_BTN_SET_ALL_AS_POPUP_CANCEL);
+       __pSetAllAsPopupCancelButton->AddActionEventListener(*this);
+       __pSetAllAsPopup->AddControl(__pSetAllAsPopupCancelButton);
+
+       __pSetAllAsListView = new (std::nothrow) ListView();
+       TryCatch(__pSetAllAsListView != null, r = GetLastResult(), "Failed to create ListView Control For Set all as Popup");
+
+       r = __pSetAllAsListView->Construct(Rectangle(0, 0, W_VIEW_AS_POPUP, H_MARK_ALL_AS_POPUP), true, SCROLL_STYLE_FADE_OUT);
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "[%s] Failed to construct Set all as ListView", GetErrorMessage(r));
+
+       __pSetAllAsListView->AddListViewItemEventListener(*__pSetAllAsListViewItemProvider);
+       __pSetAllAsListView->SetItemProvider(*__pSetAllAsListViewItemProvider);
+       __pSetAllAsPopup->AddControl(__pSetAllAsListView);
+
+       CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+MailListForm::UnCheckAllListviewItems(void)
+{
+       AppLogDebug("ENTER");
+
+       int itemCount;
+       int groupCount = __pMailGroupedListView->GetGroupCount();
+
+       for (int i=0; i<groupCount; i++)
+       {
+               itemCount = __pMailGroupedListView->GetItemCountAt(i);
+
+               for (int j=0; j<itemCount; j++)
+               {
+                       if (__pMailGroupedListView->IsItemChecked(i, j) == true)
+                       {
+                               __pMailGroupedListView->SetItemChecked(i, j, false);
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::CheckSelectedListviewItems(void)
+{
+       AppLogDebug("ENTER");
+       int mailId;
+       int itemCount;
+       int groupCount = __pMailGroupedListView->GetGroupCount();
+       EmailMessageListItem* pMail = null;
+       HashMap* pSelectedMailsMap = new (std::nothrow) HashMap();
+       pSelectedMailsMap->Construct();
+
+       for (int i = 0; i < __pPresentationModel->GetNumberOfSelectedItems(); i++)
+       {
+               pMail = __pPresentationModel->GetSelectedMailAtIndex(i);
+               mailId = pMail->GetMailId();
+               pSelectedMailsMap->Add(new (std::nothrow) Integer(mailId), new (std::nothrow) Integer(mailId));
+       }
+
+       __pPresentationModel->ClearSelectedMailList();
+
+       for (int groupIndex = 0; groupIndex < groupCount; groupIndex++)
+       {
+               itemCount = __pMailGroupedListView->GetItemCountAt(groupIndex);
+
+               for (int itemIndex = 0; itemIndex < itemCount; itemIndex++)
+               {
+                       pMail = __pPresentationModel->GetMailData(groupIndex, itemIndex);
+                       mailId = pMail->GetMailId();
+
+                       AppLogDebug("Got mailId:(%d)", mailId);
+                       if (pSelectedMailsMap->ContainsKey(Integer(mailId)))
+                       {
+                               AppLogDebug("Setting groupIndex:(%d), itemIndex:(%d) to checked state", groupIndex, itemIndex);
+                               __pMailGroupedListView->SetItemChecked(groupIndex, itemIndex, true);
+                               __pPresentationModel->AddSelectedMail(groupIndex, itemIndex);
+                       }
+               }
+       }
+
+       pSelectedMailsMap->RemoveAll(true);
+       delete pSelectedMailsMap;
+       Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::OnFormBackRequested(Form& source)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       if (__pAccountsListPanel->GetShowState() == false)
+       {
+               if (__mode == NORMAL_MODE)
+               {
+                       if (__accountId != -1)
+                       {
+                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                               {
+                                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                               }
+                               else
+                               {
+                                       __pPresentationModel->FetchData(__accountId);
+                               }
+                       }
+                       else
+                       {
+                               __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                       }
+
+                       __pPresentationModel->SortBy(SORT_BY_DATE);
+                       r = Scenes::SceneManager::GetInstance()->GoBackward(BackwardSceneTransition());
+
+                       if (r == E_UNDERFLOW)
+                       {
+                               App::GetInstance()->Terminate();
+                       }
+               }
+               else if (__mode == EDIT_MODE)
+               {
+                       UnCheckAllListviewItems();
+                       GoToNormalMode(false);
+                       __pPresentationModel->ClearSelectedMailList();
+               }
+       }
+       else
+       {
+               Header* pHeader = GetHeader();
+
+               if (__mode != EDIT_MODE)
+               {
+                       pHeader->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+               }
+
+               pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, true);
+               GetFooter()->SetEnabled(true);
+
+               __pMailGroupedListView->SetEnabled(true);
+               __pAccountsListPanel->SetShowState(false);
+
+               GetFooter()->Invalidate(true);
+               pHeader->Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::OnFormMenuRequested(Form& source)
+{
+       AppLogDebug("ENTER");
+
+       if (__pAccountsListPanel->GetShowState() == false)
+       {
+               __pPresentationModel->SetSelectionModes();
+
+               if (__pMoreOptionMenu == null)
+               {
+                       InitMoreOptionMenu();
+               }
+
+               PopulateMoreOptionMenu(__mode, __pPresentationModel->GetSelectionMode(), __pPresentationModel->GetFavouriteSelectionMode());
+               __pMoreOptionMenu->SetShowState(true);
+               __pMoreOptionMenu->Show();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::GoToEditMode(void)
+{
+       FooterItem deleteItem;
+       FooterItem moveItem;
+       __mode = EDIT_MODE;
+
+       GetFooter()->RemoveAllItems();
+       deleteItem.Construct(IDA_INBOX_FORM_FOOTER_DELETE_BUTTON);
+       deleteItem.SetText(Utils::GetResourceString(L"IDS_EMAIL_HEADER_DELETE"));
+       GetFooter()->InsertItemAt(0, deleteItem);
+
+       if (__mailboxType != EMAIL_MAILBOX_TYPE_DRAFT && __mailboxType != EMAIL_MAILBOX_TYPE_OUTBOX)
+       {
+               moveItem.Construct(IDA_INBOX_FORM_FOOTER_MOVE_BUTTON);
+               moveItem.SetText(Utils::GetResourceString(L"IDS_EMAIL_SK_MOVE"));
+               GetFooter()->InsertItemAt(1, moveItem);
+       }
+
+       GetHeader()->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
+       ControlAnimator* pAnimator = __pSelectedLabel->GetControlAnimator();
+       pAnimator->StopAllAnimations();
+       result r = pAnimator->StartUserAnimation(ANIMATION_TARGET_ALPHA, IntegerAnimation(0, 1, 250, ANIMATION_INTERPOLATOR_LINEAR));
+       AppLogDebug("EmailApp: Error message in StartUserAnimation %s", GetErrorMessage(r));
+
+       __pMailGroupedListView->SetSize(__pMailGroupedListView->GetWidth(), this->GetClientAreaBounds().height -__pSelectedLabel->GetHeight());
+
+       Invalidate(true);
+}
+
+void
+MailListForm::GoToNormalMode(bool animationFlag)
+{
+       AppLogDebug("ENTER, flag:(%d)", animationFlag);
+
+       FooterItem composeItem;
+       FooterItem folderItem;
+
+       __mode = NORMAL_MODE;
+
+       GetFooter()->RemoveAllItems();
+       composeItem.Construct(IDA_INBOX_FORM_FOOTER_COMPOSE_BUTTON);
+       composeItem.SetText(Utils::GetResourceString(L"IDS_EMAIL_SK_COMPOSE"));
+
+       folderItem.Construct(IDA_INBOX_FORM_FOOTER_FOLDER_BUTTON);
+       folderItem.SetText(Utils::GetResourceString(L"IDS_EMAIL_HEADER_FOLDERS"));
+
+       GetFooter()->InsertItemAt(0, composeItem);
+       GetFooter()->InsertItemAt(1, folderItem);
+
+       if (__pAccountsListPanel->GetShowState() == false)
+       {
+               GetHeader()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+       }
+
+       if (animationFlag)
+       {
+               ControlAnimator* pAnimator = __pSelectedLabel->GetControlAnimator();
+               pAnimator->StopAllAnimations();
+               result r = pAnimator->StartUserAnimation(ANIMATION_TARGET_ALPHA, IntegerAnimation(1, 0, 250, ANIMATION_INTERPOLATOR_LINEAR));
+               AppLogDebug("Result of StartUserAnimation %s", GetErrorMessage(r));
+       }
+       else
+       {
+               __pSelectedLabel->SetShowState(false);
+       }
+
+       __pMailGroupedListView->SetSize(__pMailGroupedListView->GetWidth(), this->GetClientAreaBounds().height);
+
+       Invalidate(true);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::OnGroupedListViewItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListItemStatus status)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemIndex:(%d), elementId:(%d), status:(%d)", groupIndex, itemIndex, elementId, status);
+
+       EmailMessageListItem* pMail = null;
+       ArrayList* pArgs = null;
+       AppLogDebug("Item status:(%d), elementId:(%d)", status, elementId);
+
+       if (elementId == IDA_BASE_LISTVIEW_ITEM_PROVIDER_EMPTY_ELEMENT ||
+                       elementId == IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT ||
+                       elementId == IDA_BASE_LISTVIEW_ITEM_PROVIDER_RECIPIENT_ELEMENT ||
+                       elementId == IDA_BASE_LISTVIEW_ITEM_PROVIDER_MESSAGE_ELEMENT ||
+                       elementId == IDA_BASE_LISTVIEW_ITEM_PROVIDER_DATE_ELEMENT ||
+                       elementId == IDA_BASE_LISTVIEW_ITEM_PROVIDER_ATTACH_ELEMENT)
+       {
+               pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+               pMail = __pPresentationModel->GetMailData(groupIndex, itemIndex);
+
+               if (__mailboxType != EMAIL_MAILBOX_TYPE_DRAFT)
+               {
+                       if (!pMail->isFlagsSeenField())
+                       {
+                               __pPresentationModel->SetFlag(groupIndex, itemIndex, EMAIL_FLAGS_SEEN_FIELD, true, true);
+                       }
+
+                       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+                       pStateInfo->accountId = __accountId;
+                       pStateInfo->mailboxId = __mailboxId;
+                       pStateInfo->pPresentationModel = __pPresentationModel;
+                       pStateInfo->mailboxType = __mailboxType;
+                       pStateInfo->mailId = pMail->GetMailId();
+                       pArgs->Add(pStateInfo);
+
+                       Scenes::SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_DETAIL, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+               }
+               else
+               {
+                       EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(pMail->GetMailId());
+
+                       if (pDetailedMail != null && pDetailedMail->GetHasAttachment() == true && IsAttachmentDownload(pDetailedMail) == false)
+                       {
+                               __futureAction = EmailTypesNS::COMPOSE_AFTER_DOWNLOAD;
+                               __groupIndex = groupIndex;
+                               __itemIndex = itemIndex;
+                               DownloadAllAttachments(pDetailedMail, EMAIL_DRAFT_DOWNLOAD);
+                       }
+                       else if (pDetailedMail != null)
+                       {
+                               String mailBody;
+                               String tmpText;
+                               String fileName;
+                               String emailId;
+
+                               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                               pStateInfo->accountId = __accountId;
+                               pStateInfo->mailboxId = __mailboxId;
+                               pStateInfo->pPresentationModel = __pPresentationModel;
+                               pStateInfo->mailboxType = __mailboxType;
+
+                               //                      pArgs->Add(new (std::nothrow) Integer(__accountId));
+                               //                      pArgs->Add(new (std::nothrow) Integer(__mailboxId));
+                               //                      pArgs->Add(__pPresentationModel);
+                               //                      pArgs->Add(new (std::nothrow) Integer(__mailboxType));
+
+                               Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressTo(), emailId);
+                               //                      pArgs->Add(new (std::nothrow) String(emailId)); // to field
+                               pStateInfo->toFieldValue = emailId;
+
+                               Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressCc(), emailId);
+                               //                      pArgs->Add(new (std::nothrow) String(emailId)); // cc field
+                               pStateInfo->ccFieldValue = emailId;
+
+                               Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressBcc(), emailId);
+                               //                      pArgs->Add(new (std::nothrow) String(emailId)); // bcc field
+                               pStateInfo->bccFieldValue = emailId;
+
+                               //                      pArgs->Add(new (std::nothrow) String(pDetailedMail->GetSubject())); // subject field
+                               pStateInfo->subjectFieldValue = pDetailedMail->GetSubject();
+
+                               fileName.Append(pDetailedMail->GetFilePathPlain());
+
+                               if (fileName.IsEmpty() == false)
+                               {
+                                       File file;
+                                       result r = file.Construct(fileName, L"r");
+
+                                       if (r == E_SUCCESS)
+                                       {
+                                               while (file.Read(tmpText) == E_SUCCESS)
+                                               {
+                                                       mailBody.Append(tmpText);
+                                               }
+                                       }
+                               }
+
+                               //                      pArgs->Add(new (std::nothrow) String(mailBody));
+                               pStateInfo->bodyFieldValue = mailBody;
+
+                               tmpText.Clear();
+                               if (pDetailedMail->GetHasAttachment() == true)
+                               {
+                                       String destFilePath;
+                                       EmailAttachment* pTmpAttachment = null;
+                                       ArrayList* pAttachmentList = __pPresentationModel->GetAllAttachmentListN(pMail->GetMailId());
+
+                                       for (int i=0; i<pAttachmentList->GetCount(); i++)
+                                       {
+                                               pTmpAttachment = static_cast<EmailAttachment*>(pAttachmentList->GetAt(i));
+
+                                               destFilePath.Clear();
+                                               destFilePath.Append(App::GetInstance()->GetAppSharedPath()+L"data/");
+                                               destFilePath.Append(pTmpAttachment->GetAttachmentName());
+
+                                               if (File::Copy(pTmpAttachment->GetAttachmentPath(), destFilePath, false) == E_SUCCESS)
+                                               {
+                                                       EmailMailboxManager::GetInstance()->DeleteAttachment(pTmpAttachment->GetAttachmentId());
+                                                       tmpText.Append(destFilePath);
+                                                       tmpText.Append(IDS_DELIM_SEMICOLON);
+                                               }
+                                       }
+                               }
+                               //                      pArgs->Add(new (std::nothrow) String(tmpText));
+                               pStateInfo->attachmentsPath = tmpText;
+
+                               if (__pPresentationModel->IsMailSelected(pMail))
+                               {
+                                       __pPresentationModel->RemoveMailFromSelectedMailList(pMail);
+                                       //                              pArgs->Add(new (std::nothrow) Boolean(true));
+                                       pStateInfo->isMailSelected = true;
+                               }
+
+                               pArgs->Add(pStateInfo);
+
+                               EmailMailboxManager::GetInstance()->DeleteMailMessage(pMail->GetMailboxId(), pMail->GetMailId(), false);
+
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+                       }
+               }
+
+               __pMailGroupedListView->SetItemChecked(groupIndex, itemIndex, false);
+       }
+       else if (elementId == IDA_INBOX_FORM_FORMAT_IMPORTANT)
+       {
+               pMail = __pPresentationModel->GetMailData(groupIndex, itemIndex);
+
+               if (pMail != null && pMail->isFlagsFlaggedField())
+               {
+                       __pPresentationModel->SetFlag(pMail, EMAIL_FLAGS_FLAGGED_FIELD, false, true);
+               }
+               else
+               {
+                       __pPresentationModel->SetFlag(pMail, EMAIL_FLAGS_FLAGGED_FIELD, true, true);
+               }
+
+               if (pMail != null && __pPresentationModel->IsMailSelected(pMail) == true)
+               {
+                       __pMailGroupedListView->SetItemChecked(groupIndex, itemIndex, true);
+               }
+               else
+               {
+                       __pMailGroupedListView->SetItemChecked(groupIndex, itemIndex, false);
+               }
+
+               __pMailGroupedListView->RefreshList(groupIndex, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+               if (__pPresentationModel->GetSortType() == SORT_BY_IMPORTANT)
+               {
+                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                       {
+                               UnCheckAllListviewItems();
+                       }
+
+                       __pPresentationModel->SortBy(SORT_BY_IMPORTANT);
+                       __pMailGroupedListView->UpdateList();
+
+                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                       {
+                               CheckSelectedListviewItems();
+                       }
+               }
+       }
+       else if (status == LIST_ITEM_STATUS_CHECKED)
+       {
+               String text;
+
+               if (__pPresentationModel->GetNumberOfSelectedItems() == 0)
+               {
+                       int tmpItemIndex, tmpGroupIndex;
+
+                       GoToEditMode();
+
+                       // If the last item in the list was clicked, scroll it up a little bit so its not hidden by the toast.
+                       __pMailGroupedListView->GetBottomDrawnItemIndex(tmpGroupIndex, tmpItemIndex);
+
+                       if (itemIndex == tmpItemIndex && groupIndex == tmpGroupIndex)
+                       {
+                               __pMailGroupedListView->ScrollToItem(groupIndex, itemIndex, LIST_SCROLL_ITEM_ALIGNMENT_BOTTOM);
+                       }
+               }
+
+               __pPresentationModel->AddSelectedMail(groupIndex, itemIndex);
+
+               if (__pPresentationModel->GetNumberOfSelectedItems() != 0)
+               {
+                       text.Append(Utils::GetResourceString(L"IDS_COM_OPT_SELECTED"));
+                       text.Append(L"\x200E");
+                       text.Append(L" (");
+                       text.Append(__pPresentationModel->GetNumberOfSelectedItems());
+                       text.Append(L")");
+                       text.Append(L"\x200E");
+                       __pSelectedLabel->SetText(text);
+                       __pSelectedLabel->Invalidate(true);
+               }
+       }
+       else if (status == LIST_ITEM_STATUS_UNCHECKED)
+       {
+               String text;
+
+               if (__pPresentationModel->GetNumberOfSelectedItems() == 1)
+               {
+                       GoToNormalMode(true);
+               }
+
+               __pPresentationModel->RemoveSelectedMail(groupIndex, itemIndex);
+
+               if (__pPresentationModel->GetNumberOfSelectedItems() != 0)
+               {
+                       text.Append(Utils::GetResourceString(L"IDS_COM_OPT_SELECTED"));
+                       text.Append(L"\x200E");
+                       text.Append(L" (");
+                       text.Append(__pPresentationModel->GetNumberOfSelectedItems());
+                       text.Append(L")");
+                       text.Append(L"\x200E");
+                       __pSelectedLabel->SetText(text);
+                       __pSelectedLabel->Invalidate(true);
+               }
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return;
+}
+
+void
+MailListForm::OnGroupedListViewItemSwept(GroupedListView& listView, int groupIndex, int itemIndex, SweepDirection direction)
+{
+       // Empty implementation
+}
+
+void
+MailListForm::OnGroupedListViewContextItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListContextItemStatus status)
+{
+       AppLogDebug("ENTER, groupIndex:(%d), itemIndex:(%d), elementId:(%d), status:(%d)", groupIndex, itemIndex, elementId, status);
+
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+
+       if (elementId == IDA_INBOX_FORM_REPLY_BUTTON)
+       {
+               if (pArgs != null && E_SUCCESS == pArgs->Construct())
+               {
+                       String emailId;
+                       String body = L"";
+                       EmailMessageListItem* pMail = __pPresentationModel->GetMailData(groupIndex, itemIndex);
+                       EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(pMail->GetMailId());
+                       EmailAccount* pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__accountId);
+                       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                       pStateInfo->accountId = __accountId;
+                       pStateInfo->mailboxId = __mailboxId;
+                       pStateInfo->pPresentationModel = __pPresentationModel;
+                       pStateInfo->mailboxType = __mailboxType;
+                       pStateInfo->ccFieldValue = L"";
+                       pStateInfo->bccFieldValue = L"";
+
+                       if (pDetailedMail != null)
+                       {
+                               String subject = L"Re: ";
+                               subject.Append(pDetailedMail->GetSubject());
+                               pStateInfo->subjectFieldValue = subject;
+
+                               if (__mailboxType == EMAIL_MAILBOX_TYPE_OUTBOX || __mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX)
+                               {
+                                       String emailIds;
+                                       Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressTo(), emailIds);
+                                       pStateInfo->toFieldValue = emailIds;
+
+                                       Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressCc(), emailIds);
+                                       pStateInfo->ccFieldValue = emailIds;
+                               }
+                               else
+                               {
+                                       pStateInfo->toFieldValue = pDetailedMail->GetEmailAddressSender();
+                               }
+
+                               if (pAccount->GetOptions()->GetReplyWithBody() == true)
+                               {
+                                       body.Append(L"\n\n----Original Message----\n");
+                                       body.Append(L"From: ");
+                                       body.Append(pDetailedMail->GetFullAddressFrom());
+                                       body.Append(L"\nSent: ");
+                                       body.Append(pDetailedMail->GetLocalDateTime().ToString());
+                                       body.Append(L"\nTo: ");
+                                       Utils::ExtractEmailIdFromFullAddress(pDetailedMail->GetFullAddressTo(), emailId);
+                                       body.Append(emailId);
+                                       body.Append(L"\nSubject: ");
+                                       body.Append(pDetailedMail->GetSubject());
+
+                                       String mailBody;
+                                       File file;
+                                       result r = file.Construct(pDetailedMail->GetFilePathPlain(), L"r");
+
+                                       if (r == E_SUCCESS)
+                                       {
+                                               while (file.Read(mailBody) == E_SUCCESS)
+                                               {
+                                                       body.Append(mailBody);
+                                               }
+                                       }
+                               }
+                       }
+
+                       pStateInfo->bodyFieldValue = body;
+                       pStateInfo->attachmentsPath = L"";
+
+                       pArgs->Add(pStateInfo);
+
+                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER), pArgs);
+               }
+       }
+       else if (elementId == IDA_INBOX_FORM_MARK_AS_READ_BUTTON)
+       {
+               __pPresentationModel->SetFlag(groupIndex, itemIndex, EMAIL_FLAGS_SEEN_FIELD, true, true);
+               __pMailGroupedListView->RefreshList(groupIndex, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+               if (__viewByType == SORT_BY_UNREAD)
+               {
+                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                       {
+                               UnCheckAllListviewItems();
+                       }
+
+                       __pPresentationModel->SortBy(SORT_BY_UNREAD);
+                       __pMailGroupedListView->UpdateList();
+
+                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                       {
+                               CheckSelectedListviewItems();
+                       }
+               }
+       }
+       else if (elementId == IDA_INBOX_FORM_MARK_AS_UNREAD_BUTTON)
+       {
+               __pPresentationModel->SetFlag(groupIndex, itemIndex, EMAIL_FLAGS_SEEN_FIELD, false, true);
+               __pMailGroupedListView->RefreshList(groupIndex, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+               if (__viewByType == SORT_BY_UNREAD)
+               {
+                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                       {
+                               UnCheckAllListviewItems();
+                       }
+
+                       __pPresentationModel->SortBy(SORT_BY_UNREAD);
+                       __pMailGroupedListView->UpdateList();
+
+                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                       {
+                               CheckSelectedListviewItems();
+                       }
+               }
+       }
+       else if (elementId == IDA_INBOX_FORM_FORWARD_BUTTON)
+       {
+               EmailMessageListItem* pMail = __pPresentationModel->GetMailData(groupIndex, itemIndex);
+               EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(pMail->GetMailId());
+               EmailAccount* pAccount = EmailSettingsProvider::GetInstance()->GetAccountById(__accountId);
+
+               if (pDetailedMail != null && pDetailedMail->GetHasAttachment() == true && pAccount->GetOptions()->GetForwardWithFiles() == true && IsAttachmentDownload(pDetailedMail) == false)
+               {
+                       __futureAction = EmailTypesNS::FORWARD_AFTER_DOWNLOAD;
+                       __groupIndex = groupIndex;
+                       __itemIndex = itemIndex;
+                       DownloadAllAttachments(pDetailedMail, EMAIL_SWIPE_FORWARD);
+               }
+               else
+               {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+
+                       if (pArgs != null && E_SUCCESS == pArgs->Construct())
+                       {
+                               String emailId;
+                               String tmpSubject;
+                               String fullAddressFrom;
+                               String localDateTime;
+                               String fullAddressTo;
+                               String filePathPlain;
+                               String attachmentStr = L"";
+                               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                               pStateInfo->accountId = __accountId;
+                               pStateInfo->mailboxId = __mailboxId;
+                               pStateInfo->pPresentationModel = __pPresentationModel;
+                               pStateInfo->mailboxType = __mailboxType;
+                               pStateInfo->toFieldValue = L"";
+                               pStateInfo->ccFieldValue = L"";
+                               pStateInfo->bccFieldValue = L"";
+
+//                             pArgs->Add(new (std::nothrow) Integer(__accountId));
+//                             pArgs->Add(new (std::nothrow) Integer(__mailboxId));
+//                             pArgs->Add(__pPresentationModel);
+//                             pArgs->Add(new (std::nothrow) Integer(__mailboxType));
+
+//                             pArgs->Add(new (std::nothrow) String(L"")); // to field
+//                             pArgs->Add(new (std::nothrow) String(L"")); // cc field
+//                             pArgs->Add(new (std::nothrow) String(L"")); // bcc field
+
+                               if (pDetailedMail != null)
+                               {
+                                       tmpSubject = pDetailedMail->GetSubject();
+                                       fullAddressFrom = pDetailedMail->GetFullAddressFrom();
+                                       localDateTime = pDetailedMail->GetLocalDateTime().ToString();
+                                       fullAddressTo = pDetailedMail->GetFullAddressTo();
+                                       filePathPlain = pDetailedMail->GetFilePathPlain();
+
+                                       if (pDetailedMail->GetHasAttachment() == true && pAccount->GetOptions()->GetForwardWithFiles() == true)
+                                       {
+                                               ArrayList* pAttachments = __pPresentationModel->GetAllAttachmentListN(pDetailedMail->GetMailId());
+
+                                               for (int i=0; i < pAttachments->GetCount(); i++)
+                                               {
+                                                       attachmentStr.Append(static_cast<EmailAttachment*>(pAttachments->GetAt(i))->GetAttachmentPath());
+                                                       attachmentStr.Append(';');
+                                               }
+                                       }
+
+                                       delete pDetailedMail;
+                               }
+
+                               String subject = L"Fwd: ";
+                               subject.Append(tmpSubject);
+//                             pArgs->Add(subject); // subject field
+                               pStateInfo->subjectFieldValue = subject;
+
+                               String body = L"\n\n----Original Message----\n";
+                               body.Append(L"From: ");
+                               body.Append(fullAddressFrom);
+                               body.Append(L"\nSent: ");
+                               body.Append(localDateTime);
+                               body.Append(L"\nTo: ");
+                               Utils::ExtractEmailIdFromFullAddress(fullAddressTo, emailId);
+                               body.Append(emailId);
+                               body.Append(L"\nSubject: ");
+                               body.Append(tmpSubject);
+                               body.Append(L"\n");
+
+                               if (filePathPlain.IsEmpty() == false)
+                               {
+                                       String mailBody;
+                                       File file;
+                                       result r = file.Construct(filePathPlain, L"r");
+
+                                       if (r == E_SUCCESS)
+                                       {
+                                               while (file.Read(mailBody) == E_SUCCESS)
+                                               {
+                                                       body.Append(mailBody);
+                                               }
+                                       }
+                               }
+
+//                             pArgs->Add(body); // body field
+//                             pArgs->Add(attachmentStr); // attachments field
+
+                               pStateInfo->bodyFieldValue = body;
+                               pStateInfo->attachmentsPath = attachmentStr;
+
+                               pArgs->Add(pStateInfo);
+                       }
+
+                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER), pArgs);
+               }
+       }
+       else if (elementId == IDA_INBOX_FORM_DELETE_BUTTON)
+       {
+               EmailMessageListItem* pMsg = __pPresentationModel->GetMailData(groupIndex, itemIndex);
+
+               if (pMsg != null)
+               {
+                       EmailApp::GetInstance()->SetShowDeletePopupStatus(EMAIL_SWIPE_DELETE, pMsg->GetMailId());
+
+                       SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_Q"));
+
+                       __pDeleteConfirmationPopup->SetShowState(true);
+                       __pDeleteConfirmationPopup->Show();
+               }
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return;
+}
+
+void
+MailListForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER, actionId:(%d)", actionId);
+       result r = E_SUCCESS;
+
+       if (actionId == IDA_INBOX_FORM_HEADER_SEARCH_BUTTON)
+       {
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+
+               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+               pStateInfo->accountId = __accountId;
+               pStateInfo->mailboxId = __mailboxId;
+               pStateInfo->pPresentationModel = __pPresentationModel;
+               pStateInfo->mailboxType = __mailboxType;
+
+               pArgs->Add(pStateInfo);
+
+               SearchPresentationModel* pSearchPresentationModel = SearchPresentationModel::GetInstance();
+
+               if (pSearchPresentationModel != null)
+               {
+                       BasePresentationModel* pBasePresentationModel = pSearchPresentationModel->GetPresentationModel();
+
+                       if (pBasePresentationModel != null)
+                       {
+                               pBasePresentationModel->FetchData(__accountId, true);
+                               pSearchPresentationModel->Initialize(pBasePresentationModel);
+                               pSearchPresentationModel->PerformSearch(L"");
+                       }
+               }
+
+               result r = SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_SEARCH, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+               AppLogDebug("Result of go forward:(%s)", GetErrorMessage(r));
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_INBOX)
+       {
+               __mailboxViewType = INBOX_VIEW;
+               __mailboxId = __pPresentationModel->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_INBOX);
+               __mailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+
+               if (__accountId > 0)
+               {
+                       __mailboxId = __pPresentationModel->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_INBOX);
+                       __pPresentationModel = InboxPresentationModel::GetInstance();
+                       __pPresentationModel->FetchData(__accountId);
+                       __pPresentationModel->SortBy(__viewByType);
+                       __pBaseListViewItemProvider->SetPresentationModel(__pPresentationModel);
+               }
+               else if (__accountId == -1)
+               {
+                       __mailboxId = -1;
+                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                       __pPresentationModel->SortBy(__viewByType);
+               }
+
+               PopulateHeader();
+               __pMailGroupedListView->UpdateList();
+               UnCheckAllListviewItems();
+       }
+//     else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_FAVORITES)
+//     {
+//             __mailboxViewType = FAVORITES_VIEW;
+//
+//             __mailboxId = -1;
+//             __mailboxType = EMAIL_MAILBOX_TYPE_FLAGGED;
+//             __pPresentationModel = AllMailsPresentationModel::GetInstance();
+//             __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+//             __pPresentationModel->SortBy(__viewByType);
+//             __pMailGroupedListView->UpdateList();
+//             UnCheckAllListviewItems();
+//             PopulateHeader();
+//     }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_DRAFTS)
+       {
+               __mailboxViewType = DRAFTS_VIEW;
+
+               __mailboxId = __pPresentationModel->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_DRAFT);
+               __mailboxType = EMAIL_MAILBOX_TYPE_DRAFT;
+
+               if (__accountId > 0)
+               {
+                       __mailboxId = __pPresentationModel->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_DRAFT);
+                       __pPresentationModel = DraftListPresentationModel::GetInstance();
+                       __pPresentationModel->FetchData(__accountId);
+                       __pPresentationModel->SortBy(__viewByType);
+                       __pBaseListViewItemProvider->SetPresentationModel(__pPresentationModel);
+               }
+               else if (__accountId == -1)
+               {
+                       __mailboxId = -1;
+                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                       __pPresentationModel->SortBy(__viewByType);
+               }
+
+               PopulateHeader();
+               __pMailGroupedListView->UpdateList();
+               UnCheckAllListviewItems();
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_SENTBOX)
+       {
+               __mailboxViewType = SENTBOX_VIEW;
+
+               __mailboxId = __pPresentationModel->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_SENTBOX);
+               __mailboxType = EMAIL_MAILBOX_TYPE_SENTBOX;
+
+               if (__accountId > 0)
+               {
+                       __mailboxId = __pPresentationModel->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_SENTBOX);
+                       __pPresentationModel = SentboxPresentationModel::GetInstance();
+                       __pPresentationModel->FetchData(__accountId);
+                       __pPresentationModel->SortBy(__viewByType);
+                       __pBaseListViewItemProvider->SetPresentationModel(__pPresentationModel);
+               }
+               else if (__accountId == -1)
+               {
+                       __mailboxId = -1;
+                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                       __pPresentationModel->SortBy(__viewByType);
+               }
+
+               PopulateHeader();
+               __pMailGroupedListView->UpdateList();
+               UnCheckAllListviewItems();
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_ALL_FOLDERS)
+       {
+               __mailboxViewType = ALL_FOLDERS_VIEW;
+
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+
+               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+               pStateInfo->accountId = __accountId;
+               pStateInfo->mailboxId = __mailboxId;
+               pStateInfo->pPresentationModel = __pPresentationModel;
+               pStateInfo->mailboxType = __mailboxType;
+
+               pArgs->Add(pStateInfo);
+
+               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_FOLDERS_VIEW, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+       }
+       else if (actionId == IDA_INBOX_FORM_HEADER_UPDATE_BUTTON)
+       {
+               EmailMailboxManager* pMgr = EmailMailboxManager::GetInstance();
+
+               pMgr->SyncHeader(__accountId, __mailboxId);
+       }
+       else if (actionId == IDA_INBOX_FORM_FOOTER_COMPOSE_BUTTON)
+       {
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+
+               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+               pStateInfo->accountId = __accountId;
+               pStateInfo->mailboxId = __mailboxId;
+               pStateInfo->pPresentationModel = __pPresentationModel;
+               pStateInfo->mailboxType = __mailboxType;
+               pStateInfo->toFieldValue = L"";
+               pStateInfo->ccFieldValue = L"";
+               pStateInfo->bccFieldValue = L"";
+               pStateInfo->subjectFieldValue = L"";
+               pStateInfo->bodyFieldValue = L"";
+               pStateInfo->attachmentsPath = L"";
+
+               pArgs->Add(pStateInfo);
+
+               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+       }
+       else if (actionId == IDA_INBOX_FORM_FOOTER_FOLDER_BUTTON)
+       {
+               PopulateFolderContextMenu();
+
+               __pFolderContextMenu->SetFocusable(true);
+               __pFolderContextMenu->SetShowState(true);
+               __pFolderContextMenu->Show();
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_SORT_BY)
+       {
+               InitSortByPopup(POPUP_LISTVIEW_ITEM_COUNT);
+
+               __pSortByPopup->SetShowState(true);
+               __pSortByPopup->Show();
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_DELETE_ALL)
+       {
+               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_EMAIL_POP_DELETE_ALL_Q"));
+
+               __pDeleteConfirmationPopup->SetShowState(true);
+               __pDeleteConfirmationPopup->Show();
+
+               EmailApp::GetInstance()->SetShowDeletePopupStatus(EMAIL_DELETE_ALL, -1);
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_ADD_ACCOUNT)
+       {
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+
+               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+               pStateInfo->accountId = __accountId;
+               pStateInfo->mailboxId = __mailboxId;
+               pStateInfo->pPresentationModel = __pPresentationModel;
+               pStateInfo->mailboxType = __mailboxType;
+
+               pArgs->Add(pStateInfo);
+
+               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_ADD_ACCOUNT, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_SETTINGS)
+       {
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+
+               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+               pStateInfo->accountId = __accountId;
+               pStateInfo->mailboxId = __mailboxId;
+               pStateInfo->pPresentationModel = __pPresentationModel;
+               pStateInfo->mailboxType = __mailboxType;
+
+               pArgs->Add(pStateInfo);
+
+               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_SETTING, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_MARK_UNREAD)
+       {
+               __pPresentationModel->SetFlag(EMAIL_FLAGS_SEEN_FIELD, false, true);
+               UnCheckAllListviewItems();
+               GoToNormalMode(true);
+               __pPresentationModel->ClearSelectedMailList();
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_MARK_READ)
+       {
+               __pPresentationModel->SetFlag(EMAIL_FLAGS_SEEN_FIELD, true, true);
+               UnCheckAllListviewItems();
+               GoToNormalMode(true);
+               __pPresentationModel->ClearSelectedMailList();
+
+               if (__viewByType == SORT_BY_UNREAD)
+               {
+                       __pPresentationModel->SortBy(SORT_BY_UNREAD);
+                       __pMailGroupedListView->UpdateList();
+               }
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_MARK_ALL_AS)
+       {
+               InitMarkAllAsPopup();
+               __pMarkAllAsPopup->SetShowState(true);
+               __pMarkAllAsPopup->Show();
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_SET_UNFAVOURITES)
+       {
+               __pPresentationModel->SetFlag(EMAIL_FLAGS_FLAGGED_FIELD, false, true);
+               UnCheckAllListviewItems();
+               GoToNormalMode(true);
+               __pPresentationModel->ClearSelectedMailList();
+
+               if (__viewByType == SORT_BY_IMPORTANT)
+               {
+                       __pPresentationModel->SortBy(SORT_BY_IMPORTANT);
+                       __pMailGroupedListView->UpdateList();
+               }
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_SET_FAVOURITES)
+       {
+               __pPresentationModel->SetFlag(EMAIL_FLAGS_FLAGGED_FIELD, true, true);
+               UnCheckAllListviewItems();
+               GoToNormalMode(true);
+               __pPresentationModel->ClearSelectedMailList();
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_SET_ALL_AS)
+       {
+               InitSetAllAsPopup();
+               __pSetAllAsPopup->SetShowState(true);
+               __pSetAllAsPopup->Show();
+       }
+       else if (actionId == IDA_INBOX_FORM_BTN_POPUP_CANCEL)
+       {
+               __pSortByPopup->SetShowState(false);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_INBOX_FORM_FOOTER_MOVE_BUTTON)
+       {
+               ArrayList* pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+
+               if (__mailboxId != -1)
+               {
+                       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                       pStateInfo->accountId = __accountId;
+                       pStateInfo->mailboxId = __mailboxId;
+                       pStateInfo->pPresentationModel = __pPresentationModel;
+                       pStateInfo->mailboxType = __mailboxType;
+
+                       pArgs->Add(pStateInfo);
+
+                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_MOVEMAIL, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+               }
+               else
+               {
+                       int isMultipleAccountsItemsSelected = __pPresentationModel->IsMultipleAccountsSelected();
+
+                       if (isMultipleAccountsItemsSelected > 0)
+                       {
+                               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                               pStateInfo->accountId = isMultipleAccountsItemsSelected;;
+                               pStateInfo->mailboxId = __mailboxId;
+                               pStateInfo->pPresentationModel = __pPresentationModel;
+                               pStateInfo->mailboxType = __mailboxType;
+
+                               pArgs->Add(pStateInfo);
+
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_MOVEMAIL, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+                       }
+                       else
+                       {
+                               int modRes;
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), L"Unable to move emails from multiple accounts at once!", MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                               __pPresentationModel->ClearSelectedMailList();
+                               UnCheckAllListviewItems();
+                               GoToNormalMode(true);
+                       }
+               }
+       }
+       else if (actionId == IDA_INBOX_FORM_BTN_MARK_ALL_AS_POPUP_CLOSE)
+       {
+               __pMarkAllAsPopup->SetShowState(false);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_INBOX_FORM_BTN_SET_ALL_AS_POPUP_CANCEL)
+       {
+               __pSetAllAsPopup->SetShowState(false);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_INBOX_FORM_FOOTER_DELETE_BUTTON)
+       {
+               EmailApp::GetInstance()->SetShowDeletePopupStatus(EMAIL_SELECTED_DELETE, -1);
+
+               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_Q"));
+               __pDeleteConfirmationPopup->SetShowState(true);
+               __pDeleteConfirmationPopup->Show();
+       }
+       else if (actionId == IDA_INBOX_FORM_CONTEXT_MENU_BLOCK)
+       {
+               __pPresentationModel->BlockEmails();
+
+               if (__accountId == -1)
+               {
+                       r = __pPresentationModel->MoveMail(EMAIL_MAILBOX_TYPE_SPAMBOX);
+               }
+               else
+               {
+                       int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_SPAMBOX);
+                       r = __pPresentationModel->MoveMail(mailboxId);
+               }
+
+               if (r == E_SUCCESS)
+               {
+                       ShowPopUp(Utils::GetResourceString(L"IDS_BLOCKING"));
+                       __waitForMove = true;
+               }
+               else
+               {
+                       EmailApp::GetInstance()->SetMoveOrDeleteFailedPopupStatus(true);
+                       SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_MOVING_FAILED"));
+                       __pMoveOrDeleteFailedPopup->SetShowState(true);
+                       __pMoveOrDeleteFailedPopup->Show();
+                       UnCheckAllListviewItems();
+                       GoToNormalMode(true);
+                       Invalidate(true);
+               }
+       }
+       else if (actionId == IDA_INBOX_FORM_DELETE_CONFIRMATION_NO)
+       {
+               EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+               __pDeleteConfirmationPopup->SetShowState(false);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_INBOX_FORM_DELETE_CONFIRMATION_YES)
+       {
+               __pDeleteConfirmationPopup->SetShowState(false);
+               Invalidate(true);
+
+               int mailId;
+               DeletionMode mode;
+               if (EmailApp::GetInstance()->GetShowDeletePopupStatus(mailId, mode) == true)
+               {
+                       if (mode == EMAIL_SWIPE_DELETE)
+                       {
+                               int groupIndex, itemIndex;
+                               __pPresentationModel->GetMailIndex(mailId, groupIndex, itemIndex);
+
+                               EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+                               if (groupIndex != -1 && itemIndex != -1 && groupIndex <= __pPresentationModel->GetGroupCount()-1 && itemIndex <= __pPresentationModel->GetItemCount(groupIndex)-1)
+                               {
+                                       if (__accountId == -1)
+                                       {
+                                               if (__mailboxType == EMAIL_MAILBOX_TYPE_TRASH)
+                                               {
+                                                       __pPresentationModel->DeleteMail(groupIndex, itemIndex, false);
+                                               }
+                                               else
+                                               {
+                                                       r = __pPresentationModel->MoveMail(groupIndex, itemIndex, EMAIL_MAILBOX_TYPE_TRASH);
+                                               }
+                                       }
+                                       else
+                                       {
+                                               email_mailbox_type_e mailboxType = __pPresentationModel->GetMailboxType(__mailboxId);
+
+                                               if (mailboxType == EMAIL_MAILBOX_TYPE_TRASH)
+                                               {
+                                                       __pPresentationModel->DeleteMail(groupIndex, itemIndex, false);
+                                               }
+                                               else
+                                               {
+                                                       int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_TRASH);
+                                                       r = __pPresentationModel->MoveMail(groupIndex, itemIndex, mailboxId);
+                                               }
+                                       }
+
+
+                                       if (r == E_SUCCESS)
+                                       {
+                                               ShowPopUp(Utils::GetResourceString(L"IDS_EMAIL_POP_DELETING_ING"));
+                                               __waitForDelete = true;
+                                       }
+                                       else
+                                       {
+                                               EmailApp::GetInstance()->SetMoveOrDeleteFailedPopupStatus(false);
+                                               SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_FAILED"));
+                                               __pMoveOrDeleteFailedPopup->SetShowState(true);
+                                               __pMoveOrDeleteFailedPopup->Show();
+                                               Invalidate(true);
+                                       }
+                               }
+                       }
+                       else if (mode == EMAIL_DELETE_ALL)
+                       {
+                               int itemCount;
+                               int groupCount = __pMailGroupedListView->GetGroupCount();
+
+                               EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+                               __pDeleteConfirmationPopup->SetShowState(false);
+                               Invalidate(true);
+
+                               for (int groupIndex = 0; groupIndex < groupCount; groupIndex++)
+                               {
+                                       itemCount = __pMailGroupedListView->GetItemCountAt(groupIndex);
+
+                                       for (int itemIndex = 0; itemIndex < itemCount; itemIndex++)
+                                       {
+                                               __pPresentationModel->AddSelectedMail(groupIndex, itemIndex);
+                                       }
+                               }
+
+                               if (__accountId == -1)
+                               {
+                                       if (__mailboxType == EMAIL_MAILBOX_TYPE_TRASH)
+                                       {
+                                               __pPresentationModel->DeleteMail(false, true);
+                                       }
+                                       else
+                                       {
+                                               r = __pPresentationModel->MoveMail(EMAIL_MAILBOX_TYPE_TRASH);
+                                       }
+                               }
+                               else
+                               {
+                                       email_mailbox_type_e mailboxType = __pPresentationModel->GetMailboxType(__mailboxId);
+
+                                       if (mailboxType == EMAIL_MAILBOX_TYPE_TRASH)
+                                       {
+                                               __pPresentationModel->DeleteMail(false);
+                                       }
+                                       else
+                                       {
+                                               int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_TRASH);
+                                               r = __pPresentationModel->MoveMail(mailboxId);
+                                       }
+                               }
+
+                               if (r == E_SUCCESS)
+                               {
+                                       ShowPopUp(Utils::GetResourceString(L"IDS_EMAIL_POP_DELETING_ING"));
+                                       __waitForDelete = true;
+                               }
+                               else
+                               {
+                                       EmailApp::GetInstance()->SetMoveOrDeleteFailedPopupStatus(false);
+                                       SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_FAILED"));
+                                       __pMoveOrDeleteFailedPopup->SetShowState(true);
+                                       __pMoveOrDeleteFailedPopup->Show();
+                                       Invalidate(true);
+                               }
+                       }
+                       else if (mode == EMAIL_SELECTED_DELETE)
+                       {
+                               EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+                               __pDeleteConfirmationPopup->SetShowState(false);
+                               Invalidate(true);
+
+                               if (__accountId == -1)
+                               {
+                                       if (__mailboxType == EMAIL_MAILBOX_TYPE_TRASH)
+                                       {
+                                               __pPresentationModel->DeleteMail(false, true);
+                                       }
+                                       else
+                                       {
+                                               r = __pPresentationModel->MoveMail(EMAIL_MAILBOX_TYPE_TRASH);
+                                       }
+                               }
+                               else
+                               {
+                                       email_mailbox_type_e mailboxType = __pPresentationModel->GetMailboxType(__mailboxId);
+
+                                       if (mailboxType == EMAIL_MAILBOX_TYPE_TRASH)
+                                       {
+                                               __pPresentationModel->DeleteMail(false);
+                                       }
+                                       else
+                                       {
+                                               int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_TRASH);
+                                               r = __pPresentationModel->MoveMail(mailboxId);
+                                       }
+                               }
+
+                               if (r == E_SUCCESS)
+                               {
+                                       ShowPopUp(Utils::GetResourceString(L"IDS_EMAIL_POP_DELETING_ING"));
+                                       __waitForDelete = true;
+                               }
+                               else
+                               {
+                                       EmailApp::GetInstance()->SetMoveOrDeleteFailedPopupStatus(false);
+                                       SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_FAILED"));
+                                       __pMoveOrDeleteFailedPopup->SetShowState(true);
+                                       __pMoveOrDeleteFailedPopup->Show();
+                                       UnCheckAllListviewItems();
+                                       GoToNormalMode(true);
+                                       Invalidate(true);
+                               }
+                       }
+               }
+       }
+       else if (actionId == IDA_ATTACHMENT_DOWNLOAD_FAILED_OK)
+       {
+               EmailApp::GetInstance()->SetDownloadFailedPopupStatus(false);
+
+               __pAttachmentDownloadFailedPopup->SetShowState(false);
+               Invalidate(true);
+       }
+       else if (actionId == IDA_MOVE_OR_DELETE_FAILED_OK)
+       {
+               EmailApp::GetInstance()->ClearMoveOrDeleteFailedPopupStatus();
+
+               __pMoveOrDeleteFailedPopup->SetShowState(false);
+               Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::InitSortByPopup(int count)
+{
+       AppLogDebug("ENTER");
+
+       int xPos, yPos;
+       Rectangle popupBounds;
+
+       email_mailbox_type_e mailboxType = __pPresentationModel->GetMailboxType(__mailboxId);
+
+       if (__pSortByPopup == null)
+       {
+               CreateSortByPopup();
+       }
+
+       if (mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX || mailboxType == EMAIL_MAILBOX_TYPE_DRAFT)
+       {
+               __pSortByListViewItemProvider->SetViewBySenderOrRecipient(false);
+       }
+       else
+       {
+               __pSortByListViewItemProvider->SetViewBySenderOrRecipient(true);
+       }
+
+       popupBounds = __pSortByPopup->GetClientAreaBounds();
+
+       xPos = (popupBounds.width-W_POPUP_CLOSE_BUTTON)/2;
+       yPos = popupBounds.height - GENERIC_OFFSET_16 - H_POPUP_CLOSE_BUTTON;
+
+       __pSortByPopupCloseButton->SetPosition(xPos, yPos);
+
+       __pSortByListView->SetPosition(0, 0);
+
+       xPos = popupBounds.width;
+       yPos = popupBounds.height - H_POPUP_CLOSE_BUTTON - (2*GENERIC_OFFSET_16);
+       __pSortByListView->SetSize(xPos, yPos);
+
+       __pSortByListView->SetItemChecked(0, false);
+       __pSortByListView->SetItemChecked(1, false);
+       __pSortByListView->SetItemChecked(2, false);
+       __pSortByListView->SetItemChecked(3, false);
+
+       __pSortByListView->UpdateList();
+       __pSortByListView->SetItemChecked(__viewByType, true);
+       __pSortByListView->Invalidate(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+MailListForm::InitMarkAllAsPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       int xPos, yPos;
+       Rectangle popupBounds;
+
+       if (__pMarkAllAsPopup == null)
+       {
+               CreateMarkAllAsPopup();
+       }
+
+       popupBounds = __pMarkAllAsPopup->GetClientAreaBounds();
+       AppLogDebug("Got popup bounds:(%d),(%d),(%d),(%d)", popupBounds.x,popupBounds.y,popupBounds.width,popupBounds.height);
+
+       xPos = (popupBounds.width-W_POPUP_CLOSE_BUTTON)/2;
+       yPos = popupBounds.height - GENERIC_OFFSET_16 - H_POPUP_CLOSE_BUTTON;
+
+       __pMarkAllAsPopupCloseButton->SetPosition(xPos, yPos);
+       __pMarkAllAsListView->SetPosition(0, 0);
+
+       xPos = popupBounds.width;
+       yPos = popupBounds.height - H_POPUP_CLOSE_BUTTON - (2*GENERIC_OFFSET_16);
+       __pMarkAllAsListView->SetSize(xPos, yPos);
+       __pMarkAllAsListView->UpdateList();
+       __pMarkAllAsListView->Invalidate(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+MailListForm::InitSetAllAsPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       int xPos, yPos;
+       Rectangle popupBounds;
+
+       if (__pSetAllAsPopup == null)
+       {
+               CreateSetAllAsPopup();
+       }
+
+       popupBounds = __pSetAllAsPopup->GetClientAreaBounds();
+       AppLogDebug("Got popup bounds:(%d),(%d),(%d),(%d)", popupBounds.x,popupBounds.y,popupBounds.width,popupBounds.height);
+
+       xPos = (popupBounds.width-W_POPUP_CLOSE_BUTTON)/2;
+       yPos = popupBounds.height - GENERIC_OFFSET_16 - H_POPUP_CLOSE_BUTTON;
+
+       __pSetAllAsPopupCancelButton->SetPosition(xPos, yPos);
+       __pSetAllAsListView->SetPosition(0, 0);
+
+       xPos = popupBounds.width;
+       yPos = popupBounds.height - H_POPUP_CLOSE_BUTTON - (2*GENERIC_OFFSET_16);
+       __pSetAllAsListView->SetSize(xPos, yPos);
+       __pSetAllAsListView->UpdateList();
+       __pSetAllAsListView->Invalidate(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+MailListForm::OnSortTypeChanged(SortType viewByType)
+{
+       AppLogDebug("ENTER");
+
+       __viewByType = viewByType;
+       __pPresentationModel->SortBy(__viewByType);
+       __pMailGroupedListView->UpdateList();
+
+       __pSortByPopup->SetShowState(false);
+       Invalidate(true);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::OnMarkAllAsOptionChanged(int selectedOption)
+{
+       AppLogDebug("ENTER");
+
+       if (selectedOption == 0)
+       {
+               __pPresentationModel->SetFlag(EMAIL_FLAGS_SEEN_FIELD, true, true);
+       }
+       else if (selectedOption == 1)
+       {
+               __pPresentationModel->SetFlag(EMAIL_FLAGS_SEEN_FIELD, false, true);
+       }
+
+       UnCheckAllListviewItems();
+       GoToNormalMode(true);
+       __pPresentationModel->ClearSelectedMailList();
+       __pMarkAllAsPopup->SetShowState(false);
+       Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::OnSetAllAsOptionChanged(int selectedOption)
+{
+       AppLogDebug("ENTER");
+
+       if (selectedOption == 0)
+       {
+               __pPresentationModel->SetFlag(EMAIL_FLAGS_FLAGGED_FIELD, true, true);
+       }
+       else if (selectedOption == 1)
+       {
+               __pPresentationModel->SetFlag(EMAIL_FLAGS_FLAGGED_FIELD, false, true);
+       }
+
+       UnCheckAllListviewItems();
+       GoToNormalMode(true);
+       __pPresentationModel->ClearSelectedMailList();
+       __pSetAllAsPopup->SetShowState(false);
+       Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::PopulateHeader()
+{
+       Bitmap* pLogo = null;
+       Header* pHeader = GetHeader();
+
+//     pHeader->RemoveAllItems();
+
+       if (__accountId > 0)
+       {
+               EmailAccount* pAccount = __pPresentationModel->GetAccountById(__accountId);
+               EmailMailbox* pMailbox = __pPresentationModel->GetMailboxById(__mailboxId);
+
+               if (pAccount != null && pMailbox != null)
+               {
+                       String headerLogoPath = L"header_images/";
+                       headerLogoPath.Append(File::GetFileName(pAccount->GetLogoIconPath()));
+                       pLogo = App::GetInstance()->GetAppResource()->GetBitmapN(headerLogoPath);
+                       pHeader->SetTitleIcon(pLogo);
+                       pHeader->SetTitleText(pAccount->GetAccountName());
+                       pHeader->SetDescriptionText(pMailbox->GetMailboxAlias());
+                       delete pLogo;
+               }
+       }
+       else
+       {
+               pHeader->SetTitleIcon(__pHeaderAllAccountsIcon);
+               pHeader->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_ALL_ACCOUNTS"));
+
+               switch(__mailboxType)
+               {
+               case EMAIL_MAILBOX_TYPE_INBOX:
+               {
+                       pHeader->SetDescriptionText(Utils::GetResourceString(L"IDS_EMAIL_BODY_INBOX"));
+               }
+               break;
+
+               case EMAIL_MAILBOX_TYPE_SENTBOX:
+               {
+                       pHeader->SetDescriptionText(Utils::GetResourceString(L"IDS_EMAIL_BODY_SENTBOX"));
+               }
+               break;
+
+               case EMAIL_MAILBOX_TYPE_DRAFT:
+               {
+                       pHeader->SetDescriptionText(Utils::GetResourceString(L"IDS_EMAIL_BODY_DRAFTS"));
+               }
+               break;
+
+               case EMAIL_MAILBOX_TYPE_TRASH:
+               {
+                       pHeader->SetDescriptionText(Utils::GetResourceString(L"IDS_EMAIL_BODY_TRASH"));
+               }
+               break;
+
+               case EMAIL_MAILBOX_TYPE_SPAMBOX:
+               {
+                       pHeader->SetDescriptionText(Utils::GetResourceString(L"IDS_EMAIL_BODY_SPAMBOX"));
+               }
+               break;
+
+               case EMAIL_MAILBOX_TYPE_OUTBOX:
+               {
+                       pHeader->SetDescriptionText(Utils::GetResourceString(L"IDS_EMAIL_HEADER_OUTBOX"));
+               }
+               break;
+
+               case EMAIL_MAILBOX_TYPE_FLAGGED:
+               {
+                       pHeader->SetDescriptionText(L"Starred");
+               }
+               break;
+
+               default:
+                       break;
+               }
+       }
+
+       pHeader->Invalidate(true);
+       return;
+}
+
+BasePresentationModel*
+MailListForm::GetPresentationModelForMailboxType(int mailboxId)
+{
+       BasePresentationModel* pModel = InboxPresentationModel::GetInstance();
+
+       email_mailbox_type_e mailboxType = pModel->GetMailboxType(mailboxId);
+
+       switch (mailboxType)
+       {
+
+       case EMAIL_MAILBOX_TYPE_DRAFT:
+               pModel = DraftListPresentationModel::GetInstance();
+               break;
+
+       case EMAIL_MAILBOX_TYPE_OUTBOX:
+               pModel = OutboxPresentationModel::GetInstance();
+               break;
+
+       case EMAIL_MAILBOX_TYPE_SENTBOX:
+               pModel = SentboxPresentationModel::GetInstance();
+               break;
+
+       case EMAIL_MAILBOX_TYPE_SPAMBOX:
+               pModel = SpamPresentationModel::GetInstance();
+               break;
+
+       case EMAIL_MAILBOX_TYPE_TRASH:
+               pModel = TrashPresentationModel::GetInstance();
+               break;
+
+       default:
+               break;
+       }
+
+       return pModel;
+}
+
+void
+MailListForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       if (pArgs != null)
+       {
+               StateInfo* pStateInfo = static_cast<StateInfo*>(pArgs->GetAt(0));
+
+               __accountId = pStateInfo->accountId;
+               __mailboxId = pStateInfo->mailboxId;
+               __pPresentationModel = pStateInfo->pPresentationModel;
+               __mailboxType = pStateInfo->mailboxType;
+
+               if (__mailboxType != EMAIL_MAILBOX_TYPE_USER_DEFINED && __accountId != -1)
+               {
+                       EmailMailbox* pTmpMailbox = static_cast<EmailMailbox*>(__pPresentationModel->GetMailboxByType(__accountId, __mailboxType));
+
+                       if (pTmpMailbox != null && __mailboxId != pTmpMailbox->GetMailboxId())
+                       {
+                               __mailboxId = pTmpMailbox->GetMailboxId();
+                       }
+               }
+       
+               pArgs->RemoveAll(true);
+               delete pArgs;
+       }
+       else
+       {
+               __accountId = __pPresentationModel->GetDefaultAccountId();
+               __mailboxId = __pPresentationModel->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_INBOX);
+               __pPresentationModel = InboxPresentationModel::GetInstance();
+               __mailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+       }
+
+       if (__accountId != -1)
+       {
+               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+               {
+                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+               }
+               else
+               {
+                       __pPresentationModel->FetchData(__accountId);
+               }
+       }
+       else
+       {
+               __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+       }
+
+       switch (__mailboxType)
+       {
+       case EMAIL_MAILBOX_TYPE_USER_DEFINED: // fall through
+       case EMAIL_MAILBOX_TYPE_ALL_EMAILS:   // fall through
+       case EMAIL_MAILBOX_TYPE_SEARCH_RESULT:
+               __mailboxViewType = ALL_FOLDERS_VIEW;
+               break;
+
+       case EMAIL_MAILBOX_TYPE_INBOX:
+               __mailboxViewType = INBOX_VIEW;
+               break;
+
+       case EMAIL_MAILBOX_TYPE_DRAFT:
+               __mailboxViewType = DRAFTS_VIEW;
+               break;
+
+       case EMAIL_MAILBOX_TYPE_SENTBOX:
+               __mailboxViewType = SENTBOX_VIEW;
+               break;
+
+//     case EMAIL_MAILBOX_TYPE_FLAGGED:
+//             __mailboxViewType = FAVORITES_VIEW;
+//             break;
+
+       default:
+               break;
+       }
+
+       PopulateHeader();
+       __viewByType = __pPresentationModel->GetSortType();
+       __pBaseListViewItemProvider->SetPresentationModel(__pPresentationModel);
+       __pPresentationModel->SortBy(__pPresentationModel->GetSortType());
+
+       __pMailGroupedListView->SetItemProvider(*__pBaseListViewItemProvider);
+       __pMailGroupedListView->UpdateList();
+
+       __pAccountsListView->SetItemProvider(*this);
+
+       __waitForMove = false;
+       __waitForDelete = false;
+
+       CheckSelectedListviewItems();
+
+       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+       {
+               String text;
+               text.Append(Utils::GetResourceString(L"IDS_COM_OPT_SELECTED"));
+               text.Append(L"\x200E");
+               text.Append(L" (");
+               text.Append(__pPresentationModel->GetNumberOfSelectedItems());
+               text.Append(L")");
+               text.Append(L"\x200E");
+               __pSelectedLabel->SetText(text);
+               __pSelectedLabel->Invalidate(true);
+
+               if (__mode != EDIT_MODE)
+               {
+                       GoToEditMode();
+                       SetFocus();
+               }
+       }
+       else
+       {
+               if (__mode != NORMAL_MODE)
+               {
+                       GoToNormalMode(false);
+                       SetFocus();
+               }
+
+               UnCheckAllListviewItems();
+       }
+
+       int mailId;
+       DeletionMode mode;
+
+       if (EmailApp::GetInstance()->GetShowDeletePopupStatus(mailId, mode) == true)
+       {
+               bool hideDelPopup = false;
+
+               if (mode == EMAIL_DELETE_ALL)
+               {
+                       if (__pPresentationModel->GetItemCount(0) > 0)
+                       {
+                               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_EMAIL_POP_DELETE_ALL_Q"));
+                               __pDeleteConfirmationPopup->SetShowState(true);
+                               __pDeleteConfirmationPopup->Show();
+                       }
+                       else
+                       {
+                               hideDelPopup = true;
+                       }
+               }
+               else if (mode == EMAIL_SELECTED_DELETE)
+               {
+                       if (__pPresentationModel->CheckIfSelectedMailExists() == true)
+                       {
+                               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_Q"));
+                               __pDeleteConfirmationPopup->SetShowState(true);
+                               __pDeleteConfirmationPopup->Show();
+                       }
+                       else
+                       {
+                               hideDelPopup = true;
+                       }
+               }
+               else
+               {
+                       int groupIndex, itemIndex;
+                       __pPresentationModel->GetMailIndex(mailId, groupIndex, itemIndex);
+
+                       if (groupIndex != -1 && itemIndex != -1 && groupIndex <= __pPresentationModel->GetGroupCount()-1 && itemIndex <= __pPresentationModel->GetItemCount(groupIndex)-1)
+                       {
+                               SetDeleteConfirmationPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_Q"));
+
+                               __pDeleteConfirmationPopup->SetShowState(true);
+                               __pDeleteConfirmationPopup->Show();
+                       }
+                       else
+                       {
+                               hideDelPopup = true;
+                       }
+               }
+
+               if (hideDelPopup == true)
+               {
+                       EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+               }
+       }
+
+       int downloadMailId;
+       DownloadInitiatorMode downloadMode;
+
+       if (EmailApp::GetInstance()->GetDownloadAttachmentPopupStatus(downloadMailId, downloadMode) == true)
+       {
+               if (downloadMode == EMAIL_SWIPE_FORWARD)
+               {
+                       int groupIndex = -1;
+                       int itemIndex = -1;
+                       EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(downloadMailId);
+
+                       if (pDetailedMail != null)
+                       {
+                               DownloadAllAttachments(pDetailedMail, EMAIL_SWIPE_FORWARD);
+                               __pPresentationModel->GetMailIndex(downloadMailId, groupIndex, itemIndex);
+                               __futureAction = EmailTypesNS::FORWARD_AFTER_DOWNLOAD;
+                               __groupIndex = groupIndex;
+                               __itemIndex = itemIndex;
+                       }
+               }
+               else if (downloadMode == EMAIL_DRAFT_DOWNLOAD)
+               {
+                       int groupIndex = -1;
+                       int itemIndex = -1;
+                       EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(downloadMailId);
+
+                       if (pDetailedMail != null)
+                       {
+                               DownloadAllAttachments(pDetailedMail, EMAIL_DRAFT_DOWNLOAD);
+                               __pPresentationModel->GetMailIndex(downloadMailId, groupIndex, itemIndex);
+                               __futureAction = EmailTypesNS::COMPOSE_AFTER_DOWNLOAD;
+                               __groupIndex = groupIndex;
+                               __itemIndex = itemIndex;
+                       }
+               }
+       }
+
+       if (EmailApp::GetInstance()->GetDownloadFailedPopupStatus() == true)
+       {
+               EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+
+               if (__pAttachmentDownloadFailedPopup == null)
+               {
+                       InitAttachmentDownloadFailedPopup();
+               }
+
+               __pAttachmentDownloadFailedPopup->SetShowState(true);
+               __pAttachmentDownloadFailedPopup->Show();
+       }
+
+       bool isMoveFailed;
+
+       if (EmailApp::GetInstance()->GetMoveOrDeleteFailedPopupStatus(isMoveFailed) == true)
+       {
+               if (isMoveFailed)
+               {
+                       SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_MOVING_FAILED"));
+               }
+               else
+               {
+                       SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_FAILED"));
+               }
+
+               __pMoveOrDeleteFailedPopup->SetShowState(true);
+               __pMoveOrDeleteFailedPopup->Show();
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+MailListForm::ShowPopUp(const String& popupTitle)
+{
+       AppLogDebug("ENTER");
+
+       __pProgressPopup->SetTitleText(popupTitle);
+       __pProgressPopup->SetShowState(true);
+       __pProgressPopup->Show();
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+}
+
+void
+MailListForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER, currentSceneId:(%ls), nextSceneId:(%ls)", currentSceneId.GetPointer(), nextSceneId.GetPointer());
+
+       UnCheckAllListviewItems();
+
+       if (__pDeleteConfirmationPopup != null)
+       {
+               __pDeleteConfirmationPopup->RemoveAllControls();
+               delete __pDeleteConfirmationPopup;
+               __pDeleteConfirmationPopup = null;
+       }
+
+       if (__pAttachmentDownloadFailedPopup != null)
+       {
+               __pAttachmentDownloadFailedPopup->RemoveAllControls();
+               delete __pAttachmentDownloadFailedPopup;
+               __pAttachmentDownloadFailedPopup = null;
+       }
+
+       if (__pDownloadAttachmentsPopup != null)
+       {
+               delete __pDownloadAttachmentsPopup;
+               __pDownloadAttachmentsPopup = null;
+       }
+
+       if (__pMoveOrDeleteFailedPopup != null)
+       {
+               __pMoveOrDeleteFailedPopup->RemoveAllControls();
+               delete __pMoveOrDeleteFailedPopup;
+               __pMoveOrDeleteFailedPopup = null;
+       }
+
+       if (__pSortByPopup != null)
+       {
+               __pSortByPopup->RemoveAllControls();
+               delete __pSortByPopup;
+               __pSortByPopup = null;
+       }
+
+       if (__pSortByListViewItemProvider != null)
+       {
+               delete __pSortByListViewItemProvider;
+               __pSortByListViewItemProvider = null;
+       }
+
+       if (__pMarkAllAsPopup != null)
+       {
+               __pMarkAllAsPopup->RemoveAllControls();
+               delete __pMarkAllAsPopup;
+               __pMarkAllAsPopup = null;
+       }
+
+       if (__pMarkAllAsListViewItemProvider != null)
+       {
+               delete __pMarkAllAsListViewItemProvider;
+               __pMarkAllAsListViewItemProvider = null;
+       }
+
+       if (__pSetAllAsPopup != null)
+       {
+               __pSetAllAsPopup->RemoveAllControls();
+               delete __pSetAllAsPopup;
+               __pSetAllAsPopup = null;
+       }
+
+       if (__pSetAllAsListViewItemProvider != null)
+       {
+               delete __pSetAllAsListViewItemProvider;
+               __pSetAllAsListViewItemProvider = null;
+       }
+
+       /*if (__pMoreOptionMenu != null)
+       {
+               __pMoreOptionMenu->RemoveAllItems();
+               delete __pMoreOptionMenu;
+               __pMoreOptionMenu = null;
+       }*/
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::OnUserEventReceivedN(RequestId requestId, IList *pArgs)
+{
+       AppLogDebug("ENTER, requestId:(%d), pArgs:(%x)", requestId, pArgs);
+       AppLogDebugIf(pArgs != null, "pArgs count:(%d)", pArgs->GetCount());
+
+       result r = E_SUCCESS;
+
+       if (requestId == IDA_NOTI_MAIL_ADD || requestId == IDA_NOTI_MAIL_UPDATE)
+       {
+               if (pArgs != null && pArgs->GetCount() >= 3)
+               {
+                       if (requestId == IDA_NOTI_MAIL_UPDATE)
+                       {
+                               int groupIndex=0, itemIndex=0;
+                               int mailId = static_cast<Integer*>(pArgs->GetAt(1))->ToInt();
+                               AppLogDebug("Got mail Id:(%d)", mailId);
+
+                               __pPresentationModel->GetMailIndex(mailId, groupIndex, itemIndex);
+                               AppLogDebug("Got groupIndex:(%d), itemIndex:(%d)", groupIndex, itemIndex);
+
+                               EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(__pPresentationModel->GetMailData(groupIndex, itemIndex));
+                               AppLogDebugIf(pMsg == null, "pMsg was null");
+
+                               if (pMsg != null)
+                               {
+                                       int mailIdToBeAdded = 0;
+                                       if (__pPresentationModel->IsMailSelected(pMsg))
+                                       {
+                                               mailIdToBeAdded = pMsg->GetMailId();
+                                               __pPresentationModel->RemoveMailFromSelectedMailList(pMsg);
+                                       }
+
+                                       if (__accountId == -1)
+                                       {
+                                               r = __pPresentationModel->GetData()->Remove(*pMsg);
+                                       }
+                                       else
+                                       {
+                                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                               {
+                                                       r = __pPresentationModel->GetData()->Remove(*pMsg);
+                                               }
+                                               else
+                                               {
+                                                       r = __pPresentationModel->GetData()->Remove(*pMsg, true);
+                                               }
+                                       }
+                                       AppLogDebug("Result r:(%s)", GetErrorMessage(r));
+
+                                       __pPresentationModel->UpdateUnreadCount(__accountId);
+//                                     __pPresentationModel->FetchData(__accountId, true);
+
+                                       if (__accountId == -1)
+                                       {
+                                               __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                                       }
+                                       else
+                                       {
+                                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                               {
+                                                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                                               }
+                                               else
+                                               {
+                                                       __pPresentationModel->FetchData(__accountId, true);
+                                               }
+                                       }
+
+                                       __pPresentationModel->SortBy(__viewByType);
+                                       __pMailGroupedListView->UpdateList();
+
+                                       if (mailIdToBeAdded > 0)
+                                       {
+                                               EmailMessageListItem* pTmpMsg = __pPresentationModel->GetMailData(mailIdToBeAdded);
+
+                                               if (pTmpMsg != null)
+                                               {
+                                                       __pPresentationModel->AddMailToSelectedMailList(pTmpMsg);
+                                               }
+                                       }
+
+                                       Invalidate(true);
+                               }
+                       }
+                       else if (requestId == IDA_NOTI_MAIL_ADD)
+                       {
+                               int mailboxId = static_cast<Integer*>(pArgs->GetAt(2))->ToInt();
+                               AppLogDebug("Current mailboxId:(%d), got mailboxId:(%d)", __mailboxId, mailboxId);
+
+                               if (mailboxId == __mailboxId)
+                               {
+                                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                                       {
+                                               UnCheckAllListviewItems();
+                                       }
+
+                                       __pPresentationModel->UpdateUnreadCount(__accountId);
+//                                     __pPresentationModel->FetchData(__accountId, true);
+
+                                       if (__accountId == -1)
+                                       {
+                                               __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                                       }
+                                       else
+                                       {
+                                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                               {
+                                                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                                               }
+                                               else
+                                               {
+                                                       __pPresentationModel->FetchData(__accountId, true);
+                                               }
+                                       }
+
+                                       __pPresentationModel->SortBy(__viewByType);
+                                       __pMailGroupedListView->UpdateList();
+
+                                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                                       {
+                                               CheckSelectedListviewItems();
+                                       }
+
+                                       Invalidate(true);
+                               }
+                       }
+
+                       pArgs->RemoveAll(true);
+                       delete pArgs;
+               }
+       }
+       else if (requestId == IDA_NOTI_MAIL_FIELD_UPDATE && pArgs != null)
+       {
+               int mailId;
+               int groupIndex=0, itemIndex=0;
+
+               __pPresentationModel->UpdateUnreadCount(__accountId);
+
+               for (int i=0; i<pArgs->GetCount(); i++)
+               {
+                       mailId = static_cast<Integer*>(pArgs->GetAt(i))->ToInt();
+                       __pPresentationModel->GetMailIndex(mailId, groupIndex, itemIndex);
+                       __pMailGroupedListView->RefreshList(groupIndex, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+               }
+
+               if (__mailboxType == EMAIL_MAILBOX_TYPE_OUTBOX)
+               {
+                       UnCheckAllListviewItems();
+
+                       if (__accountId == -1)
+                       {
+                               __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                       }
+                       else
+                       {
+                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                               {
+                                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                               }
+                               else
+                               {
+                                       __pPresentationModel->FetchData(__accountId);
+                               }
+                       }
+               }
+
+               if (__viewByType == SORT_BY_UNREAD || __viewByType == SORT_BY_IMPORTANT)
+               {
+                       __pPresentationModel->SortBy(__viewByType);
+                       __pMailGroupedListView->UpdateList();
+               }
+
+               if (__mailboxType == EMAIL_MAILBOX_TYPE_OUTBOX)
+               {
+                       CheckSelectedListviewItems();
+
+                       if (__pPresentationModel->GetNumberOfSelectedItems() > 0)
+                       {
+                               String text;
+
+                               if (__mode != EDIT_MODE)
+                               {
+                                       GoToEditMode();
+                               }
+
+                               text.Append(Utils::GetResourceString(L"IDS_COM_OPT_SELECTED"));
+                               text.Append(L"\x200E");
+                               text.Append(L" (");
+                               text.Append(__pPresentationModel->GetNumberOfSelectedItems());
+                               text.Append(L")");
+                               text.Append(L"\x200E");
+                               __pSelectedLabel->SetText(text);
+                               __pSelectedLabel->Invalidate(true);
+                       }
+                       else
+                       {
+                               if (__mode == EDIT_MODE && __pMoreOptionMenu != null && __pMoreOptionMenu->GetShowState() == true)
+                               {
+                                       __pMoreOptionMenu->SetShowState(false);
+                                       __pMoreOptionMenu->Invalidate(true);
+                               }
+                               else if (__mode == NORMAL_MODE && __pMoreOptionMenu != null && __pMoreOptionMenu->GetShowState() == true && __pPresentationModel->GetGroupCount() == 0)
+                               {
+                                       __pMoreOptionMenu->SetShowState(false);
+                                       PopulateMoreOptionMenu(__mode, __pPresentationModel->GetSelectionMode(), __pPresentationModel->GetFavouriteSelectionMode());
+                                       __pMoreOptionMenu->SetShowState(true);
+                                       __pMoreOptionMenu->Show();
+                               }
+
+                               if (__mode == EDIT_MODE)
+                               {
+                                       GoToNormalMode(true);
+                               }
+
+                               if (__pDeleteConfirmationPopup != null && __pDeleteConfirmationPopup->GetShowState() == true)
+                               {
+                                       EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+                                       __pDeleteConfirmationPopup->SetShowState(false);
+                                       Invalidate(true);
+                               }
+                       }
+               }
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+               Invalidate(true);
+       }
+       else if (requestId == IDA_NOTI_MAIL_MOVE_FINISHED || requestId == IDA_NOTI_DELETE_FINISHED)
+       {
+               __pPresentationModel->UpdateUnreadCount(__accountId);
+
+               if (__accountId == -1)
+               {
+                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+               }
+               else
+               {
+                       if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                       {
+                               __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType);
+                       }
+                       else
+                       {
+                               __pPresentationModel->FetchData(__accountId);
+                       }
+               }
+
+               __pPresentationModel->SortBy(__viewByType);
+
+               if (__waitForDelete == true || __waitForMove == true)
+               {
+                       if (__waitForDelete == true)
+                       {
+                               __waitForDelete = false;
+                       }
+
+                       if (__waitForMove == true)
+                       {
+                               __waitForMove = false;
+                       }
+
+                       UnCheckAllListviewItems();
+
+                       HidePopUp();
+                       __pPresentationModel->ClearSelectedMailList();
+
+                       if (__mode != NORMAL_MODE)
+                       {
+                               GoToNormalMode(true);
+                       }
+               }
+
+               if (__pPresentationModel->GetNumberOfSelectedItems() == 0)
+               {
+                       UnCheckAllListviewItems();
+
+                       HidePopUp();
+
+                       if (__mode != NORMAL_MODE)
+                       {
+                               GoToNormalMode(true);
+                       }
+               }
+
+               __pMailGroupedListView->UpdateList();
+       }
+       else if (requestId == IDA_NOTI_MAIL_MOVE_FAIL)
+       {
+               if (__waitForDelete == true || __waitForMove == true)
+               {
+                       if (__waitForDelete == true)
+                       {
+                               __waitForDelete = false;
+                               EmailApp::GetInstance()->SetMoveOrDeleteFailedPopupStatus(false);
+                               SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_DELETE_FAILED"));
+                       }
+
+                       if (__waitForMove == true)
+                       {
+                               __waitForMove = false;
+                               EmailApp::GetInstance()->SetMoveOrDeleteFailedPopupStatus(true);
+                               SetMoveOrDeleteFailedPopupTitle(Utils::GetResourceString(L"IDS_COM_POP_MOVING_FAILED"));
+                       }
+
+                       HidePopUp();
+
+                       __pMoveOrDeleteFailedPopup->SetShowState(true);
+                       __pMoveOrDeleteFailedPopup->Show();
+                       Invalidate(true);
+               }
+       }
+       else if (requestId == IDA_NOTI_DOWNLOAD_FINISH)
+       {
+               __pPresentationModel->UpdateUnreadCount(__accountId);
+               __pPresentationModel->FetchData(__accountId, true);
+               __pPresentationModel->SortBy(__viewByType);
+               __pMailGroupedListView->UpdateList();
+       }
+       else if ((requestId == IDA_NOTI_DOWNLOAD_ATTACH_START ||
+                       requestId == IDA_NOTI_DOWNLOAD_ATTACH_FINISH ||
+                       requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL) && pArgs != null)
+       {
+               if (__downloadAttachments > 0)
+               {
+                       if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL)
+                       {
+                               if (__userCancelledAttachmentDownload == false)
+                               {
+                                       EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+                                       EmailApp::GetInstance()->SetDownloadFailedPopupStatus(true);
+
+                                       if (__pAttachmentDownloadFailedPopup == null)
+                                       {
+                                               InitAttachmentDownloadFailedPopup();
+                                       }
+
+                                       __pAttachmentDownloadFailedPopup->SetShowState(true);
+                                       __pAttachmentDownloadFailedPopup->Show();
+                               }
+
+                               OnProgressPopupCanceled();
+                               __userCancelledAttachmentDownload = false;
+                       }
+                       else
+                       {
+                               if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FINISH)
+                               {
+                                       __downloadAttachments--;
+                                       AppLogDebug("Decrementing download attachment count to:(%d)", __downloadAttachments);
+                               }
+
+                               if (__downloadAttachments == 0)
+                               {
+                                       EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+
+                                       if (__futureAction == EmailTypesNS::FORWARD_AFTER_DOWNLOAD)
+                                       {
+                                               OnGroupedListViewContextItemStateChanged(*__pMailGroupedListView, __groupIndex, __itemIndex, IDA_INBOX_FORM_FORWARD_BUTTON, LIST_CONTEXT_ITEM_STATUS_SELECTED);
+                                       }
+                                       else if (__futureAction == EmailTypesNS::COMPOSE_AFTER_DOWNLOAD)
+                                       {
+                                               OnGroupedListViewItemStateChanged(*__pMailGroupedListView, __groupIndex, __itemIndex, IDA_BASE_LISTVIEW_ITEM_PROVIDER_EMPTY_ELEMENT, LIST_ITEM_STATUS_SELECTED);
+                                       }
+
+                                       OnProgressPopupCanceled();
+                               }
+                       }
+               }
+       }
+       else if (requestId == IDA_INBOX_FORM_FOOTER_DELETE_BUTTON)
+       {
+               OnActionPerformed(*(GetFooter()), IDA_INBOX_FORM_FOOTER_DELETE_BUTTON);
+       }
+       else if (requestId == IDA_INBOX_FORM_CONTEXT_MENU_DELETE_ALL)
+       {
+               OnActionPerformed(*(GetFooter()), IDA_INBOX_FORM_CONTEXT_MENU_DELETE_ALL);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+MailListForm::HidePopUp(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pProgressPopup != null)
+       {
+               __pProgressPopup->SetShowState(false);
+       }
+
+       Invalidate(true);
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::PopulateMoreOptionMenu(Mode mode, SelectionMode selectionMode, FavouriteSelectionMode favouriteSelectionMode)
+{
+       AppLogDebug("ENTER");
+
+       __pMoreOptionMenu->RemoveAllItems();
+
+       switch(mode)
+       {
+       case NORMAL_MODE:
+
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_VIEW"), IDA_INBOX_FORM_CONTEXT_MENU_SORT_BY, *__pSortByIcon);
+
+               if (__pPresentationModel->GetGroupCount() != 0)
+               {
+                       __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_DELETE_ALL"), IDA_INBOX_FORM_CONTEXT_MENU_DELETE_ALL, *__pDeleteAllIcon);
+               }
+
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_MA_HEADER_ADD_ACCOUNT"), IDA_INBOX_FORM_CONTEXT_MENU_ADD_ACCOUNT, *__pAddAccountIcon);
+               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT2_SETTINGS"), IDA_INBOX_FORM_CONTEXT_MENU_SETTINGS, *__pSettingsIcon);
+               break;
+
+       case EDIT_MODE:
+               if (selectionMode == SELECTION_READ)
+               {
+                       __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_MARK_AS_UNREAD"), IDA_INBOX_FORM_CONTEXT_MENU_MARK_UNREAD, *__pMarkReadUnreadIcon);
+               }
+               else if (selectionMode == SELECTION_UNREAD)
+               {
+                       __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_MARK_AS_READ"), IDA_INBOX_FORM_CONTEXT_MENU_MARK_READ, *__pMarkReadUnreadIcon);
+               }
+               else if (selectionMode == SELECTION_MIXED)
+               {
+                       __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_MARK_ALL_AS_ABB"), IDA_INBOX_FORM_CONTEXT_MENU_MARK_ALL_AS, *__pMarkReadUnreadIcon);
+               }
+
+               if (__mailboxType != EMAIL_MAILBOX_TYPE_OUTBOX)
+               {
+                       if (favouriteSelectionMode == FAVOURITE_SELECTION_FAVOURITE)
+                       {
+                               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1"), IDA_INBOX_FORM_CONTEXT_MENU_SET_UNFAVOURITES, *__pFavouriteIcon);
+                       }
+                       else if (favouriteSelectionMode == FAVOURITE_SELECTION_UNFAVOURITE)
+                       {
+                               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_SET_AS_FAVOURITES_ABB"), IDA_INBOX_FORM_CONTEXT_MENU_SET_FAVOURITES, *__pFavouriteIcon);
+                       }
+                       else if (favouriteSelectionMode == FAVOURITE_SELECTION_MIXED)
+                       {
+                               __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_SET_ALL_AS_ABB"), IDA_INBOX_FORM_CONTEXT_MENU_SET_ALL_AS, *__pFavouriteIcon);
+                       }
+               }
+
+               if (__mailboxType != EMAIL_MAILBOX_TYPE_SPAMBOX && __mailboxType != EMAIL_MAILBOX_TYPE_DRAFT && __mailboxType != EMAIL_MAILBOX_TYPE_OUTBOX && __mailboxType != EMAIL_MAILBOX_TYPE_SENTBOX)
+               {
+                       __pMoreOptionMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_BLOCK"), IDA_INBOX_FORM_CONTEXT_MENU_BLOCK, *__pBlockIcon);
+               }
+
+               break;
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::PopulateFolderContextMenu(void)
+{
+       int xPosition, yPosition;
+       Footer* pFooter = GetFooter();
+
+       if (pFooter != null)
+       {
+               pFooter->GetPosition(xPosition, yPosition);
+               xPosition = xPosition + (2*pFooter->GetWidth()/3);
+               __pFolderContextMenu->SetAnchorPosition(Point(xPosition, yPosition));
+       }
+
+       __pFolderContextMenu->RemoveAllItems();
+
+       for (int  i=0; i<__pFolderContextMenuItemsList->GetCount(); i++)
+       {
+               if (__mailboxViewType == ALL_FOLDERS_VIEW || __mailboxViewType != i)
+               {
+//                     if ((__accountId > 0 && i != FAVORITES_VIEW) || (__accountId == -1 /*&& i != ALL_FOLDERS_VIEW*/))
+                       {
+                               __pFolderContextMenu->AddItem(*static_cast<String*>(__pFolderContextMenuItemsList->GetAt(i)), IDA_INBOX_FORM_CONTEXT_MENU_FOLDER_VIEW+i);
+                       }
+               }
+       }
+}
+
+void
+MailListForm::OnTouchPressed(const Control& source, const Point& currentPosition, const TouchEventInfo & touchInfo)
+{
+       AppLogDebug("source touch position %d %d", currentPosition.x, currentPosition.y);
+       __headerTouchPosition = currentPosition.y;
+}
+
+void
+MailListForm::OnTouchReleased(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+       int hashCode = source.GetHashCode();
+       AppLogDebug("source touch position %d %d", currentPosition.x, currentPosition.y);
+
+       Header* pHeader = GetHeader();
+
+//     if (hashCode == pHeader->GetHashCode() && (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE || __headerTouchPosition > 10) && __pAccountsListPanel->GetShowState() == false)
+       if (hashCode == pHeader->GetHashCode() && (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE || __headerTouchPosition == currentPosition.y || __headerTouchPosition > 10) && __pAccountsListPanel->GetShowState() == false)
+//     if (hashCode == pHeader->GetHashCode() && __headerTouchPosition ==  currentPosition.y && __pAccountsListPanel->GetShowState() == false)
+       {
+               pHeader->SetButtonEnabled(BUTTON_POSITION_LEFT, false);
+               pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, false);
+               GetFooter()->SetEnabled(false);
+
+//             if(__mode == EDIT_MODE)
+//             {
+//                     __pAccountsListPanel->SetSize(Dimension(__pAccountsListPanel->GetWidth(), __pAccountsListPanel->GetHeight() - __pSelectedLabel->GetHeight()));
+//             }
+
+               __pAccountsListView->UpdateList();
+
+               __pMailGroupedListView->SetEnabled(false);
+               __pAccountsListPanel->SetShowState(true);
+       }
+       else if (hashCode == pHeader->GetHashCode() && __pAccountsListPanel->GetShowState() == true)
+       {
+               if (__mode != EDIT_MODE)
+               {
+                       pHeader->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+               }
+               else
+               {
+                       __pAccountsListPanel->SetSize(Dimension(__pAccountsListPanel->GetWidth(), __pAccountsListPanel->GetHeight() + __pSelectedLabel->GetHeight()));
+               }
+
+               pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, true);
+               GetFooter()->SetEnabled(true);
+
+               __pMailGroupedListView->SetEnabled(true);
+               __pMailGroupedListView->Invalidate(true);
+               __pAccountsListPanel->SetShowState(false);
+       }
+       else if (hashCode == __pAccountsListPanel->GetHashCode())
+       {
+               if (__mode != EDIT_MODE)
+               {
+                       pHeader->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+               }
+               else
+               {
+                       __pAccountsListPanel->SetSize(Dimension(__pAccountsListPanel->GetWidth(), __pAccountsListPanel->GetHeight() + __pSelectedLabel->GetHeight()));
+               }
+
+               pHeader->SetButtonEnabled(BUTTON_POSITION_RIGHT, true);
+               GetFooter()->SetEnabled(true);
+
+               __pMailGroupedListView->SetEnabled(true);
+               __pMailGroupedListView->Invalidate(true);
+               __pAccountsListPanel->SetShowState(false);
+       }
+
+       GetFooter()->Invalidate(true);
+       pHeader->Invalidate(true);
+}
+
+void
+MailListForm::OnTouchMoved(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+
+}
+
+void
+MailListForm::OnTouchFocusIn(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+
+}
+
+void
+MailListForm::OnTouchFocusOut(const Control& source, const Point& currentPosition, const TouchEventInfo& touchInfo)
+{
+
+}
+
+int
+MailListForm::GetItemCount(void)
+{
+       AppLogDebug("ENTER");
+       int height;
+       int count = __pPresentationModel->GetAccountCount();
+       int listViewWidth = __pAccountsListView->GetWidth();
+
+       if (count > 1)
+       {
+               // Include an 'All Accounts' item as well
+               count++;
+       }
+
+       height = count*H_ACCOUNTCUSTOM_ITEM;
+       if (height >= __pAccountsListPanel->GetHeight() - (GENERIC_OFFSET_16))
+       {
+               height = __pAccountsListPanel->GetHeight() - (GENERIC_OFFSET_16);
+       }
+
+       if (__mode == EDIT_MODE)
+       {
+               height = height - __pSelectedLabel->GetHeight();
+       }
+
+       __pAccountsListView->SetSize(listViewWidth, height);
+
+       AppLogDebug("EXIT");
+       return count;
+}
+
+ListItemBase*
+MailListForm::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER");
+       AppResource* pAppResource = Tizen::App::Application::GetInstance()->GetAppResource();
+       Bitmap* pTextBackground = pAppResource->GetBitmapN(IDB_UNREADCOUNT_BACKGROUND, BITMAP_PIXEL_FORMAT_ARGB8888);
+       Bitmap* pTextPressedBackground = pAppResource->GetBitmapN(IDB_UNREADCOUNT_PRESSED_BACKGROUND, BITMAP_PIXEL_FORMAT_ARGB8888);
+       CustomItem* pItem = new (std::nothrow) CustomItem();
+       pItem->Construct(Dimension(itemWidth, H_ACCOUNTCUSTOM_ITEM), LIST_ANNEX_STYLE_NORMAL);
+
+       EmailAccount* pAccount = null;
+
+       if (__pPresentationModel->GetAccountCount() > 1)
+       {
+               if (index == 0)
+               {
+                       pItem->AddElement(Rectangle(32, 24, 64, 64), 2, *__pAllAccountsIcon);
+                       pItem->AddElement(Rectangle(112,0,itemWidth-218, 112), 3, Utils::GetResourceString(L"IDS_EMAIL_BODY_ALL_ACCOUNTS"), 40, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+               }
+               else
+               {
+                       pAccount = __pPresentationModel->GetAccountByIndex(index-1);
+
+                       if (pAccount != null)
+                       {
+                               AccountColorCustomListElement* pAccountColor = new (std::nothrow) AccountColorCustomListElement();
+                               pAccountColor->SetAccountId(pAccount->GetAccountId());
+
+                               pItem->AddElement(Rectangle(0,4,16,104), 1, *pAccountColor);
+
+                               Bitmap* pAccountLogo = App::GetInstance()->GetAppResource()->GetBitmapN(File::GetFileName(pAccount->GetLogoIconPath()));
+                               pItem->AddElement(Rectangle(32, 24, 64, 64), 2, *pAccountLogo);
+                               delete pAccountLogo;
+
+                               pItem->AddElement(Rectangle(112,0,itemWidth-218, 70), 3, pAccount->GetAccountName(), 40, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+                               pItem->AddElement(Rectangle(112,65,itemWidth-218, 40), 4, pAccount->GetUserEmailAddress(), 32, Color::GetColor(COLOR_ID_GREY), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+
+
+                               pItem->AddElement(Rectangle(itemWidth-80,24,50,50), 6, *pTextBackground, pTextPressedBackground);
+
+                               if (__pPresentationModel->GetUnreadCount(pAccount) > 99)
+                               {
+                                       pItem->AddElement(Rectangle(itemWidth-80,24,50,50), 5, Integer::ToString(__pPresentationModel->GetUnreadCount(pAccount)), 28, COLOR_LIST_UNREAD_COUNT_BG_NORMAL, COLOR_LIST_UNREAD_COUNT_BG_PRESSED, null);
+                               }
+                               else if (__pPresentationModel->GetUnreadCount(pAccount) > 9)
+                               {
+                                       pItem->AddElement(Rectangle(itemWidth-70,24,40,50), 5, Integer::ToString(__pPresentationModel->GetUnreadCount(pAccount)), 28, COLOR_LIST_UNREAD_COUNT_BG_NORMAL, COLOR_LIST_UNREAD_COUNT_BG_PRESSED, null);
+                               }
+                               else
+                               {
+                                       pItem->AddElement(Rectangle(itemWidth-65,24,40,50), 5, Integer::ToString(__pPresentationModel->GetUnreadCount(pAccount)), 28, COLOR_LIST_UNREAD_COUNT_BG_NORMAL, COLOR_LIST_UNREAD_COUNT_BG_PRESSED, null);
+                               }
+                       }
+               }
+       }
+       else
+       {
+               pAccount = __pPresentationModel->GetAccountByIndex(index);
+
+               if (pAccount != null)
+               {
+                       AccountColorCustomListElement* pAccountColor = new (std::nothrow) AccountColorCustomListElement();
+                       pAccountColor->SetAccountId(pAccount->GetAccountId());
+
+                       __pPresentationModel->UpdateUnreadCount(pAccount->GetAccountId());
+
+                       pItem->AddElement(Rectangle(0,4,16,104), 1, *pAccountColor);
+
+                       Bitmap* pAccountLogo = App::GetInstance()->GetAppResource()->GetBitmapN(File::GetFileName(pAccount->GetLogoIconPath()));
+                       pItem->AddElement(Rectangle(32, 24, 64, 64), 2, *pAccountLogo);
+                       delete pAccountLogo;
+
+                       pItem->AddElement(Rectangle(112,0,itemWidth-218, 70), 3, pAccount->GetAccountName(), 40, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+                       pItem->AddElement(Rectangle(112,65,itemWidth-218, 40), 4, pAccount->GetUserEmailAddress(), 32, Color::GetColor(COLOR_ID_GREY), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+
+                       pItem->AddElement(Rectangle(itemWidth-80,24,50,50), 6, *pTextBackground, pTextPressedBackground);
+
+                       if (__pPresentationModel->GetUnreadCount(pAccount) > 99)
+                       {
+                               pItem->AddElement(Rectangle(itemWidth-80,24,50,50), 5, Integer::ToString(__pPresentationModel->GetUnreadCount(pAccount)), 28, COLOR_LIST_UNREAD_COUNT_BG_NORMAL, COLOR_LIST_UNREAD_COUNT_BG_PRESSED, null);
+                       }
+                       else if (__pPresentationModel->GetUnreadCount(pAccount) > 9)
+                       {
+                               pItem->AddElement(Rectangle(itemWidth-70,24,40,50), 5, Integer::ToString(__pPresentationModel->GetUnreadCount(pAccount)), 28, COLOR_LIST_UNREAD_COUNT_BG_NORMAL, COLOR_LIST_UNREAD_COUNT_BG_PRESSED, null);
+                       }
+                       else
+                       {
+                               pItem->AddElement(Rectangle(itemWidth-65,24,40,50), 5, Integer::ToString(__pPresentationModel->GetUnreadCount(pAccount)), 28, COLOR_LIST_UNREAD_COUNT_BG_NORMAL, COLOR_LIST_UNREAD_COUNT_BG_PRESSED, null);
+                       }
+               }
+       }
+
+       delete pTextBackground;
+       delete pTextPressedBackground;
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+bool
+MailListForm::DeleteItem(int index, ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER");
+       CustomItem* pCustomItem = null;
+
+       if (pItem != null)
+       {
+               pCustomItem = static_cast<CustomItem*>(pItem);
+
+               pCustomItem->RemoveAllElements();
+               delete pCustomItem;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+MailListForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       if (__mode == EDIT_MODE)
+       {
+               GoToNormalMode(true);
+               UnCheckAllListviewItems();
+               __pPresentationModel->ClearSelectedMailList();
+       }
+
+       if (__pPresentationModel->GetAccountCount() > 1)
+       {
+               if (index == 0)
+               {
+                       __accountId = -1;
+                       __mailboxId = -1;
+                       __mailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+                       __pPresentationModel = AllMailsPresentationModel::GetInstance();
+                       __pBaseListViewItemProvider->SetPresentationModel(__pPresentationModel);
+                       __pPresentationModel->FetchData(__accountId, __mailboxId, __mailboxType); // Fetches data from all accounts corresponding to the mailbox type
+               }
+               else
+               {
+                       EmailAccount* pAccount = __pPresentationModel->GetAccountByIndex(index-1);
+
+                       if (pAccount != null)
+                       {
+                               __accountId = pAccount->GetAccountId();
+                               __pPresentationModel = InboxPresentationModel::GetInstance();
+                               __pBaseListViewItemProvider->SetPresentationModel(__pPresentationModel);
+                               __mailboxId = __pPresentationModel->GetMailboxIdByType(__accountId, EMAIL_MAILBOX_TYPE_INBOX);
+                               __pPresentationModel->FetchData(__accountId); // Fetches data for the account id
+                               __mailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+                       }
+               }
+
+               __mailboxViewType = INBOX_VIEW;
+               __pPresentationModel->SortBy(__viewByType);
+
+               __pMailGroupedListView->UpdateList();
+
+               PopulateHeader();
+
+               GetHeader()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+               GetHeader()->SetButtonEnabled(BUTTON_POSITION_RIGHT, true);
+               GetFooter()->SetEnabled(true);
+
+               GetHeader()->Invalidate(true);
+               GetFooter()->Invalidate(true);
+
+               __pAccountsListPanel->SetShowState(false);
+//             __pAccountsListPanel->GetControlAnimator()->StartUserAnimation(ANIMATION_TARGET_ALPHA, IntegerAnimation(1, 0, 250, ANIMATION_INTERPOLATOR_LINEAR));
+               __pMailGroupedListView->SetEnabled(true);
+               SetFocus();
+       }
+       else
+       {
+               GetHeader()->SetButtonEnabled(BUTTON_POSITION_LEFT, true);
+               GetHeader()->SetButtonEnabled(BUTTON_POSITION_RIGHT, true);
+               GetFooter()->SetEnabled(true);
+
+               GetHeader()->Invalidate(true);
+               GetFooter()->Invalidate(true);
+
+               __pAccountsListPanel->SetShowState(false);
+//             __pAccountsListPanel->GetControlAnimator()->StartUserAnimation(ANIMATION_TARGET_ALPHA, IntegerAnimation(1, 0, 250, ANIMATION_INTERPOLATOR_LINEAR));
+               __pMailGroupedListView->SetEnabled(true);
+               SetFocus();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+MailListForm::OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction)
+{
+
+}
+
+void
+MailListForm::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status)
+{
+
+}
+
+void
+MailListForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER");
+
+       if (__mode == EDIT_MODE)
+       {
+               FloatDimension d = FloatDimension(__pMailGroupedListView->GetWidthF(), this->GetClientAreaBoundsF().height -__pSelectedLabel->GetHeightF());
+               __pMailGroupedListView->SetSize(CoordinateSystem::AlignToDevice(d));
+
+//             __pMailGroupedListView->SetSize(__pMailGroupedListView->GetWidth(), this->GetClientAreaBounds().height -__pSelectedLabel->GetHeight());
+
+               if(__pAccountsListPanel->GetShowState() == true)
+               {
+                       __pAccountsListPanel->SetSize(Dimension(__pAccountsListPanel->GetWidth(), __pAccountsListPanel->GetHeight() - __pSelectedLabel->GetHeight()));
+               }
+
+       }
+       else
+       {
+                if(!(((__prevOrientation == ORIENTATION_STATUS_PORTRAIT) && (orientationStatus == ORIENTATION_STATUS_PORTRAIT_REVERSE)) ||
+               ((__prevOrientation == ORIENTATION_STATUS_PORTRAIT_REVERSE) && (orientationStatus == ORIENTATION_STATUS_PORTRAIT))))
+                        __pMailGroupedListView->SetSize(__pMailGroupedListView->GetWidth(), this->GetClientAreaBounds().height);
+       }
+
+       if (__pAccountsListPanel->GetShowState() == true)
+       {
+               __pAccountsListPanel->Invalidate(true);
+               __pAccountsListView->UpdateList();
+       }
+
+       __prevOrientation = orientationStatus;
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+MailListForm::OnProgressPopupCanceled(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pDownloadAttachmentsPopup != null && __pDownloadAttachmentsPopup->GetShowState() == true)
+       {
+               AppLogDebug("User cancelled download of attachments");
+
+               if (__pAttachmentDownloadHandleMap != null)
+               {
+                       IMapEnumerator* pMapEnum = __pAttachmentDownloadHandleMap->GetMapEnumeratorN();
+
+                       if (pMapEnum != null)
+                       {
+                               while (!IsFailed(pMapEnum->MoveNext()))
+                               {
+                                       int accountId = static_cast<Integer*>(pMapEnum->GetKey())->ToInt();
+                                       int handle = static_cast<Integer*>(pMapEnum->GetValue())->ToInt();
+                                       __pPresentationModel->CancelJob(accountId, handle, EMAIL_CANCELED_BY_USER);
+                               }
+                               delete pMapEnum;
+                       }
+               }
+
+               if (__pAttachmentDownloadHandleMap != null)
+               {
+                       __pAttachmentDownloadHandleMap->RemoveAll(true);
+                       delete __pAttachmentDownloadHandleMap;
+                       __pAttachmentDownloadHandleMap = null;
+               }
+
+               __futureAction = EmailTypesNS::NONE;
+               __downloadAttachments = 0;
+               __userCancelledAttachmentDownload = true;
+
+               if (__pDownloadAttachmentsPopup != null)
+               {
+                       __pDownloadAttachmentsPopup->SetShowState(false);
+               }
+
+               EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+               Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+bool
+MailListForm::IsAttachmentDownload(const EmailMessageItem* pDetailedMail)
+{
+       AppLogDebug("ENTER, pDetailedMsg:(%x)", pDetailedMail);
+       AppLogDebugIf(pDetailedMail != null, "mailId:(%d)", pDetailedMail->GetMailId());
+
+       ArrayList* pAttachments = __pPresentationModel->GetAllAttachmentListN(pDetailedMail->GetMailId());
+
+       for (int i=0; i<pAttachments->GetCount(); i++)
+       {
+               EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(pAttachments->GetAt(i));
+
+               if (pTmpAttachment->GetSaveStatus() == false)
+               {
+                       pAttachments->RemoveAll(true);
+                       delete pAttachments;
+
+                       AppLogDebug("EXIT, returning false");
+                       return false;
+               }
+       }
+
+       pAttachments->RemoveAll(true);
+       delete pAttachments;
+
+       AppLogDebug("EXIT, returning true");
+       return true;
+}
+
+void
+MailListForm::DownloadAllAttachments(const EmailMessageItem* pDetailedMail, DownloadInitiatorMode downloadMode)
+{
+       AppLogDebug("ENTER, pDetailedMsg:(%x)", pDetailedMail);
+       AppLogDebugIf(pDetailedMail != null, "mailId:(%d)", pDetailedMail->GetMailId());
+
+       result r = E_SUCCESS;
+
+       __downloadAttachments = 0;
+
+       if (__pDownloadAttachmentsPopup == null)
+       {
+               __pDownloadAttachmentsPopup = new (std::nothrow) ProgressPopup();
+               __pDownloadAttachmentsPopup->Construct(true, false);
+               __pDownloadAttachmentsPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING"));
+               __pDownloadAttachmentsPopup->AddProgressPopupEventListener(*this);
+       }
+
+       __pDownloadAttachmentsPopup->SetShowState(true);
+       __pDownloadAttachmentsPopup->Show();
+       EmailApp::GetInstance()->SetDownloadAttachmentPopupStatus(pDetailedMail->GetMailId(), downloadMode);
+
+       if (__pAttachmentDownloadHandleMap == null)
+       {
+               __pAttachmentDownloadHandleMap = new (std::nothrow) HashMap();
+               __pAttachmentDownloadHandleMap->Construct();
+       }
+
+       __pAttachmentDownloadHandleMap->RemoveAll(true);
+
+       ArrayList* pAttachments = __pPresentationModel->GetAllAttachmentListN(pDetailedMail->GetMailId());
+
+       for (int i=0; i<pAttachments->GetCount(); i++)
+       {
+               int handle;
+               EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(pAttachments->GetAt(i));
+
+               if (pTmpAttachment->GetSaveStatus() == false)
+               {
+                       __downloadAttachments++;
+                       r = __pPresentationModel->DownloadAttachment(pDetailedMail->GetMailId(), i+1, handle);
+
+                       if (r == E_SUCCESS)
+                       {
+                               AppLogDebug("Adding accountId:(%d), handle:(%d) to map", pDetailedMail->GetAccountId(), handle);
+                               r = __pAttachmentDownloadHandleMap->Add(new (std::nothrow) Integer(pDetailedMail->GetAccountId()), new (std::nothrow) Integer(handle));
+                               AppLogDebugIf(r != E_SUCCESS, "Failed to add attachment download handle to map");
+                       }
+               }
+       }
+
+       pAttachments->RemoveAll(true);
+       delete pAttachments;
+
+       AppLogDebug("EXIT, download attachment count:(%d)", __downloadAttachments);
+}
+
+bool
+MailListForm::OnKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return false;
+}
+
+bool
+MailListForm::OnKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+
+       if (keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC)
+       {
+               if (__pDeleteConfirmationPopup != null && __pDeleteConfirmationPopup->GetShowState() == true)
+               {
+                       AppLogDebug("Delete popup");
+                       EmailApp::GetInstance()->ClearShowDeletePopupStatus();
+
+                       __pDeleteConfirmationPopup->SetShowState(false);
+                       Invalidate(true);
+               }
+               else if (__pSortByPopup != null && __pSortByPopup->GetShowState() == true)
+               {
+                       AppLogDebug("sort by popup");
+                       __pSortByPopup->SetShowState(false);
+                       Invalidate(true);
+               }
+               else if (__pMarkAllAsPopup != null && __pMarkAllAsPopup->GetShowState() == true)
+               {
+                       AppLogDebug("Mark all as popup");
+                       __pMarkAllAsPopup->SetShowState(false);
+                       Invalidate(true);
+               }
+               else if (__pSetAllAsPopup != null && __pSetAllAsPopup->GetShowState() == true)
+               {
+                       AppLogDebug("set all as popup");
+                       __pSetAllAsPopup->SetShowState(false);
+                       Invalidate(true);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return false;
+}
+
+bool
+MailListForm::OnPreviewKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return false;
+}
+
+bool
+MailListForm::OnPreviewKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return false;
+}
diff --git a/src/EmMailSyncThread.cpp b/src/EmMailSyncThread.cpp
new file mode 100755 (executable)
index 0000000..95b3e6f
--- /dev/null
@@ -0,0 +1,381 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * EmMailSyncThread.cpp
+ *
+ */
+
+#include <cstdlib>
+#include "EmTypes.h"
+#include "EmMailSyncThread.h"
+#include "EmEmailSettingProvider.h"
+#include <FApp.h>
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+
+/***************Mail Notification Thread Implementation*********************/
+MailNotificationThread* MailNotificationThread::__pInstance = null;
+
+MailNotificationThread*
+MailNotificationThread::GetInstance()
+{
+       if(__pInstance == null)
+       {
+               CreateInstance();
+       }
+       return __pInstance;
+}
+
+DBusHandlerResult
+MailNotificationThread::SignalHandler(DBusConnection *pConn, DBusMessage *pMsg, void *user_data)
+{
+       AppLogDebug("ENTER");
+
+       DBusError error;
+       int subtype = 0;
+
+       if (dbus_message_is_signal(pMsg, "User.Email.StorageChange", "email"))
+       {
+               AppLogDebug("Got Storage Change");
+               int data1, data2, data4;
+               char *data3 = NULL;
+
+               dbus_error_init(&error);
+               dbus_message_get_args(pMsg, &error, DBUS_TYPE_INT32, &subtype, DBUS_TYPE_INT32, &data1, DBUS_TYPE_INT32, &data2, DBUS_TYPE_STRING, &data3, DBUS_TYPE_INT32, &data4, DBUS_TYPE_INVALID);
+               AppLogDebug("Signal:(%d), AccountId:(%d), MailId:(%d), data:(%s), ThreadId:(%d)", subtype, data1, data2, data3, data4);
+
+               if(subtype == NOTI_MAIL_DELETE_FINISH)
+               {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+                       pArgs->Add((new (std::nothrow) Integer(data1)));
+                       pArgs->Add((new (std::nothrow) String(data3)));
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_DELETE_FINISHED, pArgs);
+               }
+               else if (subtype == NOTI_MAIL_MOVE_FINISH)
+               {
+                       int index=0, count=0;
+                       int fromMailboxId, toMailboxId;
+                       char* pMailId = null;
+                       char pDelim[2] = ",";
+
+                       HashMap* pMailIdMap = new HashMap();
+                       pMailIdMap->Construct();
+
+                       sscanf(data3,"%d%*c%d%*c%*s", &fromMailboxId, &toMailboxId);
+                       AppLogDebug("EmailApp::Signal::from mbox:(%d), to mbox:(%d)", fromMailboxId, toMailboxId);
+
+                       // skip the first two mailbox ids which are separated by 0x01.
+                       while (1)
+                       {
+                               if (data3[index] == 0x01)
+                               {
+                                       count++;
+                               }
+
+                               if (count == 2)
+                               {
+                                       break;
+                               }
+
+                               index++;
+                       }
+
+                       index++;
+
+                       pMailId = &data3[index];
+                       index=0;
+
+                       while (pMailId[0] != '\0')
+                       {
+                               sscanf(pMailId, "%d,%*s", &data2);
+                               AppLogDebug("mailid:(%d)", data2);
+
+                               pMailIdMap->Add(new (std::nothrow) Integer(data2), new (std::nothrow) Integer(data2));
+
+                               count = strcspn(pMailId, pDelim);
+                               pMailId += (count+1);
+                       }
+
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+                       pArgs->Add((new (std::nothrow) Integer(data1)));
+                       pArgs->Add(new (std::nothrow) Integer(fromMailboxId));
+                       pArgs->Add(new (std::nothrow) Integer(toMailboxId));
+                       pArgs->Add(pMailIdMap);
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_MAIL_MOVE_FINISHED, pArgs);
+               }
+               else if (subtype == NOTI_MAIL_MOVE_FAIL)
+               {
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_MAIL_MOVE_FAIL, null);
+               }
+               else if (subtype == NOTI_MAIL_ADD)
+               {
+                       int mailboxId;
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+                       sscanf(data3,"%d",&mailboxId);
+                       pArgs->Add((new (std::nothrow) Integer(data1)));
+                       pArgs->Add((new (std::nothrow) Integer(data2)));
+                       pArgs->Add((new (std::nothrow) Integer(mailboxId)));
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_MAIL_ADD, pArgs);
+               }
+               else if (subtype == NOTI_MAIL_UPDATE)
+               {
+                       int mailboxId;
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+                       sscanf(data3,"%d",&mailboxId);
+                       pArgs->Add((new (std::nothrow) Integer(data1)));
+                       pArgs->Add((new (std::nothrow) Integer(data2)));
+                       pArgs->Add((new (std::nothrow) Integer(mailboxId)));
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_MAIL_UPDATE, pArgs);
+               }
+               else if (subtype == NOTI_MAIL_FIELD_UPDATE)
+               {
+                       int mailId, index=0, count=0;
+                       char* pMailId = null;
+                       char pDelim[2] = ",";
+
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+
+                       while (1)
+                       {
+                               if (data3[index] == 0x01)
+                               {
+                                       break;
+                               }
+
+                               index++;
+                       }
+
+                       index++;
+                       pMailId = &data3[index];
+
+                       while (pMailId[0] != '\0')
+                       {
+                               sscanf(pMailId, "%d,%*s", &mailId);
+                               AppLogDebug("Got mailId:(%d)", mailId);
+
+                               pArgs->Add((new (std::nothrow) Integer(mailId)));
+
+                               count = strcspn(pMailId, pDelim);
+                               pMailId += (count+1);
+                       }
+
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_MAIL_FIELD_UPDATE, pArgs);
+               }
+               else if(subtype == NOTI_ACCOUNT_ADD)
+               {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+                       pArgs->Add((new (std::nothrow) Integer(data1)));
+                       App::GetInstance()->SendUserEvent(IDA_VALIDATE_AND_CREATE_ACCOUNT_FINISH, pArgs);
+               }
+
+               AppLogDebug("EXIT, signal handled");
+               return DBUS_HANDLER_RESULT_HANDLED;
+       }
+       else if (dbus_message_is_signal(pMsg, "User.Email.NetworkStatus", "email"))
+       {
+               AppLogDebug("Got Network Change");
+
+               int data1, data3, data4;
+               char* data2 = null;
+
+               dbus_error_init(&error);
+               dbus_message_get_args(pMsg, &error, DBUS_TYPE_INT32, &subtype, DBUS_TYPE_INT32, &data1, DBUS_TYPE_STRING, &data2, DBUS_TYPE_INT32, &data3, DBUS_TYPE_INT32, &data4, DBUS_TYPE_INVALID);
+               AppLogDebug("Signal:(%d), AccountId:(%d), data:(%s), MailId:(%d), ThreadId:(%d)", subtype, data1, data2, data3, data4);
+
+//             if(subtype == NOTI_VALIDATE_AND_CREATE_ACCOUNT_FINISH)
+//             {
+//                     ArrayList* pArgs = new (std::nothrow) ArrayList();
+//                     pArgs->Construct();
+//                     pArgs->Add((new (std::nothrow) Integer(data1)));
+//                     App::GetInstance()->SendUserEvent(IDA_VALIDATE_AND_CREATE_ACCOUNT_FINISH, pArgs);
+//             }
+//             else if (subtype == NOTI_VALIDATE_AND_CREATE_ACCOUNT_FAIL)
+//             {
+//                     App::GetInstance()->SendUserEvent(IDA_VALIDATE_AND_CREATE_ACCOUNT_FAIL, null);
+//             }
+               if (subtype == NOTI_VALIDATE_ACCOUNT_FINISH)
+               {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+
+                       pArgs->Add(new (std::nothrow) Integer(data3));
+                       App::GetInstance()->SendUserEvent(IDA_VALIDATE_ACCOUNT_FINISH, pArgs);
+               }
+               else if (subtype == NOTI_VALIDATE_ACCOUNT_FAIL)
+               {
+                       App::GetInstance()->SendUserEvent(IDA_VALIDATE_ACCOUNT_FAIL, null);
+               }
+               else if (subtype == NOTI_DOWNLOAD_BODY_FINISH)
+               {
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_DOWNLOAD_BODY_FINISH, null);
+               }
+               else if (subtype == NOTI_DOWNLOAD_BODY_FAIL)
+               {
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_DOWNLOAD_BODY_FAIL, null);
+               }
+               else if (subtype == NOTI_DOWNLOAD_ATTACH_START)
+               {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+                       pArgs->Add((new (std::nothrow) Integer(data3)));
+                       pArgs->Add((new (std::nothrow) Integer(data4)));
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_DOWNLOAD_ATTACH_START, pArgs);
+               }
+               else if (subtype == NOTI_DOWNLOAD_ATTACH_FINISH)
+               {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+                       pArgs->Add((new (std::nothrow) Integer(data3)));
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_DOWNLOAD_ATTACH_FINISH, pArgs);
+               }
+               else if (subtype == NOTI_DOWNLOAD_ATTACH_FAIL)
+               {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+                       pArgs->Add((new (std::nothrow) Integer(data3)));
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_DOWNLOAD_ATTACH_FAIL, pArgs);
+               }
+               else if (subtype == NOTI_DOWNLOAD_FINISH)
+               {
+                       int mailboxId;
+                       Integer::Parse(data2, mailboxId);
+
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+
+                       pArgs->Add(new (std::nothrow) Integer(data1));
+                       pArgs->Add(new (std::nothrow) Integer(mailboxId));
+                       App::GetInstance()->SendUserEvent(IDA_NOTI_DOWNLOAD_FINISH, pArgs);
+               }
+               else if (subtype == NOTI_SYNC_IMAP_MAILBOX_LIST_FINISH)
+               {
+                       App::GetInstance()->SendUserEvent(IDA_SYNC_IMAP_MAILBOX_LIST_FINISH, null);
+               }
+               else if (subtype == NOTI_SYNC_IMAP_MAILBOX_LIST_FAIL)
+               {
+                       App::GetInstance()->SendUserEvent(IDA_SYNC_IMAP_MAILBOX_LIST_FAIL, null);
+               }
+
+               AppLogDebug("EXIT, signal handled");
+               return DBUS_HANDLER_RESULT_HANDLED;
+       }
+
+       AppLogDebug("EXIT, signal not handled");
+       return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
+}
+
+void
+MailNotificationThread::DestroyInstance()
+{
+       if(__pInstance != null)
+       {
+               delete __pInstance;
+               __pInstance = null; // null is needed here since we may call GetInstance() sometime later on.
+       }
+}
+
+void
+MailNotificationThread::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pInstance = new (std::nothrow) MailNotificationThread();
+       r = __pInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInstance;
+               __pInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+MailNotificationThread::MailNotificationThread()
+       : __pConn(null)
+{
+       // empty implementation
+}
+
+MailNotificationThread::~MailNotificationThread()
+{
+       // empty implementation
+}
+
+result
+MailNotificationThread::Construct()
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       r = EventDrivenThread::Construct();
+       if(r == E_SUCCESS)
+       {
+               DBusError err;
+               dbus_error_init(&err);
+               __pConn = dbus_bus_get(DBUS_BUS_SYSTEM, &err);
+
+               if (dbus_error_is_set(&err))
+               {
+                       AppLogDebug("EmailApp::Signal::Connection Error (%s)", err.message);
+                       dbus_error_free(&err);
+                       r = E_FAILURE;
+               }
+               else
+               {
+                       AppLogDebug("EmailApp::Signal::Connection Success!");
+               }
+               
+               dbus_bus_add_match(__pConn, "type='signal',interface='User.Email.StorageChange'", &err); // see signals from the given interface
+               dbus_connection_flush(__pConn);
+
+               if (dbus_error_is_set(&err))
+               {
+                       AppLogDebug("EmailApp::Signal::Match Error for StorageChange (%s)", err.message);
+                       r = E_FAILURE;
+               }
+
+               dbus_bus_add_match(__pConn, "type='signal',interface='User.Email.NetworkStatus'", &err); // see signals from the given interface
+               dbus_connection_flush(__pConn);
+
+               if (dbus_error_is_set(&err))
+               {
+                       AppLogDebug("EmailApp::Signal::Match Error for NetworkStatus (%s)", err.message);
+                       r = E_FAILURE;
+               }
+
+               dbus_connection_add_filter(__pConn, MailNotificationThread::SignalHandler, null, null);
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
diff --git a/src/EmMainFrame.cpp b/src/EmMainFrame.cpp
new file mode 100755 (executable)
index 0000000..48907d9
--- /dev/null
@@ -0,0 +1,53 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+
+/**
+ * Name        : EmailFrame
+ * Version     :
+ * Vendor      :
+ * Description :
+ */
+
+#include "EmMainFrame.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+EmailFrame::EmailFrame(void)
+{
+}
+
+EmailFrame::~EmailFrame(void)
+{
+}
+
+result
+EmailFrame::OnInitializing(void)
+{
+       return E_SUCCESS;
+}
+
+result
+EmailFrame::OnTerminating(void)
+{
+       result r = E_SUCCESS;
+       // TODO:
+       // Add your termination code here
+       return r;
+}
+
diff --git a/src/EmManualSetUpForm.cpp b/src/EmManualSetUpForm.cpp
new file mode 100755 (executable)
index 0000000..1d01f3d
--- /dev/null
@@ -0,0 +1,1680 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmManualSetupForm.cpp
+ * @brief      EmManualSetupForm lets the user to give advanced settings while adding account.
+ */
+
+#include <cwctype>
+#include <FSocial.h>
+
+#include "EmEmailApp.h"
+#include "EmManualSetUpForm.h"
+#include "EmNativeMailboxManager.h"
+#include "EmInboxPresentationModel.h"
+#include "EmTypes.h"
+#include "EmStateInfo.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Social;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+const int SECTION_COUNT=3;
+const int BASIC_SETTINGS_GROUP_ITEM_COUNT=3;
+
+enum
+{
+       BASIC_SETTINGS_GROUP,
+       INCOMING_SERVER_GROUP,
+       OUTGOING_SERVER_GROUP,
+};
+
+enum
+{
+       ACCOUNT_NAME_ITEM,
+       USER_NAME_ITEM,
+       PASSWORD_ITEM
+};
+
+enum
+{
+       INCOMING_SERVER_TYPE_ITEM,
+       INCOMING_SERVER_TYPE_POP3_ITEM,
+       INCOMING_SERVER_TYPE_IMAP4_ITEM,
+       INCOMING_SERVER_IP_ITEM,
+       INCOMING_SERVER_PORT_ITEM,
+       INCOMING_SERVER_SECURE_CONNECTION_ITEM,
+       INCOMING_SERVER_SECURE_CONNECTION_OFF_ITEM,
+       INCOMING_SERVER_SECURE_CONNECTION_SSL_ITEM,
+       INCOMING_SERVER_SECURE_CONNECTION_TLS_ITEM
+};
+
+enum
+{
+       OUTGOING_SERVER_IP_ITEM,
+       OUTGOING_SERVER_PORT_ITEM,
+       OUTGOING_SERVER_SECURE_CONNECTION_ITEM,
+       OUTGOING_SERVER_SECURE_CONNECTION_OFF_ITEM,
+       OUTGOING_SERVER_SECURE_CONNECTION_SSL_ITEM,
+       OUTGOING_SERVER_SECURE_CONNECTION_TLS_ITEM
+};
+
+ManualSetUpForm::ManualSetUpForm(void)
+       : __addAccountId(-1)
+       , __addAccountSvcId(-1)
+       , __validationHandle(-1)
+       , __incomingServerSecureConnection(0)
+       , __outgoingServerSecureConnection(0)
+       , __waitForNoti(false)
+       , __waitForValidateNoti(false)
+       , __waitForMailboxSyncNoti(false)
+       , __isKeyPadOpen(false)
+       , __mode(ACCOUNT_ADD_MODE)
+       , __incomingServerType(EMAIL_SERVER_TYPE_POP3)
+       , __pAccountNameField(null)
+       , __pUserNameField(null)
+       , __pPasswordField(null)
+       , __pIncomingServerIpField(null)
+       , __pIncomingServerPortField(null)
+       , __pOutgoingServerIpField(null)
+       , __pOutgoingServerPortField(null)
+       , __pProgressPopup(null)
+       , __pAccount(null)
+{
+       // empty implementation
+}
+
+ManualSetUpForm::~ManualSetUpForm(void)
+{
+       // empty implementation
+}
+
+bool
+ManualSetUpForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       r = Construct(IDL_MANUAL_SETUP_FORM);
+
+       AppLogDebug("EXIT r = %s", GetErrorMessage(r));
+       return true;
+}
+
+result
+ManualSetUpForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       Rectangle clientArea;
+
+       GetFooter()->AddActionEventListener(*this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+
+       SetFormBackEventListener(this);
+
+       __pIncomingServerList = new (std::nothrow) ArrayList();
+       __pIncomingServerList->Construct();
+
+       __pOutgoingServerList = new (std::nothrow) ArrayList();
+       __pOutgoingServerList->Construct();
+
+       __pMainSectionTableView = static_cast<SectionTableView*>(GetControl(IDC_MAIN_SECTIONTABLEVIEW, true));
+
+       __pProgressPopup = new (std::nothrow) ProgressPopup();
+       __pProgressPopup->Construct(false, false);
+       __pProgressPopup->SetPropagatedKeyEventListener(this);
+       __pProgressPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_POP_VALIDATING_ACCOUNT_ING"));
+       __pProgressPopup->AddProgressPopupEventListener(*this);
+
+       __pArrowBmpDown = App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BUTTON_EXPAND_CLOSED);
+       __pArrowBmpUp = App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BUTTON_EXPAND_OPENED);
+
+       AppLogDebug("EXIT r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+ManualSetUpForm::OnTerminating(void)
+{
+       delete __pProgressPopup;
+
+       delete __pIncomingServerList;
+
+       delete __pArrowBmpDown;
+       delete __pArrowBmpUp;
+
+       return E_SUCCESS;
+}
+
+void
+ManualSetUpForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+       AppLogDebug("ENTER");
+
+       int portNum;
+       int modalResult;
+       result r = E_SUCCESS;
+
+       if (actionId == IDA_FOOTER_MANUAL_SETUP_DONE)
+       {
+               EmailSettingsProvider* pEmailSettingsProvider = EmailSettingsProvider::GetInstance();
+
+               __pAccount->SetIncomingServerType(__incomingServerType);
+               __pAccount->SetIncomingServerSecureConnection(__incomingServerSecureConnection);
+               __pAccount->SetOutgoingServerSecureConnection(__outgoingServerSecureConnection);
+
+               if (__mode == ACCOUNT_ADD_MODE)
+               {
+                       if (pEmailSettingsProvider->IsAccountExists(__pAccount->GetUserEmailAddress()) == false)
+                       {
+                               String resourcePath;
+
+                               ShowPopup();
+
+                               __pAccount->SetAccountName(__pAccountNameField->GetText());
+                               resourcePath.Append(App::GetInstance()->GetAppResourcePath());
+
+                               if (__pAccountNameField->GetText() == L"Samsung")
+                               {
+                                       __pAccount->SetLogoIconPath(resourcePath + IDS_SAMSUNG_LOGO_FILE);
+                               }
+                               else if (__pAccountNameField->GetText() == L"Yahoo")
+                               {
+                                       __pAccount->SetLogoIconPath(resourcePath + IDS_YAHOO_LOGO_FILE);
+                               }
+                               else if (__pAccountNameField->GetText() == L"Google")
+                               {
+                                       __pAccount->SetLogoIconPath(resourcePath + IDS_GMAIL_LOGO_FILE);
+                               }
+                               else if (__pAccountNameField->GetText() == L"Hotmail" || __pAccountNameField->GetText() == L"Live")
+                               {
+                                       __pAccount->SetLogoIconPath(resourcePath + IDS_HOTMAIL_LOGO_FILE);
+                               }
+                               else if (__pAccountNameField->GetText() == L"Naver")
+                               {
+                                       __pAccount->SetLogoIconPath(resourcePath + IDS_NAVER_LOGO_FILE);
+                               }
+                               else
+                               {
+                                       __pAccount->SetLogoIconPath(resourcePath + IDS_DEFAULT_LOGO_FILE);
+                               }
+
+                               __pAccount->SetUserDisplayName(__pUserNameField->GetText());
+                               __pAccount->SetReplyToAddress(__pAccount->GetUserEmailAddress());
+                               __pAccount->SetReturnAddress(__pAccount->GetUserEmailAddress());
+
+                               __pAccount->SetIncomingServerUsername(__pUserNameField->GetText());
+                               __pAccount->SetIncomingServerPassword(__pPasswordField->GetText());
+                               __pAccount->SetOutgoingServerUsername(__pUserNameField->GetText());
+                               __pAccount->SetOutgoingServerPassword(__pPasswordField->GetText());
+
+                               __pAccount->SetIncomingServerAddr(__pIncomingServerIpField->GetText());
+                               Integer::Parse(__pIncomingServerPortField->GetText(), portNum);
+                               __pAccount->SetIncomingServerPortNum(portNum);
+
+                               __pAccount->SetOutgoingServerAddr(__pOutgoingServerIpField->GetText());
+                               Integer::Parse(__pOutgoingServerPortField->GetText(), portNum);
+                               __pAccount->SetOutgoingServerPortNum(portNum);
+
+                               if (__pAccount->GetOutgoingServerSecureConnection() != 0)
+                               {
+                                       __pAccount->SetOutgoingServerNeedAuthentication(1);
+                                       __pAccount->SetOutgoingServerUseSameAuthenticator(1);
+                               }
+
+                               r = pEmailSettingsProvider->ValidateAccount(__pAccount, __validationHandle);
+
+                               __waitForValidateNoti = true;
+
+                               if (r != E_SUCCESS)
+                               {
+                                       __waitForValidateNoti = false;
+
+                                       MessageBox msgBox;
+                                       HidePopup();
+                                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                                       msgBox.ShowAndWait(modalResult);
+
+                                       AppLogDebug("Validate failed with error:(%s)", GetErrorMessage(r));
+                               }
+                       }
+                       else
+                       {
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_ACCOUNT_ALREADY_EXISTS"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modalResult);
+                       }
+               }
+               else if (__mode == ACCOUNT_CONFIG_MODE)
+               {
+                       __pAccount->SetAccountName(__pAccountNameField->GetText());
+                       __pAccount->SetIncomingServerPassword(__pPasswordField->GetText());
+                       __pAccount->SetOutgoingServerPassword(__pPasswordField->GetText());
+
+                       __pAccount->SetIncomingServerAddr(__pIncomingServerIpField->GetText());
+                       Integer::Parse(__pIncomingServerPortField->GetText(), portNum);
+                       __pAccount->SetIncomingServerPortNum(portNum);
+
+                       __pAccount->SetOutgoingServerAddr(__pOutgoingServerIpField->GetText());
+                       Integer::Parse(__pOutgoingServerPortField->GetText(), portNum);
+                       __pAccount->SetOutgoingServerPortNum(portNum);
+
+                       if (__pAccount->GetOutgoingServerSecureConnection() != 0)
+                       {
+                               __pAccount->SetOutgoingServerNeedAuthentication(1);
+                               __pAccount->SetOutgoingServerUseSameAuthenticator(1);
+                       }
+
+                       r = pEmailSettingsProvider->UpdateAccount(__pAccount);
+
+                       //Terminate since this was an appcontrol call
+                       App::GetInstance()->Terminate();
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ManualSetUpForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+               const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       __pIncomingServerList->Add(new (std::nothrow) Integer(INCOMING_SERVER_TYPE_ITEM));
+       __pIncomingServerList->Add(new (std::nothrow) Integer(INCOMING_SERVER_IP_ITEM));
+       __pIncomingServerList->Add(new (std::nothrow) Integer(INCOMING_SERVER_PORT_ITEM));
+       __pIncomingServerList->Add(new (std::nothrow) Integer(INCOMING_SERVER_SECURE_CONNECTION_ITEM));
+
+       __pOutgoingServerList->Add(new (std::nothrow) Integer(OUTGOING_SERVER_IP_ITEM));
+       __pOutgoingServerList->Add(new (std::nothrow) Integer(OUTGOING_SERVER_PORT_ITEM));
+       __pOutgoingServerList->Add(new (std::nothrow) Integer(OUTGOING_SERVER_SECURE_CONNECTION_ITEM));
+
+       if ( pArgs != null)
+       {
+               int i=0;
+               __pAccount = static_cast<EmailAccount*>(pArgs->GetAt(i++));
+
+               if (pArgs->GetCount() == 2)
+               {
+                       __mode = (ManualSetupMode)(static_cast<Integer*>(pArgs->GetAt(i++))->ToInt());
+                       pArgs->RemoveAt(1, true);
+               }
+
+               if (__pAccount != null)
+               {
+                       Footer* pFooter = GetFooter();
+
+                       __incomingServerSecureConnection = __pAccount->GetIncomingServerSecureConnection();
+                       __outgoingServerSecureConnection = __pAccount->GetOutgoingServerSecureConnection();
+                       __incomingServerType = __pAccount->GetIncomingServerType();
+                       __pMainSectionTableView->SetItemProvider(this);
+                       __pMainSectionTableView->UpdateTableView();
+                       __pMainSectionTableView->AddSectionTableViewItemEventListener(*this);
+
+                       if (__pAccount->GetAccountName().IsEmpty() == false)
+                       {
+                               __pAccountNameField->SetText(__pAccount->GetAccountName());
+                       }
+                       else
+                       {
+                               String domainName = Utils::GetDomainName(__pAccount->GetUserEmailAddress());
+                               __pAccountNameField->SetText(domainName);
+                       }
+
+                       __pUserNameField->SetText(__pAccount->GetUserDisplayName());
+                       __pPasswordField->SetText(__pAccount->GetOutgoingServerPassword());
+
+                       __pIncomingServerIpField->SetText(__pAccount->GetIncomingServerAddr());
+                       __pIncomingServerPortField->SetText(Integer(__pAccount->GetIncomingServerPortNum()).ToString());
+
+                       __pOutgoingServerIpField->SetText(__pAccount->GetOutgoingServerAddr());
+                       __pOutgoingServerPortField->SetText(Integer(__pAccount->GetOutgoingServerPortNum()).ToString());
+
+                       if (__mode == ACCOUNT_ADD_MODE)
+                       {
+                               if (IsFieldsEmpty() == true)
+                               {
+                                       pFooter->SetItemEnabled(0, false);
+                               }
+                               else
+                               {
+                                       pFooter->SetItemEnabled(0, true);
+                               }
+                       }
+                       else
+                       {
+                               pFooter->SetItemEnabled(0, false);
+                       }
+
+                       __pAccount->SetServerType(SERVER_AUTO);
+                       pFooter->Invalidate(true);
+
+                       __pUserNameField->SetEnabled(false);
+                       __pAccountNameField->SetEnabled(false);
+                       __pPasswordField->SetEnabled(false);
+                       __pMainSectionTableView->SetItemEnabled(BASIC_SETTINGS_GROUP, ACCOUNT_NAME_ITEM, false);
+                       __pMainSectionTableView->SetItemEnabled(BASIC_SETTINGS_GROUP, USER_NAME_ITEM, false);
+                       __pMainSectionTableView->SetItemEnabled(BASIC_SETTINGS_GROUP, PASSWORD_ITEM, false);
+
+                       Invalidate(true);
+               }
+
+               pArgs->RemoveAll(false);
+               delete pArgs;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ManualSetUpForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+                                     const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER");
+
+       if (__pAccount != null && __mode != ACCOUNT_CONFIG_MODE)
+       {
+               delete __pAccount;
+               __pAccount = null;
+       }
+
+       __pIncomingServerList->RemoveAll(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+ManualSetUpForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+       AppLogDebug("ENTER");
+
+       if (__mode == ACCOUNT_ADD_MODE)
+       {
+               int portNum;
+
+               __pAccount->SetIncomingServerType(__incomingServerType);
+               __pAccount->SetIncomingServerSecureConnection(__incomingServerSecureConnection);
+               __pAccount->SetOutgoingServerSecureConnection(__outgoingServerSecureConnection);
+               __pAccount->SetAccountName(__pAccountNameField->GetText());
+               __pAccount->SetUserDisplayName(__pUserNameField->GetText());
+               __pAccount->SetIncomingServerUsername(__pUserNameField->GetText());
+               __pAccount->SetOutgoingServerUsername(__pUserNameField->GetText());
+
+               if (__pPasswordField->GetText().IsEmpty() == false)
+               {
+                       __pAccount->SetIncomingServerPassword(__pPasswordField->GetText());
+                       __pAccount->SetOutgoingServerPassword(__pPasswordField->GetText());
+               }
+
+
+               if (__pIncomingServerIpField->GetText().IsEmpty() == false)
+               {
+                       __pAccount->SetIncomingServerAddr(__pIncomingServerIpField->GetText());
+                       Integer::Parse(__pIncomingServerPortField->GetText(), portNum);
+                       __pAccount->SetIncomingServerPortNum(portNum);
+               }
+               else
+               {
+                       __pAccount->SetIncomingServerPortNum(0);
+               }
+
+               if (__pOutgoingServerIpField->GetText().IsEmpty() == false)
+               {
+                       __pAccount->SetOutgoingServerAddr(__pOutgoingServerIpField->GetText());
+                       Integer::Parse(__pOutgoingServerPortField->GetText(), portNum) ;
+                       __pAccount->SetOutgoingServerPortNum(portNum);
+               }
+               else
+               {
+                       __pAccount->SetOutgoingServerPortNum(0);
+               }
+       }
+
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+       pArgs->Add(__pAccount);
+       __pAccount = null;
+
+       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pArgs);
+
+       AppLogDebug("EXIT");
+}
+
+void
+ManualSetUpForm::OnTextValueChanged(const Control& source)
+{
+       AppLogDebug("ENTER");
+       Footer* pFooter = GetFooter();
+
+       if (IsFieldsEmpty() == true)
+       {
+               pFooter->SetItemEnabled(0, false);
+               __pAccount->SetServerType(SERVER_AUTO);
+       }
+       else
+       {
+               pFooter->SetItemEnabled(0, true);
+               __pAccount->SetServerType(SERVER_MANUAL);
+       }
+
+       pFooter->Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+void
+ManualSetUpForm::OnTextValueChangeCanceled(const Control& source)
+{
+       //Empty implementation
+}
+
+void
+ManualSetUpForm::OnProgressPopupCanceled(void)
+{
+       AppLogDebug("ENTER");
+
+//     Utils::CancelJob();
+       HidePopup();
+
+       AppLogDebug("EXIT");
+}
+
+void
+ManualSetUpForm::OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList *pArgs)
+{
+       AppLogDebug("ENTER, requestid:(%ld), pArgs:(%x)", requestId, pArgs);
+
+       EmailAccount* pAccount = null;
+       EmailApp* pEmailAppInstance = EmailApp::GetInstance();
+
+       if (__waitForNoti == true)
+       {
+               __waitForNoti = false;
+
+               if (requestId == IDA_VALIDATE_AND_CREATE_ACCOUNT_FINISH && pArgs != null)
+               {
+                       int mailboxId;
+                       int accountId = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+
+                       __pAccount->SetAccountId(accountId);
+
+                       if (__pAccount->GetIncomingServerType() == EMAIL_SERVER_TYPE_IMAP4)
+                       {
+                               result r = E_SUCCESS;
+
+                               __waitForMailboxSyncNoti = true;
+                               r = EmailMailboxManager::GetInstance()->SyncMailboxList(accountId);
+
+                               if (r != E_SUCCESS)
+                               {
+                                       HidePopup();
+
+                                       __waitForMailboxSyncNoti = false;
+                                       AppLogDebug("Failed to sync mailbox list");
+                               }
+                       }
+                       else
+                       {
+
+                               ArrayList* pArgs = new (std::nothrow) ArrayList();
+                               EmailSettingsProvider* pSettingsProvider = EmailSettingsProvider::GetInstance();
+
+                               EmailApp::GetInstance()->SetAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
+
+                               HidePopup();
+                               pSettingsProvider->InitializeNewAccount(accountId);
+
+                               if (pSettingsProvider->GetAccountCount() == 1)
+                               {
+                                       pSettingsProvider->SetDefaultAccountId(accountId);
+                                       AppLogDebug("Set default account id to:(%d)", accountId);
+                               }
+
+                               EmailMailboxManager::GetInstance()->SyncHeader(accountId, 0);
+
+                               if (pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_ADD_ACCOUNT || pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_SETTINGS)
+                               {
+                                       ArrayList* pSceneTransitionArgs = new (std::nothrow) ArrayList();
+                                       EmailSettingsProvider* pSettingsProvider = EmailSettingsProvider::GetInstance();
+
+                                       pSceneTransitionArgs->Construct();
+
+                                       pAccount = pSettingsProvider->GetAccountById(accountId);
+                                       pSceneTransitionArgs->Add(pAccount);
+                                       SceneManager::GetInstance()->ClearSceneHistory();
+                                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_ACCOUNT_CONFIG, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pSceneTransitionArgs);
+                               }
+                               else
+                               {
+                                       StateInfo* pStateInfo;
+                                       pStateInfo = new (std::nothrow) StateInfo();
+
+                                       mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(accountId, EMAIL_MAILBOX_TYPE_INBOX);
+                                       pArgs->Construct();
+                                       pArgs->Add(pStateInfo);
+
+                                       pStateInfo->accountId = accountId;
+                                       pStateInfo->mailboxId = mailboxId;
+                                       pStateInfo->pPresentationModel = InboxPresentationModel::GetInstance();
+                                       pStateInfo->mailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+
+                                       IListT<SceneId>* pSceneList = SceneManager::GetInstance()->GetSceneHistoryN();
+                                       if (pSceneList != null && pSceneList->GetCount())
+                                       {
+//                                             if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+                                               {
+                                                       if (pSceneList->Contains(IDSCN_INBOX) == true)
+                                                       {
+                                                               SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                                       }
+                                                       else
+                                                       {
+                                                               SceneManager::GetInstance()->ClearSceneHistory();
+                                                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                                       }
+                                               }
+
+                                               pSceneList->RemoveAll();
+                                               delete pSceneList;
+                                       }
+                                       else
+                                       {
+                                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                       }
+                               }
+                       }
+               }
+               else if (requestId == IDA_VALIDATE_AND_CREATE_ACCOUNT_FAIL)
+               {
+                       HidePopup();
+                       int modalRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalRes);
+               }
+       }
+       else if (__waitForValidateNoti == true)
+       {
+               int modalResult;
+               MessageBox msgBox;
+
+               if (requestId == IDA_VALIDATE_ACCOUNT_FINISH)
+               {
+                       int handle = -1;
+
+                       if (pArgs != null)
+                       {
+                               handle = static_cast<Integer*>(pArgs->GetAt(0))->ToInt();
+                       }
+
+                       if (handle == __validationHandle)
+                       {
+                               __waitForValidateNoti = false;
+                               __waitForNoti = true;
+                               result r = EmailSettingsProvider::GetInstance()->AddAccount(__pAccount, __addAccountId, __addAccountSvcId);
+
+                               if (r != E_SUCCESS)
+                               {
+                                       __waitForNoti = false;
+
+                                       HidePopup();
+                                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                                       msgBox.ShowAndWait(modalResult);
+
+                                       AppLogDebug("Add Account failed with error:(%s)", GetErrorMessage(r));
+                               }
+                       }
+               }
+               else if (requestId == IDA_VALIDATE_ACCOUNT_FAIL)
+               {
+                       __waitForValidateNoti = false;
+
+                       HidePopup();
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalResult);
+
+                       AppLogDebug("Validate Account failed");
+               }
+       }
+       else if (__waitForMailboxSyncNoti == true)
+       {
+               if (requestId == IDA_SYNC_IMAP_MAILBOX_LIST_FINISH)
+               {
+                       int accountId = __pAccount->GetAccountId();
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       EmailSettingsProvider* pSettingsProvider = EmailSettingsProvider::GetInstance();
+                       pSettingsProvider->InitializeNewAccount(accountId);
+
+                       if (pSettingsProvider->GetAccountCount() == 1)
+                       {
+                               pSettingsProvider->SetDefaultAccountId(accountId);
+                               AppLogDebug("Set default account id to:(%d)", accountId);
+                       }
+                       __waitForMailboxSyncNoti = false;
+
+                       HidePopup();
+                       pEmailAppInstance->SetAppControlResult(APP_CTRL_RESULT_SUCCEEDED);
+                       EmailMailboxManager::GetInstance()->SyncHeader(accountId, 0); // Do an initial mail fetch.
+
+                       if (pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_ADD_ACCOUNT || pEmailAppInstance->GetOperationType() == EMAIL_OPERATION_SETTINGS)
+                       {
+                               ArrayList* pSceneTransitionArgs = new (std::nothrow) ArrayList();
+                               EmailSettingsProvider* pSettingsProvider = EmailSettingsProvider::GetInstance();
+
+                               pSceneTransitionArgs->Construct();
+
+                               pAccount = pSettingsProvider->GetAccountById(accountId);
+                               pSceneTransitionArgs->Add(pAccount);
+                               SceneManager::GetInstance()->ClearSceneHistory();
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_ACCOUNT_CONFIG, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pSceneTransitionArgs);
+                       }
+                       else
+                       {
+                               StateInfo* pStateInfo;
+                               pStateInfo = new (std::nothrow) StateInfo();
+
+                               int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(accountId, EMAIL_MAILBOX_TYPE_INBOX);
+                               pArgs->Construct();
+                               pArgs->Add(pStateInfo);
+
+                               pStateInfo->accountId = accountId;
+                               pStateInfo->mailboxId = mailboxId;
+                               pStateInfo->pPresentationModel = InboxPresentationModel::GetInstance();
+                               pStateInfo->mailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+
+                               IListT<SceneId>* pSceneList = SceneManager::GetInstance()->GetSceneHistoryN();
+                               if (pSceneList != null && pSceneList->GetCount())
+                               {
+//                                     if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT || GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+                                       {
+                                               if (pSceneList->Contains(IDSCN_INBOX) == true)
+                                               {
+                                                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                               }
+                                               else
+                                               {
+                                                       SceneManager::GetInstance()->ClearSceneHistory();
+                                                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                                               }
+                                       }
+
+                                       pSceneList->RemoveAll();
+                                       delete pSceneList;
+                               }
+                               else
+                               {
+                                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_LEFT, SCENE_HISTORY_OPTION_NO_HISTORY, SCENE_DESTROY_OPTION_DESTROY), pArgs);
+                               }
+                       }
+               }
+               else if (requestId == IDA_SYNC_IMAP_MAILBOX_LIST_FAIL)
+               {
+                       int modalResult;
+                       MessageBox msgBox;
+                       __waitForMailboxSyncNoti = false;
+
+                       HidePopup();
+
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_UNABLE_TO_ADD_ACCOUNT"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modalResult);
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+ManualSetUpForm::ShowPopup(void)
+{
+       __pProgressPopup->SetShowState(true);
+       __pProgressPopup->Show();
+}
+
+void
+ManualSetUpForm::HidePopup(void)
+{
+       __pProgressPopup->SetShowState(false);
+       Invalidate(true);
+}
+
+bool
+ManualSetUpForm::IsFieldsEmpty(void)
+{
+       if (__pIncomingServerPortField->GetText().IsEmpty() == true ||
+               __pIncomingServerIpField->GetText().IsEmpty() == true ||
+               __pOutgoingServerIpField->GetText().IsEmpty() == true ||
+               __pOutgoingServerPortField->GetText().IsEmpty() == true ||
+               __pAccountNameField->GetText().IsEmpty() == true ||
+               __pUserNameField->GetText().IsEmpty() == true)
+       {
+               return true;
+       }
+       else
+       {
+               return false;
+       }
+}
+
+int
+ManualSetUpForm::GetSectionCount(void)
+{
+       return SECTION_COUNT;
+}
+
+int
+ManualSetUpForm::GetItemCount(int sectionIndex)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d)", sectionIndex);
+
+       int retVal = 0;
+       switch (sectionIndex)
+       {
+       case BASIC_SETTINGS_GROUP:
+               retVal = BASIC_SETTINGS_GROUP_ITEM_COUNT;
+               break;
+
+       case INCOMING_SERVER_GROUP:
+               retVal = __pIncomingServerList->GetCount();
+               break;
+
+       case OUTGOING_SERVER_GROUP:
+               retVal = __pOutgoingServerList->GetCount();
+               break;
+       }
+
+       AppLogDebug("EXIT, returning:(%d)", retVal);
+       return retVal;
+}
+
+TableViewItem*
+ManualSetUpForm::CreateItem(int sectionIndex, int itemIndex, int itemWidth)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       int index;
+
+       Color textColor(59,115,182);
+
+       Label* pLabel;
+       EditField* pEditField;
+       TableViewItem* pItem = null;
+
+       Rectangle bounds = Rectangle(0, 0, itemWidth, H_MANUAL_SETUP_ITEM);
+       RelativeLayout layout;
+       layout.Construct();
+
+       if (sectionIndex == BASIC_SETTINGS_GROUP)
+       {
+               pItem = new (std::nothrow) TableViewItem();
+               pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+               pEditField = new (std::nothrow) EditField();
+
+               switch (itemIndex)
+               {
+               case ACCOUNT_NAME_ITEM:
+                       __pAccountNameField = pEditField;
+                       pEditField->Construct(bounds, EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, 256, GROUP_STYLE_NONE);
+                       pEditField->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_ACCOUNT_NAME"));
+                       break;
+               case USER_NAME_ITEM:
+                       __pUserNameField = pEditField;
+                       pEditField->Construct(bounds, EDIT_FIELD_STYLE_EMAIL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, 256, GROUP_STYLE_NONE);
+                       pEditField->SetTitleText(Utils::GetResourceString(L"IDS_COM_BODY_USER_NAME"));
+                       break;
+               case PASSWORD_ITEM:
+                       __pPasswordField = pEditField;
+                       pEditField->Construct(bounds, EDIT_FIELD_STYLE_PASSWORD, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, 256, GROUP_STYLE_NONE);
+                       pEditField->SetTitleText(Utils::GetResourceString(L"IDS_COM_POP_PASSWORD"));
+                       break;
+               }
+
+               pEditField->SetTitleTextColor(EDIT_STATUS_NORMAL, textColor);
+               pEditField->SetTitleTextColor(EDIT_STATUS_PRESSED, textColor);
+               pEditField->SetTitleTextColor(EDIT_STATUS_HIGHLIGHTED, textColor);
+               pEditField->AddTextEventListener(*this);
+
+               pItem->AddControl(pEditField);
+               pItem->SetIndividualSelectionEnabled(pEditField, true);
+
+               layout.SetHorizontalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+               layout.SetVerticalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+       }
+       else if (sectionIndex == INCOMING_SERVER_GROUP)
+       {
+               index = static_cast<Integer*>(__pIncomingServerList->GetAt(itemIndex))->ToInt();
+
+               pItem = new (std::nothrow) TableViewItem();
+
+               switch (index)
+               {
+               case INCOMING_SERVER_TYPE_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+                       pItem->SetName(IDS_ITEM_CLOSED);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM/2), Utils::GetResourceString(L"IDS_EMAIL_BODY_INCOMING_MAIL_SERVER_TYPE"));
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,H_MANUAL_SETUP_ITEM/2,itemWidth, H_MANUAL_SETUP_ITEM/2), L"");
+                       pLabel->SetName(L"servertype");
+                       pLabel->SetTextColor(textColor);
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       if (__incomingServerType == EMAIL_SERVER_TYPE_POP3)
+                       {
+                               pLabel->SetText(L"POP3");
+                       }
+                       else if (__incomingServerType == EMAIL_SERVER_TYPE_IMAP4)
+                       {
+                               pLabel->SetText(L"IMAP4");
+                       }
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(itemWidth-GENERIC_OFFSET_16-64,(H_MANUAL_SETUP_ITEM-64)/2,64,64), L"");
+                       pLabel->SetBackgroundBitmap(*__pArrowBmpDown);
+                       pLabel->SetName(L"arrow");
+                       pItem->AddControl(pLabel);
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*pLabel, 0,GENERIC_OFFSET_16,0,0);
+                       break;
+
+               case INCOMING_SERVER_TYPE_POP3_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM), L"POP3");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+                       break;
+
+               case INCOMING_SERVER_TYPE_IMAP4_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM), L"IMAP4");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+                       break;
+
+               case INCOMING_SERVER_IP_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+                       pEditField = new (std::nothrow) EditField();
+                       pEditField->Construct(bounds, EDIT_FIELD_STYLE_URL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, 256, GROUP_STYLE_NONE);
+                       pEditField->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_INCOMING_SERVER"));
+                       pEditField->SetTitleTextColor(EDIT_STATUS_NORMAL, textColor);
+                       pEditField->SetTitleTextColor(EDIT_STATUS_PRESSED, textColor);
+                       pEditField->SetTitleTextColor(EDIT_STATUS_HIGHLIGHTED, textColor);
+                       pEditField->AddTextEventListener(*this);
+                       pEditField->AddKeypadEventListener(*this);
+                       pItem->AddControl(pEditField);
+                       pItem->SetIndividualSelectionEnabled(pEditField, true);
+
+                       layout.SetHorizontalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+                       layout.SetVerticalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+
+                       __pIncomingServerIpField = pEditField;
+                       break;
+
+               case INCOMING_SERVER_PORT_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+                       pEditField = new (std::nothrow) EditField();
+                       pEditField->Construct(bounds, EDIT_FIELD_STYLE_NUMBER, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, 256, GROUP_STYLE_NONE);
+                       pEditField->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_INCOMING_PORT"));
+                       pEditField->SetTitleTextColor(EDIT_STATUS_NORMAL, textColor);
+                       pEditField->SetTitleTextColor(EDIT_STATUS_PRESSED, textColor);
+                       pEditField->SetTitleTextColor(EDIT_STATUS_HIGHLIGHTED, textColor);
+                       pEditField->AddTextEventListener(*this);
+                       pEditField->AddKeypadEventListener(*this);
+                       pItem->AddControl(pEditField);
+                       pItem->SetIndividualSelectionEnabled(pEditField, true);
+
+                       layout.SetHorizontalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+                       layout.SetVerticalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+
+                       __pIncomingServerPortField = pEditField;
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+                       pItem->SetName(IDS_ITEM_CLOSED);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM/2), Utils::GetResourceString(L"IDS_EMAIL_BODY_SECURE_CONNECTION"));
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,H_MANUAL_SETUP_ITEM/2,itemWidth, H_MANUAL_SETUP_ITEM/2), L"");
+                       pLabel->SetName(L"secureconnection");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
+                       pLabel->SetTextColor(textColor);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       if (__incomingServerSecureConnection == 0)
+                       {
+                               pLabel->SetText(L"Off");
+                       }
+                       else if (__incomingServerSecureConnection == 1)
+                       {
+                               pLabel->SetText(L"SSL");
+                       }
+                       else if (__incomingServerSecureConnection == 2)
+                       {
+                               pLabel->SetText(L"TLS");
+                       }
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(itemWidth-GENERIC_OFFSET_16-64,(H_MANUAL_SETUP_ITEM-64)/2,64,64), L"");
+                       pLabel->SetBackgroundBitmap(*__pArrowBmpDown);
+                       pLabel->SetName(L"arrow");
+                       pItem->AddControl(pLabel);
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*pLabel, 0,GENERIC_OFFSET_16,0,0);
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_OFF_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM), L"Off");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_SSL_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM), L"SSL");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_TLS_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM), L"TLS");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+                       break;
+               }
+       }
+       else if (sectionIndex == OUTGOING_SERVER_GROUP)
+       {
+               index = static_cast<Integer*>(__pOutgoingServerList->GetAt(itemIndex))->ToInt();
+
+               pItem = new (std::nothrow) TableViewItem();
+
+               switch (index)
+               {
+               case OUTGOING_SERVER_IP_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+                       pEditField = new (std::nothrow) EditField();
+                       pEditField->Construct(bounds, EDIT_FIELD_STYLE_URL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, 256, GROUP_STYLE_NONE);
+                       pEditField->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_OUTGOING_SERVER"));
+                       pEditField->SetTitleTextColor(EDIT_STATUS_NORMAL, textColor);
+                       pEditField->SetTitleTextColor(EDIT_STATUS_PRESSED, textColor);
+                       pEditField->SetTitleTextColor(EDIT_STATUS_HIGHLIGHTED, textColor);
+                       pEditField->AddTextEventListener(*this);
+                       pEditField->AddKeypadEventListener(*this);
+                       pItem->AddControl(pEditField);
+                       pItem->SetIndividualSelectionEnabled(pEditField, true);
+
+                       layout.SetHorizontalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+                       layout.SetVerticalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+
+                       __pOutgoingServerIpField = pEditField;
+                       break;
+
+               case OUTGOING_SERVER_PORT_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+
+                       pEditField = new (std::nothrow) EditField();
+                       pEditField->Construct(bounds, EDIT_FIELD_STYLE_NUMBER, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_TOP, true, 256, GROUP_STYLE_NONE);
+                       pEditField->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_BODY_OUTGOING_PORT"));
+                       pEditField->SetTitleTextColor(EDIT_STATUS_NORMAL, textColor);
+                       pEditField->SetTitleTextColor(EDIT_STATUS_PRESSED, textColor);
+                       pEditField->SetTitleTextColor(EDIT_STATUS_HIGHLIGHTED, textColor);
+                       pEditField->AddTextEventListener(*this);
+                       pEditField->AddKeypadEventListener(*this);
+                       pItem->AddControl(pEditField);
+                       pItem->SetIndividualSelectionEnabled(pEditField, true);
+
+                       layout.SetHorizontalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+                       layout.SetVerticalFitPolicy(*pEditField, FIT_POLICY_PARENT);
+
+                       __pOutgoingServerPortField = pEditField;
+                       break;
+
+               case OUTGOING_SERVER_SECURE_CONNECTION_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_NORMAL);
+                       pItem->SetName(IDS_ITEM_CLOSED);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM/2), Utils::GetResourceString(L"IDS_EMAIL_BODY_SECURE_CONNECTION"));
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_BOTTOM);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,H_MANUAL_SETUP_ITEM/2,itemWidth, H_MANUAL_SETUP_ITEM/2), L"");
+                       pLabel->SetName(L"secureconnection");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_TOP);
+                       pLabel->SetTextColor(textColor);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+
+                       if (__outgoingServerSecureConnection == 0)
+                       {
+                               pLabel->SetText(L"Off");
+                       }
+                       else if (__outgoingServerSecureConnection == 1)
+                       {
+                               pLabel->SetText(L"SSL");
+                       }
+                       else if (__outgoingServerSecureConnection == 2)
+                       {
+                               pLabel->SetText(L"TLS");
+                       }
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(itemWidth-GENERIC_OFFSET_16-64,(H_MANUAL_SETUP_ITEM-64)/2,64,64), L"");
+                       pLabel->SetBackgroundBitmap(*__pArrowBmpDown);
+                       pLabel->SetName(L"arrow");
+                       pItem->AddControl(pLabel);
+                       layout.SetRelation(*pLabel, pItem, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+                       layout.SetMargin(*pLabel, 0,GENERIC_OFFSET_16,0,0);
+                       break;
+
+               case OUTGOING_SERVER_SECURE_CONNECTION_OFF_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM), L"Off");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+                       break;
+
+               case OUTGOING_SERVER_SECURE_CONNECTION_SSL_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM), L"SSL");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+                       break;
+
+               case OUTGOING_SERVER_SECURE_CONNECTION_TLS_ITEM:
+                       pItem->Construct(layout, Dimension(bounds.width, bounds.height), TABLE_VIEW_ANNEX_STYLE_RADIO);
+
+                       pLabel = new (std::nothrow) Label();
+                       pLabel->Construct(Rectangle(0,0,itemWidth, H_MANUAL_SETUP_ITEM), L"TLS");
+                       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+                       pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+                       pItem->AddControl(pLabel);
+                       layout.SetHorizontalFitPolicy(*pLabel, FIT_POLICY_PARENT);
+                       break;
+               }
+       }
+
+       layout.Update();
+
+       AppLogDebug("EXIT, item address:(%x)", pItem);
+       return pItem;
+}
+
+bool
+ManualSetUpForm::DeleteItem(int sectionIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("deleting item - sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       delete pItem;
+
+       return true;
+}
+
+void
+ManualSetUpForm::UpdateItem(int sectionIndex, int itemIndex, TableViewItem* pItem)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       Label* pLabel = null;
+
+       if (sectionIndex == INCOMING_SERVER_GROUP)
+       {
+               int index = static_cast<Integer*>(__pIncomingServerList->GetAt(itemIndex))->ToInt();
+
+               switch (index)
+               {
+               case INCOMING_SERVER_TYPE_ITEM:
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"servertype", true));
+                       if (__incomingServerType == EMAIL_SERVER_TYPE_POP3)
+                       {
+                               pLabel->SetText(L"POP3");
+                       }
+                       else if (__incomingServerType == EMAIL_SERVER_TYPE_IMAP4)
+                       {
+                               pLabel->SetText(L"IMAP4");
+                       }
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_ITEM:
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"secureconnection", true));
+                       if (__incomingServerSecureConnection == 0)
+                       {
+                               pLabel->SetText(L"Off");
+                       }
+                       else if (__incomingServerSecureConnection == 1)
+                       {
+                               pLabel->SetText(L"SSL");
+                       }
+                       else if (__incomingServerSecureConnection == 2)
+                       {
+                               pLabel->SetText(L"TLS");
+                       }
+                       break;
+               }
+       }
+       else if (sectionIndex == OUTGOING_SERVER_GROUP)
+       {
+               int index = static_cast<Integer*>(__pOutgoingServerList->GetAt(itemIndex))->ToInt();
+
+               switch (index)
+               {
+               case OUTGOING_SERVER_SECURE_CONNECTION_ITEM:
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"secureconnection", true));
+                       if (__outgoingServerSecureConnection == 0)
+                       {
+                               pLabel->SetText(L"Off");
+                       }
+                       else if (__outgoingServerSecureConnection == 1)
+                       {
+                               pLabel->SetText(L"SSL");
+                       }
+                       else if (__outgoingServerSecureConnection == 2)
+                       {
+                               pLabel->SetText(L"TLS");
+                       }
+                       break;
+               }
+       }
+
+       __pMainSectionTableView->Invalidate(true);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+String
+ManualSetUpForm::GetSectionHeader(int sectionIndex)
+{
+       AppLogDebug("ENTER");
+
+       String retVal;
+
+       if (sectionIndex == INCOMING_SERVER_GROUP)
+       {
+               retVal = Utils::GetResourceString(L"IDS_EMAIL_BODY_INCOMING_SETTINGS");
+       }
+       else if (sectionIndex == OUTGOING_SERVER_GROUP)
+       {
+               retVal = Utils::GetResourceString(L"IDS_EMAIL_BODY_OUTGOING_SETTINGS");
+       }
+
+       AppLogDebug("EXIT, returning:(%ls)", retVal.GetPointer());
+       return retVal;
+}
+
+bool
+ManualSetUpForm::HasSectionHeader(int sectionIndex)
+{
+       switch (sectionIndex)
+       {
+       case INCOMING_SERVER_GROUP: // fall through
+       case OUTGOING_SERVER_GROUP:
+               return true;
+
+       default:
+               return false;
+       }
+}
+
+String
+ManualSetUpForm::GetSectionFooter(int sectionIndex)
+{
+       return L"";
+}
+
+bool
+ManualSetUpForm::HasSectionFooter(int sectionIndex)
+{
+       return false;
+}
+
+int
+ManualSetUpForm::GetDefaultItemHeight(void)
+{
+       return H_MANUAL_SETUP_ITEM;
+}
+
+void
+ManualSetUpForm::OnSectionTableViewItemStateChanged(SectionTableView& tableView, int sectionIndex, int itemIndex, TableViewItem* pItem, TableViewItemStatus status)
+{
+       AppLogDebug("ENTER, sectionIndex:(%d), itemIndex:(%d)", sectionIndex, itemIndex);
+
+       int index;
+       Label* pLabel = null;
+       Footer* pFooter = GetFooter();
+
+       if (__isKeyPadOpen == true)
+       {
+               SetFocus();
+       }
+
+       if (sectionIndex == INCOMING_SERVER_GROUP)
+       {
+               index = static_cast<Integer*>(__pIncomingServerList->GetAt(itemIndex))->ToInt();
+
+               switch (index)
+               {
+               case INCOMING_SERVER_TYPE_ITEM:
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"arrow", true));
+
+                       if (pItem->GetName() == IDS_ITEM_CLOSED)
+                       {
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpUp);
+
+                               pItem->SetName(IDS_ITEM_OPEN);
+                               __pIncomingServerList->InsertAt(new (std::nothrow) Integer(INCOMING_SERVER_TYPE_POP3_ITEM), INCOMING_SERVER_TYPE_POP3_ITEM);
+                               __pIncomingServerList->InsertAt(new (std::nothrow) Integer(INCOMING_SERVER_TYPE_IMAP4_ITEM), INCOMING_SERVER_TYPE_IMAP4_ITEM);
+
+                               __pMainSectionTableView->RefreshItem(sectionIndex, INCOMING_SERVER_TYPE_POP3_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, INCOMING_SERVER_TYPE_IMAP4_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+
+                               if (__incomingServerType == EMAIL_SERVER_TYPE_POP3)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, INCOMING_SERVER_TYPE_POP3_ITEM, true);
+                               }
+                               else
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, INCOMING_SERVER_TYPE_IMAP4_ITEM, true);
+                               }
+                       }
+                       else if (pItem->GetName() == IDS_ITEM_OPEN)
+                       {
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpDown);
+
+                               pItem->SetName(IDS_ITEM_CLOSED);
+                               __pIncomingServerList->RemoveAt(INCOMING_SERVER_TYPE_IMAP4_ITEM, true);
+                               __pIncomingServerList->RemoveAt(INCOMING_SERVER_TYPE_POP3_ITEM, true);
+
+                               __pMainSectionTableView->RefreshItem(sectionIndex, INCOMING_SERVER_TYPE_IMAP4_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, INCOMING_SERVER_TYPE_POP3_ITEM, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                       }
+
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       break;
+
+               case INCOMING_SERVER_TYPE_POP3_ITEM:
+                       if (IsFieldsEmpty() == false && __pAccount->GetIncomingServerType() != EMAIL_SERVER_TYPE_POP3)
+                       {
+                               pFooter->SetItemEnabled(0, true);
+                       }
+
+                       __incomingServerType = EMAIL_SERVER_TYPE_POP3;
+//                     __pAccount->SetIncomingServerType(EMAIL_SERVER_TYPE_POP3);
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex, true); // pop3 item
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex+1, false); // imap4 item
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex-1, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // server type item
+                       __pMainSectionTableView->Invalidate(true);
+                       break;
+
+               case INCOMING_SERVER_TYPE_IMAP4_ITEM:
+                       if(IsFieldsEmpty() == false &&  __pAccount->GetIncomingServerType() != EMAIL_SERVER_TYPE_IMAP4)
+                       {
+                               pFooter->SetItemEnabled(0, true);
+                       }
+
+                       __incomingServerType = EMAIL_SERVER_TYPE_IMAP4;
+//                     __pAccount->SetIncomingServerType(EMAIL_SERVER_TYPE_IMAP4);
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex-1, false); // pop3 item
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex, true); // imap4 item
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex-2, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // server type item
+                       __pMainSectionTableView->Invalidate(true);
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_ITEM:
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"arrow", true));
+
+                       if (pItem->GetName() == IDS_ITEM_CLOSED)
+                       {
+                               int tmpSectionIndex, tmpItemIndex;
+                               int index = __pIncomingServerList->GetCount();
+
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpUp);
+
+                               pItem->SetName(IDS_ITEM_OPEN);
+                               __pIncomingServerList->Add(new (std::nothrow) Integer(INCOMING_SERVER_SECURE_CONNECTION_OFF_ITEM));
+                               __pIncomingServerList->Add(new (std::nothrow) Integer(INCOMING_SERVER_SECURE_CONNECTION_SSL_ITEM));
+                               __pIncomingServerList->Add(new (std::nothrow) Integer(INCOMING_SERVER_SECURE_CONNECTION_TLS_ITEM));
+
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index++, TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index++, TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index, TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+
+                               if (__incomingServerSecureConnection == 0)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, index-2, true);
+                               }
+                               else if (__incomingServerSecureConnection == 1)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, index-1, true);
+                               }
+                               else if (__incomingServerSecureConnection == 2)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, index, true);
+                               }
+
+                               __pMainSectionTableView->GetBottomDrawnItemIndex(tmpSectionIndex, tmpItemIndex);
+
+                               if (tmpSectionIndex == sectionIndex && tmpItemIndex != index)
+                               {
+                                       __pMainSectionTableView->ScrollToItem(sectionIndex, index, TABLE_VIEW_SCROLL_ITEM_ALIGNMENT_BOTTOM);
+                               }
+                       }
+                       else if (pItem->GetName() == IDS_ITEM_OPEN)
+                       {
+                               int index = __pIncomingServerList->GetCount();
+
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpDown);
+
+                               pItem->SetName(IDS_ITEM_CLOSED);
+                               __pIncomingServerList->RemoveItems(index-3, 3, true);
+
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index-1, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index-2, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index-3, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                       }
+
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_OFF_ITEM:
+                       if (IsFieldsEmpty() == false && __pAccount->GetIncomingServerSecureConnection() != 0)
+                       {
+                               pFooter->SetItemEnabled(0, true);
+                       }
+
+                       __incomingServerSecureConnection = 0;
+//                     __pAccount->SetIncomingServerSecureConnection(0);
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex, true);    // secure connection off
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex+1, false); // secure connection ssl
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex+2, false); // secure connection tls
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex-1, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // secure connection type item
+                       __pMainSectionTableView->Invalidate(true);
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_SSL_ITEM:
+                       if (IsFieldsEmpty() == false && __pAccount->GetIncomingServerSecureConnection() != 1)
+                       {
+                               pFooter->SetItemEnabled(0, true);
+                       }
+
+                       __incomingServerSecureConnection = 1;
+//                     __pAccount->SetIncomingServerSecureConnection(1);
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex-1, false); // secure connection off
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex, true);    // secure connection ssl
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex+1, false); // secure connection tls
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex-2, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // secure connection type item
+                       __pMainSectionTableView->Invalidate(true);
+                       break;
+
+               case INCOMING_SERVER_SECURE_CONNECTION_TLS_ITEM:
+                       if (IsFieldsEmpty() == false && __pAccount->GetIncomingServerSecureConnection() != 2)
+                       {
+                               pFooter->SetItemEnabled(0, true);
+                       }
+
+                       __incomingServerSecureConnection = 2;
+//                     __pAccount->SetIncomingServerSecureConnection(2);
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex-2, false); // secure connection off
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex-1, false); // secure connection ssl
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex, true);    // secure connection tls
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex-3, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // secure connection type item
+                       __pMainSectionTableView->Invalidate(true);
+                       break;
+               }
+       }
+       else if (sectionIndex == OUTGOING_SERVER_GROUP)
+       {
+               index = static_cast<Integer*>(__pOutgoingServerList->GetAt(itemIndex))->ToInt();
+
+               switch (index)
+               {
+               case OUTGOING_SERVER_SECURE_CONNECTION_ITEM:
+                       pLabel = static_cast<Label*>(pItem->GetControl(L"arrow", true));
+
+                       if (pItem->GetName() == IDS_ITEM_CLOSED)
+                       {
+                               int index = __pOutgoingServerList->GetCount();
+
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpUp);
+
+                               pItem->SetName(IDS_ITEM_OPEN);
+                               __pOutgoingServerList->Add(new (std::nothrow) Integer(OUTGOING_SERVER_SECURE_CONNECTION_OFF_ITEM));
+                               __pOutgoingServerList->Add(new (std::nothrow) Integer(OUTGOING_SERVER_SECURE_CONNECTION_SSL_ITEM));
+                               __pOutgoingServerList->Add(new (std::nothrow) Integer(OUTGOING_SERVER_SECURE_CONNECTION_TLS_ITEM));
+
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index++, TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index++, TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index,   TABLE_VIEW_REFRESH_TYPE_ITEM_ADD);
+
+                               if (__outgoingServerSecureConnection == 0)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, index-2, true);
+                               }
+                               else if (__outgoingServerSecureConnection == 1)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, index-1, true);
+                               }
+                               else if (__outgoingServerSecureConnection == 2)
+                               {
+                                       __pMainSectionTableView->SetItemChecked(sectionIndex, index, true);
+                               }
+
+                               __pMainSectionTableView->ScrollToItem(sectionIndex, index, TABLE_VIEW_SCROLL_ITEM_ALIGNMENT_BOTTOM);
+                       }
+                       else if (pItem->GetName() == IDS_ITEM_OPEN)
+                       {
+                               int index = __pOutgoingServerList->GetCount();
+
+                               pLabel->SetBackgroundBitmap(*__pArrowBmpDown);
+
+                               pItem->SetName(IDS_ITEM_CLOSED);
+                               __pOutgoingServerList->RemoveItems(index-3, 3, true);
+
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index-1, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index-2, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                               __pMainSectionTableView->RefreshItem(sectionIndex, index-3, TABLE_VIEW_REFRESH_TYPE_ITEM_REMOVE);
+                       }
+
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY);
+                       break;
+
+               case OUTGOING_SERVER_SECURE_CONNECTION_OFF_ITEM:
+                       if (IsFieldsEmpty() == false && __pAccount->GetOutgoingServerSecureConnection() != 0)
+                       {
+                               pFooter->SetItemEnabled(0, true);
+                       }
+
+                       __outgoingServerSecureConnection = 0;
+//                     __pAccount->SetOutgoingServerSecureConnection(0);
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex, true);    // secure connection off
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex+1, false); // secure connection ssl
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex+2, false); // secure connection tls
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex-1, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // secure connection type item
+                       __pMainSectionTableView->Invalidate(true);
+                       break;
+
+               case OUTGOING_SERVER_SECURE_CONNECTION_SSL_ITEM:
+                       if (IsFieldsEmpty() == false && __pAccount->GetOutgoingServerSecureConnection() != 1)
+                       {
+                               pFooter->SetItemEnabled(0, true);
+                       }
+
+                       __outgoingServerSecureConnection = 1;
+//                     __pAccount->SetOutgoingServerSecureConnection(1);
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex-1, false); // secure connection off
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex, true);    // secure connection ssl
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex+1, false); // secure connection tls
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex-2, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // secure connection type item
+                       __pMainSectionTableView->Invalidate(true);
+                       break;
+
+               case OUTGOING_SERVER_SECURE_CONNECTION_TLS_ITEM:
+                       if (IsFieldsEmpty() == false && __pAccount->GetOutgoingServerSecureConnection() != 2)
+                       {
+                               pFooter->SetItemEnabled(0, true);
+                       }
+
+                       __outgoingServerSecureConnection = 2;
+//                     __pAccount->SetOutgoingServerSecureConnection(2);
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex-2, false); // secure connection off
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex-1, false); // secure connection ssl
+                       __pMainSectionTableView->SetItemChecked(sectionIndex, itemIndex, true);    // secure connection tls
+                       __pMainSectionTableView->RefreshItem(sectionIndex, itemIndex-3, TABLE_VIEW_REFRESH_TYPE_ITEM_MODIFY); // secure connection type item
+                       __pMainSectionTableView->Invalidate(true);
+                       break;
+               }
+       }
+       pFooter->Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+void
+ManualSetUpForm::OnSectionTableViewContextItemActivationStateChanged(SectionTableView& tableView, int sectionIndex, int itemIndex, TableViewContextItem* pContextItem, bool activated)
+{
+       // Empty Implementation
+}
+
+
+bool
+ManualSetUpForm::OnKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+bool
+ManualSetUpForm::OnKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+bool
+ManualSetUpForm::OnPreviewKeyPressed(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+bool
+ManualSetUpForm::OnPreviewKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyEventInfo.GetKeyCode());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+ManualSetUpForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
+{
+       // Empty implementation
+}
+
+void
+ManualSetUpForm::OnKeypadOpened(Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER");
+
+       __isKeyPadOpen = true;
+
+       AppLogDebug("EXIT");
+}
+
+void
+ManualSetUpForm::OnKeypadClosed(Tizen::Ui::Control& source)
+{
+       AppLogDebug("ENTER");
+
+       __isKeyPadOpen = false;
+
+       AppLogDebug("EXIT");
+}
+
+void
+ManualSetUpForm::OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction)
+{
+       // Empty implementation
+}
diff --git a/src/EmMarkAllAsListViewItemProvider.cpp b/src/EmMarkAllAsListViewItemProvider.cpp
new file mode 100755 (executable)
index 0000000..54b9532
--- /dev/null
@@ -0,0 +1,182 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmMarkAllAsListViewItemProvider.cpp
+ * @brief      This is the implementation of IListViewItemProvider and IListViewItemEventListener for the custom popup.
+ */
+
+#include <FSystem.h>
+#include "EmMarkAllAsListViewItemProvider.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+MarkAllAsListViewItemProvider::MarkAllAsListViewItemProvider()
+       : __fontSize(44.0f)
+       , __itemHeight(150.0f)
+{
+       //Empty implementation
+}
+
+int
+MarkAllAsListViewItemProvider::GetItemCount(void)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT");
+       // returns the number of options
+       return 2;
+}
+
+Tizen::Ui::Controls::ListItemBase*
+MarkAllAsListViewItemProvider::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+//     result r = E_SUCCESS;
+//     SimpleItem* pSimpleItem = null;
+//
+//     pSimpleItem = new (std::nothrow) SimpleItem();
+//     pSimpleItem->Construct(Dimension(itemWidth, H_SORT_BY_LISTVIEW_ELEMENT), LIST_ANNEX_STYLE_NORMAL);
+//
+
+       CustomItem* pItem = new (std::nothrow) CustomItem();
+
+       pItem->Construct(Dimension(itemWidth, __itemHeight), LIST_ANNEX_STYLE_NORMAL);
+
+       switch (index)
+       {
+       case 0:
+       {
+//             r = pSimpleItem->SetElement(Utils::GetResourceString(L"IDS_EMAIL_OPT_READ_M_MARK_AS_ABB"));
+               pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_READ_M_MARK_AS_ABB"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+       break;
+
+       case 1:
+       {
+//             r = pSimpleItem->SetElement(Utils::GetResourceString(L"IDS_EMAIL_OPT_UNREAD"));
+               pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_UNREAD"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+       break;
+
+       default:
+               break;
+       } // switch
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+bool
+MarkAllAsListViewItemProvider::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null)
+       {
+               CustomItem* pTempItem = static_cast<CustomItem*>(pItem);
+               delete pTempItem;
+               pTempItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+MarkAllAsListViewItemProvider::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       // Notify the current form that the ViewType has been changed.
+       if (__pMarkAllAsListViewStateChangeListener != null)
+       {
+               __pMarkAllAsListViewStateChangeListener->OnMarkAllAsOptionChanged(index);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+MarkAllAsListViewItemProvider::OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction)
+{
+       // Empty implementation
+}
+
+void
+MarkAllAsListViewItemProvider::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status)
+{
+       // Empty implementation
+}
+
+void
+MarkAllAsListViewItemProvider::SetEventListener(IMarkAllAsListViewStateChangeListener* pListener)
+{
+       AppLogDebug("ENTER");
+
+       SetFontValues();
+       // This method is called from the respective forms to set the EventListener to the current form.
+       __pMarkAllAsListViewStateChangeListener = pListener;
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+MarkAllAsListViewItemProvider::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmMoveMailForm.cpp b/src/EmMoveMailForm.cpp
new file mode 100755 (executable)
index 0000000..8881a4b
--- /dev/null
@@ -0,0 +1,522 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmMoveMailForm.cpp
+ * @brief      Keeps the implementations of EMailMoveMailForm class
+ */
+
+#include <FApp.h>
+#include <FIo.h>
+#include <FSystem.h>
+
+#include "EmEmailApp.h"
+#include "EmAllMailsPresentationModel.h"
+#include "EmInboxPresentationModel.h"
+#include "EmMoveMailForm.h"
+#include "EmSearchPresentationModel.h"
+#include "EmSentboxPresentationModel.h"
+#include "EmSpamboxPresentationModel.h"
+#include "EmTrashPresentationModel.h"
+#include "EmTypes.h"
+#include "EmStateInfo.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+static const int LISTVIEW_ITEM_COUNT = 4;
+
+EmailMoveMailForm::EmailMoveMailForm(void)
+       : __accountId(-1)
+       , __fromMailboxType(0)
+       , __toMailboxType(0)
+       , __mailId(-1)
+       , __fontSize(44.0f)
+       , __itemHeight(150.0f)
+       , __pProgressPopup(null)
+       , __pMoveListView(null)
+       , __pPresentationModelInstance(null)
+{
+       // Empty Implementation
+}
+
+EmailMoveMailForm::~EmailMoveMailForm(void)
+{
+       // Empty Implementation
+}
+
+bool
+EmailMoveMailForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+       Form::Construct(IDL_EMAIL_MOVEMAIL_FORM);
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return true;
+}
+
+result
+EmailMoveMailForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+       SetFormBackEventListener(this);
+
+       // Sets provider and adds GroupedListViewItemEventListener to the GroupedListView
+       __pMoveListView = static_cast<ListView*>(GetControl(IDC_MOVEMAIL_LISTVIEW));
+
+       __pMoveListView->AddListViewItemEventListener(*this);
+
+
+       __pProgressPopup = new (std::nothrow) ProgressPopup();
+       __pProgressPopup->Construct(false, false);
+       __pProgressPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_POP_MOVING_ING"));
+
+       SetFontValues();
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return r;
+}
+
+result
+EmailMoveMailForm::OnTerminating(void)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+void
+EmailMoveMailForm::OnFormBackRequested(Form& source)
+{
+       AppLogDebug("ENTER");
+
+       StateInfo* pStateInfo;
+       ArrayList* pSceneTransitionArgs;
+
+       if (__mailboxId == -1)
+       {
+               __accountId = -1;
+       }
+
+       pSceneTransitionArgs = new (std::nothrow) ArrayList();
+       pSceneTransitionArgs->Construct();
+
+       pStateInfo = new (std::nothrow) StateInfo();
+       pStateInfo->accountId = __accountId;
+       pStateInfo->mailboxId = __mailboxId;
+       pStateInfo->pPresentationModel = __pPresentationModelInstance;
+       pStateInfo->mailboxType = (email_mailbox_type_e)__fromMailboxType;
+       pStateInfo->mailId = __mailId;
+
+       pSceneTransitionArgs->Add(pStateInfo);
+       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pSceneTransitionArgs);
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailMoveMailForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId, const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       __previousSceneId = previousSceneId;
+
+       if (pArgs != null)
+       {
+               StateInfo* pStateInfo = static_cast<StateInfo*>(pArgs->GetAt(0));
+
+               __accountId = pStateInfo->accountId;
+               __mailboxId = pStateInfo->mailboxId;
+               __pPresentationModelInstance = pStateInfo->pPresentationModel;
+               __fromMailboxType = pStateInfo->mailboxType;
+               __mailId = pStateInfo->mailId;
+
+               __pMoveListView->SetItemProvider(*this);
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+}
+
+void
+EmailMoveMailForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId, const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+       // Empty implementation
+}
+
+void
+EmailMoveMailForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       switch (index)
+       {
+       case 0:
+       {
+               __toMailboxType = EMAIL_MAILBOX_TYPE_INBOX;
+       }
+       break;
+
+       case 1:
+       {
+               __toMailboxType = EMAIL_MAILBOX_TYPE_SENTBOX;
+       }
+       break;
+
+       case 2:
+       {
+               __toMailboxType = EMAIL_MAILBOX_TYPE_SPAMBOX;
+       }
+       break;
+
+       case 3:
+       {
+               __toMailboxType = EMAIL_MAILBOX_TYPE_TRASH;
+       }
+       break;
+
+       default:
+       {
+               // Empty implementation
+       }
+       break;
+       } // switch
+
+       int mailboxId = EmailMailboxManager::GetInstance()->GetMailboxIdByType(__accountId, (email_mailbox_type_e)__toMailboxType);
+       ShowPopUp();
+
+       if (__previousSceneId.Equals(IDSCN_EMAIL_DETAIL, true) == true)
+       {
+               if (__pPresentationModelInstance != null)
+               {
+                       EmailMessageListItem* pMail = __pPresentationModelInstance->GetMailData(__mailId);
+                       __pPresentationModelInstance->RemoveMailFromSelectedMailList(pMail);
+                       r = __pPresentationModelInstance->MoveMail(__mailId, (email_mailbox_type_e)__toMailboxType);
+               }
+       }
+       else
+       {
+               if (__pPresentationModelInstance != null)
+               {
+//                     if (__viewMode == SELECTED_VIEW_MODE || __viewMode ==  SEARCH_SELECTED_VIEW_MODE)
+                       r = __pPresentationModelInstance->MoveMail(mailboxId);
+               }
+       }
+
+
+       if (r != E_SUCCESS)
+       {
+               int modRes;
+               MessageBox msgBox;
+
+               HidePopUp();
+               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_COM_POP_MOVING_FAILED"), MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+       }
+}
+
+void
+EmailMoveMailForm::OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction)
+{
+       // Empty implementation
+}
+
+void
+EmailMoveMailForm::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status)
+{
+       // Empty implementation
+}
+
+int
+EmailMoveMailForm::GetItemCount(void)
+{
+       AppLogDebug("ENTER");
+       int itemCount = LISTVIEW_ITEM_COUNT;
+       AppLogDebug("EXIT");
+       return itemCount;
+}
+
+Tizen::Ui::Controls::ListItemBase*
+EmailMoveMailForm::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER");
+       EmailMailbox* pMailbox = null;
+       EnrichedText* pOption = null;
+       TextElement* pOptionText = null;
+       Font font;
+       CustomItem* pItem = new (std::nothrow) CustomItem();
+       pItem->Construct(Dimension(itemWidth, __itemHeight), LIST_ANNEX_STYLE_NORMAL);
+       pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, COLOR_LIST_BG_NORMAL);
+       pOption = new (std::nothrow) EnrichedText();
+       pOption->Construct(Dimension(itemWidth - LIST_ITEM_OFFSET, __itemHeight - H_LIST_MAIN_ITEM));
+       pOption->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT);
+       pOption->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE);
+       pOption->SetTextAbbreviationEnabled(true);
+
+       switch (index)
+       {
+       case 0:
+       {
+               pMailbox = EmailMailboxManager::GetInstance()->GetMailboxByType(__accountId, EMAIL_MAILBOX_TYPE_INBOX);
+       }
+       break;
+
+       case 1:
+       {
+               pMailbox = EmailMailboxManager::GetInstance()->GetMailboxByType(__accountId, EMAIL_MAILBOX_TYPE_SENTBOX);
+       }
+       break;
+
+       case 2:
+       {
+               pMailbox = EmailMailboxManager::GetInstance()->GetMailboxByType(__accountId, EMAIL_MAILBOX_TYPE_SPAMBOX);
+       }
+       break;
+
+       case 3:
+       {
+               pMailbox = EmailMailboxManager::GetInstance()->GetMailboxByType(__accountId, EMAIL_MAILBOX_TYPE_TRASH);
+       }
+       break;
+
+       default:
+       {
+               // Empty implementation
+       }
+       break;
+       } // switch
+
+       if (pMailbox != null)
+       {
+               // Create a TextElement and set attributes.
+               pOptionText = new (std::nothrow) TextElement();
+               pOptionText->Construct(pMailbox->GetMailboxAlias());
+               pOptionText->SetTextColor(COLOR_NAME_TEXT_1_LINE);
+               font.Construct(FONT_STYLE_PLAIN, __fontSize);
+               pOptionText->SetFont(font);
+               // Adds the TextElement and the bitmap to the EnrichedText
+               pOption->Add(*pOptionText);
+               pItem->AddElement(Rectangle(20, H_LIST_MAIN_ITEM, itemWidth - LIST_ITEM_OFFSET, __itemHeight - H_LIST_MAIN_ITEM), IDA_MOVE_MAIL_FORM_MOVE_OPTION, *pOption);
+
+               pOption->RemoveAllTextElements(true);
+               delete pOption;
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return pItem;
+}
+
+bool
+EmailMoveMailForm::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER");
+       delete pItem;
+       pItem = null;
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return true;
+}
+
+void
+EmailMoveMailForm::ShowPopUp(void)
+{
+       AppLogDebug("ENTER");
+
+       __pProgressPopup->SetShowState(true);
+       __pProgressPopup->Show();
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+}
+
+void
+EmailMoveMailForm::HidePopUp(void)
+{
+       AppLogDebug("ENTER");
+       __pProgressPopup->SetShowState(false);
+       Invalidate(true);
+       AppLogDebug("EXIT");
+}
+
+void
+EmailMoveMailForm::OnUserEventReceivedN(RequestId requestId, IList *pArgs)
+{
+       AppLogDebug("ENTER");
+
+       ArrayList* pSceneTransitionArgs = null;
+       BasePresentationModel* pPresentationModelInstance = null;
+
+       if(requestId == IDA_NOTI_MAIL_MOVE_FAIL)
+       {
+               HidePopUp();
+               int modRes;
+               MessageBox msgBox;
+               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_COM_POP_MOVING_FAILED"), MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+       }
+       else if (requestId == IDA_NOTI_MAIL_MOVE_FINISHED)
+       {
+               StateInfo* pStateInfo;
+
+               HidePopUp();
+
+               switch (__toMailboxType)
+               {
+               case EMAIL_MAILBOX_TYPE_INBOX:
+                       pPresentationModelInstance = InboxPresentationModel::GetInstance();
+                       break;
+
+               case EMAIL_MAILBOX_TYPE_SENTBOX:
+                       pPresentationModelInstance = SentboxPresentationModel::GetInstance();
+                       break;
+
+               case EMAIL_MAILBOX_TYPE_SPAMBOX:
+                       pPresentationModelInstance = SpamPresentationModel::GetInstance();
+                       break;
+
+               case EMAIL_MAILBOX_TYPE_TRASH:
+                       pPresentationModelInstance = TrashPresentationModel::GetInstance();
+                       break;
+
+               default:
+                       // Empty implementation
+                       break;
+               } // switch __toMailboxType
+
+               if(pPresentationModelInstance != null)
+               {
+                       pPresentationModelInstance->FetchData(__accountId, false);
+                       pPresentationModelInstance->SortBy(pPresentationModelInstance->GetSortType());
+                       pPresentationModelInstance->UpdateUnreadCount(__accountId);
+               }
+
+               if (__mailboxId != -1)
+               {
+                       if (__fromMailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __fromMailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __fromMailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __fromMailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                       {
+                               __pPresentationModelInstance->FetchData(__accountId, __mailboxId, (email_mailbox_type_e)__fromMailboxType);
+                       }
+                       else
+                       {
+                               __pPresentationModelInstance->FetchData(__accountId);
+                       }
+               }
+               else
+               {
+                       __pPresentationModelInstance->FetchData(__accountId, __mailboxId, (email_mailbox_type_e)__fromMailboxType);
+               }
+
+               __pPresentationModelInstance->SortBy(__pPresentationModelInstance->GetSortType());
+
+               if (__mailboxId == -1)
+               {
+                       __accountId = -1;
+               }
+
+               pSceneTransitionArgs = new (std::nothrow) ArrayList();
+               pSceneTransitionArgs->Construct();
+
+               pStateInfo = new (std::nothrow) StateInfo();
+               pStateInfo->accountId = __accountId;
+               pStateInfo->mailboxId = __mailboxId;
+               pStateInfo->pPresentationModel = __pPresentationModelInstance;
+               pStateInfo->mailboxType = (email_mailbox_type_e)__fromMailboxType;
+               pSceneTransitionArgs->Add(pStateInfo);
+
+               SceneManager* pSceneManager = SceneManager::GetInstance();
+               IListT<SceneId>* pSceneHistory = pSceneManager->GetSceneHistoryN();
+               SceneId prevScene;
+
+               if (pSceneHistory != null && pSceneHistory->GetCount() > 0)
+               {
+                       pSceneHistory->GetAt(pSceneHistory->GetCount()-2, prevScene);
+
+                       if (prevScene.Equals(IDSCN_SEARCH, false) == true)
+                       {
+                               SearchPresentationModel* pPresentationModel = SearchPresentationModel::GetInstance();
+
+                               if (pPresentationModel != null)
+                               {
+                                       pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+                                       pPresentationModel->Initialize(pPresentationModel->GetPresentationModel());
+                                       pPresentationModel->PerformSearch(L"");
+                               }
+                       }
+
+                       pSceneHistory->RemoveAll();
+                       delete pSceneHistory;
+               }
+
+               if (prevScene.Equals(IDSCN_SEARCH, false) == true)
+               {
+                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_SEARCH, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT, SCENE_DESTROY_OPTION_DESTROY), pSceneTransitionArgs);
+               }
+               else
+               {
+                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(IDSCN_INBOX, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT, SCENE_DESTROY_OPTION_DESTROY), pSceneTransitionArgs);
+               }
+
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailMoveMailForm::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmNativeMailboxManager.cpp b/src/EmNativeMailboxManager.cpp
new file mode 100755 (executable)
index 0000000..eef7b2f
--- /dev/null
@@ -0,0 +1,3238 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+* @file             EmailNativeMailboxManager.cpp
+* @brief               Contains the implementations of the mailbox manager which fetches data
+*                                      from the DB and various functions to convert data into compatible formats
+*/
+
+#include <cstdlib>
+#include <FApp.h>
+#include "EmBasePresentationModel.h"
+#include "EmEmailApp.h"
+#include "EmTypes.h"
+#include "EmUtils.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Utility;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Base::Runtime;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Locales;
+
+EmailMailboxManager* EmailMailboxManager::__pInstance = null;
+
+/************************************************************************************************\
+|******EmailMailbox Class Member functions*******************************************************|
+\************************************************************************************************/
+EmailMailbox::EmailMailbox(void)
+       : __accountId(-1)
+       , __mailboxId(-1)
+       , __unreadCount(0)
+       , __totalMailCountOnLocal(0)
+       , __totalMailCountOnServer(0)
+       , __local(0)
+       , __mailSlotSize(0)
+       , __noSelect(0)
+       , __mailboxName(L"")
+       , __mailboxAlias(L"")
+       , __lastSyncTime(0)
+       , __pMessages(null)
+       , __mailboxType(EMAIL_MAILBOX_TYPE_NONE)
+{
+       // Empty implementation
+}
+
+EmailMailbox::~EmailMailbox(void)
+{
+       if (__pMessages != null)
+       {
+               __pMessages->RemoveAll(true);
+               delete __pMessages;
+               __pMessages = null;
+       }
+}
+
+result
+EmailMailbox::Construct(void)
+{
+       result r = E_SUCCESS;
+
+       __pMessages = new (std::nothrow) ArrayList();
+       __pMessages->Construct();
+
+       return r;
+}
+
+/************************************************************************************************\
+|******EmailMessageListItem Class Member functions***********************************************|
+\************************************************************************************************/
+EmailMessageListItem::EmailMessageListItem(void)
+{
+       // Empty implementation
+}
+
+EmailMessageListItem::~EmailMessageListItem(void)
+{
+       AppLogDebug("Deleting message:(%x)", this);
+}
+
+/************************************************************************************************\
+|******EmailMessage Class Member functions*******************************************************|
+\************************************************************************************************/
+EmailMessageItem::EmailMessageItem(void)
+       : __mailId(0)
+       , __accountId(0)
+       , __mailboxId(0)
+       , __bodyDownloadStatus(0)
+       , __mailSize(0)
+       , __attachmentCount(0)
+       , __inlineContentCount(0)
+       , __threadId(0)
+       , __threadItemCount(0)
+       , __serverMailStatus(0)
+       , __messageClass(0)
+       , __subject(L"")
+       , __serverMailboxName(L"")
+       , __serverMailId(L"")
+       , __messageId(L"")
+       , __fullAddressFrom(L"")
+       , __fullAddressReply(L"")
+       , __fullAddressTo(L"")
+       , __fullAddressCc(L"")
+       , __fullAddressBcc(L"")
+       , __fullAddressReturn(L"")
+       , __emailAddressSender(L"")
+       , __emailAddressRecipient(L"")
+       , __aliasSender(L"")
+       , __aliasRecipient(L"")
+       , __body(L"")
+       , __filePathPlain(L"")
+       , __filePathHtml(L"")
+       , __filePathMimeEntity(L"")
+       , __previewText(L"")
+       , __flagsSeenField(false)
+       , __flagsDeletedField(false)
+       , __flagsFlaggedField(false)
+       , __flagsAnsweredField(false)
+       , __flagsRecentField(false)
+       , __flagsDraftField(false)
+       , __flagsForwardedField(false)
+       , __DRMStatus(false)
+       , __lockStatus(false)
+       , __priority(EMAIL_MAIL_PRIORITY_NORMAL)
+       , __digestType(DIGEST_TYPE_SHA1)
+       , __smimeType(EMAIL_SMIME_NONE)
+       , __mailboxType(EMAIL_MAILBOX_TYPE_NONE)
+       , __meetingRequestStatus(EMAIL_MAIL_TYPE_NORMAL)
+       , __saveStatus(EMAIL_MAIL_STATUS_NONE)
+       , __reportStatus(EMAIL_MAIL_REPORT_NONE)
+{
+       // Empty implementation
+}
+
+EmailMessageItem::~EmailMessageItem(void)
+{
+       // Empty implementation
+}
+
+/************************************************************************************************\
+|******EmailAttachment Class Member functions************************************************|
+\************************************************************************************************/
+EmailAttachment::EmailAttachment(void)
+       : __attachmentId(0)
+       , __mailId(0)
+       , __accountId(0)
+       , __saveStatus(0)
+       , __drmStatus(0)
+       , __inlineContentStatus(0)
+       , __mailboxId(0)
+       , __attachmentSize(0)
+       , __downloadPercent(0)
+       , __downloadHandle(-1)
+       , __attachmentDownloadStatus(EMAIL_DOWNLOAD_NONE)
+       , __attachmentMimeType(L"")
+       , __attachmentName(L"")
+       , __attachmentPath(L"")
+       , __pThumbnail(null)
+{
+       //Empty implementation
+}
+
+EmailAttachment::EmailAttachment(const EmailAttachment& attachment)
+{
+       __attachmentId = attachment.GetAttachmentId();
+       __mailId = attachment.GetMailId();
+       __accountId = attachment.GetAccountId();
+       __saveStatus = attachment.GetSaveStatus();
+       __drmStatus = attachment.GetDrmStatus();
+       __inlineContentStatus = attachment.GetInlineContentStatus();
+
+       __mailboxId = attachment.GetMailboxId();
+       __attachmentSize = attachment.GetAttachmentSize();
+       __downloadPercent = attachment.GetDownloadPercent();
+       __downloadHandle = attachment.GetDownloadHandle();
+
+       __attachmentMimeType = attachment.GetAttachmentMimeType();
+       __attachmentName = attachment.GetAttachmentName();
+       __attachmentPath = attachment.GetAttachmentPath();
+
+       Rectangle tmpRect(0,0,attachment.GetThumbnail()->GetWidth(),attachment.GetThumbnail()->GetHeight());
+       __pThumbnail = new (std::nothrow) Bitmap();
+       __pThumbnail->Construct(*attachment.GetThumbnail(), tmpRect);
+}
+
+EmailAttachment::~EmailAttachment(void)
+{
+       if (__pThumbnail != null)
+       {
+               delete __pThumbnail;
+               __pThumbnail = null;
+       }
+}
+
+/************************************************************************************************\
+|******EmailMailboxManager Class Member functions************************************************|
+\************************************************************************************************/
+EmailMailboxManager::EmailMailboxManager(void)
+       : __maxMailCount(50)
+       , __pMailbox(null)
+{
+       // Empty implementation
+}
+
+EmailMailboxManager::~EmailMailboxManager(void)
+{
+       //      Empty implementation
+}
+
+int
+EmailMailboxManager::GetMailboxIdByType(int accId, email_mailbox_type_e type)
+{
+       AppLogDebug("ENTER, accId:(%d), mailboxType:(%d)", accId, type);
+
+       EmailMailbox* pMailbox = null;
+       IEnumerator* pEnum = __pMailbox->GetValuesN(Integer(accId));
+
+       if (pEnum != null)
+       {
+               while (!IsFailed(pEnum->MoveNext()))
+               {
+                       pMailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+                       if (pMailbox != null && pMailbox->GetMailboxType() == type)
+                       {
+                               delete pEnum;
+
+                               AppLogDebug("EXIT, returning id:(%d)", pMailbox->GetMailboxId());
+                               return pMailbox->GetMailboxId();
+                       }
+               }
+
+               delete pEnum;
+       }
+
+       AppLogDebug("EXIT, returning -1");
+       return -1;
+}
+
+EmailMailbox*
+EmailMailboxManager::GetMailboxByType(int accId, email_mailbox_type_e type)
+{
+       AppLogDebug("ENTER");
+
+       EmailMailbox* pMailbox = null;
+       IEnumerator* pEnum = __pMailbox->GetValuesN(Integer(accId));
+
+       if (pEnum != null)
+       {
+               while (!IsFailed(pEnum->MoveNext()))
+               {
+                       pMailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+                       if (pMailbox != null && pMailbox->GetMailboxType() == type)
+                       {
+                               delete pEnum;
+
+                               AppLogDebug("EXIT, returning mailbox of type:(%d)", type);
+                               return pMailbox;
+                       }
+               }
+
+               delete pEnum;
+       }
+
+       AppLogDebug("EXIT");
+       return null;
+}
+
+EmailMailboxManager*
+EmailMailboxManager::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pInstance;
+}
+
+result
+EmailMailboxManager::Construct(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pMailbox = new (std::nothrow) MultiHashMap();
+       r = __pMailbox->Construct();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Construct failed!");
+
+       InitializeMailboxes();
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+
+CATCH:
+
+       if (__pMailbox != null)
+       {
+               delete __pMailbox;
+               __pMailbox = null;
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+void
+EmailMailboxManager::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance != null)
+       {
+               __pInstance->CleanupInstance();
+               delete __pInstance;
+               __pInstance = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailMailboxManager::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pInstance = new (std::nothrow) EmailMailboxManager();
+       r = __pInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInstance;
+               __pInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailMailboxManager::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pMailbox != null)
+       {
+               __pMailbox->RemoveAll(true);
+               delete __pMailbox;
+               __pMailbox = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+EmailMailboxManager::InitializeMailMessages(EmailMailbox* pTmpMailbox)
+{
+       AppLogDebug("ENTER");
+
+       int res;
+       int i;
+       int count;
+
+       result r = E_SUCCESS;
+       HashMap* pMap = new (std::nothrow) HashMap();
+       pMap->Construct();
+
+       email_mail_list_item_t* pMailListItem = null;
+       EmailMessageListItem* pTmpEmailListItem = null;
+
+       res = email_get_mail_list(pTmpMailbox->GetAccountId(), pTmpMailbox->GetMailboxId(), EMAIL_LIST_TYPE_NORMAL, -1, -1, EMAIL_SORT_DATETIME_HIGH, &pMailListItem, &count);
+
+       if (res == EMAIL_ERROR_NONE)
+       {
+               if (pTmpMailbox->GetMessages()->GetCount())
+               {
+                       for (int idx=0; idx<pTmpMailbox->GetMessages()->GetCount(); idx++)
+                       {
+                               EmailMessageItem* pMsgItem = static_cast<EmailMessageItem*>(pTmpMailbox->GetMessages()->GetAt(idx));
+                               pMap->Add(new (std::nothrow) Integer(pMsgItem->GetMailId()), new (std::nothrow) Integer(pMsgItem->GetMailId()));
+                               AppLogDebug("Mail id:(%d)", pMsgItem->GetMailId());
+                       }
+               }
+
+               for (i = 0; i < count; i++)
+               {
+                       if (pMap->ContainsKey(Integer(pMailListItem[i].mail_id)) == false)
+                       {
+                               pTmpEmailListItem = new (std::nothrow) EmailMessageListItem();
+                               ConvertNativetoOSPEmailMessageListItem(&pMailListItem[i], pTmpEmailListItem);
+
+                               r = pTmpMailbox->GetMessages()->Add(pTmpEmailListItem);
+
+                               AppLogDebug("Result of adding message to message list:(%s)", GetErrorMessage(r));
+                       }
+                       else
+                       {
+                               AppLogDebug("MailId: (%d) already added to messages", pMailListItem[i].mail_id);
+                       }
+               }
+
+               free(pMailListItem);
+       }
+       else
+       {
+               AppLogDebug("Get Mails failed for mailbox(%ls) with error:(%d)", pTmpMailbox->GetMailboxAlias().GetPointer(), res);
+       }
+
+       pMap->RemoveAll(true);
+       delete pMap;
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+EmailMailboxManager::InitializeMailboxes(int accountId)
+{
+       AppLogDebug("ENTER, accountId:(%d)", accountId);
+
+       result r = E_SUCCESS;
+       email_mailbox_t* mailboxList = null;
+       Integer* pAccId = null;
+       int count = 0;
+       int res;
+       IMapEnumerator* pAccEnum = EmailSettingsProvider::GetInstance()->GetAccountListN();
+
+       if (__pMailbox != null)
+       {
+               // Clear existing mailboxes before initialization
+               if (accountId == 0)
+               {
+                       __pMailbox->RemoveAll(true);
+               }
+               else
+               {
+                       __pMailbox->Remove(Integer(accountId), true);
+               }
+       }
+       else
+       {
+               __pMailbox = new (std::nothrow) MultiHashMap();
+               r = __pMailbox->Construct();
+       }
+
+       if (accountId == 0)
+       {
+               while (!IsFailed(pAccEnum->MoveNext()))
+               {
+                       pAccId = static_cast<Integer*>(pAccEnum->GetKey());
+                       accountId = pAccId->ToInt();
+
+                       res = email_get_mailbox_list_ex(accountId, EMAIL_MAILBOX_ALL, 1, &mailboxList, &count);
+
+                       if (res != EMAIL_ERROR_NONE)
+                       {
+                               AppLogDebug("EmailApp::Error:(%d), Failed to get mailbox list for account:(%d)", res, accountId);
+                       }
+                       else
+                       {
+                               ProcessData(&mailboxList, count);
+                       }
+                       email_free_mailbox(&mailboxList, count);
+               }
+               delete pAccEnum;
+       }
+       else
+       {
+               res = email_get_mailbox_list_ex(accountId, EMAIL_MAILBOX_ALL, 1, &mailboxList, &count);
+
+               if (res != EMAIL_ERROR_NONE)
+               {
+                       AppLogDebug("EmailApp::Error:(%d), Failed to get mailbox list for account:(%d)", res, accountId);
+               }
+               else
+               {
+                       ProcessData(&mailboxList, count);
+               }
+               email_free_mailbox(&mailboxList, count);
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+EmailMailboxManager::ProcessData(email_mailbox_t** mailboxList, const int& count)
+{
+       AppLogDebug("ENTER");
+       int i;
+       int res;
+       int totalCount=0, unreadCount=0;
+       result r = E_SUCCESS;
+       email_list_filter_t mailboxIdFilter;
+
+       EmailMailbox* pMailbox = null;
+       EmailSettingsProvider* pMgr = EmailSettingsProvider::GetInstance();
+
+       email_mailbox_t* mailboxArr = *(mailboxList);
+
+       mailboxIdFilter.list_filter_item_type = EMAIL_LIST_FILTER_ITEM_RULE;
+       mailboxIdFilter.list_filter_item.rule.rule_type = EMAIL_LIST_FILTER_RULE_EQUAL;
+       mailboxIdFilter.list_filter_item.rule.target_attribute = EMAIL_MAIL_ATTRIBUTE_MAILBOX_ID;
+       mailboxIdFilter.list_filter_item.rule.case_sensitivity = EMAIL_CASE_INSENSITIVE;
+
+       for (i = 0; i < count; i++)
+       {
+               pMailbox = new (std::nothrow) EmailMailbox();
+               pMailbox->Construct();
+
+               pMailbox->SetAccountId(mailboxArr[i].account_id);
+               pMailbox->SetMailboxId(mailboxArr[i].mailbox_id);
+               pMailbox->SetMailboxName(mailboxArr[i].mailbox_name);
+               pMailbox->SetMailboxType(mailboxArr[i].mailbox_type);
+               pMailbox->SetMailboxAlias(mailboxArr[i].alias);
+               pMailbox->SetTotalMailCountOnServer(mailboxArr[i].total_mail_count_on_server);
+               pMailbox->SetLocal(mailboxArr[i].local);
+               pMailbox->SetMailSlotSize(mailboxArr[i].mail_slot_size);
+               pMailbox->SetNoSelect(mailboxArr[i].no_select);
+
+               DateTime syncTime;
+               syncTime.SetValue(1970, 1, 1, 0, 0, 0);
+               syncTime.Add(mailboxArr[i].last_sync_time * TimeSpan::NUM_OF_TICKS_IN_SECOND);
+
+               pMailbox->SetLastSyncTime(syncTime.GetTime());
+               pMgr->UpdateLastSyncTime(pMailbox->GetAccountId(), pMailbox->GetLastSyncTime());
+
+               mailboxIdFilter.list_filter_item.rule.key_value.integer_type_value = pMailbox->GetMailboxId();
+               res = email_count_mail(&mailboxIdFilter, 1, &totalCount, &unreadCount);
+
+               if (res != EMAIL_ERROR_NONE)
+               {
+                       totalCount = 0;
+                       unreadCount = 0;
+                       AppLogException("Failed to get mail counts with error:(%d)", res);
+               }
+
+               pMailbox->SetTotalMailCountOnLocal(totalCount);
+               pMailbox->SetUnreadCount(unreadCount);
+               AppLogDebug("Got total local count:(%d), unreadCount:(%d)", totalCount, unreadCount);
+
+               r = __pMailbox->Add((new (std::nothrow) Integer(pMailbox->GetAccountId())), pMailbox);
+               AppLogDebugIf(r != E_SUCCESS, "Add failed with error:(%s)", GetErrorMessage(r));
+               AppLogDebug("Added mailbox:(%ls) for account:(%d)", pMailbox->GetMailboxName().GetPointer(), pMailbox->GetAccountId());
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+const MultiHashMap*
+EmailMailboxManager::GetMailboxMap()
+{
+       return __pMailbox;
+}
+
+IList*
+EmailMailboxManager::GetMailboxesN()
+{
+       IList* pList = __pMailbox->GetValuesN();
+       return pList;
+}
+
+IEnumerator*
+EmailMailboxManager::GetMailboxesByAccountIdN(const int& accountId)
+{
+       AppLogDebug("ENTER, accountId:(%d)", accountId);
+       IEnumerator* pEnum = __pMailbox->GetValuesN(Integer(accountId));
+
+       if (pEnum == null)
+       {
+               AppLogDebug("EmailApp::GetEnumerator failed for account:(%d) with error:(%s)", accountId, GetErrorMessage(GetLastResult()));
+       }
+
+       AppLogDebug("EXIT, pEnum:(%x)", pEnum);
+       return pEnum;
+}
+
+EmailMailbox*
+EmailMailboxManager::GetMailboxById(int mailboxId)
+{
+       AppLogDebug("ENTER, mailboxId:(%d)", mailboxId);
+
+       EmailMailbox* pMailbox = null;
+       IList* pMailboxList = GetMailboxesN();
+       int count = pMailboxList->GetCount();
+
+       for (int i=0; i<count; i++)
+       {
+               pMailbox = static_cast<EmailMailbox*>(pMailboxList->GetAt(i));
+               if (pMailbox->GetMailboxId() == mailboxId)
+               {
+                       break;
+               }
+               pMailbox = null;
+       }
+       pMailboxList->RemoveAll(false);
+       delete pMailboxList;
+
+       AppLogDebug("EXIT, pMailbox:(%x)", pMailbox);
+       return pMailbox;
+}
+
+void
+EmailMailboxManager::ConvertNativetoOSPEmailMessageListItem(email_mail_list_item_t* pSrc, EmailMessageListItem* pDest)
+{
+       AppLogDebug("ENTER");
+       pDest->SetMailId(pSrc->mail_id);
+       pDest->SetAccountId(pSrc->account_id);
+       pDest->SetMailboxId(pSrc->mailbox_id);
+
+       pDest->SetFullAddressFrom(pSrc->full_address_from);
+       pDest->SetEmailAddressSender(pSrc->email_address_sender);
+       pDest->SetEmailAddressRecipient(pSrc->email_address_recipient);
+       AppLogDebug("AccountId:(%d), Mailid:(%d), Subject:(%s)", pSrc->account_id, pSrc->mail_id, pSrc->subject);
+       pDest->SetSubject(pSrc->subject);
+       AppLogDebug("AccountId:(%d), Mailid:(%d), Subject:(%ls)", pSrc->account_id, pSrc->mail_id, pDest->GetSubject().GetPointer());
+
+       pDest->SetIsTextDownloaded(pSrc->body_download_status);
+       pDest->GetDateTime().SetValue(1970, 1, 1, 0, 0, 0);
+       pDest->GetDateTime().Add(TimeSpan(pSrc->date_time * TimeSpan::NUM_OF_TICKS_IN_SECOND));
+
+       LocaleManager locale;
+       locale.Construct();
+       pDest->SetLocalDateTime(locale.GetSystemTimeZone().UtcTimeToWallTime(pDest->GetDateTime()));
+
+       pDest->SetFlagsSeenField(pSrc->flags_seen_field);
+       pDest->SetFlagsDeletedField(pSrc->flags_deleted_field);
+       pDest->SetFlagsAnsweredField(pSrc->flags_answered_field);
+       pDest->SetFlagsRecentField(pSrc->flags_recent_field);
+       pDest->SetFlagsDraftField(pSrc->flags_draft_field);
+       pDest->SetFlagsForwardedField(pSrc->flags_forwarded_field);
+       pDest->SetFlagsFlaggedField(pSrc->flags_flagged_field);
+
+       pDest->SetPriority(pSrc->priority);
+       pDest->SetSaveStatus(pSrc->save_status);
+       pDest->SetLockStatus(pSrc->lock_status);
+       pDest->SetReportStatus(pSrc->report_status);
+
+       pDest->SetAttachmentCount(pSrc->attachment_count);
+       pDest->SetDrmStatus(pSrc->DRM_status);
+       pDest->SetPreviewText(pSrc->preview_text);
+
+       pDest->SetThreadId(pSrc->thread_id);
+       pDest->SetThreadItemCount(pSrc->thread_item_count);
+       pDest->SetIsMeetingRequest(pSrc->meeting_request_status);
+       pDest->SetMessageClass(pSrc->message_class);
+       pDest->SetSmimeType(pSrc->smime_type);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailMailboxManager::ConvertNativetoOSPEmailMessage(email_mail_data_t* pSrc, EmailMessageItem* pDest)
+{
+       AppLogDebug("ENTER");
+       pDest->SetMailId(pSrc->mail_id);
+       pDest->SetAccountId(pSrc->account_id);
+       pDest->SetMailboxId(pSrc->mailbox_id);
+       pDest->SetMailboxType(pSrc->mailbox_type);
+
+       pDest->SetSubject(pSrc->subject);
+       pDest->GetDateTime().SetValue(1970, 1, 1, 0, 0, 0);
+       pDest->GetDateTime().Add(TimeSpan(pSrc->date_time * TimeSpan::NUM_OF_TICKS_IN_SECOND));
+
+       LocaleManager locale;
+       locale.Construct();
+       pDest->SetLocalDateTime(locale.GetSystemTimeZone().UtcTimeToWallTime(pDest->GetDateTime()));
+
+       pDest->SetServerMailStatus(pSrc->server_mail_status);
+       pDest->SetServerMailboxName(pSrc->server_mailbox_name);
+
+       pDest->SetServerMailId(pSrc->server_mail_id);
+       pDest->SetMessageId(pSrc->message_id);
+       pDest->SetFullAddressFrom(pSrc->full_address_from);
+       pDest->SetFullAddressReply(pSrc->full_address_reply);
+
+       pDest->SetFullAddressTo(pSrc->full_address_to);
+       pDest->SetFullAddressCc(pSrc->full_address_cc);
+       pDest->SetFullAddressBcc(pSrc->full_address_bcc);
+       pDest->SetFullAddressReturn(pSrc->full_address_return);
+
+       pDest->SetEmailAddressSender(pSrc->email_address_sender);
+       pDest->SetEmailAddressRecipient(pSrc->email_address_recipient);
+       pDest->SetAliasSender(pSrc->alias_sender);
+       pDest->SetAliasRecipient(pSrc->alias_recipient);
+
+       pDest->SetBodyDownloadStatus(pSrc->body_download_status);
+       AppLogDebug("check,accountid:(%d), mailid:(%d), plainpathaddress:(%x)", pSrc->account_id, pSrc->mail_id, pSrc->file_path_plain);
+       if (pSrc->file_path_plain && pSrc->file_path_plain[0] == '\0')
+               pDest->SetFilePathPlain(Utils::GetResourceString(L"IDS_PREVIEW_TEXT_UNAVAILABLE"));
+       else
+               pDest->SetFilePathPlain(pSrc->file_path_plain);
+       AppLogDebug("check,accountid:(%d), mailid:(%d), htmlpathaddress:(%x)", pSrc->account_id, pSrc->mail_id, pSrc->file_path_html);
+       if (pSrc->file_path_html && pSrc->file_path_html[0] == '\0')
+               pDest->SetFilePathHtml(Utils::GetResourceString(L"IDS_PREVIEW_TEXT_UNAVAILABLE"));
+       else
+               pDest->SetFilePathHtml(pSrc->file_path_html);
+       AppLogDebug("check,accountid:(%d), mailid:(%d), filepathmimeentity:(%x)", pSrc->account_id, pSrc->mail_id, pSrc->file_path_mime_entity);
+       if (pSrc->file_path_mime_entity && pSrc->file_path_mime_entity[0] == '\0')
+               pDest->SetFilePathMimeEntity(Utils::GetResourceString(L"IDS_PREVIEW_TEXT_UNAVAILABLE"));
+       else
+               pDest->SetFilePathMimeEntity(pSrc->file_path_mime_entity);
+
+       pDest->SetMailSize(pSrc->mail_size);
+       pDest->SetFlagsSeenField(int(pSrc->flags_seen_field));
+       pDest->SetFlagsDeletedField(int(pSrc->flags_deleted_field));
+       pDest->SetFlagsFlaggedField(int(pSrc->flags_flagged_field));
+
+       pDest->SetFlagsAnsweredField(int(pSrc->flags_answered_field));
+       pDest->SetFlagsRecentField(int(pSrc->flags_recent_field));
+       pDest->SetFlagsDraftField(int(pSrc->flags_draft_field));
+       pDest->SetFlagsForwardedField(int(pSrc->flags_forwarded_field));
+
+       pDest->SetDrmStatus(pSrc->DRM_status);
+       pDest->SetPriority(pSrc->priority);
+       pDest->SetSaveStatus(pSrc->save_status);
+       pDest->SetLockStatus(pSrc->lock_status);
+
+       pDest->SetReportStatus(pSrc->report_status);
+       pDest->SetAttachmentCount(pSrc->attachment_count);
+       pDest->SetInlineContentCount(pSrc->inline_content_count);
+       pDest->SetThreadId(pSrc->thread_id);
+
+       pDest->SetThreadItemCount(pSrc->thread_item_count);
+       pDest->SetPreviewText(Utils::GetResourceString(L"IDS_PREVIEW_TEXT_UNAVAILABLE"));
+       pDest->SetMeetingRequestStatus(pSrc->meeting_request_status);
+       pDest->SetMessageClass(pSrc->message_class);
+
+       pDest->SetDigestType(pSrc->digest_type);
+       pDest->SetSmimeType(pSrc->smime_type);
+       pDest->SetHasAttachment();
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+email_mail_data_t*
+EmailMailboxManager::ConvertOSPtoNativeEmailMessageN(const EmailMessageItem* pSrc)
+{
+       AppLogDebug("ENTER");
+
+       email_mail_data_t* pDest = null;
+
+       if (pSrc != null)
+       {
+               pDest = (email_mail_data_t*)malloc(sizeof(email_mail_data_t));
+               memset(pDest, 0x00, sizeof(email_mail_data_t));
+
+               pDest->account_id = pSrc->GetAccountId();
+               AppLogDebug("Account id:(%d)", pDest->account_id);
+               pDest->mailbox_id = pSrc->GetMailboxId();
+               AppLogDebug("Mailbox id:(%d)", pDest->mailbox_id);
+               pDest->mailbox_type = pSrc->GetMailboxType();
+
+               DateTime epoch;
+               epoch.SetValue(1970, 1, 1, 0, 0, 0);
+               pDest->date_time = (time_t)((pSrc->GetDateTime().GetTime().GetTicks() - epoch.GetTime().GetTicks()) / TimeSpan::NUM_OF_TICKS_IN_SECOND);
+               pDest->server_mail_status = pSrc->GetServerMailStatus();
+               pDest->body_download_status = pSrc->GetBodyDownloadStatus();
+
+               pDest->mail_size = pSrc->GetMailSize();
+               pDest->flags_seen_field = pSrc->isFlagsSeenField();
+               pDest->flags_deleted_field = pSrc->isFlagsDeletedField();
+               pDest->flags_flagged_field = pSrc->isFlagsFlaggedField();
+
+               pDest->flags_answered_field = pSrc->isFlagsAnsweredField();
+               pDest->flags_recent_field = pSrc->isFlagsRecentField();
+               pDest->flags_draft_field = pSrc->isFlagsDraftField();
+               pDest->flags_forwarded_field = pSrc->isFlagsForwardedField();
+
+               pDest->DRM_status = pSrc->isDrmStatus();
+               pDest->priority = pSrc->GetPriority();
+               pDest->save_status = pSrc->isSaveStatus();
+               pDest->lock_status = pSrc->isLockStatus();
+
+               pDest->report_status = pSrc->GetReportStatus();
+               pDest->attachment_count = pSrc->GetAttachmentCount();
+               pDest->inline_content_count = pSrc->GetInlineContentCount();
+               pDest->thread_id = pSrc->GetThreadId();
+               pDest->thread_item_count = pSrc->GetThreadItemCount();
+
+               pDest->meeting_request_status = pSrc->GetMeetingRequestStatus();
+               pDest->message_class = pSrc->GetMessageClass();
+               pDest->digest_type = pSrc->GetDigestType();
+               pDest->smime_type = pSrc->GetSmimeType();
+
+               Utils::StringToChar(&pSrc->GetSubject(), &pDest->subject);
+               Utils::StringToChar(&pSrc->GetServerMailboxName(), &pDest->server_mailbox_name);
+               Utils::StringToChar(&pSrc->GetServerMailId(), &pDest->server_mail_id);
+               Utils::StringToChar(&pSrc->GetMessageId(), &pDest->message_id);
+               Utils::StringToChar(&pSrc->GetFullAddressFrom(), &pDest->full_address_from);
+
+               Utils::StringToChar(&pSrc->GetFullAddressReply(), &pDest->full_address_reply);
+               Utils::StringToChar(&pSrc->GetFullAddressTo(), &pDest->full_address_to);
+               Utils::StringToChar(&pSrc->GetFullAddressCc(), &pDest->full_address_cc);
+               Utils::StringToChar(&pSrc->GetFullAddressBcc(), &pDest->full_address_bcc);
+
+               Utils::StringToChar(&pSrc->GetFullAddressReturn(), &pDest->full_address_return);
+               Utils::StringToChar(&pSrc->GetEmailAddressSender(), &pDest->email_address_sender);
+               Utils::StringToChar(&pSrc->GetEmailAddressRecipient(), &pDest->email_address_recipient);
+               Utils::StringToChar(&pSrc->GetAliasSender(), &pDest->alias_sender);
+
+               Utils::StringToChar(&pSrc->GetAliasRecipient(), &pDest->alias_recipient);
+               Utils::StringToChar(&pSrc->GetFilePathPlain(), &pDest->file_path_plain);
+               Utils::StringToChar(&pSrc->GetFilePathHtml(), &pDest->file_path_html);
+               Utils::StringToChar(&pSrc->GetFilePathMimeEntity(), &pDest->file_path_mime_entity);
+               Utils::StringToChar(&pSrc->GetPreviewText(), &pDest->preview_text);
+       }
+
+       AppLogDebug("EXIT");
+       return pDest;
+}
+
+void
+EmailMailboxManager::CleanupNativeEmailMessageObject(email_mail_data_t* pObj, bool freeObj)
+{
+       AppLogDebug("ENTER");
+
+       email_free_mail_data(&pObj, 1);
+
+       AppLogDebug("EXIT");
+}
+
+email_attachment_data_t*
+EmailMailboxManager::ConvertOSPtoNativeAttachmentN(const EmailAttachment* pSrc)
+{
+       AppLogDebug("ENTER");
+       email_attachment_data_t* pDest = null;
+
+       if (pSrc != null)
+       {
+               pDest = new (std::nothrow) email_attachment_data_t();
+               pDest->attachment_id = pSrc->GetAttachmentId();
+
+               Utils::StringToChar(&pSrc->GetAttachmentName(), &pDest->attachment_name);
+               Utils::StringToChar(&pSrc->GetAttachmentPath(), &pDest->attachment_path);
+
+               pDest->attachment_size = pSrc->GetAttachmentSize();
+               pDest->mail_id = pSrc->GetMailId();
+               pDest->account_id = pSrc->GetAccountId();
+               pDest->mailbox_id = pSrc->GetMailboxId();
+               pDest->save_status = pSrc->GetSaveStatus();
+               pDest->drm_status = pSrc->GetDrmStatus();
+               pDest->inline_content_status = pSrc->GetInlineContentStatus();
+
+               Utils::StringToChar(&pSrc->GetAttachmentMimeType(), &pDest->attachment_mime_type);
+       }
+
+       AppLogDebug("EXIT");
+       return pDest;
+}
+
+void
+EmailMailboxManager::ConvertOSPtoNativeAttachment(const EmailAttachment* pSrc, email_attachment_data_t& pDest)
+{
+       AppLogDebug("ENTER");
+       if (pSrc != null)
+       {
+               pDest.attachment_id = pSrc->GetAttachmentId();
+
+               Utils::StringToChar(&pSrc->GetAttachmentName(), &pDest.attachment_name);
+               Utils::StringToChar(&pSrc->GetAttachmentPath(), &pDest.attachment_path);
+
+               pDest.attachment_size = pSrc->GetAttachmentSize();
+               pDest.mail_id = pSrc->GetMailId();
+               pDest.account_id = pSrc->GetAccountId();
+               pDest.mailbox_id = pSrc->GetMailboxId();
+               pDest.save_status = pSrc->GetSaveStatus();
+               pDest.drm_status = pSrc->GetDrmStatus();
+               pDest.inline_content_status = pSrc->GetInlineContentStatus();
+
+               Utils::StringToChar(&pSrc->GetAttachmentMimeType(), &pDest.attachment_mime_type);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+email_meeting_request_t*
+EmailMailboxManager::ConvertOSPtoNativeMeetingRequestN(const EmailMeetingRequest* pSrc)
+{
+       AppLogDebug("ENTER");
+       email_meeting_request_t* pDest = null;
+
+       if (pSrc != null)
+       {
+               pDest = new (std::nothrow) email_meeting_request_t();
+
+               pDest->mail_id = pSrc->GetMailId();
+               pDest->meeting_response = pSrc->GetMeetingResponse();
+
+               time_t time = pSrc->GetStartTime().GetTime().GetTicks();
+               pDest->start_time = *(gmtime(&time));
+
+               time = pSrc->GetEndTime().GetTime().GetTicks();
+               pDest->end_time = *(gmtime(&time));
+
+               Utils::StringToChar(&pSrc->GetLocation(), &pDest->location);
+               Utils::StringToChar(&pSrc->GetGlobalObjectId(), &pDest->global_object_id);
+
+               pDest->time_zone.offset_from_GMT = pSrc->GetTimeZone().GetRawOffset();
+       }
+
+       AppLogDebug("EXIT");
+       return pDest;
+}
+
+void
+EmailMailboxManager::CleanupNativeEmailAttachmentObject(email_attachment_data_t* pObj, bool freeObj)
+{
+       AppLogDebug("ENTER");
+
+       if (pObj != null)
+       {
+               if (pObj->attachment_name != null)
+               {
+                       delete[] pObj->attachment_name;
+               }
+
+               if (pObj->attachment_path != null)
+               {
+                       delete[] pObj->attachment_path;
+               }
+
+               if (pObj->attachment_mime_type != null)
+               {
+                       delete[] pObj->attachment_mime_type;
+               }
+
+               if (freeObj)
+               {
+                       delete pObj;
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailMailboxManager::CleanupNativeMeetingRequestObject(email_meeting_request_t* pObj, bool freeObj)
+{
+       AppLogDebug("ENTER");
+
+       if (pObj != null)
+       {
+               if (pObj->location != null)
+               {
+                       delete[] pObj->location;
+               }
+
+               if (pObj->global_object_id != null)
+               {
+                       delete[] pObj->global_object_id;
+               }
+
+               if (freeObj)
+               {
+                       delete pObj;
+               }
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+EmailMailboxManager::DeleteMailMessage(int mailboxId, int mailId, bool fromServer)
+{
+       AppLogDebug("ENTER, mailboxId:(%d), mailId:(%d)", mailboxId, mailId);
+
+       int res;
+       int delMailId = mailId;
+
+       res = email_delete_mail(mailboxId, &delMailId, 1, fromServer);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::delete email(id:%d) failed with error:(%d)", mailId, res);
+       }
+       else
+       {
+               EmailMailbox* pTmpMailbox = GetMailboxById(mailboxId);
+
+               if (pTmpMailbox != null)
+               {
+                       for (int i=pTmpMailbox->GetMessages()->GetCount()-1; i>=0; i--)
+                       {
+                               EmailMessageListItem* pTmpMsg = static_cast<EmailMessageListItem*>(pTmpMailbox->GetMessages()->GetAt(i));
+                               if (pTmpMsg->GetMailId() == mailId)
+                               {
+                                       pTmpMailbox->GetMessages()->RemoveAt(i, true);
+                                       break;
+                               }
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+EmailMailboxManager::DeleteMailMessage(int mailboxId, int* mailId, int count, bool fromServer)
+{
+       AppLogDebug("ENTER");
+       int res;
+
+       res = email_delete_mail(mailboxId, mailId, count, fromServer);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::delete email(id:%d) failed with error:(%d)", mailId, res);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+EmailMailboxManager::MoveMailMessage(int mailId, int targetMailboxId)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       int res;
+
+       res = email_move_mail_to_mailbox(&mailId, 1, targetMailboxId);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::move email failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+EmailMailboxManager::MoveMailMessage(int* mailId, int count, int targetMailboxId)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       int res;
+
+       res = email_move_mail_to_mailbox(mailId, count, targetMailboxId);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::move email failed with error:(%d)", res);
+               r  = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+ArrayList*
+EmailMailboxManager::GetData(const int& accountId, email_mailbox_type_e mailboxType, bool forceUpdate)
+{
+       AppLogDebug("ENTER, accountId:(%d), mailboxType:(%d), forceUpdate:(%d)", accountId, mailboxType, forceUpdate);
+
+       EmailMailbox* pTmpMailbox = null;
+       ArrayList* pData = null;
+
+       IEnumerator* pEnum = GetMailboxesByAccountIdN(accountId);
+
+       if (pEnum != null)
+       {
+               while (!IsFailed(pEnum->MoveNext()))
+               {
+                       pTmpMailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+                       if (pTmpMailbox->GetMailboxType() == mailboxType)
+                       {
+                               AppLogDebug("pTmpMailbox:(%x), mailboxId:(%d)", pTmpMailbox, pTmpMailbox->GetMailboxId());
+                               break;
+                       }
+
+                       pTmpMailbox = null;
+               }
+
+               delete pEnum;
+       }
+
+       if (pTmpMailbox != null)
+       {
+               pData = pTmpMailbox->GetMessages();
+               AppLogDebug("Mail Count in DB:(%d), Data count:(%d)", pTmpMailbox->GetTotalMailCountOnLocal(), pData->GetCount());
+
+               InitializeMailMessages(pTmpMailbox);
+       }
+
+       AppLogDebug("EXIT");
+       return pData;
+}
+
+Tizen::Base::Collection::ArrayList*
+EmailMailboxManager::GetData(EmailMailbox* pTmpMailbox)
+{
+       AppLogDebug("ENTER, pTmpMailbox:(%x)", pTmpMailbox);
+
+       ArrayList* pData = null;
+
+       if (pTmpMailbox != null)
+       {
+               pData = pTmpMailbox->GetMessages();
+               AppLogDebug("Data count:(%d), Mail count on local:(%d)", pData->GetCount(), pTmpMailbox->GetTotalMailCountOnLocal());
+
+               InitializeMailMessages(pTmpMailbox);
+       }
+
+       AppLogDebug("EXIT, pData:(%x)", pData);
+       return pData;
+}
+
+result
+EmailMailboxManager::DownloadEmailBody(int mailId, bool withAttachment, int& handle)
+{
+       AppLogDebug("ENTER, mailId:(%d), withAttachment:(%d), handle:(%x)", mailId, withAttachment, handle);
+       int res;
+       result r = E_SUCCESS;
+
+       res = email_download_body(mailId, withAttachment, &handle);
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Download body failed for mail id:(%d), with error:(%d)", mailId, res);
+               handle = -1;
+               r = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT: r = %s, handle:(%d)", GetErrorMessage(r), handle);
+       return r;
+}
+
+result
+EmailMailboxManager::DownloadAttachment(int mailId, int nth, int& handle)
+{
+       AppLogDebug("ENTER, mailId:(%d), nth:(%d), handle:(%x)", mailId, nth, handle);
+
+       int res;
+       result r = E_SUCCESS;
+
+       res = email_download_attachment(mailId, nth, &handle);
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Download attachment failed for attachment id:(%d), with error:(%d)", mailId, res);
+               handle = -1;
+               r = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT: r = %s, handle:(%d)", GetErrorMessage(r), handle);
+       return r;
+}
+
+EmailMessageItem*
+EmailMailboxManager::GetMailDataN(const int& mailId)
+{
+       AppLogDebug("ENTER");
+
+       EmailMessageItem* pMsg = new (std::nothrow) EmailMessageItem();
+       email_mail_data_t* pMailData = null;
+
+       int res = email_get_mail_data(mailId, &pMailData);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Failed to get mail data for mail ID:(%d), error:(%d)", mailId, res);
+               delete pMsg;
+               return null;
+       }
+
+       ConvertNativetoOSPEmailMessage(pMailData, pMsg);
+       email_free_mail_data(&pMailData, 1);
+
+       AppLogDebug("EXIT");
+       return pMsg;
+}
+
+result
+EmailMailboxManager::AddMailMessage(EmailMessageItem* pMsg, ArrayList* pAttachmentList, EmailMeetingRequest* pMeetingReq, bool updateServer)
+{
+       AppLogDebug("ENTER");
+
+       EmailMessageItem* pTmpMsg = null;
+       result r = E_SUCCESS;
+       int res = 0;
+       int count = 0;
+       email_mail_data_t* pMailData = ConvertOSPtoNativeEmailMessageN(pMsg);
+       email_attachment_data_t* pAttachmentData = null;
+
+       if (pAttachmentList != null && pAttachmentList->GetCount() > 0)
+       {
+               count = pAttachmentList->GetCount();
+               pAttachmentData = new (std::nothrow) email_attachment_data_t[count];
+               memset(pAttachmentData, 0, count*sizeof(email_attachment_data_t));
+
+               for (int i=0; i<count; i++)
+               {
+                       ConvertOSPtoNativeAttachment(static_cast<EmailAttachment*>(pAttachmentList->GetAt(i)), pAttachmentData[i]);
+               }
+       }
+
+       email_meeting_request_t* pMeetingReqData = ConvertOSPtoNativeMeetingRequestN(pMeetingReq);
+       res = email_add_mail(pMailData, pAttachmentData, count, pMeetingReqData, 0);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Add mail message failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+       else
+       {
+               pTmpMsg = GetMailDataN(pMailData->mail_id);
+
+               if (pTmpMsg != null)
+               {
+                       pMsg->SetMailId(pTmpMsg->GetMailId());
+                       pMsg->SetFilePathPlain(pTmpMsg->GetFilePathPlain());
+                       pMsg->SetFilePathHtml(pTmpMsg->GetFilePathHtml());
+                       pMsg->SetFilePathMimeEntity(pTmpMsg->GetFilePathMimeEntity());
+
+                       AppLogDebug("Added, mail id:(%d)", pMsg->GetMailId());
+                       AppLogDebug("plain path:(%s)", pMsg->GetFilePathPlain().GetPointer());
+                       AppLogDebug("html path:(%s)", pMsg->GetFilePathHtml().GetPointer());
+                       AppLogDebug("mime path:(%s)", pMsg->GetFilePathMimeEntity().GetPointer());
+
+                       delete pTmpMsg;
+               }
+       }
+       CleanupNativeEmailMessageObject(pMailData, true);
+
+       email_free_attachment_data(&pAttachmentData, count);
+       CleanupNativeMeetingRequestObject(pMeetingReqData, true);
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailMailboxManager::SetFlags(int accId, int mailId, email_flags_field_type field_type, bool value, bool updateServer)
+{
+       result r = E_SUCCESS;
+       AppLogDebug("ENTER");
+       int res = email_set_flags_field(accId, &mailId, 1, field_type, value, updateServer);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Set email flags failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailMailboxManager::SetFlags(ArrayList* pEmailList, email_flags_field_type field_type, bool value, bool updateServer)
+{
+       AppLogDebug("ENTER");
+
+       int res = 0;
+       int accId = 0;
+       int* pMailIds = new (std::nothrow) int[pEmailList->GetCount()];
+
+       EmailMessageListItem* pTmpMsg = null;
+
+       for (int i=0; i<pEmailList->GetCount(); i++)
+       {
+               pTmpMsg = static_cast<EmailMessageListItem*>(pEmailList->GetAt(i));
+
+               if (pTmpMsg != null)
+               {
+                       pMailIds[i] = pTmpMsg->GetMailId();
+               }
+       }
+
+       if (pTmpMsg != null)
+       {
+               accId = pTmpMsg->GetAccountId();
+       }
+
+       res = email_set_flags_field(accId, pMailIds, pEmailList->GetCount(), field_type, value, updateServer);
+
+       delete[] pMailIds;
+
+       TryReturn(res == EMAIL_ERROR_NONE, E_FAILURE, "Set flags failed with error:(%d)", res);
+
+       AppLogDebug("EXIT");
+       return E_SUCCESS;
+}
+
+result
+EmailMailboxManager::SyncHeader(int accountId, int mailBoxId)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       int res;
+       int handle = 0;
+
+       res = email_sync_header(accountId, mailBoxId, &handle);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Header sync for account:(%d), failed with error:(%d)", accountId, res);
+               r = E_FAILURE;
+       }
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailMailboxManager::SyncMailboxList(int accountId)
+{
+       AppLogDebug("ENTER, accountId:(%d)", accountId);
+
+       int r;
+       int handle;
+
+       result res = E_SUCCESS;
+
+       r = email_sync_imap_mailbox_list(accountId, &handle);
+
+       if (r != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Failed to sync mailbox list with error:(%d)", r);
+               res = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT");
+       return res;
+}
+
+void
+EmailMailboxManager::BlockMails(const String& filterValue, email_rule_type_t filterType)
+{
+       AppLogDebug("ENTER");
+       int count = 0;
+       EmailMailbox* pTmpMailbox;
+       IList* pMailboxList = GetMailboxesN();
+       IEnumerator* pEnum = pMailboxList->GetEnumeratorN();
+       email_rule_t filterRule;
+       email_rule_t* filterSet;
+       email_get_rule_list(&filterSet, &count);
+
+       while (!IsFailed(pEnum->MoveNext()))
+       {
+               pTmpMailbox = static_cast<EmailMailbox*>(pEnum->GetCurrent());
+
+               filterRule.account_id = pTmpMailbox->GetAccountId();
+               filterRule.faction = EMAIL_FILTER_BLOCK;
+               filterRule.filter_id = count + 1;
+               filterRule.target_mailbox_id = pTmpMailbox->GetMailboxId();
+               filterRule.type = filterType;
+               filterRule.flag1 = 1; // Set it to 'ON'
+               filterRule.flag2 = RULE_TYPE_INCLUDES;
+               Utils::StringToChar(&filterValue, &filterRule.value);
+
+               email_add_rule(&filterRule);
+
+               delete []filterRule.value;
+       }
+
+       delete pEnum;
+       delete pMailboxList;
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+EmailMailboxManager::AddAttachment(int mailId, EmailAttachment* pAttachment)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       int res;
+
+       email_attachment_data_t* pNativeAttachment = ConvertOSPtoNativeAttachmentN(pAttachment);
+
+       res = email_add_attachment(mailId, pNativeAttachment);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Add attachment failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+       else
+       {
+               pAttachment->SetAttachmentId(pNativeAttachment->attachment_id);
+       }
+
+       CleanupNativeEmailAttachmentObject(pNativeAttachment, true);
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailMailboxManager::DeleteAttachment(int attachmentId)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+       int res;
+
+       res = email_delete_attachment(attachmentId);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Delete attachment failed with error:(%d)", res);
+               r = E_FAILURE;
+       }
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+ArrayList*
+EmailMailboxManager::GetAllAttachmentListN(int mailId)
+{
+       AppLogDebug("ENTER");
+       int count;
+       int res;
+
+       email_attachment_data_t* pNativeAttachmentList = null;
+       ArrayList* pAttachArr = new (std::nothrow) ArrayList();
+       pAttachArr->Construct();
+
+       res = email_get_attachment_data_list(mailId, &pNativeAttachmentList, &count);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Failed to get attachment list with error:(%d)", res);
+       }
+       else
+       {
+               for (int i = 0; i < count; i++)
+               {
+                       pAttachArr->Add((ConvertNativetoOSPAttachmentN(&pNativeAttachmentList[i])));
+               }
+               email_free_attachment_data(&pNativeAttachmentList, count);
+       }
+       AppLogDebug("EXIT");
+       return pAttachArr;
+}
+
+ArrayList*
+EmailMailboxManager::GetAttachmentsListN(int mailId)
+{
+       AppLogDebug("ENTER");
+       int count;
+       int res;
+
+       EmailMessageItem* pMsg = GetMailDataN(mailId);
+       email_attachment_data_t* pNativeAttachmentList = null;
+       ArrayList* pAttachArr = new (std::nothrow) ArrayList();
+       pAttachArr->Construct();
+
+       res = email_get_attachment_data_list(mailId, &pNativeAttachmentList, &count);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Failed to get attachment list with error:(%d)", res);
+       }
+       else
+       {
+               if (pMsg != null)
+               {
+                       for (int i = 0; i < pMsg->GetAttachmentCount(); i++)
+                       {
+                               pAttachArr->Add((ConvertNativetoOSPAttachmentN(&pNativeAttachmentList[i])));
+                       }
+               }
+
+               email_free_attachment_data(&pNativeAttachmentList, count);
+       }
+
+       delete pMsg;
+       AppLogDebug("EXIT");
+       return pAttachArr;
+}
+
+ArrayList*
+EmailMailboxManager::GetContentImagesListN(int mailId)
+{
+       AppLogDebug("ENTER");
+       int count;
+       int res;
+
+       EmailMessageItem* pMsg = GetMailDataN(mailId);
+       email_attachment_data_t* pNativeAttachmentList = null;
+       ArrayList* pAttachArr = new (std::nothrow) ArrayList();
+       pAttachArr->Construct();
+
+       res = email_get_attachment_data_list(mailId, &pNativeAttachmentList, &count);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Failed to get attachment list with error:(%d)", res);
+       }
+       else
+       {
+               for (int i = pMsg->GetAttachmentCount(); i < count; i++)
+               {
+                       pAttachArr->Add((ConvertNativetoOSPAttachmentN(&pNativeAttachmentList[i])));
+               }
+               email_free_attachment_data(&pNativeAttachmentList, count);
+       }
+
+       delete pMsg;
+       AppLogDebug("EXIT");
+       return pAttachArr;
+}
+
+
+EmailAttachment*
+EmailMailboxManager::GetAttachmentDataN(int attachmentId)
+{
+       AppLogDebug("ENTER");
+       int res;
+       EmailAttachment* pAttachment = null;
+       email_attachment_data_t* pNativeAttachment = new (std::nothrow) email_attachment_data_t();
+
+       res = email_get_attachment_data(attachmentId, &pNativeAttachment);
+
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Get Attachment data failed with error:(%d)", res);
+               delete pNativeAttachment;
+       }
+       else
+       {
+               pAttachment = ConvertNativetoOSPAttachmentN(pNativeAttachment);
+               CleanupNativeEmailAttachmentObject(pNativeAttachment, true);
+       }
+
+       AppLogDebug("EXIT");
+       return pAttachment;
+}
+
+EmailAttachment*
+EmailMailboxManager::ConvertNativetoOSPAttachmentN(email_attachment_data_t* pSrc)
+{
+       AppLogDebug("ENTER");
+
+       EmailAttachment* pDest = new (std::nothrow) EmailAttachment();
+
+       pDest->SetAttachmentId(pSrc->attachment_id);
+       AppLogDebug("Got id:(%d)", pDest->GetAttachmentId());
+
+       pDest->SetAttachmentName(pSrc->attachment_name);
+       AppLogDebug("Got name:(%ls)", pDest->GetAttachmentName().GetPointer());
+
+       pDest->SetAttachmentPath(pSrc->attachment_path);
+       AppLogDebug("Got path:(%ls)", pDest->GetAttachmentPath().GetPointer());
+
+       pDest->SetAttachmentSize(pSrc->attachment_size);
+       AppLogDebug("Got size:(%ld)", pDest->GetAttachmentSize());
+
+       pDest->SetMailId(pSrc->mail_id);
+       AppLogDebug("Got mail id:(%d)", pDest->GetMailId());
+
+       pDest->SetAccountId(pSrc->account_id);
+       AppLogDebug("Got account id:(%d)", pDest->GetAccountId());
+
+       int id;
+       String mailboxId;
+       mailboxId.Append(pDest->GetMailboxId());
+       Integer::Decode(mailboxId, id);
+       pDest->SetMailboxId(pSrc->mailbox_id);
+       AppLogDebug("Got mailbox id:(%d)", id);
+
+       pDest->SetSaveStatus(pSrc->save_status);
+       AppLogDebug("Got save status:(%d)", pDest->GetSaveStatus());
+
+       pDest->SetDrmStatus(pSrc->drm_status);
+       AppLogDebug("Got drm status:(%d)", pDest->GetDrmStatus());
+
+       pDest->SetInlineContentStatus(pSrc->inline_content_status);
+       AppLogDebug("Got inline content status:(%d)", pDest->GetInlineContentStatus());
+
+       pDest->SetAttachmentMimeType(pSrc->attachment_mime_type);
+       AppLogDebug("Got mime type:(%ls), source mime type:(%s)", pDest->GetAttachmentMimeType().GetPointer(), pSrc->attachment_mime_type);
+
+       AppLogDebug("EXIT");
+       return pDest;
+}
+
+result
+EmailMailboxManager::AddData(int mailId, int mailboxId)
+{
+       AppLogDebug("ENTER, mailId:(%d), mailboxId:(%d)", mailId, mailboxId);
+
+       int res;
+       int filterCount=3;
+       int resultCount=0;
+       result r = E_SUCCESS;
+
+       email_mail_list_item_t* pMailListItem = null;
+       email_list_filter_t* pMailIdFilter = (email_list_filter_t*)malloc(sizeof(email_list_filter_t)*filterCount);
+       EmailMessageListItem* pMsgListItem = null;
+
+       if (pMailIdFilter != null)
+       {
+               memset(pMailIdFilter, 0, sizeof(email_list_filter_t)*filterCount);
+               pMailIdFilter[0].list_filter_item_type = EMAIL_LIST_FILTER_ITEM_RULE;
+               pMailIdFilter[0].list_filter_item.rule.rule_type = EMAIL_LIST_FILTER_RULE_EQUAL;
+               pMailIdFilter[0].list_filter_item.rule.target_attribute = EMAIL_MAIL_ATTRIBUTE_MAIL_ID;
+               pMailIdFilter[0].list_filter_item.rule.key_value.integer_type_value = mailId;
+
+               pMailIdFilter[1].list_filter_item_type = EMAIL_LIST_FILTER_ITEM_OPERATOR;
+               pMailIdFilter[1].list_filter_item.operator_type = EMAIL_LIST_FILTER_OPERATOR_AND;
+
+               pMailIdFilter[2].list_filter_item_type = EMAIL_LIST_FILTER_ITEM_RULE;
+               pMailIdFilter[2].list_filter_item.rule.rule_type = EMAIL_LIST_FILTER_RULE_EQUAL;
+               pMailIdFilter[2].list_filter_item.rule.target_attribute = EMAIL_MAIL_ATTRIBUTE_MAILBOX_ID;
+               pMailIdFilter[2].list_filter_item.rule.key_value.integer_type_value = mailboxId;
+
+               res = email_get_mail_list_ex(pMailIdFilter, filterCount, null, 0, -1, -1, &pMailListItem, &resultCount);
+               if (res == EMAIL_ERROR_NONE && resultCount == 1) // Count should be 1, since we are looking for a specific mailId
+               {
+                       pMsgListItem = new (std::nothrow) EmailMessageListItem();
+                       ConvertNativetoOSPEmailMessageListItem(pMailListItem, pMsgListItem);
+                       r = AddData(pMsgListItem);
+
+                       free(pMailListItem);
+                       email_free_list_filter(&pMailIdFilter, filterCount);
+               }
+               else
+               {
+                       AppLogDebug("Failed to get mail details from DB");
+                       r = E_FAILURE;
+               }
+       }
+
+       AppLogDebug("EXIT, r:(%s)", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailMailboxManager::AddData(EmailMessageListItem* pMsg)
+{
+       AppLogDebug("ENTER, mailid:(%d)", pMsg->GetMailId());
+
+       ArrayList* pMessages = null;
+       result r = E_SUCCESS;
+
+       if (pMsg != null)
+       {
+               EmailMailbox* pMailbox = GetMailboxById(pMsg->GetMailboxId());
+               if (pMailbox != null)
+               {
+                       pMessages = pMailbox->GetMessages();
+
+                       if (pMessages != null && pMessages->GetCount() > 0) // null check for outbox id changing randomly and count check for lazy loading
+                       {
+                               r = pMessages->Add(pMsg);
+                       }
+                       else
+                       {
+                               delete pMsg;
+                       }
+               }
+       }
+
+       AppLogDebug("EXIT, r:(%s)", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailMailboxManager::MoveData(int fromMailboxId, int toMailboxId, HashMap* pMailIdMap)
+{
+       AppLogDebug("ENTER, fromMailbox:(%d), toMailbox:(%d)", fromMailboxId, toMailboxId);
+
+       result r = E_SUCCESS;
+
+       EmailMailbox* pFromMailbox = null;
+       EmailMailbox* pToMailbox = null;
+       EmailMessageListItem* pTmpMsg;
+       ArrayList* pFromList = null;
+       ArrayList* pToList = null;
+
+       if (pMailIdMap != null && fromMailboxId > 0 && toMailboxId > 0)
+       {
+               pFromMailbox = GetMailboxById(fromMailboxId);
+               pToMailbox = GetMailboxById(toMailboxId);
+
+               if (pFromMailbox != null && pToMailbox != null)
+               {
+                       pFromList = pFromMailbox->GetMessages();
+                       pToList = pToMailbox->GetMessages();
+
+                       for (int i=pFromList->GetCount()-1; i>=0; i--)
+                       {
+                               pTmpMsg = static_cast<EmailMessageListItem*>(pFromList->GetAt(i));
+
+                               if (pTmpMsg != null && pMailIdMap->GetValue(Integer(pTmpMsg->GetMailId())) != null)
+                               {
+                                       pFromList->RemoveAt(i, false);
+
+                                       // Lazy Loading check
+                                       if (pToList->GetCount() > 0)
+                                       {
+                                               pTmpMsg->SetMailboxId(toMailboxId);
+                                               pToList->Add(pTmpMsg);
+                                       }
+                                       else
+                                       {
+                                               delete pTmpMsg;
+                                               pTmpMsg = null;
+                                       }
+                               }
+                       }
+               }
+               else
+               {
+                       r = E_FAILURE;
+               }
+       }
+       else
+       {
+               r = E_FAILURE;
+       }
+
+       AppLogDebug("EXIT, result:(%s)", GetErrorMessage(r));
+       return r;
+}
+
+result
+EmailMailboxManager::RemoveData(int accountId, String* pData)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       Integer* pTmpAccId = null;
+       EmailMailbox* pTmpMailbox = null;
+       EmailMessageItem* pMsg = null;
+       IMapEnumerator* pMapEnum = __pMailbox->GetMapEnumeratorN();
+
+       while (!IsFailed(pMapEnum->MoveNext()))
+       {
+               pTmpAccId = static_cast<Integer*>(pMapEnum->GetKey());
+
+               if (pTmpAccId->ToInt() == accountId)
+               {
+                       pTmpMailbox = static_cast<EmailMailbox*>(pMapEnum->GetValue());
+
+                       if (pTmpMailbox != null)
+                       {
+                               String token;
+                               String delim(L",");
+                               StringTokenizer MailIdTokenizer(*pData, delim);
+
+                               while (MailIdTokenizer.HasMoreTokens())
+                               {
+                                       int mailId;
+                                       IEnumerator* pListEnum = pTmpMailbox->GetMessages()->GetEnumeratorN();
+                                       MailIdTokenizer.GetNextToken(token);
+                                       Integer::Parse(token, mailId);
+
+                                       if (pListEnum != null)
+                                       {
+                                               while (!IsFailed(pListEnum->MoveNext()))
+                                               {
+                                                       pMsg = static_cast<EmailMessageItem*>(pListEnum->GetCurrent());
+
+                                                       if (pMsg != null && pMsg->GetMailId() == mailId)
+                                                       {
+                                                               AppLogDebug("Got pMsg:(%x), mailId:(%d)", pMsg, pMsg->GetMailId());
+                                                               break;
+                                                       }
+
+                                                       pMsg = null;
+                                               }
+                                               delete pListEnum;
+
+                                               if (pMsg != null)
+                                               {
+                                                       AppLogDebug("check deleting mail of mailid %d, address:(%x)", mailId, pMsg);
+                                                       pTmpMailbox->GetMessages()->Remove(*pMsg, true);
+
+                                                       pMsg = null;
+                                               }
+                                       }
+                               }
+                       }
+               }
+       }
+       delete pMapEnum;
+
+       AppLogDebug("EXIT");
+
+       return r;
+}
+
+void
+EmailMailboxManager::RefreshMailboxes(int accountId)
+{
+       AppLogDebug("ENTER");
+
+       int res;
+       int count;
+       result r = E_SUCCESS;
+       email_mailbox_t* mailboxList = null;
+
+       if(__pMailbox == null)
+       {
+               __pMailbox = new (std::nothrow) MultiHashMap();
+               r = __pMailbox->Construct();
+       }
+
+       if (__pMailbox->GetCount())
+       {
+               __pMailbox->Remove(Integer(accountId), true); // remove mailboxes if it already exists
+       }
+
+       res = email_get_mailbox_list_ex(accountId, EMAIL_MAILBOX_ALL, 1, &mailboxList, &count);
+       if (res != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("EmailApp::Error:(%d), Failed to get mailbox list for account:(%d)", res, accountId);
+       }
+       ProcessData(&mailboxList, count);
+       email_free_mailbox(&mailboxList, count);
+
+       AppLogDebug("EXIT : r = %s", GetErrorMessage(r));
+       return;
+}
+
+/********************************************************\
+ * Email Mailbox Class Definitions
+\********************************************************/
+
+const int&
+EmailMailbox::GetAccountId() const
+{
+    return __accountId;
+}
+
+const Tizen::Base::TimeSpan&
+EmailMailbox::GetLastSyncTime() const
+{
+    return __lastSyncTime;
+}
+
+const int&
+EmailMailbox::GetLocal() const
+{
+    return __local;
+}
+
+const int&
+EmailMailbox::GetMailSlotSize() const
+{
+    return __mailSlotSize;
+}
+
+const Tizen::Base::String&
+EmailMailbox::GetMailboxAlias() const
+{
+    return __mailboxAlias;
+}
+
+const int&
+EmailMailbox::GetMailboxId() const
+{
+    return __mailboxId;
+}
+
+const Tizen::Base::String&
+EmailMailbox::GetMailboxName() const
+{
+    return __mailboxName;
+}
+
+const email_mailbox_type_e&
+EmailMailbox::GetMailboxType() const
+{
+    return __mailboxType;
+}
+
+ArrayList*
+EmailMailbox::GetMessages()
+{
+    return __pMessages;
+}
+
+const int&
+EmailMailbox::GetNoSelect() const
+{
+    return __noSelect;
+}
+
+const int&
+EmailMailbox::GetTotalMailCountOnLocal() const
+{
+    return __totalMailCountOnLocal;
+}
+
+const int&
+EmailMailbox::GetTotalMailCountOnServer() const
+{
+    return __totalMailCountOnServer;
+}
+
+const int&
+EmailMailbox::GetUnreadCount() const
+{
+    return __unreadCount;
+}
+
+void
+EmailMailbox::SetAccountId(int accountId)
+{
+    __accountId = accountId;
+}
+
+void
+EmailMailbox::SetLastSyncTime(const Tizen::Base::TimeSpan& lastSyncTime)
+{
+    __lastSyncTime = lastSyncTime;
+}
+
+void
+EmailMailbox::SetLocal(int local)
+{
+    __local = local;
+}
+
+void
+EmailMailbox::SetMailSlotSize(int mailSlotSize)
+{
+    __mailSlotSize = mailSlotSize;
+}
+
+void
+EmailMailbox::SetMailboxAlias(Tizen::Base::String mailboxAlias)
+{
+    __mailboxAlias = mailboxAlias;
+}
+
+void
+EmailMailbox::SetMailboxId(int mailboxId)
+{
+    __mailboxId = mailboxId;
+}
+
+void
+EmailMailbox::SetMailboxName(Tizen::Base::String mailboxName)
+{
+    __mailboxName = mailboxName;
+}
+
+void
+EmailMailbox::SetMailboxType(email_mailbox_type_e mailboxType)
+{
+    __mailboxType = mailboxType;
+}
+
+void
+EmailMailbox::SetMailboxTypeDB(email_mailbox_type_e mailboxType)
+{
+       AppLogDebug("ENTER, mailboxId:(%d), mailboxType:(%d)", __mailboxId, mailboxType);
+
+       int r;
+       r = email_set_mailbox_type(__mailboxId, mailboxType);
+
+       if (r != EMAIL_ERROR_NONE)
+       {
+               AppLogDebug("Failed to set mailbox type, error:(%d)", r);
+       }
+       else
+       {
+               __mailboxType = mailboxType;
+       }
+
+       AppLogDebug("EXIT, r:(%s)", GetErrorMessage(r));
+       return;
+}
+
+void
+EmailMailbox::SetNoSelect(int noSelect)
+{
+    __noSelect = noSelect;
+}
+
+void
+EmailMailbox::SetTotalMailCountOnLocal(int totalMailCountOnLocal)
+{
+    __totalMailCountOnLocal = totalMailCountOnLocal;
+}
+
+void
+EmailMailbox::SetTotalMailCountOnServer(int totalMailCountOnServer)
+{
+    __totalMailCountOnServer = totalMailCountOnServer;
+}
+
+void
+EmailMailbox::SetUnreadCount(int unreadCount)
+{
+    __unreadCount = unreadCount;
+}
+
+
+/********************************************************\
+ * Email Message List Item Class Definitions
+\********************************************************/
+const int&
+EmailMessageListItem::GetAccountId() const
+{
+    return __accountId;
+}
+
+Tizen::Base::DateTime&
+EmailMessageListItem::GetDateTime()
+{
+    return __dateTime;
+}
+
+const Tizen::Base::String&
+EmailMessageListItem::GetFrom() const
+{
+    return __fullAddressFrom;
+}
+
+const Tizen::Base::String&
+EmailMessageListItem::GetFromEmailAddress() const
+{
+    return __emailAddressSender;
+}
+
+const int&
+EmailMessageListItem::GetHasAttachment() const
+{
+    return __attachmentCount;
+}
+
+const int&
+EmailMessageListItem::GetHasDrmAttachment() const
+{
+    return __drmStatus;
+}
+
+const Tizen::Base::DateTime&
+EmailMessageListItem::GetLocalDateTime() const
+{
+       AppLogDebug("__localDateTime:(%ls)", __localDateTime.ToString().GetPointer());
+    return __localDateTime;
+}
+
+const int&
+EmailMessageListItem::GetMailId() const
+{
+    return __mailId;
+}
+
+const int&
+EmailMessageListItem::GetMailboxId() const
+{
+    return __mailboxId;
+}
+
+const int&
+EmailMessageListItem::GetMessageClass() const
+{
+    return __messageClass;
+}
+
+const Tizen::Base::String&
+EmailMessageListItem::GetPreviewBodyText() const
+{
+    return __previewText;
+}
+
+const int&
+EmailMessageListItem::GetPriority() const
+{
+    return __priority;
+}
+
+const Tizen::Base::String&
+EmailMessageListItem::GetRecipients() const
+{
+    return __emailAddressRecipients;
+}
+
+const int&
+EmailMessageListItem::GetSmimeType() const
+{
+    return __smimeType;
+}
+
+const Tizen::Base::String&
+EmailMessageListItem::GetSubject() const
+{
+    return __subject;
+}
+
+const int&
+EmailMessageListItem::GetThreadId() const
+{
+    return __threadId;
+}
+
+const int&
+EmailMessageListItem::GetThreadItemCount() const
+{
+    return __threadItemCount;
+}
+
+void
+EmailMessageListItem::SetAccountId(int accountId)
+{
+    this->__accountId = accountId;
+}
+
+void
+EmailMessageListItem::SetFlagsAnsweredField(bool flagsAnsweredField)
+{
+    this->__flagsAnsweredField = flagsAnsweredField;
+}
+
+void
+EmailMessageListItem::SetFlagsDeletedField(bool flagsDeletedField)
+{
+    this->__flagsDeletedField = flagsDeletedField;
+}
+
+void
+EmailMessageListItem::SetFlagsDraftField(bool flagsDraftField)
+{
+    this->__flagsDraftField = flagsDraftField;
+}
+
+void
+EmailMessageListItem::SetFlagsFlaggedField(bool flagsFlaggedField)
+{
+    this->__flagsFlaggedField = flagsFlaggedField;
+}
+
+void
+EmailMessageListItem::SetFlagsForwardedField(bool flagsForwardedField)
+{
+    this->__flagsForwardedField = flagsForwardedField;
+}
+
+void
+EmailMessageListItem::SetFlagsRecentField(bool flagsRecentField)
+{
+    this->__flagsRecentField = flagsRecentField;
+}
+
+void
+EmailMessageListItem::SetFlagsSeenField(bool flagsSeenField)
+{
+    this->__flagsSeenField = flagsSeenField;
+}
+
+void
+EmailMessageListItem::SetFullAddressFrom(Tizen::Base::String from)
+{
+    this->__fullAddressFrom = from;
+}
+
+void
+EmailMessageListItem::SetEmailAddressSender(Tizen::Base::String fromEmailAddress)
+{
+    this->__emailAddressSender = fromEmailAddress;
+}
+
+void
+EmailMessageListItem::SetAttachmentCount(int attachmentCount)
+{
+    this->__attachmentCount = attachmentCount;
+}
+
+void
+EmailMessageListItem::SetDrmStatus(int drmStatus)
+{
+    this->__drmStatus = drmStatus;
+}
+
+void
+EmailMessageListItem::SetLockStatus(bool lockStatus)
+{
+    this->__lockStatus = lockStatus;
+}
+
+void
+EmailMessageListItem::SetIsMeetingRequest(email_mail_type_t meetingRequestStatus)
+{
+    this->__meetingRequestStatus = meetingRequestStatus;
+}
+
+void
+EmailMessageListItem::SetReportStatus(email_mail_report_t reportStatus)
+{
+    this->__reportStatus = reportStatus;
+}
+
+void
+EmailMessageListItem::SetIsTextDownloaded(bool isTextDownloaded)
+{
+    this->__bodyDownloadStatus = isTextDownloaded;
+}
+
+void
+EmailMessageListItem::SetLocalDateTime(Tizen::Base::DateTime localDateTime)
+{
+    this->__localDateTime = localDateTime;
+}
+
+void
+EmailMessageListItem::SetMailId(int mailId)
+{
+    this->__mailId = mailId;
+}
+
+void
+EmailMessageListItem::SetMailboxId(int mailboxId)
+{
+    this->__mailboxId = mailboxId;
+}
+
+void
+EmailMessageListItem::SetMessageClass(int messageClass)
+{
+    this->__messageClass = messageClass;
+}
+
+void
+EmailMessageListItem::SetPreviewText(Tizen::Base::String previewText)
+{
+    this->__previewText = previewText;
+}
+
+void
+EmailMessageListItem::SetPriority(int priority)
+{
+    this->__priority = priority;
+}
+
+void
+EmailMessageListItem::SetEmailAddressRecipient(Tizen::Base::String recipients)
+{
+    this->__emailAddressRecipients = recipients;
+}
+
+void
+EmailMessageListItem::SetSaveStatus(bool saveStatus)
+{
+    this->__saveStatus = saveStatus;
+}
+
+void
+EmailMessageListItem::SetSmimeType(int smimeType)
+{
+    this->__smimeType = smimeType;
+}
+
+void
+EmailMessageListItem::SetSubject(Tizen::Base::String subject)
+{
+    this->__subject = subject;
+    if (this->__subject.IsEmpty())
+    {
+       this->__subject.Append(" ");
+    }
+}
+
+void
+EmailMessageListItem::SetThreadId(int threadId)
+{
+    this->__threadId = threadId;
+}
+
+void
+EmailMessageListItem::SetThreadItemCount(int threadItemCount)
+{
+    this->__threadItemCount = threadItemCount;
+}
+
+bool
+EmailMessageListItem::isFlagsAnsweredField() const
+{
+    return __flagsAnsweredField;
+}
+
+bool
+EmailMessageListItem::isFlagsDeletedField() const
+{
+    return __flagsDeletedField;
+}
+
+bool
+EmailMessageListItem::isFlagsDraftField() const
+{
+    return __flagsDraftField;
+}
+
+bool
+EmailMessageListItem::isFlagsFlaggedField() const
+{
+    return __flagsFlaggedField;
+}
+
+bool
+EmailMessageListItem::isFlagsForwardedField() const
+{
+    return __flagsForwardedField;
+}
+
+bool
+EmailMessageListItem::isFlagsRecentField() const
+{
+    return __flagsRecentField;
+}
+
+bool
+EmailMessageListItem::isFlagsSeenField() const
+{
+    return __flagsSeenField;
+}
+
+bool
+EmailMessageListItem::isIsLocked() const
+{
+    return __lockStatus;
+}
+
+bool
+EmailMessageListItem::isIsMeetingRequest() const
+{
+    return __meetingRequestStatus;
+}
+
+bool
+EmailMessageListItem::isIsReportMail() const
+{
+    return __reportStatus;
+}
+
+bool
+EmailMessageListItem::isIsTextDownloaded() const
+{
+    return __bodyDownloadStatus;
+}
+
+bool
+EmailMessageListItem::isSaveStatus() const
+{
+    return __saveStatus;
+}
+
+/********************************************************\
+ * Email Message Item Class Definitions
+\********************************************************/
+
+const int&
+EmailMessageItem::GetAccountId() const
+{
+    return __accountId;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetAliasRecipient() const
+{
+    return __aliasRecipient;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetAliasSender() const
+{
+    return __aliasSender;
+}
+
+const int&
+EmailMessageItem::GetAttachmentCount() const
+{
+    return __attachmentCount;
+}
+
+bool
+EmailMessageItem::GetHasAttachment(void)
+{
+       return __hasAttachment;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetBody() const
+{
+    return __body;
+}
+
+const int&
+EmailMessageItem::GetBodyDownloadStatus() const
+{
+    return __bodyDownloadStatus;
+}
+
+DateTime&
+EmailMessageItem::GetDateTime()
+{
+    return __dateTime;
+}
+
+DateTime&
+EmailMessageItem::GetLocalDateTime()
+{
+       return __localDateTime;
+}
+
+const Tizen::Base::DateTime&
+EmailMessageItem::GetDateTime() const
+{
+    return __dateTime;
+}
+
+const email_digest_type&
+EmailMessageItem::GetDigestType() const
+{
+    return __digestType;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetEmailAddressRecipient() const
+{
+    return __emailAddressRecipient;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetEmailAddressSender() const
+{
+    return __emailAddressSender;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFilePathHtml() const
+{
+    return __filePathHtml;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFilePathMimeEntity() const
+{
+    return __filePathMimeEntity;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFilePathPlain() const
+{
+    return __filePathPlain;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFullAddressBcc() const
+{
+    return __fullAddressBcc;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFullAddressCc() const
+{
+    return __fullAddressCc;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFullAddressFrom() const
+{
+    return __fullAddressFrom;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFullAddressReply() const
+{
+    return __fullAddressReply;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFullAddressReturn() const
+{
+    return __fullAddressReturn;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetFullAddressTo() const
+{
+    return __fullAddressTo;
+}
+
+const int&
+EmailMessageItem::GetInlineContentCount() const
+{
+    return __inlineContentCount;
+}
+
+const int&
+EmailMessageItem::GetMailId() const
+{
+    return __mailId;
+}
+
+const int&
+EmailMessageItem::GetMailSize() const
+{
+    return __mailSize;
+}
+
+const int&
+EmailMessageItem::GetMailboxId() const
+{
+    return __mailboxId;
+}
+
+const email_mailbox_type_e&
+EmailMessageItem::GetMailboxType() const
+{
+    return __mailboxType;
+}
+
+const email_mail_type_t&
+EmailMessageItem::GetMeetingRequestStatus() const
+{
+    return __meetingRequestStatus;
+}
+
+const int&
+EmailMessageItem::GetMessageClass() const
+{
+    return __messageClass;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetMessageId() const
+{
+    return __messageId;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetPreviewText() const
+{
+    return __previewText;
+}
+
+const email_mail_priority_t&
+EmailMessageItem::GetPriority() const
+{
+    return __priority;
+}
+
+const email_mail_report_t&
+EmailMessageItem::GetReportStatus() const
+{
+    return __reportStatus;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetServerMailId() const
+{
+    return __serverMailId;
+}
+
+const int&
+EmailMessageItem::GetServerMailStatus() const
+{
+    return __serverMailStatus;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetServerMailboxName() const
+{
+    return __serverMailboxName;
+}
+
+const email_smime_type&
+EmailMessageItem::GetSmimeType() const
+{
+    return __smimeType;
+}
+
+const Tizen::Base::String&
+EmailMessageItem::GetSubject() const
+{
+    return __subject;
+}
+
+const int&
+EmailMessageItem::GetThreadId() const
+{
+    return __threadId;
+}
+
+const int&
+EmailMessageItem::GetThreadItemCount() const
+{
+    return __threadItemCount;
+}
+
+void
+EmailMessageItem::SetAccountId(int accountId)
+{
+    this->__accountId = accountId;
+}
+
+void
+EmailMessageItem::SetAliasRecipient(Tizen::Base::String aliasRecipient)
+{
+    this->__aliasRecipient = aliasRecipient;
+}
+
+void
+EmailMessageItem::SetAliasSender(Tizen::Base::String aliasSender)
+{
+    this->__aliasSender = aliasSender;
+}
+
+void
+EmailMessageItem::SetAttachmentCount(int attachmentCount)
+{
+    this->__attachmentCount = attachmentCount;
+}
+
+void
+EmailMessageItem::SetBody(Tizen::Base::String body)
+{
+    this->__body = body;
+}
+
+void
+EmailMessageItem::SetBodyDownloadStatus(int bodyDownloadStatus)
+{
+    this->__bodyDownloadStatus = bodyDownloadStatus;
+}
+
+void
+EmailMessageItem::SetDigestType(email_digest_type digestType)
+{
+    this->__digestType = digestType;
+}
+
+void
+EmailMessageItem::SetDrmStatus(bool drmStatus)
+{
+    __DRMStatus = drmStatus;
+}
+
+void
+EmailMessageItem::SetEmailAddressRecipient(Tizen::Base::String emailAddressRecipient)
+{
+    this->__emailAddressRecipient = emailAddressRecipient;
+}
+
+void
+EmailMessageItem::SetEmailAddressSender(Tizen::Base::String emailAddressSender)
+{
+    this->__emailAddressSender = emailAddressSender;
+}
+
+void
+EmailMessageItem::SetFilePathHtml(Tizen::Base::String filePathHtml)
+{
+    this->__filePathHtml = filePathHtml;
+}
+
+void
+EmailMessageItem::SetFilePathMimeEntity(Tizen::Base::String filePathMimeEntity)
+{
+    this->__filePathMimeEntity = filePathMimeEntity;
+}
+
+void
+EmailMessageItem::SetFilePathPlain(Tizen::Base::String filePathPlain)
+{
+    this->__filePathPlain = filePathPlain;
+}
+
+void
+EmailMessageItem::SetFlagsAnsweredField(bool flagsAnsweredField)
+{
+    this->__flagsAnsweredField = flagsAnsweredField;
+}
+
+void
+EmailMessageItem::SetFlagsDeletedField(bool flagsDeletedField)
+{
+    this->__flagsDeletedField = flagsDeletedField;
+}
+
+void
+EmailMessageItem::SetFlagsDraftField(bool flagsDraftField)
+{
+    this->__flagsDraftField = flagsDraftField;
+}
+
+void
+EmailMessageItem::SetFlagsFlaggedField(bool flagsFlaggedField)
+{
+    this->__flagsFlaggedField = flagsFlaggedField;
+}
+
+void
+EmailMessageItem::SetFlagsForwardedField(bool flagsForwardedField)
+{
+    this->__flagsForwardedField = flagsForwardedField;
+}
+
+void
+EmailMessageItem::SetFlagsRecentField(bool flagsRecentField)
+{
+    this->__flagsRecentField = flagsRecentField;
+}
+
+void
+EmailMessageItem::SetFlagsSeenField(bool flagsSeenField)
+{
+    this->__flagsSeenField = flagsSeenField;
+}
+
+void
+EmailMessageItem::SetFullAddressBcc(Tizen::Base::String fullAddressBcc)
+{
+    this->__fullAddressBcc = fullAddressBcc;
+}
+
+void
+EmailMessageItem::SetFullAddressCc(Tizen::Base::String fullAddressCc)
+{
+    this->__fullAddressCc = fullAddressCc;
+}
+
+void
+EmailMessageItem::SetFullAddressFrom(Tizen::Base::String fullAddressFrom)
+{
+    this->__fullAddressFrom = fullAddressFrom;
+}
+
+void
+EmailMessageItem::SetFullAddressReply(Tizen::Base::String fullAddressReply)
+{
+    this->__fullAddressReply = fullAddressReply;
+}
+
+void
+EmailMessageItem::SetFullAddressReturn(Tizen::Base::String fullAddressReturn)
+{
+    this->__fullAddressReturn = fullAddressReturn;
+}
+
+void
+EmailMessageItem::SetFullAddressTo(Tizen::Base::String fullAddressTo)
+{
+    this->__fullAddressTo = fullAddressTo;
+}
+
+void
+EmailMessageItem::SetInlineContentCount(int inlineContentCount)
+{
+    this->__inlineContentCount = inlineContentCount;
+}
+
+void
+EmailMessageItem::SetLocalDateTime(DateTime dateTime)
+{
+       __localDateTime = dateTime;
+}
+
+void
+EmailMessageItem::SetLockStatus(bool lockStatus)
+{
+    this->__lockStatus = lockStatus;
+}
+
+void
+EmailMessageItem::SetMailId(int mailId)
+{
+    this->__mailId = mailId;
+}
+
+void
+EmailMessageItem::SetMailSize(int mailSize)
+{
+    this->__mailSize = mailSize;
+}
+
+void
+EmailMessageItem::SetMailboxId(int mailboxId)
+{
+    this->__mailboxId = mailboxId;
+}
+
+void
+EmailMessageItem::SetMailboxType(email_mailbox_type_e mailboxType)
+{
+    this->__mailboxType = mailboxType;
+}
+
+void
+EmailMessageItem::SetMeetingRequestStatus(email_mail_type_t meetingRequestStatus)
+{
+    this->__meetingRequestStatus = meetingRequestStatus;
+}
+
+void
+EmailMessageItem::SetMessageClass(int messageClass)
+{
+    this->__messageClass = messageClass;
+}
+
+void
+EmailMessageItem::SetMessageId(Tizen::Base::String messageId)
+{
+    this->__messageId = messageId;
+}
+
+void
+EmailMessageItem::SetPreviewText(Tizen::Base::String previewText)
+{
+    this->__previewText = previewText;
+}
+
+void
+EmailMessageItem::SetPriority(email_mail_priority_t priority)
+{
+    this->__priority = priority;
+}
+
+void
+EmailMessageItem::SetReportStatus(email_mail_report_t reportStatus)
+{
+    this->__reportStatus = reportStatus;
+}
+
+void
+EmailMessageItem::SetSaveStatus(email_mail_status_t saveStatus)
+{
+    this->__saveStatus = saveStatus;
+}
+
+void
+EmailMessageItem::SetServerMailId(Tizen::Base::String serverMailId)
+{
+    this->__serverMailId = serverMailId;
+}
+
+void
+EmailMessageItem::SetServerMailStatus(int serverMailStatus)
+{
+    this->__serverMailStatus = serverMailStatus;
+}
+
+void
+EmailMessageItem::SetServerMailboxName(Tizen::Base::String serverMailboxName)
+{
+    this->__serverMailboxName = serverMailboxName;
+}
+
+void
+EmailMessageItem::SetSmimeType(email_smime_type smimeType)
+{
+    this->__smimeType = smimeType;
+}
+
+void
+EmailMessageItem::SetSubject(Tizen::Base::String subject)
+{
+    this->__subject = subject;
+}
+
+void
+EmailMessageItem::SetThreadId(int threadId)
+{
+    this->__threadId = threadId;
+}
+
+void
+EmailMessageItem::SetThreadItemCount(int threadItemCount)
+{
+    this->__threadItemCount = threadItemCount;
+}
+
+void
+EmailMessageItem::SetHasAttachment(void)
+{
+       __hasAttachment = (__attachmentCount/*-__inlineContentCount*/)>0?1:0;
+}
+
+bool
+EmailMessageItem::isDrmStatus() const
+{
+    return __DRMStatus;
+}
+
+bool
+EmailMessageItem::isFlagsAnsweredField() const
+{
+    return __flagsAnsweredField;
+}
+
+bool
+EmailMessageItem::isFlagsDeletedField() const
+{
+    return __flagsDeletedField;
+}
+
+bool
+EmailMessageItem::isFlagsDraftField() const
+{
+    return __flagsDraftField;
+}
+
+bool
+EmailMessageItem::isFlagsFlaggedField() const
+{
+    return __flagsFlaggedField;
+}
+
+bool
+EmailMessageItem::isFlagsForwardedField() const
+{
+    return __flagsForwardedField;
+}
+
+bool
+EmailMessageItem::isFlagsRecentField() const
+{
+    return __flagsRecentField;
+}
+
+bool
+EmailMessageItem::isFlagsSeenField() const
+{
+    return __flagsSeenField;
+}
+
+bool
+EmailMessageItem::isLockStatus() const
+{
+    return __lockStatus;
+}
+
+email_mail_status_t
+EmailMessageItem::isSaveStatus() const
+{
+    return __saveStatus;
+}
+
+/********************************************************\
+ * Email Attachment Item Class Definitions
+\********************************************************/
+
+const int&
+EmailAttachment::GetAccountId() const
+{
+    return __accountId;
+}
+
+const int&
+EmailAttachment::GetAttachmentId() const
+{
+    return __attachmentId;
+}
+
+const Tizen::Base::String&
+EmailAttachment::GetAttachmentMimeType() const
+{
+    return __attachmentMimeType;
+}
+
+const Tizen::Base::String&
+EmailAttachment::GetAttachmentName() const
+{
+    return __attachmentName;
+}
+
+const Tizen::Base::String&
+EmailAttachment::GetAttachmentPath() const
+{
+       AppLogDebug("attachment path %ls", __attachmentPath.GetPointer());
+    return __attachmentPath;
+}
+
+const long long&
+EmailAttachment::GetAttachmentSize() const
+{
+    return __attachmentSize;
+}
+
+const int&
+EmailAttachment::GetDrmStatus() const
+{
+    return __drmStatus;
+}
+
+const int&
+EmailAttachment::GetInlineContentStatus() const
+{
+    return __inlineContentStatus;
+}
+
+const int&
+EmailAttachment::GetMailId() const
+{
+    return __mailId;
+}
+
+const char&
+EmailAttachment::GetMailboxId() const
+{
+    return __mailboxId;
+}
+
+const int&
+EmailAttachment::GetSaveStatus() const
+{
+    return __saveStatus;
+}
+
+void
+EmailAttachment::SetAccountId(int accountId)
+{
+    this->__accountId = accountId;
+}
+
+void
+EmailAttachment::SetAttachmentId(int attachmentId)
+{
+    this->__attachmentId = attachmentId;
+}
+
+void
+EmailAttachment::SetAttachmentMimeType(Tizen::Base::String attachmentMimeType)
+{
+    __attachmentMimeType = attachmentMimeType;
+}
+
+void
+EmailAttachment::SetAttachmentName(Tizen::Base::String attachmentName)
+{
+    this->__attachmentName = attachmentName;
+}
+
+void
+EmailAttachment::SetAttachmentPath(Tizen::Base::String attachmentPath)
+{
+    this->__attachmentPath = attachmentPath;
+}
+
+void
+EmailAttachment::SetAttachmentSize(long long attachmentSize)
+{
+    this->__attachmentSize = attachmentSize;
+}
+
+void
+EmailAttachment::SetDrmStatus(int drmStatus)
+{
+    this->__drmStatus = drmStatus;
+}
+
+void
+EmailAttachment::SetInlineContentStatus(int inlineContentStatus)
+{
+    this->__inlineContentStatus = inlineContentStatus;
+}
+
+void
+EmailAttachment::SetMailId(int mailId)
+{
+    this->__mailId = mailId;
+}
+
+void
+EmailAttachment::SetMailboxId(char mailboxId)
+{
+    this->__mailboxId = mailboxId;
+}
+
+void
+EmailAttachment::SetSaveStatus(int saveStatus)
+{
+    this->__saveStatus = saveStatus;
+}
+
+void
+EmailAttachment::SetDownloadPercent(int percent)
+{
+       __downloadPercent = percent;
+}
+
+const int&
+EmailAttachment::GetDownloadPercent(void) const
+{
+       return __downloadPercent;
+}
+
+int&
+EmailAttachment::GetDownloadHandle(void)
+{
+       return __downloadHandle;
+}
+
+const int&
+EmailAttachment::GetDownloadHandle(void) const
+{
+       return __downloadHandle;
+}
+
+const int
+EmailAttachment::GetAttachmentDownloadStatus(void) const
+{
+       return __attachmentDownloadStatus;
+}
+
+void
+EmailAttachment::SetAttachmentDownloadStatus(int status)
+{
+       __attachmentDownloadStatus = (email_download_status_t)status;
+}
+
+const Bitmap*
+EmailAttachment::GetThumbnail(void) const
+{
+       return __pThumbnail;
+}
+
+void
+EmailAttachment::SetThumbnail(Bitmap* pThumbnail)
+{
+       __pThumbnail = pThumbnail;
+}
+
+/********************************************************\
+ * Email Meeting Request Class Definitions
+\********************************************************/
+
+const Tizen::Base::DateTime&
+EmailMeetingRequest::GetEndTime() const
+{
+    return __endTime;
+}
+
+const Tizen::Base::String&
+EmailMeetingRequest::GetGlobalObjectId() const
+{
+    return __globalObjectId;
+}
+
+const Tizen::Base::String&
+EmailMeetingRequest::GetLocation() const
+{
+    return __location;
+}
+
+const int&
+EmailMeetingRequest::GetMailId() const
+{
+    return __mailId;
+}
+
+const email_meeting_response_t&
+EmailMeetingRequest::GetMeetingResponse() const
+{
+    return __meetingResponse;
+}
+
+const Tizen::Base::DateTime&
+EmailMeetingRequest::GetStartTime() const
+{
+    return __startTime;
+}
+
+const Tizen::Locales::TimeZone&
+EmailMeetingRequest::GetTimeZone() const
+{
+    return __timeZone;
+}
+
+void
+EmailMeetingRequest::SetEndTime(Tizen::Base::DateTime endTime)
+{
+    this->__endTime = endTime;
+}
+
+void
+EmailMeetingRequest::SetGlobalObjectId(Tizen::Base::String globalObjectId)
+{
+    this->__globalObjectId = globalObjectId;
+}
+
+void
+EmailMeetingRequest::SetLocation(Tizen::Base::String location)
+{
+    this->__location = location;
+}
+
+void
+EmailMeetingRequest::SetMailId(int mailId)
+{
+    this->__mailId = mailId;
+}
+
+void
+EmailMeetingRequest::SetMeetingResponse(email_meeting_response_t meetingResponse)
+{
+    this->__meetingResponse = meetingResponse;
+}
+
+void
+EmailMeetingRequest::SetStartTime(Tizen::Base::DateTime startTime)
+{
+    this->__startTime = startTime;
+}
+
+void
+EmailMeetingRequest::SetTimeZone(Tizen::Locales::TimeZone timeZone)
+{
+    this->__timeZone = timeZone;
+}
diff --git a/src/EmOutboxPresentationModel.cpp b/src/EmOutboxPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..74d6614
--- /dev/null
@@ -0,0 +1,118 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmOutboxPresentationModel.cpp
+ * @brief                      Keeps the implementation of OutboxPresentationModel class
+ */
+
+#include <cstdlib>
+#include "EmOutboxPresentationModel.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+OutboxPresentationModel* OutboxPresentationModel::__pOutboxPresentationModelInstance = null;
+
+OutboxPresentationModel::OutboxPresentationModel(void)
+{
+       // Empty Implementation
+}
+
+OutboxPresentationModel::~OutboxPresentationModel(void)
+{
+       // Empty Implementation
+}
+
+OutboxPresentationModel*
+OutboxPresentationModel::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pOutboxPresentationModelInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pOutboxPresentationModelInstance;
+}
+
+result
+OutboxPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       BasePresentationModel::Construct();
+
+//     __pMailboxManager->SetMailboxManagerDataChangeListener(this);
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+OutboxPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pOutboxPresentationModelInstance != null)
+       {
+               __pOutboxPresentationModelInstance->CleanupInstance();
+               delete __pOutboxPresentationModelInstance;
+               __pOutboxPresentationModelInstance = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+OutboxPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pOutboxPresentationModelInstance = new (std::nothrow) OutboxPresentationModel();
+       r = __pOutboxPresentationModelInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pOutboxPresentationModelInstance;
+               __pOutboxPresentationModelInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+OutboxPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+OutboxPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       _pMailList = _pMailboxManager->GetData(accountId, EMAIL_MAILBOX_TYPE_OUTBOX, forceUpdate);
+}
diff --git a/src/EmRecipientField.cpp b/src/EmRecipientField.cpp
new file mode 100755 (executable)
index 0000000..0bf0472
--- /dev/null
@@ -0,0 +1,861 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmRecipientField.cpp
+ * @brief      Provides the implementation for the custom control, which is used for viewing sender/recipient addresses.
+ */
+
+#include "EmEmailApp.h"
+#include "EmRecipientField.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+RecipientField::RecipientField(void)
+       : __mode(READ_WRITE_MODE)
+       , __width(W_RECIPIENT_AREA)
+       , __expandedHeight(H_RECIPIENT_AREA)
+       , __alreadyValidated(false)
+       , __hasFocus(false)
+       , __sendUserEvent(true)
+       , __pRecipientList(null)
+       , __pAddContactButton(null)
+       , __pCountButton(null)
+       , __pRecipientArea(null)
+       , __pTokenChangedEventListener(null)
+{
+       // Empty Implementation
+}
+
+RecipientField::~RecipientField(void)
+{
+       if (__pRecipientList != null)
+       {
+               __pRecipientList->RemoveAll(true);
+               delete __pRecipientList;
+       }
+}
+
+result
+RecipientField::Construct(const FloatRectangle& bounds, MODE mode)
+{
+       AppLogDebug("Email::ENTER");
+       result r = E_SUCCESS;
+       Bitmap* pContactBitmap = null;
+       Bitmap* pContactCircleBitmap = null;
+       Bitmap* pContactCirclePressedBitmap = null;
+       AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
+
+       __mode = mode;
+
+       Color bgColor = Color(0,0,0,0);
+       RelativeLayout relLayout;
+       relLayout.Construct();
+
+       Panel::Construct(relLayout, bounds, GROUP_STYLE_NONE);
+
+       if (pAppResource)
+       {
+               pContactBitmap = pAppResource->GetBitmapN(IDB_ADDCONTACT, BITMAP_PIXEL_FORMAT_ARGB8888);
+               pContactCircleBitmap = pAppResource->GetBitmapN(IDB_CIRCLE, BITMAP_PIXEL_FORMAT_ARGB8888);
+               pContactCirclePressedBitmap = pAppResource->GetBitmapN(IDB_ADD_CONTACT_CIRCLE_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888);
+       }
+
+       __pRecipientArea = new (std::nothrow) ExpandableEditArea();
+
+       if (__mode == READ_WRITE_MODE)
+       {
+               __pRecipientArea->Construct(FloatRectangle(X_COMMON_CUSTOM_ITEM, Y_RECIPIENT_AREA, bounds.width-(2*X_COMMON_CUSTOM_ITEM)-W_ADD_CONTACT_BUTTON-GENERIC_OFFSET_16, H_RECIPIENT_AREA), EXPANDABLE_EDIT_AREA_STYLE_TOKEN, EXPANDABLE_EDIT_AREA_TITLE_STYLE_INNER, 5);
+               __pRecipientArea->SetAutoShrinkModeEnabled(true);
+               __pRecipientArea->AddFocusEventListener(*this);
+               __pRecipientArea->AddExpandableEditAreaEventListener(*this);
+               __pRecipientArea->SetTokenFilter(this);
+               __pRecipientArea->SetMinimumSize(Dimension(W_CONTRACTED_RECIPIENT_AREA, H_RECIPIENT_AREA));
+               __pRecipientArea->SetKeypadEnabled(true);
+               __pRecipientArea->SetKeypadStyle(KEYPAD_STYLE_EMAIL);
+               __pRecipientArea->SetLowerCaseModeEnabled(true);
+               __pRecipientArea->SetTokenEditModeEnabled(true);
+       }
+       else
+       {
+               __pRecipientArea->Construct(FloatRectangle(X_COMMON_CUSTOM_ITEM, Y_RECIPIENT_AREA, GetWidth()-(2*X_COMMON_CUSTOM_ITEM), H_RECIPIENT_AREA), EXPANDABLE_EDIT_AREA_STYLE_TOKEN, EXPANDABLE_EDIT_AREA_TITLE_STYLE_INNER, COUNT_LINE);
+               __pRecipientArea->SetAutoShrinkModeEnabled(false);
+               __pRecipientArea->AddExpandableEditAreaEventListener(*this);
+               __pRecipientArea->HideKeypad();
+               __pRecipientArea->SetKeypadEnabled(false);
+               __pRecipientArea->SetFocusable(false);
+               __pRecipientArea->SetEnabled(false);
+               __pRecipientArea->SetTokenEditModeEnabled(false);
+       }
+
+       __pRecipientArea->SetColor(EDIT_STATUS_NORMAL, bgColor);
+       //__pRecipientArea->SetColor(EDIT_STATUS_HIGHLIGHTED, bgColor);
+       __pRecipientArea->SetColor(EDIT_STATUS_PRESSED, bgColor);
+       __pRecipientArea->SetColor(EDIT_STATUS_DISABLED, bgColor);
+       __pRecipientArea->AddKeyEventListener(*this);
+
+       AddControl(__pRecipientArea);
+       SetControlAlwaysOnTop(*__pRecipientArea, true);
+
+       __pAddContactButton = new (std::nothrow) Button();
+       __pAddContactButton->Construct(Rectangle(bounds.width-X_COMMON_CUSTOM_ITEM-W_ADDCONTACT_BUTTON, Y_ADD_CONTACT_BUTTON, W_ADD_CONTACT_BUTTON, H_ADD_CONTACT_BUTTON), L"");
+
+       if (__mode == READ_WRITE_MODE)
+       {
+               __pAddContactButton->AddFocusEventListener(*this);
+       }
+
+       __pAddContactButton->SetColor(BUTTON_STATUS_NORMAL, Color::GetColor(COLOR_ID_WHITE));
+       __pAddContactButton->SetNormalBitmap(Point(14, 14), *pContactBitmap);
+       __pAddContactButton->SetNormalBackgroundBitmap(*pContactCircleBitmap);
+       __pAddContactButton->SetPressedBackgroundBitmap(*pContactCirclePressedBitmap);
+       __pAddContactButton->SetActionId(IDA_TOFIELDPANEL_ADD_CONTACT_BUTTON);
+       __pAddContactButton->SetShowState(false);
+       AddControl(__pAddContactButton);
+
+       __pCountButton = new (std::nothrow) Button();
+       __pCountButton->Construct(Rectangle(__pAddContactButton->GetX()-GENERIC_OFFSET_16-W_COUNT_LABEL, Y_COUNT_LABEL, W_COUNT_LABEL, H_COUNT_LABEL), L"");
+       __pCountButton->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+       __pCountButton->SetDisabledTextColor(Color::GetColor(COLOR_ID_WHITE));
+       __pCountButton->SetHighlightedTextColor(Color::GetColor(COLOR_ID_WHITE));
+       __pCountButton->SetNormalBackgroundBitmap(*pContactCircleBitmap);
+       __pCountButton->SetPressedBackgroundBitmap(*pContactCircleBitmap);
+       __pCountButton->SetTextSize(26);
+       __pCountButton->SetShowState(false);
+       AddControl(__pCountButton);
+
+       relLayout.SetRelation(*__pAddContactButton, this, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+       relLayout.SetMargin(*__pAddContactButton, 16, 12, 24, 24);
+
+       relLayout.SetRelation(*__pCountButton, this, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+       relLayout.SetMargin(*__pCountButton, 16, 12, 24, 24);
+
+       __pRecipientList = new (std::nothrow) ArrayList();
+       __pRecipientList->Construct();
+
+       delete pContactBitmap;
+       delete pContactCircleBitmap;
+       delete pContactCirclePressedBitmap;
+
+       AppLogDebug("Email::EXIT: r = %s", GetErrorMessage(r));
+       return r;
+}
+
+void
+RecipientField::AddNewToken(const String& emailIds, bool showMsgBox)
+{
+       AppLogDebug("ENTER, emailIds:(%ls)", emailIds.GetPointer());
+
+       int count = 0;
+       bool alreadyExists=false, invalidAddress=false;
+       result r = E_SUCCESS;
+       HashMap* pDuplicateMap = null;
+       String token;
+       String emailAddress;
+       Utility::StringTokenizer addressTokenizer(emailIds, IDS_DELIM_SEMICOLON);
+
+       pDuplicateMap = new (std::nothrow) HashMap();
+       TryCatch(pDuplicateMap != null, ,"Failed to allocate memory for duplicate map");
+
+       r = pDuplicateMap->Construct();
+       TryCatch(r == E_SUCCESS, delete pDuplicateMap, "Failed to construct duplicate map");
+
+       count = __pRecipientList->GetCount();
+       for (int i=0; i<count; i++)
+       {
+               emailAddress.Clear();
+               emailAddress.Append(*static_cast<String*>(__pRecipientList->GetAt(i)));
+
+               pDuplicateMap->Add(new (std::nothrow) String(emailAddress), new (std::nothrow) Integer(1));
+       }
+
+       while (addressTokenizer.HasMoreTokens())
+       {
+               addressTokenizer.GetNextToken(token);
+
+               if (__mode == READ_MODE)
+               {
+                       __alreadyValidated = true;
+
+                       __pRecipientArea->AppendToken(token);
+                       __pRecipientList->Add(new (std::nothrow) String(token));
+
+                       __alreadyValidated = false;
+               }
+               else
+               {
+                       if (Utils::ValidateEmailAddress(token) == true)
+                       {
+                               r = pDuplicateMap->Add(new (std::nothrow) String(token), new (std::nothrow) Integer(1));
+
+                               if (r == E_OBJ_ALREADY_EXIST)
+                               {
+                                       alreadyExists = true;
+                               }
+                               else if (r == E_SUCCESS)
+                               {
+                                       __alreadyValidated = true;
+
+                                       __pRecipientArea->AppendToken(token);
+                                       __pRecipientList->Add(new (std::nothrow) String(token));
+
+                                       __alreadyValidated = false;
+                               }
+                       }
+                       else
+                       {
+                               invalidAddress = true;
+                       }
+               }
+       }
+
+       if (showMsgBox == true)
+       {
+               if (invalidAddress == true)
+               {
+                       int modRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modRes);
+               }
+
+               if (alreadyExists == true)
+               {
+                       FloatDimension convertedSize = FloatDimension(__pRecipientArea->GetWidthF(), H_RECIPIENT_AREA * 1.0);
+                       r = __pRecipientArea->SetSize(convertedSize);
+
+                       int modRes;
+                       MessageBox msgBox;
+                       msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_MSGC_BODY_DUPLICATED_RECIPIENT"), MSGBOX_STYLE_OK, 300000);
+                       msgBox.ShowAndWait(modRes);
+               }
+       }
+
+       count = __pRecipientArea->GetTokenCount();
+       token.Clear();
+       token.Append(count);
+       __pCountButton->SetText(token);
+
+       pDuplicateMap->RemoveAll(true);
+       delete pDuplicateMap;
+
+       Invalidate(true);
+
+CATCH:
+       AppLogDebug("EXIT");
+       return;
+}
+
+int
+RecipientField::GetAddressFieldHeight(void)
+{
+       AppLogDebug("returning height:(%d)", __pRecipientArea->GetHeight());
+       return __pRecipientArea->GetHeight();
+}
+
+int
+RecipientField::GetAddressFieldWidth(void)
+{
+       AppLogDebug("returning width:(%d)", __pRecipientArea->GetWidth());
+       return __pRecipientArea->GetWidth();
+}
+
+int
+RecipientField::GetTokenCount(void)
+{
+       AppLogDebug("returning token count:(%d)", __pRecipientArea->GetTokenCount());
+       return __pRecipientArea->GetTokenCount();
+}
+
+void
+RecipientField::HideKeypad(void)
+{
+       __pRecipientArea->HideKeypad();
+}
+
+bool
+RecipientField::IsDuplicate(const String& emailAddress)
+{
+       AppLogDebug("ENTER, got emailAddress:(%ls)", emailAddress.GetPointer());
+
+       bool retVal = false;
+       String* pTmpAddress;
+
+       for (int i=0; i<__pRecipientList->GetCount(); i++)
+       {
+               pTmpAddress = dynamic_cast<String*>(__pRecipientList->GetAt(i));
+
+               AppLogDebug("Got pTmpAddress:(%x)", pTmpAddress);
+               AppLogDebugIf(pTmpAddress != null, "pTmpAddress:(%ls)", pTmpAddress->GetPointer());
+
+               if (pTmpAddress != null && pTmpAddress->Equals(emailAddress, false) == true)
+               {
+                       retVal = true;
+                       break;
+               }
+       }
+
+       AppLogDebug("EXIT, returning:(%d)", retVal);
+       return retVal;
+}
+
+void
+RecipientField::SetExpandableEditAreaTitle(const String& titleText)
+{
+       AppLogDebug("ENTER");
+
+       __pRecipientArea->SetTitleText(titleText);
+
+       AppLogDebug("EXIT");
+}
+
+void
+RecipientField::SetTokenChangedEventListener(ITokenChangedEventListener& listener)
+{
+       __pTokenChangedEventListener = &listener;
+}
+
+void
+RecipientField::SetAddContactButtonEventListener(IActionEventListener& listener)
+{
+       __pAddContactButton->AddActionEventListener(listener);
+}
+
+void
+RecipientField::SetKeyPadEventListener(Tizen::Ui::IKeypadEventListener& listener)
+{
+       __pRecipientArea->AddKeypadEventListener(listener);
+}
+
+result
+RecipientField::SetFocus(void)
+{
+       return __pRecipientArea->SetFocus();
+}
+
+ArrayList*
+RecipientField::GetRecipientList(void)
+{
+       return __pRecipientList;
+}
+
+ExpandableEditArea*
+RecipientField::GetRecipientArea(void)
+{
+       return __pRecipientArea;
+}
+
+void
+RecipientField::OnBoundsChanged(const Rectangle& oldRect, const Rectangle& newRect)
+{
+       AppLogDebug("ENTER newrect bounds (%d) (%d) (%d) (%d)", newRect.x, newRect.y, newRect.width, newRect.height);
+
+       result r = E_SUCCESS;
+
+       if (__pRecipientArea != null)
+       {
+               float width = (newRect.width*1.0)-(2.0*X_COMMON_CUSTOM_ITEM)-W_ADD_CONTACT_BUTTON-GENERIC_OFFSET_16;
+               if (width < 0)
+               {
+                       width = 1.0;
+               }
+
+               if (__hasFocus == true || __mode == READ_MODE)
+               {
+//                     FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(width, __pRecipientArea->GetHeightF()));
+                       FloatDimension convertedSize = FloatDimension(width, H_RECIPIENT_AREA * 1.0);
+                       r = __pRecipientArea->SetSize(convertedSize);
+                       AppLogDebug("Result of SetSize:(%s)", GetErrorMessage(r));
+               }
+               else
+               {
+//                     FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(width, H_RECIPIENT_AREA*1.0));
+                       FloatDimension convertedSize = FloatDimension(width, H_RECIPIENT_AREA*1.0);
+                       r = __pRecipientArea->SetSize(convertedSize);
+                       AppLogDebug("Result of SetSize:(%s)", GetErrorMessage(r));
+               }
+
+               AppLogDebug("recipient area bounds:(%f, %f, %f, %f)", __pRecipientArea->GetBoundsF().x, __pRecipientArea->GetBoundsF().y, __pRecipientArea->GetBoundsF().width, __pRecipientArea->GetBoundsF().height);
+
+               __pRecipientArea->Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+RecipientField::OnExpandableEditAreaLineAdded(ExpandableEditArea& source, int newLineCount)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       if (__hasFocus == true)
+       {
+               AppLogDebug("Has focus");
+               __expandedHeight = __pRecipientArea->GetHeightF();
+
+               FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(GetWidthF(), __expandedHeight+(2.0*Y_RECIPIENT_AREA)));
+               r = SetSize(convertedSize);
+       }
+       else if (__hasFocus == false && __mode == READ_WRITE_MODE)
+       {
+               AppLogDebug("No focus");
+               FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(GetWidthF(), H_RECIPIENT_AREA+(2.0*Y_RECIPIENT_AREA)));
+               r = SetSize(convertedSize);
+       }
+       else if (__mode == READ_MODE)
+       {
+               AppLogDebug("Read mode");
+               FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(GetWidthF(), __pRecipientArea->GetHeight()+(2.0*Y_RECIPIENT_AREA)));
+               r = SetSize(convertedSize);
+       }
+
+       AppLogDebug("Result of setsize:(%s)", GetErrorMessage(r));
+       AppLogDebug("To Field Panel dimensions:(%f,%f)", GetWidthF(), GetHeightF());
+
+       if (__pTokenChangedEventListener)
+       {
+               __pTokenChangedEventListener->LineCountChanged(*this);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+RecipientField::OnExpandableEditAreaLineRemoved(ExpandableEditArea& source, int newLineCount)
+{
+       AppLogDebug("ENTER");
+
+       if (__pRecipientArea->HasFocus() == true)
+       {
+               AppLogDebug("Has focus");
+               __expandedHeight = __pRecipientArea->GetHeightF();
+
+               FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(GetWidthF(), __expandedHeight+(2.0*Y_RECIPIENT_AREA)));
+               SetSize(convertedSize);
+       }
+       else
+       {
+               AppLogDebug("No focus");
+               FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(GetWidthF(), H_RECIPIENT_AREA+(2.0*Y_RECIPIENT_AREA)));
+               SetSize(convertedSize);
+       }
+
+       AppLogDebug("To Field Panel dimensions:(%f,%f)", __pRecipientArea->GetWidthF(), __pRecipientArea->GetHeightF());
+
+       if (__pTokenChangedEventListener)
+       {
+               __pTokenChangedEventListener->LineCountChanged(*this);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+RecipientField::AdjustHeight(void)
+{
+       AppLogDebug("ENTER");
+
+       // We insert and remove a char so that the control automatically resizes and gives us the correct expanded height after resizing.
+       // OnEEALineAdded is called automatically..
+       __pRecipientArea->InsertCharacterAt(0, ' ');
+       __pRecipientArea->DeleteCharacterAt(0);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+RecipientField::OnFocusGained(const Control& source)
+{
+       AppLogDebug("ENTER");
+
+       __hasFocus = true;
+
+       if (source.GetHashCode() == __pRecipientArea->GetHashCode())
+       {
+//             AdjustHeight();
+
+               FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(GetWidthF(), __pRecipientArea->GetHeightF()+(2.0*Y_RECIPIENT_AREA)));
+               SetSize(convertedSize);
+
+               AppLogDebug("recipient area bounds:(%f, %f, %f, %f)", __pRecipientArea->GetBoundsF().x, __pRecipientArea->GetBoundsF().y, __pRecipientArea->GetBoundsF().width, __pRecipientArea->GetBoundsF().height);
+
+               __pAddContactButton->SetShowState(true);
+               __pCountButton->SetShowState(false);
+
+               Invalidate(true);
+
+               if (__pTokenChangedEventListener)
+               {
+                       __pTokenChangedEventListener->LineCountChanged(*this);
+               }
+       }
+       else if (source.GetHashCode() == __pAddContactButton->GetHashCode())
+       {
+               __pAddContactButton->SetShowState(true);
+               __pCountButton->SetShowState(false);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+RecipientField::OnFocusLost(const Control& source)
+{
+       AppLogDebug("ENTER");
+       String countText;
+
+       __hasFocus = false;
+
+       if (source.GetHashCode() == __pRecipientArea->GetHashCode())
+       {
+               FloatDimension convertedSize = CoordinateSystem::AlignToDevice(FloatDimension(GetWidthF(), H_RECIPIENT_AREA+(2.0*Y_RECIPIENT_AREA)));
+               SetSize(convertedSize);
+
+               AppLogDebug("recipient area bounds:(%f, %f, %f, %f)", __pRecipientArea->GetBoundsF().x, __pRecipientArea->GetBoundsF().y, __pRecipientArea->GetBoundsF().width, __pRecipientArea->GetBoundsF().height);
+
+               __pAddContactButton->SetShowState(false);
+
+               SendUserEvent(IDA_UPDATE_TOKEN_COUNT, null);
+       }
+       else if (source.GetHashCode() == __pAddContactButton->GetHashCode())
+       {
+               __pAddContactButton->SetShowState(false);
+
+               if (__pRecipientArea->GetTokenCount() > 1)
+               {
+                       __pCountButton->SetShowState(true);
+               }
+               else
+               {
+                       __pCountButton->SetShowState(false);
+               }
+
+               Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+RecipientField::SetMode(MODE newMode)
+{
+       AppLogDebug("ENTER");
+       __mode = newMode;
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+RecipientField::SetUserEventFlagValue(bool value)
+{
+       AppLogDebug("ENTER");
+
+       __sendUserEvent = value;
+
+       AppLogDebug("EXIT");
+}
+
+bool
+RecipientField::ReplaceToken(const String& token, String& replacement)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("Got token: (%ls)", token.GetPointer());
+
+       replacement.Clear();
+       replacement.Append(token);
+       replacement.Trim();
+
+       if (replacement.IsEmpty() == false)
+       {
+               if (__alreadyValidated == false)
+               {
+                       int selectedTokenIndex = __pRecipientArea->GetSelectedTokenIndex();
+                       AppLogDebug("selectedTokenIndex: (%d)", selectedTokenIndex);
+
+                       if (selectedTokenIndex == -1)
+                       {
+                               if (Utils::ValidateEmailAddress(replacement) == false)
+                               {
+                                       replacement.Clear();
+                                       __pRecipientArea->Clear();
+                                       __pRecipientArea->HideKeypad();
+
+                                       if (__sendUserEvent == false)
+                                       {
+                                               int modRes;
+                                               MessageBox msgBox;
+                                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+                                               msgBox.ShowAndWait(modRes);
+                                               __sendUserEvent = true;
+                                       }
+                                       else
+                                       {
+                                               SendUserEvent(IDA_SHOW_INVALID_ADDRESS_MESSAGE_BOX, null);
+                                       }
+
+//                                     __pRecipientArea->SetFocus();
+                               }
+                               else if (IsDuplicate(replacement) == true)
+                               {
+                                       replacement.Clear();
+                                       __pRecipientArea->Clear();
+                                       __pRecipientArea->HideKeypad();
+
+                                       if (__sendUserEvent == false)
+                                       {
+                                               int modRes;
+                                               MessageBox msgBox;
+                                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_MSGC_BODY_DUPLICATED_RECIPIENT"), MSGBOX_STYLE_OK, 300000);
+                                               msgBox.ShowAndWait(modRes);
+                                               __sendUserEvent = true;
+                                       }
+                                       else
+                                       {
+                                               SendUserEvent(IDA_SHOW_DUPLICATE_ADDRESS_MESSAGE_BOX, null);
+                                       }
+
+//                                     __pRecipientArea->SetFocus();
+                               }
+                               else
+                               {
+                                       __pRecipientList->Add(new (std::nothrow) String(replacement));
+                               }
+                       }
+                       else
+                       {
+                               __pRecipientList->RemoveAt(selectedTokenIndex);
+
+                               if (Utils::ValidateEmailAddress(replacement) == false)
+                               {
+                                       replacement.Clear();
+                                       __pRecipientArea->Clear();
+                                       __pRecipientArea->HideKeypad();
+
+                                       if (__sendUserEvent == false)
+                                       {
+                                               int modRes;
+                                               MessageBox msgBox;
+                                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+                                               msgBox.ShowAndWait(modRes);
+                                               __sendUserEvent = true;
+                                       }
+                                       else
+                                       {
+                                               SendUserEvent(IDA_SHOW_INVALID_ADDRESS_MESSAGE_BOX, null);
+                                       }
+
+//                                     __pRecipientArea->SetFocus();
+                               }
+                               else if (IsDuplicate(replacement) == true)
+                               {
+                                       replacement.Clear();
+                                       __pRecipientArea->Clear();
+                                       __pRecipientArea->HideKeypad();
+
+                                       if (__sendUserEvent == false)
+                                       {
+                                               int modRes;
+                                               MessageBox msgBox;
+                                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_MSGC_BODY_DUPLICATED_RECIPIENT"), MSGBOX_STYLE_OK, 300000);
+                                               msgBox.ShowAndWait(modRes);
+                                               __sendUserEvent = true;
+                                       }
+                                       else
+                                       {
+                                               SendUserEvent(IDA_SHOW_DUPLICATE_ADDRESS_MESSAGE_BOX, null);
+                                       }
+
+//                                     __pRecipientArea->SetFocus();
+                               }
+                               else
+                               {
+                                       __pRecipientList->InsertAt(new (std::nothrow) String(replacement), selectedTokenIndex);
+                               }
+                       }
+               }
+       }
+       else
+       {
+               if (__alreadyValidated == false)
+               {
+                       int selectedTokenIndex = __pRecipientArea->GetSelectedTokenIndex();
+                       AppLogDebug("selectedTokenIndex: (%d)", selectedTokenIndex);
+
+                       if (selectedTokenIndex != -1)
+                       {
+                               __pRecipientList->RemoveAt(selectedTokenIndex);
+                       }
+               }
+       }
+
+       AppLogDebug("Got replacement: (%ls)", replacement.GetPointer());
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+RecipientField::OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)
+{
+       AppLogDebug("ENTER, keyCode:(%d)", keyCode);
+
+       int modRes;
+
+       if ((keyCode == KEY_BACKSPACE || keyCode == KEY_DELETE) && source.GetHashCode() == __pRecipientArea->GetHashCode())
+       {
+               int index = __pRecipientArea->GetSelectedTokenIndex();
+
+               if (index == -1)
+               {
+                       AppLogDebug("No token selected");
+                       index = __pRecipientArea->GetTokenCount()-1;
+               }
+
+               AppLogDebug("Got index:(%d)", index);
+
+               if (__pRecipientArea->GetText().IsEmpty() == true &&  index >= 0) // User deleted a token
+               {
+                       AppLogDebug("Removing token at index:(%d)", index);
+                       __pRecipientList->RemoveAt(index, true);
+               }
+       }
+       else if (keyCode == KEY_INVALID)
+       {
+               String token = __pRecipientArea->GetText();
+               if (token.IsEmpty() == false)
+               {
+                       int selectedTokenIndex = __pRecipientArea->GetSelectedTokenIndex();
+
+                       if (Utils::ValidateEmailAddress(token) == false)
+                       {
+                               __pRecipientArea->Clear();
+
+                               if (selectedTokenIndex != -1)
+                               {
+                                       __pRecipientList->RemoveAt(selectedTokenIndex, true);
+                                       __pRecipientArea->RemoveTokenAt(selectedTokenIndex);
+                               }
+
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+                       else if (IsDuplicate(token) == true)
+                       {
+                               __pRecipientArea->Clear();
+
+                               if (selectedTokenIndex != -1)
+                               {
+                                       __pRecipientList->RemoveAt(selectedTokenIndex, true);
+                                       __pRecipientArea->RemoveTokenAt(selectedTokenIndex);
+                               }
+
+                               MessageBox msgBox;
+                               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_MSGC_BODY_DUPLICATED_RECIPIENT"), MSGBOX_STYLE_OK, 300000);
+                               msgBox.ShowAndWait(modRes);
+                       }
+               }
+       }
+
+#ifdef _DEBUG
+       AppLogDebug("Recipient list so far:");
+       for (int i=0; i<__pRecipientList->GetCount(); i++)
+       {
+               AppLogDebug("%ls,",static_cast<String*>(__pRecipientList->GetAt(i))->GetPointer());
+       }
+#endif // _DEBUG
+
+       AppLogDebug("EXIT");
+}
+
+void
+RecipientField::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)
+{
+       // Empty Implementation
+}
+
+void
+RecipientField::OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)
+{
+       // Empty Implementation
+}
+
+void
+RecipientField::OnUserEventReceivedN(RequestId requestId, IList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       if (requestId == IDA_UPDATE_TOKEN_COUNT)
+       {
+               if (__pRecipientArea->GetTokenCount() > 1)
+               {
+                       int count = __pRecipientArea->GetTokenCount();
+                       AppLogDebug("recipient count %d, str:(%ls)", count, Integer::ToString(count).GetPointer());
+                       __pCountButton->SetText(Integer::ToString(count));
+                       __pCountButton->SetShowState(true);
+                       __pCountButton->Invalidate(true);
+
+                       if (__pAddContactButton->GetShowState() == true)
+                       {
+                               __pCountButton->SetShowState(false);
+                       }
+               }
+               else
+               {
+                       int count = __pRecipientArea->GetTokenCount();
+                       AppLogDebug("recipient count %d, str:(%ls)", count, Integer::ToString(count).GetPointer());
+                       __pCountButton->SetText(Integer::ToString(count));
+                       __pCountButton->SetShowState(true);
+                       __pCountButton->Invalidate(true);
+                       __pCountButton->SetShowState(false);
+               }
+
+               Invalidate(true);
+
+               if (__pTokenChangedEventListener)
+               {
+                       __pTokenChangedEventListener->LineCountChanged(*this);
+               }
+       }
+       else if (requestId == IDA_SHOW_INVALID_ADDRESS_MESSAGE_BOX)
+       {
+               int modRes;
+               MessageBox msgBox;
+               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_EMAIL_POP_INVALID_EMAIL_ADDRESS"), MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+       }
+       else if (requestId == IDA_SHOW_DUPLICATE_ADDRESS_MESSAGE_BOX)
+       {
+               int modRes;
+               MessageBox msgBox;
+               msgBox.Construct(Utils::GetResourceString(L"IDS_COM_POP_ERROR"), Utils::GetResourceString(L"IDS_MSGC_BODY_DUPLICATED_RECIPIENT"), MSGBOX_STYLE_OK, 300000);
+               msgBox.ShowAndWait(modRes);
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmSearchForm.cpp b/src/EmSearchForm.cpp
new file mode 100755 (executable)
index 0000000..1e60ec9
--- /dev/null
@@ -0,0 +1,1119 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ *@file                EmSearchForm.cpp
+ *@brief       Enables the user to search a mailbox
+ */
+
+#include "EmSearchForm.h"
+#include "EmStateInfo.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Io;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+SearchForm::SearchForm(void)
+       : __accountId(-1)
+       , __mailboxId(-1)
+       , __groupIndex(-1)
+       , __itemIndex(-1)
+       , __downloadAttachments(0)
+       , __mailboxType(EMAIL_MAILBOX_TYPE_NONE)
+       , __userCancelledAttachmentDownload(false)
+       , __pAttachmentDownloadHandleMap(null)
+       , __pSearchSenderIcon(null)
+       , __pSearchAllIcon(null)
+       , __pSearchTitleIcon(null)
+       , __pSearchAll(null)
+       , __pSearchTitle(null)
+       , __pSearchSender(null)
+       , __pSearchDate(null)
+       , __pSearchAdvanced(null)
+       , __pAttachmentDownloadFailedPopup(null)
+       , __pDownloadAttachmentsPopup(null)
+       , __pSearchBar(null)
+       , __pSearchOptionsButton(null)
+       , __pSearchOptionsContextMenu(null)
+       , __pSearchResultGroupedListView(null)
+       , __pPresentationModel(null)
+       , __pSearchResultProvider(null)
+{
+       // Empty Implementation
+}
+
+SearchForm::~SearchForm(void)
+{
+       // Empty Implementation
+}
+
+bool
+SearchForm::Initialize(void)
+{
+       AppLogDebug("ENTER");
+
+       bool retVal = true;
+       result r = E_SUCCESS;
+       r = Form::Construct(IDL_SEARCH_FORM);
+       TryCatch(r == E_SUCCESS, retVal = false, "Failed to Construct SearchForm");
+
+CATCH:
+       AppLogDebug("EXIT :r = %s", GetErrorMessage(r));
+       return retVal;
+}
+
+result
+SearchForm::LoadIcons(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       __pSearchSenderIcon = AppResource::GetInstance()->GetBitmapN(IDB_SEARCH);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get search all icon", GetErrorMessage(r));
+
+       __pSearchAllIcon = AppResource::GetInstance()->GetBitmapN(IDB_SEARCH_ALL_ICON);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get search all icon", GetErrorMessage(r));
+
+       __pSearchTitleIcon = AppResource::GetInstance()->GetBitmapN(IDB_SEARCH_TITLE_ICON);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get search all icon", GetErrorMessage(r));
+
+       __pSearchAll = AppResource::GetInstance()->GetBitmapN(IDB_SEARCH_ALL);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get search all icon", GetErrorMessage(r));
+
+       __pSearchTitle = AppResource::GetInstance()->GetBitmapN(IDB_SEARCH_TITLE);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get search title icon", GetErrorMessage(r));
+
+       __pSearchSender = AppResource::GetInstance()->GetBitmapN(IDB_SEARCH_SENDER);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get search sender icon", GetErrorMessage(r));
+
+       __pSearchDate = AppResource::GetInstance()->GetBitmapN(IDB_SEARCH_DATE);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get search date icon", GetErrorMessage(r));
+
+       __pSearchAdvanced = AppResource::GetInstance()->GetBitmapN(IDB_SEARCH_ADVANCED);
+       r = GetLastResult();
+       TryCatch(r == E_SUCCESS, , "[%s] Failed to get search advanced icon", GetErrorMessage(r));
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+SearchForm::OnInitializing(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+       Rectangle tmpRect;
+       Point screenPosition;
+       Label* pLabel = null;
+
+       AddOrientationEventListener(*this);
+       SetFormBackEventListener(this);
+       SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
+
+       __pSearchBar = dynamic_cast<SearchBar*>(GetControl(IDC_SEARCH_SEARCHBAR));
+       TryCatch(__pSearchBar != null, r = E_FAILURE, "Failed to get search bar");
+       __pSearchBar->AddActionEventListener(*this);
+       __pSearchBar->AddTextEventListener(*this);
+       __pSearchBar->AddKeypadEventListener(*this);
+       __pSearchBar->SetContentAreaVisible(false);
+       r = __pSearchBar->SetTextPredictionEnabled(true);
+       AppLogDebug("Result of SetTextPrediction:(%s)", GetErrorMessage(r));
+
+       pLabel = static_cast<Label*>(GetControl(L"IDC_LABEL1"));
+       pLabel->SetBackgroundColor(__pSearchBar->GetColor());
+
+       r = LoadIcons();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to load icons");
+
+       __pSearchOptionsButton = dynamic_cast<Button*>(GetControl(IDC_SEARCH_OPTIONS_BUTTON));
+       TryCatch(__pSearchOptionsButton != null, r = E_FAILURE, "Failed to get search options button");
+
+       __pSearchOptionsButton->SetActionId(IDA_SEARCH_FORM_OPTIONS_BUTTON);
+       __pSearchOptionsButton->SetNormalBitmap(Point((__pSearchOptionsButton->GetWidth()-__pSearchAll->GetWidth())/2,(__pSearchOptionsButton->GetHeight()-__pSearchAll->GetHeight())/2), *__pSearchAllIcon);
+       __pSearchOptionsButton->AddActionEventListener(*this);
+
+       SetControlAlwaysOnTop(*__pSearchOptionsButton, true);
+
+       tmpRect = __pSearchOptionsButton->GetBounds();
+       screenPosition = __pSearchOptionsButton->ConvertToScreenPosition(Point(0,0));
+
+       __pSearchOptionsContextMenu = new (std::nothrow) ContextMenu();
+       TryCatch(__pSearchOptionsContextMenu != null, r = E_FAILURE, "Failed to create context menu");
+
+       r = __pSearchOptionsContextMenu->Construct(Point(screenPosition.x, screenPosition.y + tmpRect.height), CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD);
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct context menu");
+
+       // TODO replace these strings with resource xmls
+       __pSearchOptionsContextMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_ALL"), IDA_SEARCH_FORM_SEARCH_ALL, *__pSearchAll);
+       __pSearchOptionsContextMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_TITLE"), IDA_SEARCH_FORM_SEARCH_TITLE,* __pSearchTitle);
+       __pSearchOptionsContextMenu->AddItem(Utils::GetResourceString(L"IDS_EMAIL_OPT_SENDER"), IDA_SEARCH_FORM_SEARCH_SENDER, *__pSearchSender);
+       // TODO we will support the search by date and advanced search features at a later stage
+       /*__pSearchOptionsContextMenu->AddItem(IDS_SEARCH_DATE, IDA_SEARCH_FORM_SEARCH_DATE, *__pSearchDate);
+       __pSearchOptionsContextMenu->AddItem(IDS_SEARCH_ADVANCED, IDA_SEARCH_FORM_SEARCH_ADVANCED, *__pSearchAdvanced);*/
+       __pSearchOptionsContextMenu->AddActionEventListener(*this);
+
+       __pSearchResultProvider = new (std::nothrow) SearchResultProvider();
+       TryCatch(__pSearchResultProvider != null, r = E_FAILURE, "Failed to create search result provider");
+
+       __pSearchResultGroupedListView = dynamic_cast<GroupedListView*>(GetControl(IDC_SEARCH_RESULT_GROUPEDLISTVIEW));
+       TryCatch(__pSearchResultGroupedListView != null, r = E_FAILURE, "Failed to get search result grouped listview");
+
+       __pSearchResultGroupedListView->SetItemProvider(*__pSearchResultProvider);
+       __pSearchResultGroupedListView->AddGroupedListViewItemEventListener(*this);
+
+       __pPresentationModel = SearchPresentationModel::GetInstance();
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+result
+SearchForm::OnTerminating(void)
+{
+       delete __pSearchAllIcon;
+       delete __pSearchTitleIcon;
+       delete __pSearchSenderIcon;
+       delete __pSearchAll;
+       delete __pSearchTitle;
+       delete __pSearchSender;
+       delete __pSearchDate;
+       delete __pSearchAdvanced;
+       delete __pSearchResultProvider;
+
+       __pSearchOptionsContextMenu->RemoveAllItems();
+       delete __pSearchOptionsContextMenu;
+
+       if (__pDownloadAttachmentsPopup != null)
+       {
+               delete __pDownloadAttachmentsPopup;
+               __pDownloadAttachmentsPopup = null;
+       }
+
+       return E_SUCCESS;
+}
+
+BasePresentationModel*
+SearchForm::GetPresentationModelForMailbox(int mailboxId)
+{
+       BasePresentationModel* pModel = InboxPresentationModel::GetInstance();
+
+       email_mailbox_type_e mailboxType = pModel->GetMailboxType(mailboxId);
+
+       switch (mailboxType)
+       {
+       case EMAIL_MAILBOX_TYPE_INBOX:
+               break;
+
+       case EMAIL_MAILBOX_TYPE_DRAFT:
+               pModel = DraftListPresentationModel::GetInstance();
+               break;
+
+       case EMAIL_MAILBOX_TYPE_OUTBOX:
+               pModel = OutboxPresentationModel::GetInstance();
+               break;
+
+       case EMAIL_MAILBOX_TYPE_SENTBOX:
+               pModel = SentboxPresentationModel::GetInstance();
+               break;
+
+       case EMAIL_MAILBOX_TYPE_SPAMBOX:
+               pModel = SpamPresentationModel::GetInstance();
+               break;
+
+       case EMAIL_MAILBOX_TYPE_TRASH:
+               pModel = TrashPresentationModel::GetInstance();
+               break;
+
+       default:
+               break;
+       }
+
+       return pModel;
+}
+
+void
+SearchForm::OnActionPerformed(const Control& source, int actionId)
+{
+       AppLogDebug("ENTER, actionId:(%d)", actionId);
+
+       if (actionId == IDA_SEARCH_FORM_CANCEL_BUTTON)
+       {
+                       ArrayList* pArgs = new (std::nothrow) ArrayList();
+                       pArgs->Construct();
+
+                       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                       pStateInfo->accountId = __accountId;
+                       pStateInfo->mailboxId = __mailboxId;
+                       pStateInfo->pPresentationModel = __pPresentationModel->GetPresentationModel();
+                       pStateInfo->mailboxType = __mailboxType;
+
+                       pArgs->Add(pStateInfo);
+
+                       if (__accountId == -1)
+                       {
+                               __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+                       }
+                       else
+                       {
+                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                               {
+                                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+                               }
+                               else
+                               {
+                                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+                               }
+                       }
+
+                       __pPresentationModel->GetPresentationModel()->SortBy(__pPresentationModel->GetPresentationModel()->GetSortType());
+
+                       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pArgs);
+       }
+       else if (actionId == IDA_SEARCH_FORM_OPTIONS_BUTTON)
+       {
+               Rectangle tmpRect = __pSearchOptionsButton->GetBounds();
+               Point screenPosition = __pSearchOptionsButton->ConvertToScreenPosition(Point(0,0));
+
+               __pSearchOptionsContextMenu->SetFocusable(true);
+               __pSearchOptionsContextMenu->SetAnchorPosition(Point(screenPosition.x, screenPosition.y + tmpRect.height));
+               __pSearchOptionsContextMenu->SetShowState(true);
+               __pSearchOptionsContextMenu->Show();
+       }
+       else if (actionId == IDA_SEARCH_FORM_SEARCH_ALL)
+       {
+               String str(__pSearchBar->GetText());
+               __pSearchOptionsButton->SetNormalBitmap(Point((__pSearchOptionsButton->GetWidth()-__pSearchAll->GetWidth())/2, (__pSearchOptionsButton->GetHeight()-__pSearchAll->GetHeight())/2), *__pSearchAllIcon);
+               __pSearchOptionsButton->Invalidate(true);
+
+               __pPresentationModel->SetSearchFilter(SEARCH_ALL);
+               __pPresentationModel->PerformSearch(str);
+
+               __pSearchResultGroupedListView->UpdateList();
+       }
+       else if (actionId == IDA_SEARCH_FORM_SEARCH_TITLE)
+       {
+               String str(__pSearchBar->GetText());
+               __pSearchOptionsButton->SetNormalBitmap(Point((__pSearchOptionsButton->GetWidth()-__pSearchTitle->GetWidth())/2, (__pSearchOptionsButton->GetHeight()-__pSearchTitle->GetHeight())/2), *__pSearchTitleIcon);
+               __pSearchOptionsButton->Invalidate(true);
+
+               __pPresentationModel->SetSearchFilter(SEARCH_TITLE);
+               __pPresentationModel->PerformSearch(str);
+
+               __pSearchResultGroupedListView->UpdateList();
+       }
+       else if (actionId == IDA_SEARCH_FORM_SEARCH_SENDER)
+       {
+               String str(__pSearchBar->GetText());
+               __pSearchOptionsButton->SetNormalBitmap(Point((__pSearchOptionsButton->GetWidth()-__pSearchSender->GetWidth())/2, (__pSearchOptionsButton->GetHeight()-__pSearchSender->GetHeight())/2), *__pSearchSenderIcon);
+               __pSearchOptionsButton->Invalidate(true);
+
+               __pPresentationModel->SetSearchFilter(SEARCH_SENDER);
+               __pPresentationModel->PerformSearch(str);
+
+               __pSearchResultGroupedListView->UpdateList();
+       }
+       else if (actionId == IDA_SEARCH_FORM_SEARCH_DATE)
+       {
+               String str(__pSearchBar->GetText());
+               __pSearchOptionsButton->SetNormalBitmap(Point((__pSearchOptionsButton->GetWidth()-__pSearchDate->GetWidth())/2, (__pSearchOptionsButton->GetHeight()-__pSearchDate->GetHeight())/2), *__pSearchDate);
+               __pSearchOptionsButton->Invalidate(true);
+
+               __pPresentationModel->SetSearchFilter(SEARCH_DATE);
+               __pPresentationModel->PerformSearch(str);
+
+               __pSearchResultGroupedListView->UpdateList();
+       }
+       else if (actionId == IDA_SEARCH_FORM_SEARCH_ADVANCED)
+       {
+               String str(__pSearchBar->GetText());
+               __pSearchOptionsButton->SetNormalBitmap(Point((__pSearchOptionsButton->GetWidth()-__pSearchAdvanced->GetWidth())/2, (__pSearchOptionsButton->GetHeight()-__pSearchAdvanced->GetHeight())/2), *__pSearchAdvanced);
+               __pSearchOptionsButton->Invalidate(true);
+
+               __pPresentationModel->SetSearchFilter(SEARCH_ADVANCED);
+               __pPresentationModel->PerformSearch(str);
+
+               __pSearchResultGroupedListView->UpdateList();
+       }
+       else if (actionId == IDA_ATTACHMENT_DOWNLOAD_FAILED_OK)
+       {
+               EmailApp::GetInstance()->SetDownloadFailedPopupStatus(false);
+
+               __pAttachmentDownloadFailedPopup->SetShowState(false);
+               Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+SearchForm::OnOrientationChanged(const Control& source, OrientationStatus orientationStatus)
+{
+       AppLogDebug("ENTER, orientationStatus:(%d)", orientationStatus);
+
+//     __pSearchResultGroupedListView->UpdateList();
+
+       AppLogDebug("EXIT");
+}
+
+void
+SearchForm::OnTextValueChanged(const Control& source)
+{
+       String str(__pSearchBar->GetText());
+       __pPresentationModel->PerformSearch(str);
+
+       __pSearchResultGroupedListView->UpdateList();
+}
+
+void
+SearchForm::OnTextValueChangeCanceled(const Control& source)
+{
+// Empty implementation
+}
+
+void
+SearchForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
+{
+       AppLogDebug("ENTER");
+
+       if (pArgs != null)
+       {
+               Bitmap* pIcon;
+               StateInfo* pStateInfo;
+               String str;
+
+               pStateInfo = static_cast<StateInfo*>(pArgs->GetAt(0));
+
+               __accountId = pStateInfo->accountId;
+               __mailboxId = pStateInfo->mailboxId;
+               BasePresentationModel* pModel = pStateInfo->pPresentationModel;
+               __mailboxType = pStateInfo->mailboxType;
+               __pPresentationModel->Initialize(pModel);
+
+               str = pStateInfo->searchText;
+               __pSearchBar->SetText(str);
+               __pPresentationModel->PerformSearch(str);
+               __pSearchResultGroupedListView->UpdateList();
+
+               switch (__pPresentationModel->GetSearchFilter())
+               {
+               case SEARCH_ALL:
+                       pIcon = __pSearchAllIcon;
+                       break;
+               case SEARCH_TITLE:
+                       pIcon = __pSearchTitleIcon;
+                       break;
+               case SEARCH_SENDER:
+                       pIcon = __pSearchSenderIcon;
+                       break;
+               default:
+                       pIcon = __pSearchAllIcon;
+                       break;
+               }
+               __pSearchOptionsButton->SetNormalBitmap(Point((__pSearchOptionsButton->GetWidth()-pIcon->GetWidth())/2,(__pSearchOptionsButton->GetHeight()-pIcon->GetHeight())/2), *pIcon);
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+       }
+       else
+       {
+               if (__pPresentationModel != null && __pSearchResultGroupedListView != null)
+               {
+                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+                       __pPresentationModel->Initialize(__pPresentationModel->GetPresentationModel());
+
+                       String str(__pSearchBar->GetText());
+                       __pPresentationModel->PerformSearch(str);
+                       __pSearchResultGroupedListView->UpdateList();
+               }
+       }
+
+       if (__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT)
+       {
+               __pSearchBar->ShowKeypad();
+       }
+       else
+       {
+               __pSearchBar->SetMode(SEARCH_BAR_MODE_INPUT);
+       }
+
+       InitAttachmentDownloadFailedPopup();
+
+       int downloadMailId;
+       DownloadInitiatorMode downloadMode;
+
+       if (EmailApp::GetInstance()->GetDownloadAttachmentPopupStatus(downloadMailId, downloadMode) == true)
+       {
+               if (downloadMode == EMAIL_DRAFT_DOWNLOAD)
+               {
+                       int groupIndex = -1;
+                       int itemIndex = -1;
+                       EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(downloadMailId);
+
+                       if (pDetailedMail != null)
+                       {
+                               DownloadAllAttachments(pDetailedMail, EMAIL_DRAFT_DOWNLOAD);
+                               __pPresentationModel->GetMailIndex(downloadMailId, groupIndex, itemIndex);
+                               __groupIndex = groupIndex;
+                               __itemIndex = itemIndex;
+                       }
+               }
+       }
+
+       if (EmailApp::GetInstance()->GetDownloadFailedPopupStatus() == true)
+       {
+               EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+               __pAttachmentDownloadFailedPopup->SetShowState(true);
+               __pAttachmentDownloadFailedPopup->Show();
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SearchForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
+{
+       AppLogDebug("ENTER");
+
+       __pSearchBar->Clear();
+       __pPresentationModel->ClearSearchData();
+
+       if (__pDownloadAttachmentsPopup != null)
+       {
+               delete __pDownloadAttachmentsPopup;
+               __pDownloadAttachmentsPopup = null;
+       }
+
+       if (__pAttachmentDownloadFailedPopup != null)
+       {
+               __pAttachmentDownloadFailedPopup->RemoveAllControls();
+               delete __pAttachmentDownloadFailedPopup;
+               __pAttachmentDownloadFailedPopup = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SearchForm::OnUserEventReceivedN(RequestId requestId, IList *pArgs)
+{
+       AppLogDebug("ENTER, requestId:(%d), pArgs:(%x)", requestId, pArgs);
+       AppLogDebugIf(pArgs != null, "pArgs count:(%d)", pArgs->GetCount());
+
+       if (requestId == IDA_NOTI_MAIL_ADD || requestId == IDA_NOTI_MAIL_UPDATE)
+       {
+               if (pArgs != null && pArgs->GetCount() >= 3)
+               {
+                       if (requestId == IDA_NOTI_MAIL_UPDATE)
+                       {
+                               int groupIndex=0, itemIndex=0;
+                               int mailId = static_cast<Integer*>(pArgs->GetAt(1))->ToInt();
+                               AppLogDebug("Got mail Id:(%d)", mailId);
+
+                               __pPresentationModel->GetMailIndex(mailId, groupIndex, itemIndex);
+                               AppLogDebug("Got groupIndex:(%d), itemIndex:(%d)", groupIndex, itemIndex);
+
+                               EmailMessageListItem* pMsg = static_cast<EmailMessageListItem*>(__pPresentationModel->GetMailData(groupIndex, itemIndex));
+                               AppLogDebugIf(pMsg == null, "pMsg was null");
+
+                               if (pMsg != null)
+                               {
+                                       result r = E_SUCCESS;
+                                       String str(__pSearchBar->GetText());
+
+                                       if (__accountId == -1)
+                                       {
+                                               __pPresentationModel->GetPresentationModel()->GetData()->Remove(*pMsg);
+                                       }
+                                       else
+                                       {
+                                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                               {
+                                                       __pPresentationModel->GetPresentationModel()->GetData()->Remove(*pMsg);
+                                               }
+                                               else
+                                               {
+                                                       __pPresentationModel->GetPresentationModel()->GetData()->Remove(*pMsg, true);
+                                               }
+                                       }
+
+                                       AppLogDebug("Result r:(%s)", GetErrorMessage(r));
+
+//                                     __pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+
+                                       if (__accountId == -1)
+                                       {
+                                               __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+                                       }
+                                       else
+                                       {
+                                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                               {
+                                                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+                                               }
+                                               else
+                                               {
+                                                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+                                               }
+                                       }
+
+                                       __pPresentationModel->PerformSearch(str);
+                                       __pSearchResultGroupedListView->UpdateList();
+
+                                       Invalidate(true);
+                               }
+                       }
+                       else if (requestId == IDA_NOTI_MAIL_ADD)
+                       {
+                               int mailboxId = static_cast<Integer*>(pArgs->GetAt(2))->ToInt();
+                               AppLogDebug("Current mailboxId:(%d), got mailboxId:(%d)", __mailboxId, mailboxId);
+
+                               if (mailboxId == __mailboxId)
+                               {
+                                       String str(__pSearchBar->GetText());
+//                                     __pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+
+                                       if (__accountId == -1)
+                                       {
+                                               __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+                                       }
+                                       else
+                                       {
+                                               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                                               {
+                                                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+                                               }
+                                               else
+                                               {
+                                                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+                                               }
+                                       }
+
+                                       __pPresentationModel->PerformSearch(str);
+                                       __pSearchResultGroupedListView->UpdateList();
+
+                                       Invalidate(true);
+                               }
+                       }
+
+                       pArgs->RemoveAll(true);
+                       delete pArgs;
+               }
+       }
+       else if (requestId == IDA_NOTI_MAIL_FIELD_UPDATE && pArgs != null)
+       {
+               int mailId;
+               int groupIndex=0, itemIndex=0;
+
+               for (int i=0; i<pArgs->GetCount(); i++)
+               {
+                       mailId = static_cast<Integer*>(pArgs->GetAt(i))->ToInt();
+                       __pPresentationModel->GetMailIndex(mailId, groupIndex, itemIndex);
+                       __pSearchResultGroupedListView->RefreshList(groupIndex, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+               }
+
+               if (__pPresentationModel->GetSortType() == SORT_BY_UNREAD || __pPresentationModel->GetSortType() == SORT_BY_IMPORTANT)
+               {
+                       __pPresentationModel->SortBy(__pPresentationModel->GetSortType());
+                       __pSearchResultGroupedListView->UpdateList();
+               }
+
+               pArgs->RemoveAll(true);
+               delete pArgs;
+               Invalidate(true);
+       }
+       else if ((requestId == IDA_NOTI_DOWNLOAD_ATTACH_START ||
+                       requestId == IDA_NOTI_DOWNLOAD_ATTACH_FINISH ||
+                       requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL) && pArgs != null)
+       {
+               if (__downloadAttachments > 0)
+               {
+                       if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FAIL)
+                       {
+                               if (__userCancelledAttachmentDownload == false)
+                               {
+                                       EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+                                       EmailApp::GetInstance()->SetDownloadFailedPopupStatus(true);
+                                       __pAttachmentDownloadFailedPopup->SetShowState(true);
+                                       __pAttachmentDownloadFailedPopup->Show();
+                               }
+
+                               OnProgressPopupCanceled();
+                               __userCancelledAttachmentDownload = false;
+                       }
+                       else
+                       {
+                               if (requestId == IDA_NOTI_DOWNLOAD_ATTACH_FINISH)
+                               {
+                                       __downloadAttachments--;
+                                       AppLogDebug("Decrementing download attachment count to:(%d)", __downloadAttachments);
+                               }
+
+                               if (__downloadAttachments == 0)
+                               {
+                                       EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+                                       OnGroupedListViewItemStateChanged(*__pSearchResultGroupedListView, __groupIndex, __itemIndex, IDA_BASE_LISTVIEW_ITEM_PROVIDER_EMPTY_ELEMENT, LIST_ITEM_STATUS_SELECTED);
+                                       OnProgressPopupCanceled();
+                               }
+                       }
+               }
+       }
+       else if (requestId == IDA_NOTI_MAIL_MOVE_FINISHED || requestId == IDA_NOTI_DELETE_FINISHED)
+       {
+               String str(__pSearchBar->GetText());
+
+               if (__accountId == -1)
+               {
+                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+               }
+               else
+               {
+                       if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+                       {
+                               __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+                       }
+                       else
+                       {
+                               __pPresentationModel->GetPresentationModel()->FetchData(__accountId);
+                       }
+               }
+
+               __pPresentationModel->PerformSearch(str);
+               __pSearchResultGroupedListView->UpdateList();
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+SearchForm::OnKeypadWillOpen(Control& source)
+{
+       // Empty implementation
+}
+
+void
+SearchForm::OnKeypadOpened(Control& source)
+{
+       // Empty implementation
+}
+
+void
+SearchForm::OnKeypadClosed(Control& source)
+{
+       // Empty implementation
+}
+
+void
+SearchForm::OnKeypadActionPerformed(Control& source, KeypadAction keypadAction)
+{
+       switch(keypadAction)
+       {
+       case KEYPAD_ACTION_SEARCH:
+       {
+               __pSearchBar->HideKeypad();
+       }
+       break;
+
+               default:
+       break;
+       }
+}
+
+void
+SearchForm::OnGroupedListViewItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       ArrayList* pArgs = null;
+       result r = E_SUCCESS;
+
+       if (elementId == IDA_BASE_LISTVIEW_ITEM_PROVIDER_EMPTY_ELEMENT ||
+               elementId == IDA_SEARCH_PRESENTATION_MODEL_MAIL_SUBJECT ||
+               elementId == IDA_SEARCH_PRESENTATION_MODEL_MAIL_MESSAGE ||
+               elementId == IDA_SEARCH_PRESENTATION_MODEL_MAIL_DATE ||
+               elementId == IDA_SEARCH_PRESENTATION_MODEL_MAIL_RECIPIENT ||
+               elementId == IDA_SEARCH_PRESENTATION_MODEL_ATTACH)
+       {
+               pArgs = new (std::nothrow) ArrayList();
+               pArgs->Construct();
+
+               EmailMessageListItem* pMail = __pPresentationModel->GetMailData(groupIndex, itemIndex);
+
+               if (pMail != null)
+               {
+                       if (__pPresentationModel->GetMailboxType(pMail->GetMailboxId()) != EMAIL_MAILBOX_TYPE_DRAFT)
+                       {
+                               if (!pMail->isFlagsSeenField())
+                               {
+                                       __pPresentationModel->SetFlag(groupIndex, itemIndex, EMAIL_FLAGS_SEEN_FIELD, true, false);
+                               }
+
+                               StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                               pStateInfo->accountId = __accountId;
+                               pStateInfo->mailboxId = __mailboxId;
+                               pStateInfo->pPresentationModel = __pPresentationModel->GetPresentationModel();
+                               pStateInfo->mailboxType = __mailboxType;
+                               pStateInfo->mailId = pMail->GetMailId();
+//                             pStateInfo->viewMode = SplitViewDetailNS::SEARCH_SELECTED_VIEW_MODE;
+
+                               pArgs->Add(pStateInfo);
+
+                               __pSearchBar->HideKeypad();
+                               SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_DETAIL), pArgs);
+
+                               if (!pMail->isFlagsSeenField())
+                               {
+                                       __pPresentationModel->SetFlag(groupIndex, itemIndex, EMAIL_FLAGS_SEEN_FIELD, true, false);
+                               }
+
+                               r = listView.SetItemChecked(groupIndex, itemIndex, false);
+                               listView.RefreshList(groupIndex, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+                       }
+                       else
+                       {
+                               EmailMessageItem* pDetailedMail = __pPresentationModel->GetCompleteMailDataN(pMail->GetMailId());
+
+                               if (pDetailedMail != null && pDetailedMail->GetHasAttachment() == true && IsAttachmentDownload(pDetailedMail) == false)
+                               {
+                                       __groupIndex = groupIndex;
+                                       __itemIndex = itemIndex;
+                                       DownloadAllAttachments(pDetailedMail, EMAIL_DRAFT_DOWNLOAD);
+                               }
+                               else if (pDetailedMail != null)
+                               {
+                                       String mailBody;
+                                       String tmpText;
+                                       String fileName;
+                                       String emailId;
+                                       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+
+                                       pStateInfo->accountId = __accountId;
+                                       pStateInfo->mailboxId = __mailboxId;
+                                       pStateInfo->pPresentationModel = __pPresentationModel->GetPresentationModel();
+                                       pStateInfo->mailboxType = __mailboxType;
+//                                     pStateInfo->viewMode = SplitViewDetailNS::SEARCH_VIEW_MODE;
+
+                                       Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressTo(), emailId);
+                                       pStateInfo->toFieldValue = emailId;
+
+                                       Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressCc(), emailId);
+                                       pStateInfo->ccFieldValue = emailId;
+
+                                       Utils::BuildEmailIdStringFromFullAddress(pDetailedMail->GetFullAddressBcc(), emailId);
+                                       pStateInfo->bccFieldValue = emailId;
+
+                                       pStateInfo->subjectFieldValue = pDetailedMail->GetSubject();
+
+                                       fileName.Append(pDetailedMail->GetFilePathPlain());
+                                       if (fileName.IsEmpty() == false)
+                                       {
+                                               File file;
+                                               result r = file.Construct(fileName, L"r");
+
+                                               if (r == E_SUCCESS)
+                                               {
+                                                       while (file.Read(tmpText) == E_SUCCESS)
+                                                       {
+                                                               mailBody.Append(tmpText);
+                                                       }
+                                               }
+                                       }
+                                       pStateInfo->bodyFieldValue = mailBody;
+
+                                       tmpText.Clear();
+                                       if (pDetailedMail->GetHasAttachment() == true)
+                                       {
+                                               String destFilePath;
+                                               EmailAttachment* pTmpAttachment = null;
+                                               ArrayList* pAttachmentList = __pPresentationModel->GetAllAttachmentListN(pMail->GetMailId());
+
+                                               for (int i=0; i<pAttachmentList->GetCount(); i++)
+                                               {
+                                                       pTmpAttachment = static_cast<EmailAttachment*>(pAttachmentList->GetAt(i));
+
+                                                       destFilePath.Clear();
+                                                       destFilePath.Append(App::GetInstance()->GetAppSharedPath()+L"data/");
+                                                       destFilePath.Append(pTmpAttachment->GetAttachmentName());
+
+                                                       if (File::Copy(pTmpAttachment->GetAttachmentPath(), destFilePath, false) == E_SUCCESS)
+                                                       {
+                                                               EmailMailboxManager::GetInstance()->DeleteAttachment(pTmpAttachment->GetAttachmentId());
+                                                               tmpText.Append(destFilePath);
+                                                               tmpText.Append(IDS_DELIM_SEMICOLON);
+                                                       }
+                                               }
+                                       }
+                                       pStateInfo->attachmentsPath = tmpText;
+
+                                       pArgs->Add(pStateInfo);
+
+                                       EmailMailboxManager::GetInstance()->DeleteMailMessage(pMail->GetMailboxId(), pMail->GetMailId(), false);
+                                       listView.SetItemChecked(groupIndex, itemIndex, false);
+                                       SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EMAIL_COMPOSER, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
+                               }
+                       }
+               }
+       }
+       else if (elementId == IDA_SEARCH_PRESENTATION_MODEL_FORMAT_IMPORTANT)
+       {
+               EmailMessageListItem* pMail = __pPresentationModel->GetMailData(groupIndex, itemIndex);
+
+               if (pMail->isFlagsFlaggedField())
+               {
+                       EmailMailboxManager::GetInstance()->SetFlags(pMail->GetAccountId(), pMail->GetMailId(), EMAIL_FLAGS_FLAGGED_FIELD, false, true);
+                       pMail->SetFlagsFlaggedField(false);
+               }
+               else
+               {
+                       EmailMailboxManager::GetInstance()->SetFlags(pMail->GetAccountId(), pMail->GetMailId(), EMAIL_FLAGS_FLAGGED_FIELD, true, true);
+                       pMail->SetFlagsFlaggedField(true);
+               }
+
+               r = listView.SetItemChecked(groupIndex, itemIndex, false);
+               listView.RefreshList(groupIndex, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+
+               if (__pPresentationModel->GetSortType() == SORT_BY_IMPORTANT)
+               {
+                       __pPresentationModel->SortBy(SORT_BY_IMPORTANT);
+                       __pPresentationModel->GetPresentationModel()->SortBy(SORT_BY_IMPORTANT);
+
+                       listView.UpdateList();
+               }
+       }
+       else
+       {
+               r = listView.SetItemChecked(groupIndex, itemIndex, false);
+               listView.RefreshList(groupIndex, itemIndex, LIST_REFRESH_TYPE_ITEM_MODIFY);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+SearchForm::OnGroupedListViewItemSwept(GroupedListView& listView, int groupIndex, int itemIndex, SweepDirection direction)
+{
+       // Empty implementation
+}
+
+void
+SearchForm::OnGroupedListViewContextItemStateChanged(GroupedListView& listView, int groupIndex, int itemIndex, int elementId, ListContextItemStatus status)
+{
+       // Empty implementation
+}
+
+void
+SearchForm::OnFormBackRequested(Form& source)
+{
+       AppLogDebug("ENTER");
+
+       ArrayList* pArgs = new (std::nothrow) ArrayList();
+       pArgs->Construct();
+
+       StateInfo* pStateInfo = new (std::nothrow) StateInfo();
+       pStateInfo->accountId = __accountId;
+       pStateInfo->mailboxId = __mailboxId;
+       pStateInfo->pPresentationModel = __pPresentationModel->GetPresentationModel();
+       pStateInfo->mailboxType = __mailboxType;
+
+       if (__accountId == -1)
+       {
+               __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+       }
+       else
+       {
+               if (__mailboxType == EMAIL_MAILBOX_TYPE_USER_DEFINED || __mailboxType == EMAIL_MAILBOX_TYPE_ALL_EMAILS || __mailboxType == EMAIL_MAILBOX_TYPE_SEARCH_RESULT || __mailboxType == EMAIL_MAILBOX_TYPE_FLAGGED)
+               {
+                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, __mailboxId, __mailboxType);
+               }
+               else
+               {
+                       __pPresentationModel->GetPresentationModel()->FetchData(__accountId, true);
+               }
+       }
+
+       __pPresentationModel->GetPresentationModel()->SortBy(__pPresentationModel->GetPresentationModel()->GetSortType());
+
+       pArgs->Add(pStateInfo);
+       SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), pArgs);
+       AppLogDebug("EXIT");
+}
+
+void
+SearchForm::InitAttachmentDownloadFailedPopup(void)
+{
+       AppLogDebug("ENTER");
+
+       __pAttachmentDownloadFailedPopup = new Popup();
+       __pAttachmentDownloadFailedPopup->Construct(L"IDL_POPUP_ATTACHMENT_FAILED");
+
+       Button* pOkButton = static_cast<Button*>(__pAttachmentDownloadFailedPopup->GetControl(L"IDC_BUTTON_OK", true));
+       pOkButton->AddActionEventListener(*this);
+       pOkButton->SetActionId(IDA_ATTACHMENT_DOWNLOAD_FAILED_OK);
+
+       AppLogDebug("EXIT");
+}
+
+void
+SearchForm::OnProgressPopupCanceled(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pDownloadAttachmentsPopup != null && __pDownloadAttachmentsPopup->GetShowState() == true)
+       {
+               AppLogDebug("User cancelled download of attachments");
+
+               if (__pAttachmentDownloadHandleMap != null)
+               {
+                       IMapEnumerator* pMapEnum = __pAttachmentDownloadHandleMap->GetMapEnumeratorN();
+
+                       if (pMapEnum != null)
+                       {
+                               while (!IsFailed(pMapEnum->MoveNext()))
+                               {
+                                       int accountId = static_cast<Integer*>(pMapEnum->GetKey())->ToInt();
+                                       int handle = static_cast<Integer*>(pMapEnum->GetValue())->ToInt();
+                                       __pPresentationModel->CancelJob(accountId, handle, EMAIL_CANCELED_BY_USER);
+                               }
+                               delete pMapEnum;
+                       }
+               }
+
+               if (__pAttachmentDownloadHandleMap != null)
+               {
+                       __pAttachmentDownloadHandleMap->RemoveAll(true);
+                       delete __pAttachmentDownloadHandleMap;
+                       __pAttachmentDownloadHandleMap = null;
+               }
+
+               __downloadAttachments = 0;
+               __userCancelledAttachmentDownload = true;
+
+               if (__pDownloadAttachmentsPopup != null)
+               {
+                       __pDownloadAttachmentsPopup->SetShowState(false);
+               }
+
+               EmailApp::GetInstance()->ClearDownloadAttachmentPopupStatus();
+               Invalidate(true);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+bool
+SearchForm::IsAttachmentDownload(const EmailMessageItem* pDetailedMail)
+{
+       AppLogDebug("ENTER, pDetailedMsg:(%x)", pDetailedMail);
+       AppLogDebugIf(pDetailedMail != null, "mailId:(%d)", pDetailedMail->GetMailId());
+
+       ArrayList* pAttachments = __pPresentationModel->GetAllAttachmentListN(pDetailedMail->GetMailId());
+
+       for (int i=0; i < pAttachments->GetCount(); i++)
+       {
+               EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(pAttachments->GetAt(i));
+
+               if (pTmpAttachment->GetSaveStatus() == false)
+               {
+                       pAttachments->RemoveAll(true);
+                       delete pAttachments;
+
+                       AppLogDebug("EXIT, returning false");
+                       return false;
+               }
+       }
+
+       pAttachments->RemoveAll(true);
+       delete pAttachments;
+
+       AppLogDebug("EXIT, returning true");
+       return true;
+}
+
+void
+SearchForm::DownloadAllAttachments(const EmailMessageItem* pDetailedMail, DownloadInitiatorMode downloadMode)
+{
+       AppLogDebug("ENTER, pDetailedMsg:(%x)", pDetailedMail);
+       AppLogDebugIf(pDetailedMail != null, "mailId:(%d)", pDetailedMail->GetMailId());
+
+       result r = E_SUCCESS;
+
+       __downloadAttachments = 0;
+
+       if (__pDownloadAttachmentsPopup == null)
+       {
+               __pDownloadAttachmentsPopup = new (std::nothrow) ProgressPopup();
+               __pDownloadAttachmentsPopup->Construct(true, false);
+               __pDownloadAttachmentsPopup->SetTitleText(Utils::GetResourceString(L"IDS_EMAIL_POP_DOWNLOADING_ATTACHMENT_ING"));
+               __pDownloadAttachmentsPopup->AddProgressPopupEventListener(*this);
+       }
+
+       __pDownloadAttachmentsPopup->SetShowState(true);
+       __pDownloadAttachmentsPopup->Show();
+       EmailApp::GetInstance()->SetDownloadAttachmentPopupStatus(pDetailedMail->GetMailId(), downloadMode);
+
+       if (__pAttachmentDownloadHandleMap == null)
+       {
+               __pAttachmentDownloadHandleMap = new (std::nothrow) HashMap();
+               __pAttachmentDownloadHandleMap->Construct();
+       }
+
+       __pAttachmentDownloadHandleMap->RemoveAll(true);
+
+       ArrayList* pAttachments = __pPresentationModel->GetAllAttachmentListN(pDetailedMail->GetMailId());
+
+       for (int i=0; i<pAttachments->GetCount(); i++)
+       {
+               int handle;
+               EmailAttachment* pTmpAttachment = static_cast<EmailAttachment*>(pAttachments->GetAt(i));
+
+               if (pTmpAttachment->GetSaveStatus() == false)
+               {
+                       __downloadAttachments++;
+                       r = __pPresentationModel->DownloadAttachment(pDetailedMail->GetMailId(), i+1, handle);
+
+                       if (r == E_SUCCESS)
+                       {
+                               AppLogDebug("Adding accountId:(%d), handle:(%d) to map", pDetailedMail->GetAccountId(), handle);
+                               r = __pAttachmentDownloadHandleMap->Add(new (std::nothrow) Integer(pDetailedMail->GetAccountId()), new (std::nothrow) Integer(handle));
+                               AppLogDebugIf(r != E_SUCCESS, "Failed to add attachment download handle to map");
+                       }
+               }
+       }
+
+       pAttachments->RemoveAll(true);
+       delete pAttachments;
+
+       AppLogDebug("EXIT, download attachment count:(%d)", __downloadAttachments);
+}
diff --git a/src/EmSearchPresentationModel.cpp b/src/EmSearchPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..0e75456
--- /dev/null
@@ -0,0 +1,1229 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSearchPresentationModel.cpp
+ * @brief      Keeps the implementation of SearchPresentationModel class
+ */
+
+#include <cstdlib>
+#include <FBase.h>
+#include "EmNativeMailboxManager.h"
+#include "EmSearchPresentationModel.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Locales;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+
+SearchPresentationModel* SearchPresentationModel::__pInstance = null;
+
+SearchPresentationModel*
+SearchPresentationModel::GetInstance()
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance == null)
+       {
+               __pInstance = new (std::nothrow) SearchPresentationModel();
+               __pInstance->Construct();
+       }
+
+       AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return __pInstance;
+}
+
+SearchPresentationModel::SearchPresentationModel()
+       : __searchFilter(SEARCH_ALL)
+       , __pModel(null)
+       , __pSearchFromData(null)
+{
+       // Empty implementation
+}
+
+SearchPresentationModel::~SearchPresentationModel()
+{
+       // Empty implementation
+}
+
+result
+SearchPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       BasePresentationModel::Construct();
+
+       _pMailList = new (std::nothrow) ArrayList();
+       r = _pMailList->Construct();
+       TryCatch(r == E_SUCCESS, r = E_FAILURE, "Failed to construct result arraylist");
+
+CATCH:
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+SearchPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pInstance != null)
+       {
+               __pInstance->CleanupInstance();
+               delete __pInstance;
+               __pInstance = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SearchPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       __pInstance = new (std::nothrow) SearchPresentationModel();
+       r = __pInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pInstance;
+               __pInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SearchPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       _pMailList->RemoveAll();
+       delete _pMailList;
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SearchPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       // Empty Implementation
+}
+
+result
+SearchPresentationModel::Initialize(BasePresentationModel* pModel)
+{
+       AppLogDebug("ENTER");
+
+       result r = E_SUCCESS;
+
+       __pModel = pModel;
+       __pSearchFromData = __pModel->GetData();
+
+       _sortType = __pModel->GetSortType();
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+SearchPresentationModel::PerformSearch(const Tizen::Base::String& searchKey, bool fullDataSearch)
+{
+       AppLogDebug("ENTER, searchKey:(%ls), fullDataSearch:(%d)", searchKey.GetPointer(), fullDataSearch);
+
+       EmailMessageListItem* pMsgItem;
+       String tmpSearchKey;
+       String tmpSearchInp;
+
+       __searchKey.Clear();
+       __searchKey.Append(searchKey);
+
+       searchKey.ToUpperCase(tmpSearchKey);
+
+       if (tmpSearchKey.IsEmpty() == true)
+       {
+               ClearSearchData();
+               
+               if (_pMailList != null && __pSearchFromData != null)
+               {
+                       _pMailList->AddItems(*__pSearchFromData);
+                       SortBy(_sortType);
+               }
+       }
+       else if (fullDataSearch == true && __pSearchFromData != null)
+       {
+               ClearSearchData();
+
+               for (int i = 0; i < __pSearchFromData->GetCount(); i++)
+               {
+                       pMsgItem = static_cast<EmailMessageListItem*>(__pSearchFromData->GetAt(i));
+
+                       if (pMsgItem != null)
+                       {
+                               if (__searchFilter == SEARCH_ALL)
+                               {
+                                       pMsgItem->GetFromEmailAddress().ToUpperCase(tmpSearchInp);
+                                       if (tmpSearchInp.Contains(tmpSearchKey))
+                                       {
+                                               _pMailList->Add(pMsgItem);
+                                               continue;
+                                       }
+
+                                       pMsgItem->GetSubject().ToUpperCase(tmpSearchInp);
+                                       if (tmpSearchInp.Contains(tmpSearchKey))
+                                       {
+                                               _pMailList->Add(pMsgItem);
+                                               continue;
+                                       }
+
+                                       pMsgItem->GetRecipients().ToUpperCase(tmpSearchInp);
+                                       if (tmpSearchInp.Contains(tmpSearchKey))
+                                       {
+                                               _pMailList->Add(pMsgItem);
+                                               continue;
+                                       }
+
+                                       pMsgItem->GetPreviewBodyText().ToUpperCase(tmpSearchInp);
+                                       if (tmpSearchInp.Contains(tmpSearchKey))
+                                       {
+                                               _pMailList->Add(pMsgItem);
+                                               continue;
+                                       }
+                               }
+                               else if (__searchFilter == SEARCH_SENDER)
+                               {
+                                       pMsgItem->GetFromEmailAddress().ToUpperCase(tmpSearchInp);
+                                       if (tmpSearchInp.Contains(tmpSearchKey))
+                                       {
+                                               _pMailList->Add(pMsgItem);
+                                       }
+                               }
+                               else if (__searchFilter == SEARCH_TITLE)
+                               {
+                                       pMsgItem->GetSubject().ToUpperCase(tmpSearchInp);
+                                       if (tmpSearchInp.Contains(tmpSearchKey))
+                                       {
+                                               _pMailList->Add(pMsgItem);
+                                       }
+                               }
+                               else if (__searchFilter == SEARCH_DATE)
+                               {
+                                       // TODO Needs to be implemented
+                               }
+                               else if (__searchFilter == SEARCH_ADVANCED)
+                               {
+                                       // TODO Needs to be implemented
+                               }
+                       }
+               }
+
+               SortBy(_sortType);
+       }
+
+       AppLogDebug("EXIT");
+}
+
+void
+SearchPresentationModel::SetSearchFilter(SearchFilter filter)
+{
+       AppLogDebug("ENTER");
+       __searchFilter = filter;
+       AppLogDebug("EXIT");
+}
+
+void
+SearchPresentationModel::ClearSearchData(void)
+{
+       AppLogDebug("Enter");
+
+       if (_pMailList != null)
+       {
+               _pMailList->RemoveAll();
+       }
+
+       AppLogDebug("Exit");
+}
+
+BasePresentationModel*
+SearchPresentationModel::GetPresentationModel(void)
+{
+       return __pModel;
+}
+
+const String&
+SearchPresentationModel::GetSearchKey(void)
+{
+       return __searchKey;
+}
+
+
+SearchFilter
+SearchPresentationModel::GetSearchFilter(void)
+{
+       return __searchFilter;
+}
+
+SearchResultProvider::SearchResultProvider()
+       : EmailBaseListViewItemProvider(SearchPresentationModel::GetInstance(), true)
+{
+       __pSearchModel = SearchPresentationModel::GetInstance();
+}
+
+SearchResultProvider::~SearchResultProvider()
+{
+       // Empty implementation
+}
+
+void
+SearchResultProvider::CreateSubjectText(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth)
+{
+       AppLogDebug("ENTER");
+       int offset = 86;
+       int subjectWidth;
+
+       if (pMail->GetHasAttachment() > 0)
+       {
+               subjectWidth = itemWidth - LIST_ITEM_OFFSET - X_ITEM_BITMAP - W_GENERIC_32;
+       }
+       else
+       {
+               subjectWidth = itemWidth - LIST_ITEM_OFFSET;
+       }
+
+       EnrichedTextCustomListElement* pCustomListElement = new (std::nothrow) EnrichedTextCustomListElement(__pSearchModel->GetSearchFilter(), SUBJECT_TEXT, pMail, __pSearchModel->GetSearchKey());
+       pItem->AddElement(Rectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)), IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT, *(static_cast<ICustomElement *>(pCustomListElement)));
+       AppLogDebug("listheight %d", _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE));
+       AppLogDebug("rect bounds %d %d %d %d", X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE));
+//     int offset = 86;
+//
+//     result r;
+//     Font font;
+//     int subjectWidth;
+//     String pSearchKey;
+//     String subjectText;
+//     String originalSubjectText;
+//     String  firstSubString, secondSubString, thirdSubString;
+//
+//     originalSubjectText = pMail->GetSubject();
+//
+//     if (originalSubjectText.IsEmpty() == false)
+//     {
+//             originalSubjectText.Trim();
+//     }
+//
+//     if (originalSubjectText.GetLength() == 0)
+//     {
+//             originalSubjectText.Append(IDS_NO_SUBJECT);
+//     }
+//
+//     originalSubjectText.ToLowerCase(subjectText);
+//
+//     if (pMail->GetHasAttachment() > 0)
+//     {
+//             subjectWidth = itemWidth - LIST_ITEM_OFFSET - X_ITEM_BITMAP - W_GENERIC_32;
+//     }
+//     else
+//     {
+//             subjectWidth = itemWidth - LIST_ITEM_OFFSET;
+//     }
+//
+//     if (__pSearchModel->GetSearchFilter() == SEARCH_TITLE || __pSearchModel->GetSearchFilter() == SEARCH_ALL)
+//     {
+//             int index = -1;
+//
+//             TextElement* first = null;
+//             TextElement* second = null;
+//             TextElement* third = null;
+//             EnrichedText* pSubject = new (std::nothrow) EnrichedText();
+//
+//             r = pSubject->Construct(Dimension(itemWidth, H_SUBJECT_MAIN_TEXT));
+//             pSubject->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT);
+//             pSubject->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE);
+//             pSubject->SetTextAbbreviationEnabled(true);
+//
+//             pSearchKey.Append(__pSearchModel->GetSearchKey());
+//             pSearchKey.ToLowerCase();
+//
+//             r = subjectText.IndexOf(pSearchKey, 0, index);
+//
+//             if (r == E_SUCCESS)
+//             {
+//                     originalSubjectText.SubString(0, index, firstSubString);
+//                     originalSubjectText.SubString(index, pSearchKey.GetLength(), secondSubString);
+//                     originalSubjectText.SubString(pSearchKey.GetLength()+index, subjectText.GetLength()-(firstSubString.GetLength()+secondSubString.GetLength()), thirdSubString);
+//
+//                     font.Construct(FONT_STYLE_PLAIN, _fontSize);
+//
+//                     if (firstSubString.GetLength() > 0)
+//                     {
+//                             first = new (std::nothrow) TextElement();
+//                             first->Construct(firstSubString);
+//                             first->SetFont(font);
+//
+//                             if (pMail->isFlagsSeenField())
+//                             {
+//
+//                                     first->SetTextColor(COLOR_READ_MAILS);
+//                             }
+//                             else
+//                             {
+//
+//                                     first->SetTextColor(COLOR_UNREAD_MAILS);
+//                             }
+//
+//                             pSubject->Add(*first);
+//                     }
+//
+//                     if (secondSubString.GetLength() > 0)
+//                     {
+//                             second = new (std::nothrow) TextElement();
+//                             second->Construct(secondSubString);
+//                             second->SetTextColor(Color::GetColor(COLOR_ID_RED));
+//                             second->SetFont(font);
+//                             pSubject->Add(*second);
+//                     }
+//
+//                     if (thirdSubString.GetLength() > 0)
+//                     {
+//                             third = new (std::nothrow) TextElement();
+//                             third->Construct(thirdSubString);
+//                             third->SetFont(font);
+//
+//                             if (pMail->isFlagsSeenField())
+//                             {
+//                                     third->SetTextColor(COLOR_READ_MAILS);
+//                             }
+//                             else
+//                             {
+//
+//                                     third->SetTextColor(COLOR_UNREAD_MAILS);
+//                             }
+//
+//                             pSubject->Add(*third);
+//                     }
+//
+//                     pItem->AddElement(Rectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)), IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT, *pSubject);
+//                     delete pSubject;
+//                     pSubject = null;
+//             }
+//             else
+//             {
+//                     if (pMail->isFlagsSeenField())
+//                     {
+//                             pItem->AddElement(Rectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)), IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT, originalSubjectText, _fontSize, COLOR_READ_MAILS, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+//                     }
+//                     else
+//                     {
+//                             pItem->AddElement(Rectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)), IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT, originalSubjectText, _fontSize, COLOR_UNREAD_MAILS, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+//                     }
+//             }
+//     }
+//     else
+//     {
+//             if (pMail->isFlagsSeenField())
+//             {
+//                     pItem->AddElement(Rectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)), IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT, originalSubjectText, _fontSize, COLOR_READ_MAILS, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+//             }
+//             else
+//             {
+//                     pItem->AddElement(Rectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1, subjectWidth, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)), IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT, originalSubjectText, _fontSize, COLOR_UNREAD_MAILS, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), true);
+//             }
+//     }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SearchResultProvider::CreateRecipientText(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth, const FloatDimension& dim)
+{
+       AppLogDebug("ENTER");
+
+       int offset = 86;
+
+       EnrichedTextCustomListElement* pCustomListElement = new (std::nothrow) EnrichedTextCustomListElement(__pSearchModel->GetSearchFilter(), RECIPIENT_TEXT, pMail, __pSearchModel->GetSearchKey());
+       pItem->AddElement(Rectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1 + _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE), itemWidth - LIST_ITEM_OFFSET - 10 - dim.width, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_RECIPIENT_ELEMENT, *(static_cast<ICustomElement *>(pCustomListElement)));
+
+//     result r = E_SUCCESS;
+//     Font font;
+//     String pSearchKey;
+//     String recipientText;
+//     String  firstSubString, secondSubString, thirdSubString;
+//     email_mailbox_type_e mailboxType;
+//
+//     if (pMail != null)
+//     {
+//             mailboxType = _pModel->GetMailboxType(pMail->GetMailboxId());
+//
+//             if (mailboxType == EMAIL_MAILBOX_TYPE_DRAFT || mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX)
+//             {
+//                     String emailAddress;
+//                     Utility::StringTokenizer emailIdTokenizer(pMail->GetRecipients(), IDS_DELIM_SEMICOLON);
+//
+//                     if (emailIdTokenizer.HasMoreTokens() == true)
+//                     {
+//                             emailIdTokenizer.GetNextToken(emailAddress);
+//
+//                             if (emailAddress.GetLength() <= 1 && emailIdTokenizer.HasMoreTokens() == true)
+//                             {
+//                                     emailIdTokenizer.GetNextToken(emailAddress);
+//                             }
+//                     }
+//
+//                     Utils::ExtractEmailIdFromFullAddress(emailAddress, recipientText);
+//             }
+//             else
+//             {
+//                     Utils::ExtractAliasFromFullAddress(pMail->GetFromEmailAddress(), recipientText);
+//             }
+//     }
+//
+//     recipientText.Trim();
+//
+//     if (recipientText.GetLength() == 0)
+//     {
+//             recipientText.Append(IDS_NO_RECIPIENTS);
+//     }
+//
+//     recipientText.ToLowerCase();
+//
+//     if (__pSearchModel->GetSearchFilter() == SEARCH_SENDER || __pSearchModel->GetSearchFilter() == SEARCH_ALL)
+//     {
+//             int index = -1;
+//             TextElement* first = null;
+//             TextElement* second = null;
+//             TextElement* third = null;
+//             EnrichedText* pRecipient = new (std::nothrow) EnrichedText();
+//
+//             r = pRecipient->Construct(Dimension(itemWidth, H_LIST_SUB_ITEM_3_LINE));
+//             pRecipient->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT);
+//             pRecipient->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE);
+//             pRecipient->SetTextAbbreviationEnabled(true);
+//
+//             pSearchKey.Append(__pSearchModel->GetSearchKey());
+//             pSearchKey.ToLowerCase(pSearchKey);
+//
+//             r = recipientText.IndexOf(pSearchKey, 0, index);
+//
+//             if (r == E_SUCCESS)
+//             {
+//                     recipientText.SubString(0, index, firstSubString);
+//                     recipientText.SubString(index, pSearchKey.GetLength(), secondSubString);
+//                     recipientText.SubString(pSearchKey.GetLength()+index, recipientText.GetLength()-(firstSubString.GetLength()+secondSubString.GetLength()), thirdSubString);
+//
+//                     font.Construct(FONT_STYLE_PLAIN, FONT_SIZE_LIST_NAME_ITEM);
+//
+//                     if (firstSubString.GetLength() > 0)
+//                     {
+//                             first = new (std::nothrow) TextElement();
+//                             first->Construct(firstSubString);
+//                             first->SetFont(font);
+//                             first->SetTextColor(COLOR_NAME_TEXT);
+//                             pRecipient->Add(*first);
+//                     }
+//
+//                     if (secondSubString.GetLength() > 0)
+//                     {
+//                             second = new (std::nothrow) TextElement();
+//                             second->Construct(secondSubString);
+//                             second->SetTextColor(Color::GetColor(COLOR_ID_RED));
+//                             second->SetFont(font);
+//                             pRecipient->Add(*second);
+//                     }
+//
+//                     if (thirdSubString.GetLength() > 0)
+//                     {
+//                             third = new (std::nothrow) TextElement();
+//                             third->Construct(thirdSubString);
+//                             third->SetFont(font);
+//                             third->SetTextColor(COLOR_NAME_TEXT);
+//                             pRecipient->Add(*third);
+//                     }
+//
+//                     pItem->AddElement(FloatRectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1 + _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE), itemWidth - LIST_ITEM_OFFSET - 10 - dim.width, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_RECIPIENT_ELEMENT, *pRecipient);
+//                     delete pRecipient;
+//                     pRecipient = null;
+//             }
+//             else
+//             {
+//                     if (recipientText.GetLength() != 0)
+//                     {
+//                             if (recipientText.StartsWith(L";", 0) == true)
+//                             {
+//                                     recipientText.Remove(0,1);
+//                             }
+//                     }
+//
+//                     pItem->AddElement(FloatRectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1 + _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE), itemWidth - LIST_ITEM_OFFSET - 10 - dim.width, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_RECIPIENT_ELEMENT, recipientText, FONT_SIZE_LIST_NAME_ITEM, COLOR_NAME_TEXT, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+//             }
+//     }
+//     else
+//     {
+//             if (recipientText.GetLength() != 0)
+//             {
+//                     if (recipientText.StartsWith(L";", 0) == true)
+//                     {
+//                             recipientText.Remove(0,1);
+//                     }
+//             }
+//
+//             pItem->AddElement(FloatRectangle(X_LIST_ITEM + offset, Y_LIST_ITEM_TYPE1 + _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE), itemWidth - LIST_ITEM_OFFSET - 10 - dim.width, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_RECIPIENT_ELEMENT, recipientText, FONT_SIZE_LIST_NAME_ITEM, COLOR_NAME_TEXT, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+//     }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SearchResultProvider::CreateMessageText(CustomItem* pItem, const EmailMessageListItem* pMail, const int& itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       int offset = 86;
+
+       EnrichedTextCustomListElement* pCustomListElement = new (std::nothrow) EnrichedTextCustomListElement(__pSearchModel->GetSearchFilter(), MESSAGE_TEXT, pMail, __pSearchModel->GetSearchKey());
+       pItem->AddElement(Rectangle(X_LIST_ITEM + offset, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE) + H_LIST_SUB_ITEM_3_LINE, itemWidth - LIST_ITEM_OFFSET, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_MESSAGE_ELEMENT, *(static_cast<ICustomElement *>(pCustomListElement)));
+
+//     int offset = 86;
+//
+//     Font font;
+//     result r;
+//     String searchKey;
+//     String messageText;
+//     String originalMessageText;
+//     String firstSubString, secondSubString, thirdSubString;
+//
+//     if (pMail != null)
+//     {
+//             originalMessageText = pMail->GetPreviewBodyText();
+//             originalMessageText.Trim();
+//
+//             if (originalMessageText.GetLength() == 0)
+//             {
+//                     originalMessageText.Append(IDS_NO_PREVIEW_TEXT);
+//             }
+//
+//             originalMessageText.ToLowerCase(messageText);
+//
+//             if (__pSearchModel->GetSearchFilter() == SEARCH_ALL)
+//             {
+//                     int index = -1;
+//                     TextElement* first = null;
+//                     TextElement* second = null;
+//                     TextElement* third = null;
+//                     EnrichedText* pMessage = new (std::nothrow) EnrichedText();
+//
+//                     r = pMessage->Construct(Dimension(itemWidth, H_LIST_SUB_ITEM_3_LINE));
+//                     pMessage->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT);
+//                     pMessage->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE);
+//                     pMessage->SetTextAbbreviationEnabled(true);
+//
+//                     searchKey.Append(__pSearchModel->GetSearchKey());
+//                     searchKey.ToLowerCase(searchKey);
+//
+//                     r = messageText.IndexOf(searchKey, 0, index);
+//
+//                     if (r == E_SUCCESS)
+//                     {
+//                             originalMessageText.SubString(0, index, firstSubString);
+//                             originalMessageText.SubString(index, searchKey.GetLength(), secondSubString);
+//                             originalMessageText.SubString(searchKey.GetLength()+index, messageText.GetLength()-(firstSubString.GetLength()+secondSubString.GetLength()), thirdSubString);
+//
+//                             font.Construct(FONT_STYLE_PLAIN, FONT_SIZE_LIST_CONTENTS_ITEM);
+//
+//                             if (firstSubString.GetLength() > 0)
+//                             {
+//                                     first = new (std::nothrow) TextElement();
+//                                     first->Construct(firstSubString);
+//                                     first->SetFont(font);
+//                                     first->SetTextColor(COLOR_CONTENTS_TEXT);
+//                                     pMessage->Add(*first);
+//                             }
+//
+//                             if (secondSubString.GetLength() > 0)
+//                             {
+//                                     second = new (std::nothrow) TextElement();
+//                                     second->Construct(secondSubString);
+//                                     second->SetTextColor(Color::GetColor(COLOR_ID_RED));
+//                                     second->SetFont(font);
+//                                     pMessage->Add(*second);
+//                             }
+//
+//                             if (thirdSubString.GetLength() > 0)
+//                             {
+//                                     third = new (std::nothrow) TextElement();
+//                                     third->Construct(thirdSubString);
+//                                     third->SetFont(font);
+//                                     third->SetTextColor(COLOR_CONTENTS_TEXT);
+//                                     pMessage->Add(*third);
+//                             }
+//
+//                             pItem->AddElement(Rectangle(X_LIST_ITEM + offset, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE) + H_LIST_SUB_ITEM_3_LINE, itemWidth - LIST_ITEM_OFFSET, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_MESSAGE_ELEMENT, *pMessage);
+//                     }
+//                     else
+//                     {
+//                             messageText.Append(pMail->GetPreviewBodyText());
+//
+//                             pItem->AddElement(Rectangle(X_LIST_ITEM + offset, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE) + H_LIST_SUB_ITEM_3_LINE, itemWidth - LIST_ITEM_OFFSET, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_MESSAGE_ELEMENT, originalMessageText, FONT_SIZE_LIST_CONTENTS_ITEM, COLOR_CONTENTS_TEXT, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+//                     }
+//             }
+//             else
+//             {
+//                     messageText.Append(pMail->GetPreviewBodyText());
+//
+//                     pItem->AddElement(Rectangle(X_LIST_ITEM + offset, _itemHeight-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE) + H_LIST_SUB_ITEM_3_LINE, itemWidth - LIST_ITEM_OFFSET, H_LIST_SUB_ITEM_3_LINE), IDA_BASE_LISTVIEW_ITEM_PROVIDER_MESSAGE_ELEMENT, originalMessageText, FONT_SIZE_LIST_CONTENTS_ITEM, COLOR_CONTENTS_TEXT, Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE), false);
+//             }
+//     }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+EnrichedTextCustomListElement::EnrichedTextCustomListElement(SearchFilter searchFilter, TextType textType, const EmailMessageListItem* pMail, String searchText)
+{
+       AppLogDebug("ENTER");
+
+       __searchFilter = searchFilter;
+       __textType = textType;
+       __pMail = pMail;
+       __searchText = searchText;
+
+       AppLogDebug("EXIT");
+}
+
+bool
+EnrichedTextCustomListElement::OnDraw(Tizen::Graphics::Canvas& canvas, const Tizen::Graphics::Rectangle& rect, Tizen::Ui::Controls::ListItemDrawingStatus itemStatus)
+{
+       AppLogDebug("ENTER");
+
+       if (__textType == SUBJECT_TEXT)
+       {
+               AppLogDebug("subject text");
+//             int offset = 86;
+
+               result r;
+               Font font;
+//             int subjectWidth;
+               String pSearchKey;
+               String subjectText;
+               String originalSubjectText;
+               String  firstSubString, secondSubString, thirdSubString;
+               EnrichedText* pSubject = new (std::nothrow) EnrichedText();
+
+               r = pSubject->Construct(Dimension(rect.width, Utils::GetItemHeight()-(H_LIST_SUB_ITEM_3_LINE+H_LIST_PREVIEW_ITEM_1_LINE)));
+               pSubject->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT);
+               pSubject->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE);
+               pSubject->SetTextAbbreviationEnabled(true);
+
+               font.Construct(FONT_STYLE_PLAIN, Utils::GetFontSize());
+               originalSubjectText = __pMail->GetSubject();
+
+               if (originalSubjectText.IsEmpty() == false)
+               {
+                       originalSubjectText.Trim();
+               }
+
+               if (originalSubjectText.GetLength() == 0)
+               {
+                       originalSubjectText.Append(IDS_NO_SUBJECT);
+               }
+
+               originalSubjectText.ToLowerCase(subjectText);
+
+//             if (__pMail->GetHasAttachment() > 0)
+//             {
+//                     subjectWidth = rect.width - LIST_ITEM_OFFSET - X_ITEM_BITMAP - W_GENERIC_32;
+//             }
+//             else
+//             {
+//                     subjectWidth = rect.width - LIST_ITEM_OFFSET;
+//             }
+
+               if (__searchFilter == SEARCH_TITLE || __searchFilter == SEARCH_ALL)
+               {
+                       int index = -1;
+
+                       TextElement* first = null;
+                       TextElement* second = null;
+                       TextElement* third = null;
+
+
+                       pSearchKey.Append(__searchText);
+                       pSearchKey.ToLowerCase();
+
+                       r = subjectText.IndexOf(pSearchKey, 0, index);
+
+                       if (r == E_SUCCESS)
+                       {
+                               originalSubjectText.SubString(0, index, firstSubString);
+                               originalSubjectText.SubString(index, pSearchKey.GetLength(), secondSubString);
+                               originalSubjectText.SubString(pSearchKey.GetLength()+index, subjectText.GetLength()-(firstSubString.GetLength()+secondSubString.GetLength()), thirdSubString);
+
+                               if (firstSubString.GetLength() > 0)
+                               {
+                                       first = new (std::nothrow) TextElement();
+                                       first->Construct(firstSubString);
+                                       first->SetFont(font);
+
+                                       if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                                       {
+                                               if (__pMail->isFlagsSeenField())
+                                               {
+
+                                                       first->SetTextColor(COLOR_READ_MAILS);
+                                               }
+                                               else
+                                               {
+
+                                                       first->SetTextColor(COLOR_UNREAD_MAILS);
+                                               }
+                                       }
+                                       else
+                                       {
+                                               first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                                       }
+
+                                       pSubject->Add(*first);
+                               }
+
+                               if (secondSubString.GetLength() > 0)
+                               {
+                                       second = new (std::nothrow) TextElement();
+                                       second->Construct(secondSubString);
+                                       second->SetTextColor(Color::GetColor(COLOR_ID_RED));
+                                       second->SetFont(font);
+                                       pSubject->Add(*second);
+                               }
+
+                               if (thirdSubString.GetLength() > 0)
+                               {
+                                       third = new (std::nothrow) TextElement();
+                                       third->Construct(thirdSubString);
+                                       third->SetFont(font);
+
+                                       if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                                       {
+                                               if (__pMail->isFlagsSeenField())
+                                               {
+                                                       third->SetTextColor(COLOR_READ_MAILS);
+                                               }
+                                               else
+                                               {
+
+                                                       third->SetTextColor(COLOR_UNREAD_MAILS);
+                                               }
+                                       }
+                                       else
+                                       {
+                                               third->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                                       }
+
+                                       pSubject->Add(*third);
+                               }
+                       }
+                       else
+                       {
+                               first = new (std::nothrow) TextElement();
+                               first->Construct(originalSubjectText);
+                               first->SetFont(font);
+
+                               if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                               {
+                                       if (__pMail->isFlagsSeenField())
+                                       {
+                                               first->SetTextColor(COLOR_READ_MAILS);
+                                       }
+                                       else
+                                       {
+                                               first->SetTextColor(COLOR_UNREAD_MAILS);
+                                       }
+                               }
+                               else
+                               {
+                                       first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                               }
+
+                               pSubject->Add(*first);
+                       }
+               }
+               else
+               {
+                       TextElement* first = null;
+                       first = new (std::nothrow) TextElement();
+                       first->Construct(originalSubjectText);
+                       first->SetFont(font);
+
+                       if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                       {
+                               if (__pMail->isFlagsSeenField())
+                               {
+                                       first->SetTextColor(COLOR_READ_MAILS);
+                               }
+                               else
+                               {
+                                       first->SetTextColor(COLOR_UNREAD_MAILS);
+                               }
+                       }
+                       else
+                       {
+                               first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                       }
+
+                       pSubject->Add(*first);
+               }
+
+               canvas.DrawText(Point(rect.x, rect.y), *pSubject);
+               delete pSubject;
+               pSubject = null;
+       }
+       else if (__textType == RECIPIENT_TEXT)
+       {
+//             int offset = 86;
+               AppLogDebug("recipient text");
+
+               result r = E_SUCCESS;
+               Font font;
+               String pSearchKey;
+               String recipientText;
+               String  firstSubString, secondSubString, thirdSubString;
+               email_mailbox_type_e mailboxType;
+
+               EnrichedText* pRecipient = new (std::nothrow) EnrichedText();
+               r = pRecipient->Construct(Dimension(rect.width, H_LIST_SUB_ITEM_3_LINE));
+               pRecipient->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT);
+               pRecipient->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE);
+               pRecipient->SetTextAbbreviationEnabled(true);
+
+               font.Construct(FONT_STYLE_PLAIN, FONT_SIZE_LIST_NAME_ITEM);
+
+//             if (__pMail != null)
+               {
+                       BasePresentationModel* pModel = SearchPresentationModel::GetInstance()->GetPresentationModel();
+                       mailboxType = pModel->GetMailboxType(__pMail->GetMailboxId());
+
+                       if (mailboxType == EMAIL_MAILBOX_TYPE_DRAFT || mailboxType == EMAIL_MAILBOX_TYPE_SENTBOX)
+                       {
+                               String emailAddress;
+                               Utility::StringTokenizer emailIdTokenizer(__pMail->GetRecipients(), IDS_DELIM_SEMICOLON);
+
+                               if (emailIdTokenizer.HasMoreTokens() == true)
+                               {
+                                       emailIdTokenizer.GetNextToken(emailAddress);
+
+                                       if (emailAddress.GetLength() <= 1 && emailIdTokenizer.HasMoreTokens() == true)
+                                       {
+                                               emailIdTokenizer.GetNextToken(emailAddress);
+                                       }
+                               }
+
+                               Utils::ExtractEmailIdFromFullAddress(emailAddress, recipientText);
+                       }
+                       else
+                       {
+                               Utils::ExtractAliasFromFullAddress(__pMail->GetFromEmailAddress(), recipientText);
+                       }
+               }
+
+               recipientText.Trim();
+
+               if (recipientText.GetLength() == 0)
+               {
+                       recipientText.Append(IDS_NO_RECIPIENTS);
+               }
+
+               recipientText.ToLowerCase();
+
+               if (__searchFilter == SEARCH_SENDER || __searchFilter == SEARCH_ALL)
+               {
+                       int index = -1;
+                       TextElement* first = null;
+                       TextElement* second = null;
+                       TextElement* third = null;
+
+                       pSearchKey.Append(__searchText);
+                       pSearchKey.ToLowerCase(pSearchKey);
+
+                       r = recipientText.IndexOf(pSearchKey, 0, index);
+
+                       if (r == E_SUCCESS)
+                       {
+                               recipientText.SubString(0, index, firstSubString);
+                               recipientText.SubString(index, pSearchKey.GetLength(), secondSubString);
+                               recipientText.SubString(pSearchKey.GetLength()+index, recipientText.GetLength()-(firstSubString.GetLength()+secondSubString.GetLength()), thirdSubString);
+
+                               if (firstSubString.GetLength() > 0)
+                               {
+                                       first = new (std::nothrow) TextElement();
+                                       first->Construct(firstSubString);
+                                       first->SetFont(font);
+
+                                       if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                                       {
+                                               first->SetTextColor(COLOR_NAME_TEXT);
+                                       }
+                                       else
+                                       {
+                                               first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                                       }
+
+                                       pRecipient->Add(*first);
+                               }
+
+                               if (secondSubString.GetLength() > 0)
+                               {
+                                       second = new (std::nothrow) TextElement();
+                                       second->Construct(secondSubString);
+                                       second->SetTextColor(Color::GetColor(COLOR_ID_RED));
+                                       second->SetFont(font);
+                                       pRecipient->Add(*second);
+                               }
+
+                               if (thirdSubString.GetLength() > 0)
+                               {
+                                       third = new (std::nothrow) TextElement();
+                                       third->Construct(thirdSubString);
+                                       third->SetFont(font);
+
+                                       if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                                       {
+                                               third->SetTextColor(COLOR_NAME_TEXT);
+                                       }
+                                       else
+                                       {
+                                               third->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                                       }
+
+                                       pRecipient->Add(*third);
+                               }
+                       }
+                       else
+                       {
+                               first = new (std::nothrow) TextElement();
+
+                               if (recipientText.GetLength() != 0)
+                               {
+                                       if (recipientText.StartsWith(L";", 0) == true)
+                                       {
+                                               recipientText.Remove(0,1);
+                                       }
+                               }
+
+                               first->Construct(recipientText);
+                               first->SetFont(font);
+
+                               if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                               {
+                                       first->SetTextColor(COLOR_NAME_TEXT);
+                               }
+                               else
+                               {
+                                       first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                               }
+
+                               pRecipient->Add(*first);
+                       }
+               }
+               else
+               {
+                       TextElement* first = null;
+                       first = new (std::nothrow) TextElement();
+
+                       if (recipientText.GetLength() != 0)
+                       {
+                               if (recipientText.StartsWith(L";", 0) == true)
+                               {
+                                       recipientText.Remove(0,1);
+                               }
+                       }
+
+                       first->Construct(recipientText);
+                       first->SetFont(font);
+
+                       if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                       {
+                               first->SetTextColor(COLOR_NAME_TEXT);
+                       }
+                       else
+                       {
+                               first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                       }
+
+                       pRecipient->Add(*first);
+
+               }
+
+               canvas.DrawText(Point(rect.x, rect.y), *pRecipient);
+               delete pRecipient;
+               pRecipient = null;
+       }
+       else if (__textType == MESSAGE_TEXT)
+       {
+//             int offset = 86;
+
+               Font font;
+               result r = E_SUCCESS;
+               String searchKey;
+               String messageText;
+               String originalMessageText;
+               String firstSubString, secondSubString, thirdSubString;
+
+               EnrichedText* pMessage = new (std::nothrow) EnrichedText();
+
+               r = pMessage->Construct(Dimension(rect.width, H_LIST_SUB_ITEM_3_LINE));
+               pMessage->SetHorizontalAlignment(TEXT_ALIGNMENT_LEFT);
+               pMessage->SetVerticalAlignment(TEXT_ALIGNMENT_MIDDLE);
+               pMessage->SetTextAbbreviationEnabled(true);
+
+               font.Construct(FONT_STYLE_PLAIN, FONT_SIZE_LIST_CONTENTS_ITEM);
+
+               if (__pMail != null)
+               {
+                       originalMessageText = __pMail->GetPreviewBodyText();
+                       originalMessageText.Trim();
+
+                       if (originalMessageText.GetLength() == 0)
+                       {
+                               originalMessageText.Append(IDS_NO_PREVIEW_TEXT);
+                       }
+
+                       originalMessageText.ToLowerCase(messageText);
+
+                       if (__searchFilter == SEARCH_ALL)
+                       {
+                               int index = -1;
+                               TextElement* first = null;
+                               TextElement* second = null;
+                               TextElement* third = null;
+
+                               searchKey.Append(__searchText);
+                               searchKey.ToLowerCase(searchKey);
+
+                               r = messageText.IndexOf(searchKey, 0, index);
+
+                               if (r == E_SUCCESS)
+                               {
+                                       originalMessageText.SubString(0, index, firstSubString);
+                                       originalMessageText.SubString(index, searchKey.GetLength(), secondSubString);
+                                       originalMessageText.SubString(searchKey.GetLength()+index, messageText.GetLength()-(firstSubString.GetLength()+secondSubString.GetLength()), thirdSubString);
+
+                                       if (firstSubString.GetLength() > 0)
+                                       {
+                                               first = new (std::nothrow) TextElement();
+                                               first->Construct(firstSubString);
+                                               first->SetFont(font);
+
+                                               if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                                               {
+                                                       first->SetTextColor(COLOR_CONTENTS_TEXT);
+                                               }
+                                               else
+                                               {
+                                                       first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                                               }
+
+                                               pMessage->Add(*first);
+                                       }
+
+                                       if (secondSubString.GetLength() > 0)
+                                       {
+                                               second = new (std::nothrow) TextElement();
+                                               second->Construct(secondSubString);
+                                               second->SetTextColor(Color::GetColor(COLOR_ID_RED));
+                                               second->SetFont(font);
+                                               pMessage->Add(*second);
+                                       }
+
+                                       if (thirdSubString.GetLength() > 0)
+                                       {
+                                               third = new (std::nothrow) TextElement();
+                                               third->Construct(thirdSubString);
+                                               third->SetFont(font);
+
+                                               if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                                               {
+                                                       third->SetTextColor(COLOR_CONTENTS_TEXT);
+                                               }
+                                               else
+                                               {
+                                                       third->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                                               }
+
+                                               pMessage->Add(*third);
+                                       }
+                               }
+                               else
+                               {
+                                       first = new (std::nothrow) TextElement();
+                                       first->Construct(__pMail->GetPreviewBodyText());
+                                       first->SetFont(font);
+
+                                       if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                                       {
+                                               first->SetTextColor(COLOR_CONTENTS_TEXT);
+                                       }
+                                       else
+                                       {
+                                               first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                                       }
+
+                                       pMessage->Add(*first);
+                               }
+                       }
+                       else
+                       {
+                               TextElement* first = null;
+                               first = new (std::nothrow) TextElement();
+                               first->Construct(__pMail->GetPreviewBodyText());
+                               first->SetFont(font);
+
+                               if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
+                               {
+                                       first->SetTextColor(COLOR_CONTENTS_TEXT);
+                               }
+                               else
+                               {
+                                       first->SetTextColor(Color::GetColor(COLOR_ID_WHITE));
+                               }
+
+                               pMessage->Add(*first);
+                       }
+               }
+
+               canvas.DrawText(Point(rect.x, rect.y), *pMessage);
+               delete pMessage;
+               pMessage = null;
+       }
+
+       return true;
+}
diff --git a/src/EmSentboxPresentationModel.cpp b/src/EmSentboxPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..fd3f923
--- /dev/null
@@ -0,0 +1,117 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/*
+ * @file                       EmSentboxPresentationModel.cpp
+ * @brief                      Keeps the implementation of SentboxPresentationModel class
+ */
+
+#include <cstdlib>
+#include "EmSentboxPresentationModel.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+SentboxPresentationModel* SentboxPresentationModel::__pSentboxPresentationModelInstance = null;
+
+SentboxPresentationModel::SentboxPresentationModel(void)
+{
+       // Empty Implementation
+}
+
+SentboxPresentationModel::~SentboxPresentationModel(void)
+{
+//     Empty implementation
+}
+
+SentboxPresentationModel*
+SentboxPresentationModel::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pSentboxPresentationModelInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pSentboxPresentationModelInstance;
+}
+
+result
+SentboxPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       BasePresentationModel::Construct();
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+void
+SentboxPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pSentboxPresentationModelInstance != null)
+       {
+               __pSentboxPresentationModelInstance->CleanupInstance();
+               delete __pSentboxPresentationModelInstance;
+               __pSentboxPresentationModelInstance = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SentboxPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pSentboxPresentationModelInstance = new (std::nothrow) SentboxPresentationModel();
+       r = __pSentboxPresentationModelInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pSentboxPresentationModelInstance;
+               __pSentboxPresentationModelInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SentboxPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SentboxPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       _pMailList = _pMailboxManager->GetData(accountId, EMAIL_MAILBOX_TYPE_SENTBOX, forceUpdate);
+}
diff --git a/src/EmSetAllAsListViewItemProvider.cpp b/src/EmSetAllAsListViewItemProvider.cpp
new file mode 100755 (executable)
index 0000000..6c0ef6d
--- /dev/null
@@ -0,0 +1,181 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSetAllAsListViewItemProvider.cpp
+ * @brief      This is the implementation of IListViewItemProvider and IListViewItemEventListener for the custom popup.
+ */
+
+#include <FSystem.h>
+#include "EmSetAllAsListViewItemProvider.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+SetAllAsListViewItemProvider::SetAllAsListViewItemProvider()
+       : __fontSize(44.0f)
+       , __itemHeight(150.0f)
+{
+       //Empty implementation
+}
+
+int
+SetAllAsListViewItemProvider::GetItemCount(void)
+{
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT");
+       // returns the number of options
+       return 2;
+}
+
+Tizen::Ui::Controls::ListItemBase*
+SetAllAsListViewItemProvider::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+//     result r = E_SUCCESS;
+//     SimpleItem* pSimpleItem = null;
+//
+//     pSimpleItem = new (std::nothrow) SimpleItem();
+//     pSimpleItem->Construct(Dimension(itemWidth, H_SORT_BY_LISTVIEW_ELEMENT), LIST_ANNEX_STYLE_NORMAL);
+
+       CustomItem* pItem = new (std::nothrow) CustomItem();
+
+       pItem->Construct(Dimension(itemWidth, __itemHeight), LIST_ANNEX_STYLE_NORMAL);
+
+       switch (index)
+       {
+       case 0:
+       {
+//             r = pSimpleItem->SetElement(Utils::GetResourceString(L"IDS_EMAIL_OPT_FAVOURITES"));
+               pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_FAVOURITES"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+       break;
+
+       case 1:
+       {
+//             r = pSimpleItem->SetElement(Utils::GetResourceString(L"IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1"));
+               pItem->AddElement(Rectangle(X_COMMON_CUSTOM_ITEM, Y_COMMON_CUSTOM_ITEM, itemWidth - 2 * X_COMMON_CUSTOM_ITEM, __itemHeight - Y_COMMON_CUSTOM_ITEM), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_UNMARK_AS_FAVOURITES_ABB1"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+       break;
+
+       default:
+               break;
+       } // switch
+
+       AppLogDebug("EXIT");
+       return pItem;
+}
+
+bool
+SetAllAsListViewItemProvider::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       AppLogDebug("ENTER");
+
+       if (pItem != null)
+       {
+               CustomItem* pTempItem = static_cast<CustomItem*>(pItem);
+               delete pTempItem;
+               pTempItem = null;
+       }
+
+       AppLogDebug("EXIT");
+       return true;
+}
+
+void
+SetAllAsListViewItemProvider::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       // Notify the current form that the ViewType has been changed.
+       if (__pSetAllAsListViewStateChangeListener != null)
+       {
+               __pSetAllAsListViewStateChangeListener->OnSetAllAsOptionChanged(index);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SetAllAsListViewItemProvider::OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction)
+{
+       // Empty implementation
+}
+
+void
+SetAllAsListViewItemProvider::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status)
+{
+       // Empty implementation
+}
+
+void
+SetAllAsListViewItemProvider::SetEventListener(ISetAllAsListViewStateChangeListener* pListener)
+{
+       AppLogDebug("ENTER");
+
+       SetFontValues();
+       // This method is called from the respective forms to set the EventListener to the current form.
+       __pSetAllAsListViewStateChangeListener = pListener;
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SetAllAsListViewItemProvider::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmSortByListViewItemProvider.cpp b/src/EmSortByListViewItemProvider.cpp
new file mode 100755 (executable)
index 0000000..696c5a7
--- /dev/null
@@ -0,0 +1,202 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSortByListViewItemProvider.cpp
+ * @brief      This is the implementation of IListViewItemProvider and IListViewItemEventListener for the custom popup.
+ */
+
+#include <FSystem.h>
+#include "EmSortByListViewItemProvider.h"
+#include "EmTypes.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+SortByListViewItemProvider::SortByListViewItemProvider()
+       : __viewByType(SORT_BY_NONE)
+       , __isViewBySender(true)
+       , __fontSize(44.0f)
+       , __itemHeight(150.0f)
+{
+       String fontSizeString;
+       result r = Tizen::System::SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+}
+
+int
+SortByListViewItemProvider::GetItemCount(void)
+{
+       // returns the number of available views
+       return 4;
+}
+
+Tizen::Ui::Controls::ListItemBase*
+SortByListViewItemProvider::CreateItem(int index, int itemWidth)
+{
+       AppLogDebug("ENTER index :(%d)", index);
+
+       result r = E_SUCCESS;
+       CustomItem* pCustomItem = null;
+
+       pCustomItem = new (std::nothrow) CustomItem();
+       pCustomItem->Construct(Dimension(itemWidth, __itemHeight), LIST_ANNEX_STYLE_RADIO);
+
+       switch (index)
+       {
+       case 0:
+       {
+               r = pCustomItem->AddElement(Rectangle(0,0,itemWidth - 2 * pCustomItem->GetAnnexWidthF(LIST_ANNEX_STYLE_RADIO) ,__itemHeight), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_DATE"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+       break;
+
+       case 1:
+       {
+               if (__isViewBySender)
+               {
+                       r = pCustomItem->AddElement(Rectangle(0,0,itemWidth - 2 * pCustomItem->GetAnnexWidthF(LIST_ANNEX_STYLE_RADIO) ,__itemHeight), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_SENDER"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+               }
+               else
+               {
+                       r = pCustomItem->AddElement(Rectangle(0,0,itemWidth - 2 * pCustomItem->GetAnnexWidthF(LIST_ANNEX_STYLE_RADIO) ,__itemHeight), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_RECIPIENT"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+               }
+       }
+       break;
+
+       case 2:
+       {
+               r = pCustomItem->AddElement(Rectangle(0,0,itemWidth - 2 * pCustomItem->GetAnnexWidthF(LIST_ANNEX_STYLE_RADIO) ,__itemHeight), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_UNREAD"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+       break;
+
+       case 3:
+       {
+               r = pCustomItem->AddElement(Rectangle(0,0,itemWidth - 2 * pCustomItem->GetAnnexWidthF(LIST_ANNEX_STYLE_RADIO) ,__itemHeight), 0, Utils::GetResourceString(L"IDS_EMAIL_OPT_FAVOURITES"), __fontSize, Color::GetColor(COLOR_ID_BLACK), Color::GetColor(COLOR_ID_WHITE), Color::GetColor(COLOR_ID_WHITE));
+       }
+       break;
+
+       default:
+               break;
+       } // switch
+
+       AppLogDebug("EXIT");
+       return pCustomItem;
+}
+
+bool
+SortByListViewItemProvider::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
+{
+       if (pItem != null)
+       {
+               CustomItem* pTmpItem = dynamic_cast<CustomItem*>(pItem);
+
+               if (pTmpItem != null)
+               {
+                       pTmpItem->RemoveAllElements();
+               }
+
+               delete pItem;
+               pItem = null;
+       }
+
+       return true;
+}
+
+void
+SortByListViewItemProvider::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
+{
+       AppLogDebug("ENTER");
+
+       listView.SetItemChecked(0, false);
+       listView.SetItemChecked(1, false);
+       listView.SetItemChecked(2, false);
+       listView.SetItemChecked(3, false);
+       listView.SetItemChecked(index, true);
+       listView.Invalidate(true);
+
+       __viewByType = (SortType)index;
+
+       // Notify the current form that the ViewType has been changed.
+       if (__pListViewItemStateChangeListener != null)
+       {
+               __pListViewItemStateChangeListener->OnSortTypeChanged(__viewByType);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SortByListViewItemProvider::OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction)
+{
+       // Empty implementation
+}
+
+void
+SortByListViewItemProvider::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status)
+{
+       // Empty implementation
+}
+
+void
+SortByListViewItemProvider::SetEventListener(IListViewStateChangeListener* pListener)
+{
+       // This method is called from the respective forms to set the EventListener to the current form.
+       __pListViewItemStateChangeListener = pListener;
+       return;
+}
+
+void
+SortByListViewItemProvider::SetViewBySenderOrRecipient(bool isViewBySender)
+{
+       AppLogDebug("ENTER");
+
+       // This method is called from the respective forms to set one of options of view type to either sender or recipient
+       __isViewBySender = isViewBySender;
+
+       AppLogDebug("EXIT");
+}
diff --git a/src/EmSpamboxPresentationModel.cpp b/src/EmSpamboxPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..746e4f3
--- /dev/null
@@ -0,0 +1,117 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmSpamPresentationModel.cpp
+ * @brief      Keeps the implementation of SpamPresentationModel class
+ */
+
+#include <cstdlib>
+#include "EmSpamboxPresentationModel.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+SpamPresentationModel* SpamPresentationModel::__pSpamPresentationModelInstance = null;
+
+SpamPresentationModel::SpamPresentationModel(void)
+{
+       // Empty Implementation
+}
+
+SpamPresentationModel::~SpamPresentationModel(void)
+{
+//     Empty implementation
+}
+
+result
+SpamPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       BasePresentationModel::Construct();
+
+       AppLogDebug("EXIT");
+       return r;
+}
+
+SpamPresentationModel*
+SpamPresentationModel::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pSpamPresentationModelInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pSpamPresentationModelInstance;
+}
+
+void
+SpamPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SpamPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pSpamPresentationModelInstance = new (std::nothrow) SpamPresentationModel();
+       r = __pSpamPresentationModelInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pSpamPresentationModelInstance;
+               __pSpamPresentationModelInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SpamPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pSpamPresentationModelInstance != null)
+       {
+               __pSpamPresentationModelInstance->CleanupInstance();
+               delete __pSpamPresentationModelInstance;
+               __pSpamPresentationModelInstance = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+SpamPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       _pMailList = _pMailboxManager->GetData(accountId, EMAIL_MAILBOX_TYPE_SPAMBOX, forceUpdate);
+}
diff --git a/src/EmStateInfo.cpp b/src/EmStateInfo.cpp
new file mode 100755 (executable)
index 0000000..e5fb55b
--- /dev/null
@@ -0,0 +1,40 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmStateInfo.cpp
+ * @brief      Provides the implementation of the state info class
+ */
+
+#include "EmStateInfo.h"
+
+StateInfo::StateInfo()
+       : accountId(0)
+       , mailboxId(0)
+       , mailId(0)
+       , isMailSelected(false)
+       , toFieldValue(L"")
+       , ccFieldValue(L"")
+       , bccFieldValue(L"")
+       , subjectFieldValue(L"")
+       , bodyFieldValue(L"")
+       , attachmentsPath(L"")
+       , searchText(L"")
+       , mailboxType(EMAIL_MAILBOX_TYPE_NONE)
+       , pPresentationModel(null)
+{
+       // Empty Implementation
+}
diff --git a/src/EmTrashPresentationModel.cpp b/src/EmTrashPresentationModel.cpp
new file mode 100755 (executable)
index 0000000..b74ca5d
--- /dev/null
@@ -0,0 +1,117 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file       EmTrashPresentationModel.cpp
+ * @brief      Keeps the implementation of TrashPresentationModel class
+ */
+
+#include <cstdlib>
+#include "EmTrashPresentationModel.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+TrashPresentationModel* TrashPresentationModel::__pTrashPresentationModelInstance = null;
+
+TrashPresentationModel::TrashPresentationModel(void)
+{
+       // Empty Implementation
+}
+
+TrashPresentationModel::~TrashPresentationModel(void)
+{
+       //Empty Implementation.
+}
+
+TrashPresentationModel*
+TrashPresentationModel::GetInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pTrashPresentationModelInstance == null)
+       {
+               CreateInstance();
+       }
+
+       AppLogDebug("EXIT");
+       return __pTrashPresentationModelInstance;
+}
+
+void
+TrashPresentationModel::CreateInstance(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       __pTrashPresentationModelInstance = new (std::nothrow) TrashPresentationModel();
+       r = __pTrashPresentationModelInstance->Construct();
+
+       if(IsFailed(r))
+       {
+               delete __pTrashPresentationModelInstance;
+               __pTrashPresentationModelInstance = null;
+               return;
+       }
+
+       std::atexit(DestroyInstance);
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+result
+TrashPresentationModel::Construct(void)
+{
+       AppLogDebug("ENTER");
+       result r = E_SUCCESS;
+
+       BasePresentationModel::Construct();
+
+       AppLogDebug(" EXIT: r = %s", GetErrorMessage(GetLastResult()));
+       return r;
+}
+
+void
+TrashPresentationModel::CleanupInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+TrashPresentationModel::DestroyInstance(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pTrashPresentationModelInstance != null)
+       {
+               __pTrashPresentationModelInstance->CleanupInstance();
+               delete __pTrashPresentationModelInstance;
+               __pTrashPresentationModelInstance = null;
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+TrashPresentationModel::FetchData(int accountId, bool forceUpdate)
+{
+       _pMailList = _pMailboxManager->GetData(accountId, EMAIL_MAILBOX_TYPE_TRASH, forceUpdate);
+}
diff --git a/src/EmTypes.cpp b/src/EmTypes.cpp
new file mode 100755 (executable)
index 0000000..2ce4046
--- /dev/null
@@ -0,0 +1,1739 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file                       EmTypes.cpp
+ * @brief                      Keeps all the constants definitions, used throughout the application
+ */
+
+#include "EmTypes.h"
+
+using namespace Tizen::Base;
+
+/************************************************************************************************/
+
+/****************\
+ *  Request IDs *
+\****************/
+
+/*--EmAccountDetailForm--*/
+const int IDA_ACCOUNT_DETAIL_FORM_SETTINGS = 10;
+const int IDA_ACCOUNT_DETAIL_FORM_ADD_ACCOUNT = 20;
+const int IDA_ACCOUNT_DETAIL_FORM_COMPOSE_EMAIL = 30;
+const int IDA_ACCOUNT_DETAIL_FORM_EXPAND_COLLAPSE = 40;
+
+/*--EmAccountSettingMainForm--*/
+const int IDA_ACCOUNT_SETTING_FORM_INBOX_BUTTON = 50;
+const int IDA_ACCOUNT_SETTING_FORM_SENTBOX_BUTTON = 60;
+const int IDA_ACCOUNT_SETTING_FORM_OUTBOX_BUTTON = 70;
+const int IDA_ACCOUNT_SETTING_FORM_DRAFTS_BUTTON = 80;
+const int IDA_ACCOUNT_SETTING_FORM_TRASH_BUTTON = 90;
+const int IDA_ACCOUNT_SETTING_FORM_SPAMBOX_BUTTON = 100;
+const int IDA_ACCOUNT_SETTING_FORM_BITMAP_ELEMENT = 110;
+const int IDA_ACCOUNT_SETTING_FORM_NAME_ELEMENT = 120;
+const int IDA_ACCOUNT_SETTING_FORM_ADDRESS_ELEMENT = 130;
+const int IDA_ACCOUNT_SETTING_FORM_MAIL_OPTION_PROVIDER_ELEMENT = 140;
+const int IDA_ACCOUNT_SETTING_FORM_COMMON_OPTION_PROVIDER_ELEMENT = 150;
+const int IDA_ACCOUNT_SETTING_FORM_INBOX_OPTION_PROVIDER_ELEMENT = 160;
+const int IDA_ACCOUNT_SETTING_FORM_SPAMBOX_OPTION_PROVIDER_ELEMENT = 170;
+
+/*--EmAddAccountForm--*/
+const int IDA_ADD_ACCOUNT_FORM_FOOTER_NEXT = 180;
+const int IDA_ADD_ACCOUNT_MANUAL_SETUP = 101;
+const int IDA_SHOW_PASSWORD_CHECKED = 110;
+const int IDA_SHOW_PASSWORD_UNCHECKED = 120;
+
+/*--EmAddAddressMainForm--*/
+const int IDA_ADD_ADDRESS_FORM_FOOTER_DONE = 200;
+const int IDA_ADD_ADDRESS_FORM_HEADER_CANCEL_BUTTON = 210;
+const int IDA_ADD_ADDRESS_FORM_EDITFIELD_DONE_BUTTON = 220;
+const int IDA_ADD_ADDRESS_FORM_EDITFIELD_CLOSE_BUTTON = 230;
+const int IDA_ADD_ADDRESS_FORM_ADD_CONTACT_BUTTON = 240;
+const int IDA_ADD_ADDRESS_FORM_STRING_ELEMENT = 250;
+
+/*--EmAddSubjectForm--*/
+const int IDA_ADD_SUBJECT_FORM_FOOTER_DONE = 260;
+const int IDA_ADD_SUBJECT_FORM_HEADER_CANCEL_BUTTON = 270;
+const int IDA_ADD_SUBJECT_FORM_EDITFIELD_DONE_BUTTON = 280;
+const int IDA_ADD_SUBJECT_FORM_EDITFIELD_CLOSE_BUTTON = 290;
+const int IDA_ADD_SUBJECT_FORM_ADD_CONTACT_BUTTON = 300;
+const int IDA_ADD_SUBJECT_FORM_STRING_ELEMENT = 310;
+
+/*--EmAttachmentPanel--*/
+const int IDA_ATTACHMENT_PANEL_DELETE_ATTACHMENT_BUTTON = 320;
+const int IDA_ATTACHMENT_PANEL_DOWNLOAD_ATTACHMENT_BUTTON = 321;
+const int IDA_ATTACHMENT_PANEL_CANCEL_DOWNLOAD_BUTTON = 322;
+
+/*-EmBaseListViewItemProvider--*/
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_REPLY_BUTTON = 103;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_MARK_AS_READ_BUTTON = 104;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_MARK_AS_UNREAD_BUTTON = 105;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_FORWARD_BUTTON = 106;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_DELETE_BUTTON = 107;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_SUBJECT_ELEMENT = 201;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_RECIPIENT_ELEMENT = 202;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_MESSAGE_ELEMENT = 203;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_DATE_ELEMENT = 204;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_FORMAT_IMPORTANT_ELEMENT = 205;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_ATTACH_ELEMENT = 206;
+const int IDA_BASE_LISTVIEW_ITEM_PROVIDER_EMPTY_ELEMENT = 207;
+
+/*--EmBlockEmailsMainForm--*/
+const int IDA_BLOCK_EMAIL_FORM_FOOTER_DELETE_BUTTON = 430;
+const int IDA_BLOCK_EMAIL_FORM_FOOTER_ADD_BUTTON = 440;
+const int IDA_BLOCK_EMAIL_FORM_STRING_ELEMENT = 450;
+const int IDA_BLOCK_EMAIL_FORM_HEADER_ADDRESS_BUTTON = 460;
+const int IDA_BLOCK_EMAIL_FORM_HEADER_SUBJECT_BUTTON = 470;
+
+/*--EmCustomListViewForPopup--*/
+const int IDA_CUSTOM_LISTVIEW_POPUP_ITEM_TITLE_STRING = 101;
+
+/*--EmDeleteSubjectAddressForms--*/
+const int IDA_FOOTER_DELETE = 101;
+const int IDA_FOOTER_CANCEL = 102;
+const int IDA_ELEMENT_STRING = 103;
+
+/*--EmDeleteSubjectAddressForms--*/
+const int IDA_DELETE_SUBJECT_ADDRESS_FORM_SELECT_ALL = 100;
+const int IDA_DELETE_SUBJECT_ADDRESS_FORM_FOOTER_DELETE = 101;
+const int IDA_DELETE_SUBJECT_ADDRESS_FORM_ELEMENT_STRING = 103;
+
+/*--EmDraftListForm--*/
+const int IDA_DRAFT_LIST_FOOTER_UPDATE = 101;
+const int IDA_DRAFT_LIST_FOOTER_ACCOUNTS = 102;
+const int IDA_DRAFT_LIST_FOOTER_MORE = 103;
+const int IDA_DRAFT_LIST_FOOTER_CONTEXTMENU_VIEW = 104;
+const int IDA_DRAFT_LIST_FOOTER_CONTEXTMENU_COMPOSE = 105;
+const int IDA_DRAFT_LIST_MAIL_SUBJECT = 201;
+const int IDA_DRAFT_LIST_MAIL_RECIPIENT = 202;
+const int IDA_DRAFT_LIST_MAIL_MESSAGE = 203;
+const int IDA_DRAFT_LIST_FORM_FORMAT_IMPORTANT = 205;
+const int IDA_DRAFT_LIST_CONTEXT_BLOCK = 106;
+const int IDA_DRAFT_LIST_CONTEXT_DELETE = 107;
+const int IDA_DRAFT_LIST_POPUP_CLOSE = 401;
+
+/*--EmDraftsReciSelectedForm--*/
+const int IDA_DRAFTS_RECI_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_DRAFTS_RECI_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmDraftListSelectedForm--*/
+const int IDA_DRAFT_LIST_SELECTED_FOOTER_DELETE = 101;
+const int IDA_DRAFT_LIST_SELECTED_FOOTER_CANCEL = 102;
+
+/*--EmDraftListUserForm--*/
+const int IDA_DRAFT_LIST_USER_FORM_FOOTER_UPDATE = 101;
+const int IDA_DRAFT_LIST_USER_FORM_FOOTER_ACCOUNTS = 102;
+const int IDA_DRAFT_LIST_USER_FORM_FOOTER_COMPOSE = 103;
+const int IDA_DRAFT_LIST_USER_FORM_MAIL_SUBJECT = 201;
+const int IDA_DRAFT_LIST_USER_FORM_MAIL_RECIPIENT = 202;
+const int IDA_DRAFT_LIST_USER_FORM_MAIL_MESSAGE = 203;
+const int IDA_DRAFT_LIST_USER_FORM_MAIL_DATE = 204;
+const int IDA_DRAFT_LIST_USER_FORM_CONTEXT_DELETE = 107;
+
+/*--EmDraftListUserSelectedForm--*/
+const int IDA_DRAFT_LIST_USER_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_DRAFT_LIST_USER_SELECTED_FORM_FOOTER_BLOCK = 102;
+const int IDA_DRAFT_LIST_USER_SELECTED_FORM_FOOTER_UNREAD = 103;
+const int IDA_DRAFT_LIST_USER_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmEmailComposerForm--*/
+const int IDA_COMPOSER_FORM_BUTTON_SEND = 102;
+const int IDA_COMPOSER_FORM_BUTTON_CANCEL = 103;
+const int IDA_HEADER_CONTEXTMENU_ATTACH_FILES = 105;
+const int IDA_HEADER_CONTEXTMENU_ADD_CC_BCC = 106;
+
+/*--EmEmailManualSetUpForm--*/
+const int IDA_FOOTER_MANUAL_SETUP_DONE = 101;
+const int IDA_INCOMING_SERVER_TYPE = 102;
+const int IDA_INCOMING_SECURE_CONNECTION = 103;
+const int IDA_OUTGOING_SECURE_CONNECTION = 104;
+const int IDA_INCOMING_SERVER_TYPE_CLOSED = 105;
+const int IDA_INCOMING_SECURE_CONNECTION_CLOSED = 106;
+const int IDA_OUTGOING_SECURE_CONNECTION_CLOSED = 107;
+const int IDA_MANUAL_SETUP_FORM_EXPAND_COLLAPSE = 108;
+
+/*--EmEmailDetailForm--*/
+const int IDA_EMAIL_DETAIL_FORM_FOOTER_DELETE = 101;
+const int IDA_EMAIL_DETAIL_FORM_FOOTER_REPLY = 102;
+const int IDA_EMAIL_DETAIL_FORM_TO_CC_EXPAND_COLLAPSE = 206;
+const int IDA_EMAIL_DETAIL_FORM_ATTACHMENT_EXPAND_COLLAPSE = 207;
+const int IDA_EMAIL_DETAIL_FORM_SENDEMAIL_POPUP = 208;
+const int IDA_EMAIL_DETAIL_FORM_BLOCK_POPUP = 209;
+const int IDA_EMAIL_DETAIL_FORM_DOWNLOAD_BUTTON = 210;
+const int IDA_EMAIL_DETAIL_FORM_REPLYSENDER_POPUP = 211;
+const int IDA_EMAIL_DETAIL_FORM_REPLYALL_POPUP = 212;
+const int IDA_EMAIL_DETAIL_FORM_MOVE_POPUP = 215;
+const int IDA_EMAIL_DETAIL_FORM_MARK_UNREAD_POPUP = 216;
+const int IDA_EMAIL_DETAIL_FORM_ADD_TO_CALENDER_POPUP = 217;
+const int IDA_EMAIL_DETAIL_FORM_ADDCONTACT1_POPUP = 218;
+const int IDA_EMAIL_DETAIL_FORM_BLOCK1_POPUP = 219;
+const int IDA_EMAIL_DETAIL_FORM_MARK_READ_POPUP = 220;
+const int IDA_EMAIL_DETAIL_FORM_FORWARD_POPUP = 221;
+const int IDA_EMAIL_DETAIL_FORM_UNBLOCK_POPUP = 222;
+
+const int IDA_EMAIL_DETAIL_FORM_UPDATE_ATTACHMENT_COUNT = 230;
+
+const int IDA_EMAIL_DETAIL_FORM_DELETE_CONFIRMATION_YES = 240;
+const int IDA_EMAIL_DETAIL_FORM_DELETE_CONFIRMATION_NO  = 241;
+const int IDA_EMAIL_DETAIL_FORM_FAVORITE_BUTTON  = 242;
+
+/*--EmEmailListForm--*/
+const int IDA_EMAIL_LIST_FORM_UPDATE_FOOTER_BUTTON = 0;
+const int IDA_EMAIL_LIST_FORM_ACCOUNTS_FOOTER_BUTTON = 1;
+const int IDA_EMAIL_LIST_FORM_MORE_FOOTER_BUTTON = 2;
+const int IDA_EMAIL_LIST_FORM_VIEW_FOOTER = 100;
+const int IDA_EMAIL_LIST_FORM_COMPOSE_FOOTER = 101;
+const int IDA_EMAIL_LIST_FORM_BTN_POPUP_CANCEL = 102;
+const int IDA_EMAIL_LIST_FORM_REPLY_BUTTON = 103;
+const int IDA_EMAIL_LIST_FORM_DELETE_BUTTON = 107;
+const int IDA_EMAIL_LIST_FORM_MAIL_SUBJECT = 201;
+const int IDA_EMAIL_LIST_FORM_MAIL_RECIPIENT = 202;
+const int IDA_EMAIL_LIST_FORM_MAIL_MESSAGE = 203;
+const int IDA_EMAIL_LIST_FORM_MAIL_DATE = 204;
+const int IDA_EMAIL_LIST_FORM_FORMAT_IMPORTANT = 205;
+const int IDA_EMAIL_LIST_FORM_MARK_AS_READ_BUTTON = 104;
+const int IDA_EMAIL_LIST_FORM_MARK_AS_UNREAD_BUTTON = 105;
+const int IDA_EMAIL_LIST_FORM_BLOCK_BUTTON = 106;
+
+/*--EmEmailListReciSelectedForm--*/
+const int IDA_EMAIL_LIST_RECI_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_EMAIL_LIST_RECI_SELECTED_FORM_FOOTER_MOVE = 102;
+const int IDA_EMAIL_LIST_RECI_SELECTED_FORM_FOOTER_BLOCK = 103;
+const int IDA_EMAIL_LIST_RECI_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmEmailListSelectedForm--*/
+const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_BLOCK = 102;
+const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_MARK_AS_UNREAD = 103;
+const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_CANCEL = 104;
+const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_CONTEXTMENU_UNREAD = 105;
+const int IDA_EMAIL_LIST_SELECTED_FORM_FOOTER_CONTEXTMENU_CANCEL = 106;
+
+/*--EmEmailListUserForm--*/
+const int IDA_EMAIL_LIST_USER_FORM_FOOTER_UPDATE = 101;
+const int IDA_EMAIL_LIST_USER_FORM_FOOTER_ACCOUNTS = 102;
+const int IDA_EMAIL_LIST_USER_FORM_FOOTER_COMPOSE = 103;
+const int IDA_EMAIL_LIST_USER_FORM_MAIL_SUBJECT = 201;
+const int IDA_EMAIL_LIST_USER_FORM_MAIL_RECIPIENT = 202;
+const int IDA_EMAIL_LIST_USER_FORM_MAIL_MESSAGE = 203;
+const int IDA_EMAIL_LIST_USER_FORM_MAIL_DATE = 204;
+const int IDA_EMAIL_LIST_USER_FORM_REPLY_BUTTON = 103;
+const int IDA_EMAIL_LIST_USER_FORM_MARK_AS_READ_BUTTON = 104;
+const int IDA_EMAIL_LIST_USER_FORM_MARK_AS_UNREAD_BUTTON = 105;
+const int IDA_EMAIL_LIST_USER_FORM_BLOCK_BUTTON = 106;
+const int IDA_EMAIL_LIST_USER_FORM_CONTEXT_DELETE = 107;
+const int IDA_EMAIL_LIST_USER_FORM_FORMAT_IMPORTANT = 205;
+
+/*--EmEmailListUserSelectedForm--*/
+const int IDA_ALL_MAILS_USER_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_ALL_MAILS_USER_SELECTED_FORM_FOOTER_BLOCK = 102;
+const int IDA_ALL_MAILS_USER_SELECTED_FORM_FOOTER_UNREAD = 103;
+const int IDA_ALL_MAILS_USER_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmEmailSettingForm--*/
+const int IDA_EMAIL_SETTING_FORM_BUTTON_SHOW_EMAIL = 101;
+const int IDA_EMAIL_SETTING_FORM_BUTTON_BLOCK_EMAIL = 102;
+const int IDA_EMAIL_SETTING_FORM_ELEMENT_ACCOUNT_NAME = 103;
+const int IDA_EMAIL_SETTING_FORM_ELEMENT_ACCOUNT_ADDRESS = 104;
+const int IDA_EMAIL_SETTING_FORM_BUTTON_DEFAULT_ACCOUNT = 105;
+const int IDA_EMAIL_SETTING_FORM_FOOTER_ADD_ACCOUNT = 106;
+const int IDA_EMAIL_SETTING_FORM_ELEMENT_ACCOUNT_BITMAP = 107;
+const int IDA_EMAIL_SETTING_FORM_ELEMENT_SELECTED_COLOR_BITMAP = 108;
+const int IDA_EMAIL_SETTING_FORM_ELEMENT_CHOOSE_COLOR_BITMAP = 109;
+const int IDA_EMAIL_SETTING_FORM_ELEMENT_STRING = 201;
+const int IDA_EMAIL_SETTING_FORM_ELEMENT_STRING1 = 301;
+const int IDA_EMAIL_SETTING_FORM_BUTTON_SAVE_COLOR = 302;
+const int IDA_EMAIL_SETTING_FORM_BUTTON_CANCEL_COLOR = 303;
+/*--EmForwardForm--*/
+const int IDA_FORWARD_FORM_BUTTON_SEND = 102;
+const int IDA_FORWARD_FORM_BUTTON_CANCEL = 103;
+
+/*--EmImportantMailsForm--*/
+const int IDA_IMPORTANT_MAILS_FORM_UPDATE_FOOTER_BUTTON = 0;
+const int IDA_IMPORTANT_MAILS_FORM_ACCOUNTS_FOOTER_BUTTON = 1;
+const int IDA_IMPORTANT_MAILS_FORM_COMPOSE_FOOTER = 2;
+const int IDA_IMPORTANT_MAILS_FORM_REPLY_BUTTON = 103;
+const int IDA_IMPORTANT_MAILS_FORM_MARK_AS_READ_BUTTON = 104;
+const int IDA_IMPORTANT_MAILS_FORM_MARK_AS_UNREAD_BUTTON = 105;
+const int IDA_IMPORTANT_MAILS_FORM_BLOCK_BUTTON = 106;
+const int IDA_IMPORTANT_MAILS_FORM_DELETE_BUTTON = 107;
+const int IDA_IMPORTANT_MAILS_FORM_FORMAT_IMPORTANT = 205;
+
+/*--EmInboxForm--*/
+const int IDA_INBOX_FORM_HEADER_SEARCH_BUTTON  = 100;
+const int IDA_INBOX_FORM_HEADER_UPDATE_BUTTON  = 110;
+
+const int IDA_INBOX_FORM_FOOTER_COMPOSE_BUTTON = 130;
+const int IDA_INBOX_FORM_FOOTER_DELETE_BUTTON  = 131;
+const int IDA_INBOX_FORM_FOOTER_FOLDER_BUTTON  = 140;
+const int IDA_INBOX_FORM_FOOTER_MOVE_BUTTON    = 141;
+
+const int IDA_INBOX_FORM_CONTEXT_MENU_SORT_BY     = 150;
+const int IDA_INBOX_FORM_CONTEXT_MENU_DELETE_ALL  = 151;
+const int IDA_INBOX_FORM_CONTEXT_MENU_ADD_ACCOUNT = 152;
+const int IDA_INBOX_FORM_CONTEXT_MENU_SETTINGS           = 153;
+const int IDA_INBOX_FORM_CONTEXT_MENU_MARK_UNREAD = 160;
+const int IDA_INBOX_FORM_CONTEXT_MENU_MARK_READ   = 161;
+const int IDA_INBOX_FORM_CONTEXT_MENU_MARK_ALL_AS = 162;
+const int IDA_INBOX_FORM_CONTEXT_MENU_SET_UNFAVOURITES = 163;
+const int IDA_INBOX_FORM_CONTEXT_MENU_SET_FAVOURITES   = 164;
+const int IDA_INBOX_FORM_CONTEXT_MENU_SET_ALL_AS          = 165;
+const int IDA_INBOX_FORM_CONTEXT_MENU_BLOCK               = 170;
+
+const int IDA_INBOX_FORM_CONTEXT_MENU_FOLDER_VIEW = 200;
+const int IDA_INBOX_FORM_CONTEXT_MENU_INBOX       = IDA_INBOX_FORM_CONTEXT_MENU_FOLDER_VIEW;
+//const int IDA_INBOX_FORM_CONTEXT_MENU_FAVORITES   = IDA_INBOX_FORM_CONTEXT_MENU_FOLDER_VIEW+1;
+const int IDA_INBOX_FORM_CONTEXT_MENU_DRAFTS      = IDA_INBOX_FORM_CONTEXT_MENU_FOLDER_VIEW+1;
+const int IDA_INBOX_FORM_CONTEXT_MENU_SENTBOX     = IDA_INBOX_FORM_CONTEXT_MENU_FOLDER_VIEW+2;
+const int IDA_INBOX_FORM_CONTEXT_MENU_ALL_FOLDERS = IDA_INBOX_FORM_CONTEXT_MENU_FOLDER_VIEW+3;
+
+const int IDA_INBOX_FORM_BTN_POPUP_CANCEL = 102;
+const int IDA_INBOX_FORM_REPLY_BUTTON = 103;
+const int IDA_INBOX_FORM_MARK_AS_READ_BUTTON = 104;
+const int IDA_INBOX_FORM_MARK_AS_UNREAD_BUTTON = 105;
+const int IDA_INBOX_FORM_FORWARD_BUTTON = 106;
+const int IDA_INBOX_FORM_DELETE_BUTTON = 107;
+const int IDA_INBOX_FORM_BTN_MARK_ALL_AS_POPUP_CLOSE = 108;
+const int IDA_INBOX_FORM_BTN_SET_ALL_AS_POPUP_CANCEL = 109;
+const int IDA_INBOX_FORM_MAIL_SUBJECT = 201;
+const int IDA_INBOX_FORM_MAIL_RECIPIENT = 202;
+const int IDA_INBOX_FORM_MAIL_MESSAGE = 203;
+const int IDA_INBOX_FORM_MAIL_DATE = 204;
+const int IDA_INBOX_FORM_FORMAT_IMPORTANT = 205;
+
+const int IDA_INBOX_FORM_DELETE_CONFIRMATION_NO  = 300;
+const int IDA_INBOX_FORM_DELETE_CONFIRMATION_YES = 301;
+
+/*--EmInboxReciSelectedForm--*/
+const int IDA_INBOX_RECI_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_INBOX_RECI_SELECTED_FORM_FOOTER_MOVE = 102;
+const int IDA_INBOX_RECI_SELECTED_FORM_FOOTER_BLOCK = 103;
+const int IDA_INBOX_RECI_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmInboxSelectedForm--*/
+const int IDA_INBOX_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_INBOX_SELECTED_FORM_FOOTER_MOVE = 102;
+const int IDA_INBOX_SELECTED_FORM_FOOTER_BLOCK = 103;
+const int IDA_INBOX_SELECTED_FORM_FOOTER_MORE = 104;
+const int IDA_INBOX_SELECTED_FORM_FOOTER_CONTEXTMENU_UNREAD = 105;
+const int IDA_INBOX_SELECTED_FORM_FOOTER_CONTEXTMENU_CANCEL = 106;
+
+/*--EmInboxUserForm--*/
+const int IDA_INBOX_USER_FORM_FOOTER_UPDATE = 101;
+const int IDA_INBOX_USER_FORM_FOOTER_ACCOUNTS = 102;
+const int IDA_INBOX_USER_FORM_FOOTER_COMPOSE = 103;
+const int IDA_INBOX_USER_FORM_MAIL_SUBJECT = 201;
+const int IDA_INBOX_USER_FORM_MAIL_RECIPIENT = 202;
+const int IDA_INBOX_USER_FORM_MAIL_MESSAGE = 203;
+const int IDA_INBOX_USER_FORM_MAIL_DATE = 204;
+const int IDA_INBOX_USER_FORM_CONTEXT_DELETE = 107;
+const int IDA_INBOX_USER_FORM_FORMAT_IMPORTANT = 205;
+
+/*--EmInboxUserSelectedForm--*/
+const int IDA_INBOX_USER_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_INBOX_USER_SELECTED_FORM_FOOTER_BLOCK = 102;
+const int IDA_INBOX_USER_SELECTED_FORM_FOOTER_UNREAD = 103;
+const int IDA_INBOX_USER_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmMovemailForm--*/
+const int IDA_MOVE_MAIL_FORM_MOVE_OPTION = 201;
+
+/*--EmMovemailSelectedForm--*/
+const int IDA_MOVE_MAIL_SELECTED_FORM_FOOTER_MOVEHERE = 101;
+const int IDA_MOVE_MAIL_SELECTED_FORM_FOOTER_CANCEL = 102;
+const int IDA_MOVE_MAIL_SELECTED_FORM_MOVE_OPTION = 201;
+
+/*--EmOutboxForm--*/
+const int IDA_OUTBOX_FORM_FOOTER_UPDATE = 101;
+const int IDA_OUTBOX_FORM_FOOTER_ACCOUNTS = 102;
+const int IDA_OUTBOX_FORM_FOOTER_MORE = 103;
+const int IDA_OUTBOX_FORM_FOOTER_CONTEXTMENU_VIEW = 104;
+const int IDA_OUTBOX_FORM_FOOTER_CONTEXTMENU_COMPOSE = 105;
+const int IDA_OUTBOX_FORM_MAIL_SUBJECT = 201;
+const int IDA_OUTBOX_FORM_MAIL_RECIPIENT = 202;
+const int IDA_OUTBOX_FORM_MAIL_MESSAGE = 203;
+const int IDA_OUTBOX_FORM_CONTEXT_DELETE = 107;
+const int IDA_OUTBOX_FORM_POPUP_CLOSE = 401;
+
+/*--EmOutboxSelectedForm--*/
+const int IDA_OUTBOX_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_OUTBOX_SELECTED_FORM_FOOTER_CANCEL = 102;
+
+/*--EmOutboxUserForm--*/
+const int IDA_OUTBOX_USER_FORM_FOOTER_UPDATE = 101;
+const int IDA_OUTBOX_USER_FORM_FOOTER_ACCOUNTS = 102;
+const int IDA_OUTBOX_USER_FORM_FOOTER_COMPOSE = 103;
+const int IDA_OUTBOX_USER_FORM_MAIL_SUBJECT = 201;
+const int IDA_OUTBOX_USER_FORM_MAIL_RECIPIENT = 202;
+const int IDA_OUTBOX_USER_FORM_MAIL_MESSAGE = 203;
+const int IDA_OUTBOX_USER_FORM_CONTEXT_DELETE = 107;
+
+/*--EmOutboxUserSelectedForm--*/
+const int IDA_OUTBOX_USER_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_OUTBOX_USER_SELECTED_FORM_FOOTER_BLOCK = 102;
+const int IDA_OUTBOX_USER_SELECTED_FORM_FOOTER_UNREAD = 103;
+const int IDA_OUTBOX_USER_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmRecipientField--*/
+const int IDA_UPDATE_TOKEN_COUNT = 1;
+
+/*--EmReplyForm--*/
+const int IDA_REPLY_FORM_OK_BUTTON = 101;
+const int IDA_REPLY_FORM_SEND_BUTTON = 102;
+const int IDA_REPLY_FORM_CANCEL_BUTTON = 103;
+
+/*--EmSearchPresentationModel--*/
+const int IDA_SEARCH_PRESENTATION_MODEL_MAIL_SUBJECT = 201;
+const int IDA_SEARCH_PRESENTATION_MODEL_MAIL_RECIPIENT = 202;
+const int IDA_SEARCH_PRESENTATION_MODEL_MAIL_MESSAGE = 203;
+const int IDA_SEARCH_PRESENTATION_MODEL_MAIL_DATE = 204;
+const int IDA_SEARCH_PRESENTATION_MODEL_FORMAT_IMPORTANT = 205;
+const int IDA_SEARCH_PRESENTATION_MODEL_ATTACH = 206;
+
+
+/*--EmSentboxForm--*/
+const int IDA_SENTBOX_FORM_UPDATE_FOOTER_BUTTON = 0;
+const int IDA_SENTBOX_FORM_ACCOUNTS_FOOTER_BUTTON = 1;
+const int IDA_SENTBOX_FORM_MORE_FOOTER_BUTTON = 2;
+const int IDA_SENTBOX_FORM_VIEW_FOOTER = 100;
+const int IDA_SENTBOX_FORM_COMPOSE_FOOTER = 101;
+const int IDA_SENTBOX_FORM_BTN_POPUP_CANCEL = 102;
+const int IDA_SENTBOX_FORM_REPLY_BUTTON = 103;
+const int IDA_SENTBOX_FORM_BLOCK_BUTTON = 106;
+const int IDA_SENTBOX_FORM_DELETE_BUTTON = 107;
+const int IDA_SENTBOX_FORM_MAIL_SUBJECT = 201;
+const int IDA_SENTBOX_FORM_MAIL_RECIPIENT = 202;
+const int IDA_SENTBOX_FORM_MAIL_MESSAGE = 203;
+const int IDA_SENTBOX_FORM_MAIL_DATE = 204;
+const int IDA_SENTBOX_FORM_FORMAT_IMPORTANT = 205;
+
+/*--EmSentboxReciSelectedForm--*/
+const int IDA_SENTBOX_RECI_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_SENTBOX_RECI_SELECTED_FORM_FOOTER_MOVE = 102;
+const int IDA_SENTBOX_RECI_SELECTED_FORM_FOOTER_BLOCK = 103;
+const int IDA_SENTBOX_RECI_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmSentboxSelectedForm--*/
+const int IDA_SENTBOX_SELECTED_FOOTER_DELETE = 101;
+const int IDA_SENTBOX_SELECTED_FOOTER_MOVE = 102;
+const int IDA_SENTBOX_SELECTED_FOOTER_BLOCK = 103;
+const int IDA_SENTBOX_SELECTED_FOOTER_MORE = 104;
+const int IDA_SENTBOX_SELECTED_FOOTER_CONTEXTMENU_UNREAD = 105;
+const int IDA_SENTBOX_SELECTED_FOOTER_CONTEXTMENU_CANCEL = 106;
+
+/*--EmSentboxUserForm--*/
+const int IDA_SENTBOX_USER_FORM_FOOTER_UPDATE = 101;
+const int IDA_SENTBOX_USER_FORM_FOOTER_ACCOUNTS = 102;
+const int IDA_SENTBOX_USER_FORM_FOOTER_COMPOSE = 103;
+const int IDA_SENTBOX_USER_FORM_MAIL_SUBJECT = 201;
+const int IDA_SENTBOX_USER_FORM_MAIL_RECIPIENT = 202;
+const int IDA_SENTBOX_USER_FORM_MAIL_MESSAGE = 203;
+const int IDA_SENTBOX_USER_FORM_MAIL_DATE = 204;
+const int IDA_SENTBOX_USER_FORM_CONTEXT_REPLY = 103;
+const int IDA_SENTBOX_USER_FORM_CONTEXT_DELETE = 107;
+const int IDA_SENTBOX_USER_FORM_FORMAT_IMPORTANT = 205;
+
+/*--EmSentboxUserSelectedForm--*/
+const int IDA_SENTBOX_USER_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_SENTBOX_USER_SELECTED_FORM_FOOTER_MOVE = 103;
+const int IDA_SENTBOX_USER_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmSpamboxForm--*/
+const int IDA_SPAMBOX_FORM_FOOTER_DELETEALL = 101;
+const int IDA_SPAMBOX_FORM_FOOTER_UPDATE = 102;
+const int IDA_SPAMBOX_FORM_FOOTER_MORE = 103;
+const int IDA_SPAMBOX_FORM_FOOTER_CONTEXTMENU_ACCOUNTS = 104;
+const int IDA_SPAMBOX_FORM_FOOTER_CONTEXTMENU_COMPOSE = 105;
+const int IDA_SPAMBOX_FORM_MAIL_SUBJECT = 201;
+const int IDA_SPAMBOX_FORM_MAIL_RECIPIENT = 202;
+const int IDA_SPAMBOX_FORM_MAIL_MESSAGE = 203;
+const int IDA_SPAMBOX_FORM_MAIL_DATE = 204;
+const int IDA_SPAMBOX_FORM_FORMAT_IMPORTANT = 205;
+const int IDA_SPAMBOX_FORM_MARK_AS_READ_BUTTON = 104;
+const int IDA_SPAMBOX_FORM_MARK_AS_UNREAD_BUTTON = 105;
+const int IDA_SPAMBOX_FORM_DELETE_BUTTON = 107;
+
+/*--EmSpamboxSelectedForm--*/
+const int IDA_SPAMBOX_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_SPAMBOX_SELECTED_FORM_FOOTER_MOVE = 102;
+const int IDA_SPAMBOX_SELECTED_FORM_FOOTER_UNREAD = 103;
+const int IDA_SPAMBOX_SELECTED_FORM_FOOTER_CANCEL = 104;
+const int IDA_SPAMBOX_SELECTED_FORM_FORMAT_IMPORTANT = 205;
+
+/*--EmTrashForm--*/
+const int IDA_TRASH_FORM_FOOTER_UPDATE = 101;
+const int IDA_TRASH_FORM_FOOTER_ACCOUNTS = 102;
+const int IDA_TRASH_FORM_FOOTER_MORE = 103;
+const int IDA_TRASH_FORM_FOOTER_CONTEXTMENU_VIEW = 104;
+const int IDA_TRASH_FORM_FOOTER_CONTEXTMENU_COMPOSE = 105;
+const int IDA_TRASH_FORM_FOOTER_CONTEXTMENU_DELETEALL = 106;
+const int IDA_TRASH_FORM_MAIL_SUBJECT = 201;
+const int IDA_TRASH_FORM_MAIL_RECIPIENT = 202;
+const int IDA_TRASH_FORM_MAIL_MESSAGE = 203;
+const int IDA_TRASH_FORM_MAIL_DATE = 204;
+const int IDA_TRASH_FORM_MARK_AS_READ_BUTTON = 104;
+const int IDA_TRASH_FORM_MARK_AS_UNREAD_BUTTON = 105;
+const int IDA_TRASH_FORM_BLOCK_BUTTON = 106;
+const int IDA_TRASH_FORM_CONTEXT_DELETE = 107;
+const int IDA_TRASH_FORM_FORMAT_IMPORTANT = 205;
+const int IDA_TRASH_FORM_POPUP_CLOSE = 401;
+const int IDA_TRASH_FORM_POPUP_DELETE = 402;
+
+/*--EmTrashReciSelectedForm--*/
+const int IDA_TRASH_RECI_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_TRASH_RECI_SELECTED_FORM_FOOTER_MOVE = 102;
+const int IDA_TRASH_RECI_SELECTED_FORM_FOOTER_BLOCK = 103;
+const int IDA_TRASH_RECI_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmTrashSelectedForm--*/
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_DELETE = 101;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_MOVE = 102;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_BLOCK = 103;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_MORE = 104;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_CONTEXTMENU_UNREAD = 105;
+extern const int IDA_TRASH_SELECTED_FORM_FOOTER_CONTEXTMENU_CANCEL = 106;
+
+/*--EmTrashUserForm--*/
+const int IDA_TRASH_USER_FORM_FOOTER_UPDATE = 101;
+const int IDA_TRASH_USER_FORM_FOOTER_ACCOUNTS = 102;
+const int IDA_TRASH_USER_FORM_FOOTER_COMPOSE = 103;
+const int IDA_TRASH_USER_FORM_MAIL_SUBJECT = 201;
+const int IDA_TRASH_USER_FORM_MAIL_RECIPIENT = 202;
+const int IDA_TRASH_USER_FORM_MAIL_MESSAGE = 203;
+const int IDA_TRASH_USER_FORM_MAIL_DATE = 204;
+const int IDA_TRASH_USER_FORM_CONTEXT_MARK_AS_READ_BUTTON = 104;
+const int IDA_TRASH_USER_FORM_CONTEXT_MARK_AS_UNREAD_BUTTON = 105;
+const int IDA_TRASH_USER_FORM_CONTEXT_BLOCK = 106;
+const int IDA_TRASH_USER_FORM_CONTEXT_DELETE = 107;
+const int IDA_TRASH_USER_FORM_FORMAT_IMPORTANT = 205;
+
+/*--EmTrashUserSelectedForm--*/
+const int IDA_TRASH_USER_SELECTED_FORM_FOOTER_DELETE = 101;
+const int IDA_TRASH_USER_SELECTED_FORM_FOOTER_BLOCK = 102;
+const int IDA_TRASH_USER_SELECTED_FORM_FOOTER_UNREAD = 103;
+const int IDA_TRASH_USER_SELECTED_FORM_FOOTER_CANCEL = 104;
+
+/*--EmSearchForm--*/
+const int IDA_SEARCH_FORM_CANCEL_BUTTON = 100;
+const int IDA_SEARCH_FORM_OPTIONS_BUTTON = 110;
+const int IDA_SEARCH_FORM_SEARCH_ALL = 200;
+const int IDA_SEARCH_FORM_SEARCH_TITLE = 201;
+const int IDA_SEARCH_FORM_SEARCH_SENDER = 202;
+const int IDA_SEARCH_FORM_SEARCH_DATE = 203;
+const int IDA_SEARCH_FORM_SEARCH_ADVANCED = 204;
+
+/*--EmSplitViewForm--*/
+const int IDA_SPLIT_VIEW_FORM_EDIT_MODE = 100;
+const int IDA_SPLIT_VIEW_FORM_EMPTY_MODE = 110;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_MODE = 120;
+const int IDA_SPLIT_VIEW_FORM_SEARCH_MODE = 135;
+const int IDA_SPLIT_VIEW_FORM_SEARCH_SELECTED_MODE = 140;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_UPDATE_BODY = 141;
+const int IDA_SPLIT_VIEW_FORM_UPDATE_GROUPED_LISTVIEW = 121;
+const int IDA_SPLIT_VIEW_FORM_COMPOSE = 122;
+const int IDA_SPLIT_VIEW_FORM_SEARCH = 123;
+const int IDA_SPLIT_VIEW_FORM_ADD_ACCOUNT = 124;
+const int IDA_SPLIT_VIEW_FORM_SETTINGS = 125;
+const int IDA_SPLIT_VIEW_FORM_DELETE_SELECTED_MAILS = 130;
+const int IDA_SPLIT_VIEW_FORM_BLOCK_SELECTED_MAILS = 131;
+const int IDA_SPLIT_VIEW_FORM_DELETE_ALL = 132;
+const int IDA_SPLIT_VIEW_FORM_MOVE_SELECTED_MAILS = 133;
+const int IDA_SPLIT_VIEW_FORM_UPDATE_MAIL_ITEM = 134;
+const int IDA_SPLIT_VIEW_FORM_SEARCH_CANCEL = 135;
+const int IDA_SPLIT_VIEW_FORM_SEARCH_FILTER_ALL = 136;
+const int IDA_SPLIT_VIEW_FORM_SEARCH_FILTER_TITLE = 137;
+const int IDA_SPLIT_VIEW_FORM_SEARCH_FILTER_SENDER = 138;
+const int IDA_SPLIT_VIEW_FORM_SEARCH_OPTIONS_BUTTON = 139;
+const int IDA_SPLIT_VIEW_FORM_HIDE_SEARCH_KEYPAD = 250;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SHOW_OPTION_MENU = 251;
+
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_DELETE = 142;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_REPLY = 143;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_BLOCK = 144;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_MARK_AS_READ = 145;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_MARK_AS_UNREAD = 146;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_MOVE = 147;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_REPLYALL = 148;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_REPLYSENDER = 149;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FAVOURITE_ICON = 150;
+const int IDA_SPLIT_VIEW_FORM_SELECTED_VIEW_FOOTER_FORWARD = 201;
+const int IDA_SPLIT_VIEW_FORM_SHOW_DOWNLOAD_FAILED_MSGBOX = 210;
+const int IDA_SPLIT_VIEW_FORM_SHOW_SORT_BY_POPUP = 301;
+const int IDA_SPLIT_VIEW_FORM_SHOW_MARK_ALL_AS_POPUP = 302;
+const int IDA_SPLIT_VIEW_FORM_SHOW_SET_ALL_AS_POPUP = 303;
+
+const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_INBOX       = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW;
+const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_FAVORITES   = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW+1;
+const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_DRAFTS      = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW+2;
+const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_SENTBOX     = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW+3;
+const int IDA_SPLIT_VIEW_FORM_CONTEXT_MENU_ALL_FOLDERS = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW+4;
+
+const int IDA_SPLIT_VIEW_FORM_DELETE_CONFIRMATION_NO = 1000;
+const int IDA_SPLIT_VIEW_FORM_DELETE_CONFIRMATION_YES = 1001;
+
+/*--EmSplitViewDetailForm--*/
+const int IDA_SPLIT_VIEW_DETAIL_FORM_TO_CC_BUTTON  = 100;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_FAVOURITE_BUTTON = 101;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_ATTACH_BUTTON = 110;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_MORE_BUTTON = 120;
+const int IDA_SPLIT_VIEW_FORM_BTN_SORT_BY_POPUP_CANCEL = 102;
+const int IDA_SPLIT_VIEW_FORM_BTN_MARK_ALL_AS_POPUP_CANCEL = 108;
+const int IDA_SPLIT_VIEW_FORM_BTN_SET_ALL_AS_POPUP_CANCEL = 109;
+
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW = 400;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_INBOX       = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FAVORITES   = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW+1;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_DRAFTS      = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW+2;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SENTBOX     = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW+3;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_ALL_FOLDERS = IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_FOLDER_VIEW+4;
+
+const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_COMPOSE_BUTTON = 130;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_DELETE_BUTTON  = 131;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_FOLDERS_BUTTON  = 140;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_FOOTER_MOVE_BUTTON    = 141;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_DELETE = 142;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_REPLY = 143;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_BLOCK = 144;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_MARK_AS_READ = 145;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_MARK_AS_UNREAD = 146;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_MOVE = 147;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_REPLYALL = 148;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_REPLYSENDER = 149;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_SELECTED_VIEW_FOOTER_FORWARD = 201;
+
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SORT_BY     = 150;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_DELETE_ALL  = 151;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_ADD_ACCOUNT = 152;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SETTINGS = 153;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_MARK_UNREAD = 160;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_MARK_READ   = 161;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_MARK_ALL_AS = 162;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SET_UNFAVOURITE = 163;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SET_FAVOURITE   = 164;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_SET_ALL_AS = 165;
+const int IDA_SPLIT_VIEW_DETAIL_FORM_CONTEXT_MENU_BLOCK = 170;
+
+const int IDA_SPLIT_VIEW_DETAIL_FORM_UPDATE_ATTACHMENT_COUNT = 180;
+
+const int IDA_SPLIT_VIEW_DETAIL_FORM_DOWNLOAD_BUTTON         = 190;
+
+/*--EmAccountConfiguration--*/
+const int IDA_ACCOUNT_CONFIG_FORM_FOOTER_DELETE = 100;
+
+/*--Common--*/
+const int MIN_MEMORY_NEEDED = 1048576;
+const int IDA_SHOW_VIEW_MODE_POPUP = 50000;
+const int IDA_SHOW_MARK_ALL_AS_POPUP = 50001;
+const int IDA_SHOW_SET_ALL_AS_POPUP = 50002;
+const int IDA_ATTACHMENT_DOWNLOAD_FAILED_OK = 6000;
+const int IDA_MOVE_OR_DELETE_FAILED_OK = 6001;
+
+/************************************************************************************************/
+
+/*******************\
+*  Control Names    *
+\*******************/
+
+/*--InboxForm--*/
+const wchar_t* IDC_INBOX_GROUPEDLISTVIEW = L"IDC_INBOX_GROUPEDLISTVIEW";
+const wchar_t* IDC_INBOX_SELECTED_LABEL = L"IDC_INBOX_SELECTED_LABEL";
+const wchar_t* IDC_INBOX_ACCOUNTS_LIST_PANEL = L"IDC_INBOX_ACCOUNTS_LIST_PANEL";
+const wchar_t* IDC_INBOX_ACCOUNTS_LISTVIEW = L"IDC_INBOX_ACCOUNTS_LISTVIEW";
+
+/*--EmEmailManualSetUpForm--*/
+const wchar_t* IDC_MAIN_SECTIONTABLEVIEW = L"IDC_MAIN_SECTIONTABLEVIEW";
+
+/*--SearchForm--*/
+const wchar_t* IDC_SEARCH_SEARCHBAR = L"IDC_SEARCH_SEARCHBAR";
+const wchar_t* IDC_SEARCH_OPTIONS_BUTTON = L"IDC_SEARCH_OPTIONS_BUTTON";
+const wchar_t* IDC_SEARCH_RESULT_GROUPEDLISTVIEW = L"IDC_SEARCH_RESULT_GROUPEDLISTVIEW";
+
+/*-SplitViewForm-*/
+const wchar_t* IDC_SPLITPANEL  = L"IDC_SPLITPANEL";
+const wchar_t* IDC_LEFT_PANEL  = L"IDC_LEFT_PANEL";
+const wchar_t* IDC_RIGHT_PANEL = L"IDC_RIGHT_PANEL";
+
+/*--SplitViewDetailForm--*/
+const wchar_t* IDC_TABLE_VIEW = L"IDC_TABLEVIEW";
+const wchar_t* IDC_EMPTY_MODE_PANEL = L"IDC_EMPTY_MODE_PANEL";
+const wchar_t* IDC_SELECTED_LABEL   = L"IDC_SELECTED_LABEL";
+
+/*--AddAccountForm--*/
+const wchar_t* IDC_EMAIL_EDITFIELD = L"IDC_EMAIL_EDITFIELD";
+const wchar_t* IDC_USERNAME_EDITFIELD = L"IDC_USERNAME_EDITFIELD";
+const wchar_t* IDC_PASSWORD_EDITFIELD = L"IDC_PASSWORD_EDITFIELD";
+const wchar_t* IDC_PASSWORD_NORMAL_EDITFIELD = L"IDC_PASSWORD_NORMAL_EDITFIELD";
+const wchar_t* IDC_MANUAL_SETTINGS_BUTTON = L"IDC_MANUAL_SETTINGS_BUTTON";
+const wchar_t* IDC_SHOW_PASSWORD_CHECKBUTTON = L"IDC_SHOW_PASSWORD_CHECKBUTTON";
+
+/*--AccountConfigurationForm--*/
+const wchar_t* IDC_ACCOUNT_CONFIG_MAIN_SECTIONTABLEVIEW = L"IDC_MAIN_SECTIONTABLEVIEW";
+
+/************************************************************************************************/
+
+/*******************\
+*  String constants *
+\*******************/
+
+/*--Common--*/
+const wchar_t* IDS_TIZEN_APPID_FILEMANAGER = L"tizen.filemanager";
+const wchar_t* IDS_TIZEN_APPID_CONTACTS    = L"tizen.contacts";
+const wchar_t* IDS_TIZEN_APPID_IMAGEVIEWER = L"tizen.imageviewer";
+const wchar_t* IDS_TIZEN_APPID_MUSICPLAYER = L"tizen.musicplayer";
+const wchar_t* IDS_TIZEN_APPID_VIDEOPLAYER = L"tizen.videoplayer";
+const wchar_t* IDS_TIZEN_APPID_INTERNET    = L"tizen.internet";
+const wchar_t* IDS_TIZEN_APPID_CALENDAR    = L"tizen.calendar";
+
+const wchar_t* IDS_TIZEN_OPERATIONID_SOCIAL_VIEW     = L"http://tizen.org/appcontrol/operation/social/view";
+const wchar_t* IDS_TIZEN_OPERATIONID_SOCIAL_PICK     = L"http://tizen.org/appcontrol/operation/social/pick";
+const wchar_t* IDS_TIZEN_OPERATIONID_PICK            = L"http://tizen.org/appcontrol/operation/pick";
+const wchar_t* IDS_TIZEN_OPERATIONID_VIEW            = L"http://tizen.org/appcontrol/operation/view";
+const wchar_t* IDS_TIZEN_OPERATIONID_COMPOSE         = L"http://tizen.org/appcontrol/operation/compose";
+const wchar_t* IDS_TIZEN_OPERATIONID_SHARE_TEXT      = L"http://tizen.org/appcontrol/operation/share_text";
+const wchar_t* IDS_TIZEN_OPERATIONID_CONFIGURE       = L"http://tizen.org/appcontrol/operation/configure";
+const wchar_t* IDS_TIZEN_OPERATIONID_ACCOUNT_ADD     = L"http://tizen.org/appcontrol/operation/account/add";
+const wchar_t* IDS_TIZEN_OPERATIONID_ACCOUNT_CONFIGURE = L"http://tizen.org/appcontrol/operation/account/configure";
+
+const wchar_t* IDS_TIZEN_APPCONTROL_KEY_SELECTION_MODE = L"http://tizen.org/appcontrol/data/selection_mode";
+const wchar_t* IDS_TIZEN_APPCONTROL_KEY_SOCIAL_EMAIL   = L"http://tizen.org/appcontrol/data/social/email";
+const wchar_t* IDS_TIZEN_APPCONTROL_KEY_RESULT_TYPE    = L"http://tizen.org/appcontrol/data/social/result_type";
+const wchar_t* IDS_TIZEN_APPCONTROL_KEY_ACCOUNT_ID     = L"http://tizen.org/appcontrol/data/account/id";
+const wchar_t* IDS_TIZEN_APPCONTROL_KEY_ITEM_TYPE      = L"http://tizen.org/appcontrol/data/social/item_type";
+const wchar_t* IDS_TIZEN_APPCONTROL_KEY_SELECTED       = L"http://tizen.org/appcontrol/data/selected";
+const wchar_t* IDS_TIZEN_APPCONTROL_KEY_PATH           = L"http://tizen.org/appcontrol/data/path";
+const wchar_t* IDS_TIZEN_APPCONTROL_KEY_TYPE           = L"http://tizen.org/appcontrol/data/type";
+
+const wchar_t* IDS_TIZEN_APPCONTROL_VAL_ALL      = L"all";
+const wchar_t* IDS_TIZEN_APPCONTROL_VAL_MULTIPLE = L"multiple";
+const wchar_t* IDS_TIZEN_APPCONTROL_VAL_SINGLE   = L"single";
+const wchar_t* IDS_TIZEN_APPCONTROL_VAL_PERSON   = L"person";
+const wchar_t* IDS_TIZEN_APPCONTROL_VAL_EMAIL    = L"email";
+const wchar_t* IDS_TIZEN_APPCONTROL_VAL_AUDIO    = L"audio";
+const wchar_t* IDS_TIZEN_APPCONTROL_VAL_VIDEO    = L"video";
+
+const wchar_t* IDS_DELIM_SEMICOLON = L";";
+
+//const wchar_t* IDS_ADDRESS_ALREADY_ADDED     = L"Same addresses were already added";
+const wchar_t* IDS_SAVE_FAILED               = L"Unable to save message";
+
+// TODO need to replace this with string xml resources.
+const wchar_t* IDS_SEARCH_SENDER   = L"Sender";
+const wchar_t* IDS_SEARCH_DATE     = L"Date";
+const wchar_t* IDS_SEARCH_ADVANCED = L"Advanced";
+
+/************************************************************************************************/
+
+/*******************\
+*  Integer constants *
+\*******************/
+
+const int EMAIL_DEFAULT_SIZE = 1024*50;
+const int MAX_EMAIL_BODY_LENGTH = 2000;
+const int MAX_EMAIL_SUBJ_LENGTH = 256;
+
+/************************************************************************************************/
+
+/********************\
+*  Bitmap file paths *
+\********************/
+
+const wchar_t* IDB_WAIT_CURSOR_IMAGE_BASE = L"/process/00_winset_list_process_";
+const wchar_t* IDB_DOWN_ARROW_BTN = L"M02_button_expand_opened_02.png";
+const wchar_t* IDB_NORMAL_BACKGROUND = L"M02_button_06_normal.png";
+const wchar_t* IDB_SELECTED_BACKGROUND = L"M02_button_06_press.png";
+const wchar_t* IDB_DOWN_ARROW_PRESS_BTN = L"M02_button_expand_opened_press_02.png";
+const wchar_t* IDB_UP_ARROW_BTN = L"M02_button_expand.png";
+const wchar_t* IDB_UP_ARROW_PRESS_BTN = L"M02_button_expand_press.png";
+const wchar_t* IDB_DUMMY_GMAIL_BITMAP_PATH = L"M02_email_list_icon_gmail.png";
+const wchar_t* IDB_IMPORTANT = L"Tizen2_1/common/I01_search_list_icon_favorite_press.png";
+const wchar_t* IDB_UNIMPORTANT = L"Tizen2_1/common/I01_search_list_icon_favorite.png";
+const wchar_t* IDB_DETAIL_IMPORTANT = L"Tizen2_1/common/M02_icon_favorite_on_74x74.png";
+const wchar_t* IDB_DETAIL_UNIMPORTANT = L"Tizen2_1/common/M02_icon_favorite_off_74x74.png";
+const wchar_t* IDB_ADDCONTACT = L"M02_email_btn_icon_contact.png";
+const wchar_t* IDB_CIRCLE = L"M02_btn_circle_bg_01.png";
+const wchar_t* IDB_DELETE_ATTACHMENT = L"M02_btn_attachment_delete.png";
+const wchar_t* IDB_DELETE_ATTACHMENT_PRESSED = L"M02_btn_attachment_delete_press.png";
+const wchar_t* IDB_DOWNLOAD_ATTACHMENT = L"M02_button_download.png";
+const wchar_t* IDB_DOWNLOAD_ATTACHMENT_PRESSED = L"M02_button_download_press.png";
+const wchar_t* IDB_ATTACHMENT_ETC_ICON = L"Tizen2_1/M02_icon_composer_attach.png";
+const wchar_t* IDB_ATTACHMENT_MULTI_ICON = L"email_viewer_attach_multi.png";
+const wchar_t* IDB_FORWARDARROW = L"M02_icon_next.png";
+const wchar_t* IDB_FORWARDARROWPRESSED = L"M02_icon_next_press.png";
+const wchar_t* IDB_BACKWARDARROW = L"M02_icon_previous.png";
+const wchar_t* IDB_BACKWARDARROWPRESSED = L"M02_icon_previous_press.png";
+const wchar_t* IDB_MINUS = L"M02_email_minus.png";
+const wchar_t* IDB_DELETEMESSAGE = L"01_header_icon_delete.png";
+const wchar_t* IDB_REPLYMESSAGE = L"01_controlbar_icon_reply.png";
+const wchar_t* IDB_FORWARDMESSAGE = L"01_controlbar_icon_forward.png";
+const wchar_t* IDB_MORE = L"new/M02_icon_search_title.png";
+const wchar_t* IDB_ADD_CONTACT_CIRCLE_PRESSED = L"M02_btn_circle_bg_press.png";
+const wchar_t* IDB_ATTACHMENT_ICON = L"M02_email_icon_attach.png";
+const wchar_t* IDB_DELETE_BUTTON_BACKGROUND_9PATCH = L"00_button_sweep_delete.png";
+const wchar_t* IDB_INBOX_TOP_LINE = L"new/M02_inbox_top_line.png";
+const wchar_t* IDB_COMPOSE_MORE   = L"00_icon_more.png";
+const wchar_t* IDB_COMPOSE_CC_BCC = L"new/popup icon/M02_icon_popup_add cc.png";
+const wchar_t* IDB_COMPOSE_ATTACH = L"new/popup icon/M02_icon_popup_attach.png";
+
+const wchar_t* IDB_SORT_BY        = L"Tizen2_1/M02_popup_icon_sort_by.png";
+const wchar_t* IDB_DELETE_ALL     = L"Tizen2_1/M02_popup_icon_delete_all.png";
+const wchar_t* IDB_ADD_ACCOUNT    = L"Tizen2_1/M02_popup_icon_add_account.png";
+const wchar_t* IDB_SETTINGS    = L"Tizen2_1/popup_icon/M02_popup_icon_setting.png";
+const wchar_t* IDB_MARK_UNREAD = L"Tizen2_1/M02_popup_icon_mark_as_unread.png";
+const wchar_t* IDB_MOVE = L"Tizen2_1/M02_popup_icon_move.png";
+const wchar_t* IDB_BLOCK = L"Tizen2_1/M02_popup_icon_block.png";
+const wchar_t* IDB_ALL_ACCOUNTS = L"Tizen2_1/M02_list_icon_all_accounts.png";
+const wchar_t* IDB_HEADER_ALL_ACCOUNTS_ICON = L"header_images/M02_list_icon_all_accounts.png";
+const wchar_t* IDB_FORWARD = L"M02_email_icon_forward_press.png";
+const wchar_t* IDB_FAVOURITES = L"Tizen2_1/01_controlbar_icon_favorite.png";
+
+const wchar_t* IDB_SEARCH = L"Tizen2_1/M02_email_icon_popup_sender.png";
+const wchar_t* IDB_SEARCH_ALL_ICON = L"Tizen2_1/M02_email_icon_popup_all.png";
+const wchar_t* IDB_SEARCH_TITLE_ICON = L"Tizen2_1/M02_email_icon_popup_title.png";
+const wchar_t* IDB_SEARCH_ALL = L"Tizen2_1/M02_email_icon_popup_all_press.png";
+const wchar_t* IDB_SEARCH_TITLE = L"Tizen2_1/M02_popup_icon_title.png";
+const wchar_t* IDB_SEARCH_SENDER = L"Tizen2_1/M02_popup_icon_sender.png";
+const wchar_t* IDB_SEARCH_DATE = L"Tizen2_1/M02_popup_icon_date.png";
+const wchar_t* IDB_SEARCH_ADVANCED = L"Tizen2_1/M02_popup_icon_advanced.png";
+
+const wchar_t* IDB_BUTTON_EXPAND_CLOSED = L"Tizen2_1/M02_button_expand_closed.png";
+const wchar_t* IDB_BUTTON_EXPAND_OPENED = L"Tizen2_1/M02_button_expand_opened.png";
+const wchar_t* IDB_BUTTON_EXPAND_CLOSED_PRESS = L"Tizen2_1/M02_button_expand_closed_press.png";
+const wchar_t* IDB_BUTTON_EXPAND_OPENED_PRESS = L"Tizen2_1/M02_button_expand_opened_press.png";
+const wchar_t* IDB_ATTACH_ICON = L"Tizen2_1/M02_icon_attach_web.png";
+const wchar_t* IDB_ATTACH_ICON_PRESSED = L"Tizen2_1/M02_icon_attach.png";
+
+const wchar_t* IDB_FOLDER_ICON      = L"Tizen2_1/folder/M02_folder_icon_folder.png";
+const wchar_t* IDB_INBOX_ICON      = L"Tizen2_1/folder/M02_folder_icon_inbox.png";
+const wchar_t* IDB_SENTBOX_ICON                = L"Tizen2_1/folder/M02_folder_icon_sentbox.png";
+const wchar_t* IDB_DRAFTS_ICON         = L"Tizen2_1/folder/M02_folder_icon_drafts.png";
+const wchar_t* IDB_FAVOURITES_ICON     = L"Tizen2_1/folder/M02_folder_icon_favourites.png";
+const wchar_t* IDB_OUTBOX_ICON         = L"Tizen2_1/folder/M02_folder_icon_outbox.png";
+const wchar_t* IDB_SPAMBOX_ICON                = L"Tizen2_1/folder/M02_folder_icon_spambox.png";
+const wchar_t* IDB_TRASH_ICON          = L"Tizen2_1/folder/M02_folder_icon_trash.png";
+
+const wchar_t* IDB_NO_CONTENTS_ICON       = L"Tizen2_1/00_Nocontents_text.png";
+
+const wchar_t* IDB_UNREADCOUNT_BACKGROUND                      = L"Tizen2_1/common/M02_list_bubble_bg.png";
+const wchar_t* IDB_UNREADCOUNT_PRESSED_BACKGROUND       = L"Tizen2_1/common/M02_list_bubble_bg_press.png";
+
+/************************************************************************************************/
+
+const wchar_t* IDS_APPCONTROL_REQUEST_KEY_TO      = L"http://tizen.org/appcontrol/data/to";
+const wchar_t* IDS_APPCONTROL_REQUEST_KEY_CC      = L"http://tizen.org/appcontrol/data/cc";
+const wchar_t* IDS_APPCONTROL_REQUEST_KEY_BCC     = L"http://tizen.org/appcontrol/data/bcc";
+const wchar_t* IDS_APPCONTROL_REQUEST_KEY_SUBJECT = L"http://tizen.org/appcontrol/data/subject";
+const wchar_t* IDS_APPCONTROL_REQUEST_KEY_TEXT    = L"http://tizen.org/appcontrol/data/text";
+const wchar_t* IDS_APPCONTROL_REQUEST_KEY_ATTACH  = L"http://tizen.org/appcontrol/data/path";
+const wchar_t* IDS_APPCONTROL_REQUEST_KEY_RETURN_RESULT = L"http://tizen.org/appcontrol/data/return_result";
+const wchar_t* IDS_APPCONTROL_REQUEST_KEY_SHARE_TEXT = L"http://tizen.org/appcontrol/data/text";
+
+const wchar_t* IDS_EMAIL_TEXT = L"Email";
+
+/************************************************************************************************/
+
+/************************\
+* scene ids and form ids *
+\************************/
+const wchar_t* IDSCN_ADD_ACCOUNT = L"AddAccount";
+const wchar_t* IDSCN_INBOX = L"Inbox";
+const wchar_t* IDSCN_EMAIL_COMPOSER = L"EmailComposer";
+const wchar_t* IDSCN_EMAIL_DETAIL = L"EmailDetail";
+const wchar_t* IDSCN_MOVEMAIL = L"MoveMailScene";
+const wchar_t* IDSCN_MOVEMAIL_SELECTED = L"MoveMailSelectedScene";
+const wchar_t* IDSCN_EMAIL_SETTING = L"EmailSetting";
+const wchar_t* IDSCN_SETTING_SETUP_MAILBOX = L"AccountSettingSetUpMailboxScene";
+const wchar_t* IDSCN_ADD_ACCOUNT_MANUAL_SETUP = L"AddAccountManualSetupScene";
+const wchar_t* IDSCN_ADD_ADDRESS = L"AddAddressScene";
+const wchar_t* IDSCN_EMAIL_BLOCK = L"EmailBlockScene";
+const wchar_t* IDSCN_ACCOUNT_SETTING = L"AccountSettingScene";
+const wchar_t* IDSCN_ADD_SUBJECT = L"AddSubjectScene";
+const wchar_t* IDSCN_DELETE_ADDRESS_SUBJECT = L"DeleteAddressSubjectScene";
+const wchar_t* IDSCN_SEARCH = L"Search";
+const wchar_t* IDSCN_SPLIT_VIEW = L"Splitview";
+const wchar_t* IDSCN_FOLDERS_VIEW = L"FoldersView";
+const wchar_t* IDSCN_ACCOUNT_CONFIG = L"AccountConfig";
+
+const wchar_t* ADD_ACCOUNT_FORM = L"AddAccountForm";
+const wchar_t* INBOX_FORM = L"InboxForm";
+const wchar_t* EMAIL_COMPOSER_FORM = L"EmailComposerForm";
+const wchar_t* EMAIL_DETAIL_FORM = L"EmailDetailForm";
+const wchar_t* MOVEMAIL_FORM = L"MoveMailForm";
+const wchar_t* MOVEMAIL_SELECTED_FORM = L"MoveMailSelectedForm";
+const wchar_t* EMAIL_SETTING_FORM = L"EmailSettingForm";
+const wchar_t* SETTING_SETUP_MAILBOX_FORM = L"AccountSettingSetUpMailboxForm";
+const wchar_t* ADD_ACCOUNT_MANUAL_SETUP_FORM = L"AddAccountManualSetupForm";
+const wchar_t* ADD_ADDRESS_FORM = L"AddAddressForm";
+const wchar_t* BLOCK_EMAIL_FORM = L"BlockEmailForm";
+const wchar_t* ACCOUNT_SETTING_FORM = L"AccountSettingForm";
+const wchar_t* ADD_SUBJECT_FORM = L"AddSubjectForm";
+const wchar_t* DELETE_ADDRESS_SUBJECT_FORM = L"DeleteAddressSubjectForm";
+const wchar_t* SEARCH_FORM = L"SearchForm";
+const wchar_t* SPLIT_VIEW_FORM = L"SplitviewForm";
+const wchar_t* FOLDERS_VIEW_FORM = L"FoldersviewForm";
+const wchar_t* ACCOUNT_CONFIG_FORM = L"AccountConfigForm";
+
+/************************************************************************************************/
+
+const wchar_t* IDL_SPLIT_VIEW_DETAIL_FORM = L"IDL_SPLIT_VIEW_DETAIL_FORM";
+const wchar_t* IDL_SPLIT_VIEW_FORM = L"IDL_SPLIT_VIEW_FORM";
+const wchar_t* IDL_LOGIN_FORM = L"IDL_LOGIN_FORM";
+const wchar_t* IDL_ALL_FOLDERS = L"IDL_ALL_FOLDERS";
+const wchar_t* IDL_INBOX_LIST_FORM = L"IDL_INBOX_LIST_FORM";
+const wchar_t* IDL_EMAIL_INBOX_RECI_SELECTED_FORM = L"IDL_INBOX_RECI_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_INBOX_SELECTED_FORM = L"IDL_INBOX_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_INBOX_USER_FORM = L"IDL_INBOX_USER_FORM";
+const wchar_t* IDL_ALL_MAILS_LIST_FORM = L"IDL_ALL_MAILS_LIST";
+const wchar_t* IDL_ALL_MAILS_RECI_SELECTED_FORM = L"IDL_ALL_MAILS_RECI_SELECTED_FORM";
+const wchar_t* IDL_ALL_MAILS_SELECTED_FORM = L"IDL_ALL_MAILS_SELECTED_FORM";
+const wchar_t* IDL_ALL_MAILS_USER_FORM = L"IDL_ALL_MAILS_USER_FORM";
+const wchar_t* IDL_EMAIL_DRAFTS_FORM = L"IDL_DRAFTS_FORM";
+const wchar_t* IDL_DRAFT_RECI_SELECTED_FORM = L"IDL_DRAFT_RECI_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_OUTBOX_FORM = L"IDL_OUTBOX_FORM";
+const wchar_t* IDL_EMAIL_OUTBOX_SELECTED_FORM = L"IDL_OUTBOX_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_OUTBOX_USER_FORM = L"IDL_OUTBOX_USER_FORM";
+const wchar_t* IDL_SENTBOX_SELECTED_FORM = L"IDL_SENTBOX_SELECTED_FORM";
+const wchar_t* IDL_SENTBOX_USER_FORM = L"IDL_SENTBOX_USER_FORM";
+const wchar_t* IDL_SENTBOX_RECI_SELECTED_FORM = L"IDL_SENTBOX_RECI_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_SPAMBOX_FORM = L"IDL_SPAMBOX_FORM";
+const wchar_t* IDL_EMAIL_SPAMBOX_SELECTED_FORM = L"IDL_SPAMBOX_SELECTED_FORM";
+const wchar_t* IDL_TRASH_FORM = L"IDL_TRASH_FORM";
+const wchar_t* IDL_EMAIL_TRASH_RECI_SELECTED_FORM = L"IDL_TRASH_RECI_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_TRASH_USER_FORM = L"IDL_TRASH_USER_FORM";
+const wchar_t* IDL_IMPORTANT_MAILS_LIST = L"IDL_IMPORTANT_MAILS_LIST";
+const wchar_t* IDL_EMAIL_TRASH_SELECTED_FORM = L"IDL_TRASH_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_TRASH_USER_SELECTED_FORM = L"IDL_TRASH_USER_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_SENTBOX_USER_SELECTED_FORM = L"IDL_SENTBOX_USER_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_OUTBOX_USER_SELECTED_FORM = L"IDL_OUTBOX_USER_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_INBOX_USER_SELECTED_FORM = L"IDL_INBOX_USER_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_ALL_MAILS_USER_SELECTED_FORM = L"IDL_ALL_MAILS_USER_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_DRAFTS_USER_SELECTED_FORM = L"IDL_DRAFTS_USER_SELECTED_FORM";
+const wchar_t* IDL_COMPOSE_FORM = L"IDL_COMPOSE_FORM";
+const wchar_t* IDL_EMAIL_DRAFTS_SELECTED_FORM = L"IDL_DRAFTS_SELECTED_FORM";
+const wchar_t* IDL_DRAFTS_USER_FORM = L"IDL_DRAFTS_USER_FORM";
+const wchar_t* IDL_EMAIL_MOVEMAIL_FORM = L"IDL_MOVEMAIL_FORM";
+const wchar_t* IDL_EMAIL_MOVEMAIL_SELECTED_FORM = L"IDL_MOVEMAIL_SELECTED_FORM";
+const wchar_t* IDL_EMAIL_DETAIL_FORM = L"IDL_EMAIL_DETAIL_FORM";
+const wchar_t* IDL_SETUP_MAILBOX_FORM = L"IDL_SETUP_MAILBOX_FORM";
+const wchar_t* IDL_MANUAL_SETUP_FORM = L"IDL_MANUAL_SETUP_FORM";
+const wchar_t* IDL_SETTINGS_FORM = L"IDL_SETTINGS_FORM";
+const wchar_t* IDL_ACCOUNT_SETTINGS_MAIN_FORM = L"IDL_ACCOUNT_SETTINGS_MAIN_FORM";
+const wchar_t* IDL_DELETE_ADDRESS_SUBJECT_FORM = L"IDL_DELETE_ADDRESS_SUBJECT_FORM";
+const wchar_t* IDL_BLOCK_FORM = L"IDL_BLOCK_FORM";
+const wchar_t* IDL_SEARCH_FORM = L"IDL_SEARCH_FORM";
+const wchar_t* IDL_ACCOUNT_CONFIG_FORM = L"IDL_ACCOUNT_CONFIG_FORM";
+const wchar_t* IDL_ADD_ADDRESS_FORM = L"IDL_ADD_ADDRESS_FORM";
+const wchar_t* IDL_ADD_SUBJECT_FORM = L"IDL_ADD_SUBJECT_FORM";
+
+const wchar_t* IDC_EMAILS_LISTVIEW = L"IDC_EMAILS_LISTVIEW";
+const wchar_t* IDC_ACCOUNTS_GROUPEDLISTVIEW = L"IDC_ACCOUNTS_GROUPEDLISTVIEW";
+const wchar_t* IDC_INBOX_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_MAIL_INBOX_RECI_SELECTED_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_INBOX_RECI_SELECTED_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_MAIL_INBOX_SELECTED_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_MAIL_INBOX_USER_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_MAIL_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_ALL_MAILS_SELECTED_COUNT_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_ALL_MAILS_SELECTED_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_ALL_MAILS_SELECTED_FORM_SELECTED_COUNT_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_ALL_MAILS_USER_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_MAIL_DRAFTS_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_DRAFTS_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_OUTBOX_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_MAIL_OUTBOX_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_MAIL_OUTBOX_SELECTED_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_OUTBOX_SELECTED_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_MAIL_OUTBOX_USER_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_SENT_GROUPEDLISTVIEW = L"IDC_INBOX_GROUPEDLISTVIEW";
+const wchar_t* IDC_SENTBOX_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_MAIL_SENTBOX_SELECTED_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_SENTBOX_SELECTED_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_MAIL_SENTBOX_USER_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_MAIL_SENTBOX_RECI_SELECTED_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_SENTBOX_RECI_SELECTED_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_SPAMBOX_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_MAIL_SPAMBOX_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_MAIL_TRASH_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_TRASH_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_MAIL_TRASH_RECI_SELECTED_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_TRASH_RECI_SELECTED_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_MAIL_TRASH_SELECTED_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_TRASH_SELECTED_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_MAIL_TRASH_USER_GROUPEDLISTVIEW = L"IDC_MAIL_GROUPEDLISTVIEW";
+const wchar_t* IDC_SHOWEMAIL_LISTVIEW = L"ShowEmail";
+const wchar_t* IDC_DEFAULTACCOUNT_LISTVIEW = L"DefaultAccount";
+const wchar_t* IDC_DETAILLISTACCOUNT_LISTVIEW = L"DetailListAccount";
+const wchar_t* IDC_SELECTEDCOLOR_ICONLISTVIEW = L"SelectedColor";
+const wchar_t* IDC_STAR_LABEL = L"StarLabel";
+const wchar_t* IDC_DRAFTS_SELECTED_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_ALL_MAILS_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_MOVEMAIL_LISTVIEW = L"IDC_LISTVIEW";
+const wchar_t* IDC_MOVEMAIL_SELECTED_LISTVIEW = L"IDC_LISTVIEW";
+const wchar_t* IDC_OPTION_TRAY = L"OptionTray";
+const wchar_t* IDC_TO_BASE_PANEL = L"ToBasePanel";
+const wchar_t* IDC_CC_BASE_PANEL = L"CcBasePanel";
+const wchar_t* IDC_BCC_BASE_PANEL = L"BccBasePanel";
+const wchar_t* IDC_ATTACHMENT_BASE_PANEL = L"AttachmentPanel";
+const wchar_t* IDC_ALL_MAILS_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_ALL_MAILS_USER_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_OUTBOX_USER_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_SENTBOX_USER_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_TRASH_USER_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_POPUP_LINE1_LABEL = L"IDC_POPUP_LINE1_LABEL";
+const wchar_t* IDC_IMPORTANT_MAILS_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_ATTACHMENT_PANEL_GROUPITEM_TEXT = L"ATCHMNTPNLTXT";
+const wchar_t* IDC_SETUP_MAILBOX_LISTVIEW = L"IDC_SETUP_MAILBOX_LISTVIEW";
+const wchar_t* IDC_INCOMING_SETTINGS_GROUPED_TABLE_VIEW = L"IDC_GROUPEDTABLEVIEW1";
+const wchar_t* IDC_OUTGOING_SETTINGS_GROUPED_TABLE_VIEW = L"IDC_GROUPEDTABLEVIEW2";
+const wchar_t* IDC_DELETE_ADDRESS_SUBJECT_SELECTED_LABEL = L"IDC_LABEL";
+const wchar_t* IDC_DELETE_ADDRESS_SUBJECT_LISTVIEW = L"IDC_LISTVIEW";
+const wchar_t* IDC_BLOCK_ADDRESS_LISTVIEW = L"IDC_BLOCKED_ADDRESS_LISTVIEW";
+const wchar_t* IDC_BLOCK_SUBJECT_LISTVIEW = L"IDC_BLOCKED_SUBJECT_LISTVIEW";
+const wchar_t* IDC_SEARCHBAR = L"IDC_SEARCHBAR";
+const wchar_t* IDC_ADD_ADDRESS_FORM_SCROLL_PANEL = L"IDC_SCROLLPANEL1";
+const wchar_t* IDC_ADD_SUBJECT_FORM_SCROLL_PANEL = L"IDC_SCROLLPANEL1";
+const wchar_t* IDC_ADD_ADDRESS_FORM_EDITFIELD = L"IDC_EDITFIELD1";
+const wchar_t* IDC_ADD_ADDRESS_CONTACT_BUTTON = L"IDC_BUTTON";
+const wchar_t* IDC_ADD_SUBJECT_FORM_EDITFIELD = L"IDC_EDITFIELD1";
+
+/************************************************************************************
+ *
+ * Control Dimensions, Offsets
+ *
+ ***********************************************************************************/
+
+const int GENERIC_OFFSET_16 = 16;
+const int W_POPUP_CLOSE_BUTTON = 400;
+const int H_POPUP_CLOSE_BUTTON = 72;
+
+const int H_SORT_BY_LISTVIEW_ELEMENT = 112;
+
+const int W_VIEW_AS_POPUP = 600;
+
+const int H_VIEW_AS_POPUP = 632;
+
+const int H_MARK_ALL_AS_POPUP = 432;
+
+const int W_COLOR_CODE = 7;
+
+const int H_COLOR_CODE = 142;
+
+const int X_COLOR_CODE = -89;
+const int Y_COLOR_CODE = 4;
+
+/***********************************************************************************/
+
+//All Forms
+const int X_ORIGIN = 0;
+const int Y_ORIGIN = 0;
+const int POPUP_LISTVIEW_ITEM_COUNT_TWO = 2;
+const int POPUP_LISTVIEW_ITEM_COUNT = 4;
+const int Y_LIST_ITEM_TYPE1 = 8;
+const int X_POPUP_LISTVIEW = 10;
+const int X_ADD_CONTACT = 13;
+const int W_POPUP_LIST_ITEM_OFFSET = 20;
+const int W_GENERIC_32 = 32;
+const int W_PROGRESS_PANEL_OFFSET = 38;
+const int FONT_ADDRESSNAME_SIZE = 40;
+const int WAIT_CURSUR_DIMESION = 44;
+const int W_IMPORTANT = 45;
+const int H_POPUP_LIST_ITEM_OFFSET = 60;
+const int W_GENERIC_64 = 64;
+const int W_LIST_ITEM_CHECKBOX = 89;
+const int Y_ADDCONTACT_BUTTON = 85;
+const int X_POPUP_CLOSE_BUTTON = 100;
+const int H_OPTION_TRAY = 86;
+const int Y_SEARCH_LISTVIEW = 86;
+const int Y_SUBJECT_PANEL = 112;
+const int W_LIST_DATE_ITEM = 130;
+const int X_LIST_DATE_ITEM_OFFSET = 26;
+const int X_IMPORTANT_OFFSET = 160;
+const int X_SUBJECT_FIELD = 154;
+const int W_SUBJECT_LABEL = 155;
+const int X_CONTEXT_MENU_OFFSET = 160;
+const int CONTEXT_MENU_OFFSET = 170;
+const int H_DELETING_POPUP = 200;
+const int LIST_ITEM_OFFSET = 161;
+const int Y_LISTVIEW_SEARCH_BAR_MODE_INPUT = 212;
+const int Y_ATTACHMENT_PANEL = 225;
+const int Y_EMAIL_BODY_PANEL = 226;
+const int H_EXPANDED_TO_BASE_PANEL = 338;
+const int W_ACCOUNT_ADDRESS_ITEM = 520;
+const int W_SUBJECT_FIELD = 564;
+const int H_SEARCH_LISTVIEW_OFFSET = 575;
+const int W_EMAIL_LABEL = 620;
+const int X_ADDCONTACT_BUTTON = 630;
+const int H_EMAIL_BODY_PANEL = 781;
+const int H_GENERIC_32 = 32;
+const int H_GENERIC_64 = 64;
+const int H_SUBJECT_MAIN_TEXT = 60;
+const int X_ACCOUNT_NAME_ITEM = 112;
+const int W_ACCOUNT_NAME_ITEM = 400;
+const int H_EMAIL_LABEL = 70;
+const int W_ADDCONTACT_BUTTON = 64;
+const int H_ADDCONTACT_BUTTON = 64;
+const int X_EDITFIELD = 20;
+const int Y_EDITFIELD = 80;
+const int W_EDITFIELD = 600;
+const int H_EDITFIELD = 80;
+const int X_ADDRESS_LISTVIEW = 10;
+const int Y_ADDRESS_LISTVIEW = 200;
+const int X_ADDRESSITEM_LISTVIEW = 12;
+const int Y_ADDRESSITEM_LISTVIEW = 12;
+const int H_ADDRESSITEM_LISTVIEW = 128;
+const int FONT_SIZE_ADDRESSITEM = 44;
+const int X_ADDRESS_LIST_ITEM = 12;
+const int Y_ADDRESS_LIST_ITEM = 12;
+const int W_ADDRESS_LIST_ITEM = 520;
+const int H_ADDRESS_LIST_ITEM = 128;
+const int FONT_SIZE_SUBJECT_LABEL_TEXT = 25;
+const int X_ACCORDION = 12;
+const int X_ACCOUNT_ADDRESS_ITEM = 112;
+const int FONT_SIZE_SUB_TEXT = 32;
+const int FONT_SIZE_LIST_NAME_ITEM = 30;
+const int FONT_SIZE_LIST_CONTENTS_ITEM = 26;
+const int H_LIST_ITEM_1_LINE = 112;
+const int H_LIST_ITEM_3_LINE = 150;
+const int H_ATTACHMENT_PANEL = 0;
+const int LIST_SUB_ITEM_OFFSET = 12;
+const int X_LIST_ITEM = /*16*/0;
+const int Y_IMPORTANT = 12;
+const int MAX_BITMAP_COUNT = 30;
+const int Y_ATTACHMENT_ICON = 32;
+const int H_LIST_SUB_ITEM_3_LINE = 42;
+const int H_LIST_PREVIEW_ITEM_1_LINE = 38;
+const int H_ACCOUNT_ADDRESS_ITEM = 46;
+const int FONT_SIZE_MAIN_TEXT = 44;
+const int FONT_SIZE_ATTACH_MAIN_TEXT = 40;
+//const int FONT_SIZE_DOWNLOAD_MAIN_TEXT = 20;
+const int FONT_SIZE_LIST_MAIN_ITEM = 38;
+const int H_IMPORTANT = 45;
+const int H_LIST_MAIN_ITEM = 54;
+const int H_TO_BASE_PANEL = 112;
+const int H_CC_FIELD_PANEL = 112;
+const int Y_ADD_CONTACT = 12;
+const int H_ATTACHMENT = 112;
+const int H_TO_PANEL = 112;
+const int Y_CC_PANEL = 112;
+const int H_SUBJECT_PANEL = 112;
+const int H_SUBJECT_LABEL = 112;
+const int H_SUBJECT_FIELD = 112;
+const int Y_CC_FIELD_PANEL = 112;
+const int H_BCC_FIELD_PANEL = 112;
+const int LIST_DATE_ITEM_OFFSET = 210;
+const int Y_BCC_FIELD_PANEL = 224;
+const int H_MANUAL_SETUP_ITEM = 153;
+//const int
+
+// Folders Form
+const int H_FOLDERS_ACCOUNT_ITEM = 150;
+const int H_MAILBOX_INFO_PANEL = 112;
+const int H_FOLDERS_MAILBOX_ITEM = 112;
+
+
+//EmAddAccountForm
+const int W_VALIDATING_POPUP = 600;
+const int H_VALIDATING_POPUP = 300;
+const int W_CANCEL_BUTTON    = 400;
+const int H_CANCEL_BUTTON    = 72;
+
+//AccountDetail Form
+const int X_ITEM_BITMAP = 16;
+const int W_ACCOUNT_BMP = 64;
+const int H_HEADER_LIST_ITEM = 112;
+const int Y_ALL_ACCOUNTS_SCROLL_PANEL = 272;
+const int H_MAILBOXLISTVIEW = 392;
+const int W_ACCOUNT_NAME_LABEL = 528;
+const int H_ALL_ACCOUNTS_SCROLL_PANEL = 1008;
+const int X_ACCOUNT_NAME_LABEL = 96;
+const int COUNT_HEADER_LIST_ITEM = 2;
+const int H_ITEM_BITMAP = 100;
+const int H_ACCOUNT_EMAIL_SUBTEXT = 48;
+const int W_CLIENT = 720;
+const int H_CLIENT = 1;
+const int H_ACCOUNT_INFO_PANEL = 128;
+const int Y_ACCOUNT_NAME_LABEL = 15;
+const int H_ACCOUNT_NAME_LABEL = 60;
+const int X_EXPAND_BUTTON = 600;
+const int W_EXPAND_BUTTON = 64;
+//BaseFormProvider
+const int FONT_SIZE_GROUP_ITEM = 32;
+const int H_GROUP_ITEM = 76;
+//Trash Form
+const int X_POPUP_DELETE_BUTTON = 20;
+//Account Setting main Form
+const int H_HORIZONTALPANEL1 = 1;
+const int X_MAILOPTIONLISTVIEW = 12;
+const int X_ACCOUNT_BITMAP = 24;
+const int FONT_SIZE_CUSTOM_ITEM = 30;
+const int H_MAILBOX_PANEL = 50;
+const int H_UX_EDITFIELD = 128;
+const int H_INBOX_PANEL = 128;
+const int Y_MAILOPTIONLISTVIEW = 112;
+const int Y_SENTBOXLIST_PANEL = 257;
+const int Y_OUTBOX_PANEL = 258;
+const int H_MAILOPTIONLISTVIEW = 672;
+const int Y_DRAFTS_PANEL = 387;
+const int H_EXPANDEDHEIGHT_PANEL = 400;
+const int Y_UX_EDITFIELD = 784;
+const int Y_DRAFTSLIST_PANEL = 515;
+const int Y_TRASH_PANEL = 516;
+const int Y_MAILBOX_PANEL = 912;
+const int Y_ACCORDION = 610;
+const int X_INBOX_BUTTON = 640;
+const int Y_TRASHLIST_PANEL = 644;
+const int H_ACCORDION = 773;
+const int Y_SPAMBOXLIST_PANEL = 902;
+const int H_SENTBOX_PANEL = 128;
+const int H_OUTBOX_PANEL = 128;
+const int H_DRAFTS_PANEL = 128;
+const int H_TRASH_PANEL = 128;
+const int H_SPAMBOX_PANEL = 128;
+const int H_HORIZONTALPANEL2 = 1;
+const int H_HORIZONTALPANEL3 = 1;
+const int H_HORIZONTALPANEL4 = 1;
+const int H_HORIZONTALPANEL5 = 1;
+const int X_UX_EDITFIELD = 12;
+const int H_INBOX_LABEL = 64;
+const int Y_INBOX_OPTION_LABEL = 64;
+const int H_INBOX_OPTION_LABEL = 64;
+const int Y_INBOX_BUTTON = 32;
+const int W_INBOX_BUTTON = 64;
+const int H_INBOX_BUTTON = 64;
+const int Y_INBOXLIST_PANEL = 128;
+const int Y_HORIZONTALPANEL1 = 128;
+const int Y_SENTBOX_PANEL = 128;
+const int H_SENTBOX_LABEL = 64;
+const int Y_SENTBOX_OPTION_LABEL = 64;
+const int H_SENTBOX_OPTION_LABEL = 64;
+const int X_SENTBOX_BUTTON = 640;
+const int Y_SENTBOX_BUTTON = 32;
+const int W_SENTBOX_BUTTON = 64;
+const int H_SENTBOX_BUTTON = 64;
+const int Y_HORIZONTALPANEL2 = 257;
+const int H_OUTBOX_LABEL = 64;
+const int Y_OUTBOX_OPTION_LABEL = 64;
+const int H_OUTBOX_OPTION_LABEL = 64;
+const int X_OUTBOX_BUTTON = 640;
+const int Y_OUTBOX_BUTTON = 32;
+const int W_OUTBOX_BUTTON = 64;
+const int H_OUTBOX_BUTTON = 64;
+const int Y_OUTBOXLIST_PANEL = 386;
+const int Y_HORIZONTALPANEL3 = 386;
+const int H_DRAFTS_LABEL = 64;
+const int Y_DRAFTS_OPTION_LABEL = 64;
+const int H_DRAFTS_OPTION_LABEL = 64;
+const int X_DRAFTS_BUTTON = 640;
+const int Y_DRAFTS_BUTTON = 32;
+const int W_DRAFTS_BUTTON = 64;
+const int H_DRAFTS_BUTTON = 64;
+const int Y_HORIZONTALPANEL4 = 515;
+const int H_TRASH_LABEL = 64;
+const int Y_TRASH_OPTION_LABEL = 64;
+const int H_TRASH_OPTION_LABEL = 64;
+const int X_TRASH_BUTTON = 640;
+const int Y_TRASH_BUTTON = 32;
+const int W_TRASH_BUTTON = 64;
+const int H_TRASH_BUTTON = 64;
+const int Y_HORIZONTALPANEL5 = 644;
+const int Y_SPAMBOX_PANEL = 644;
+const int H_SPAMBOX_LABEL = 64;
+const int Y_SPAMBOX_OPTION_LABEL = 64;
+const int H_SPAMBOX_OPTION_LABEL = 64;
+const int X_SPAMBOX_BUTTON = 640;
+const int Y_SPAMBOX_BUTTON = 32;
+const int W_SPAMBOX_BUTTON = 64;
+const int H_SPAMBOX_BUTTON = 64;
+const int H_INBOX_LISTVIEW = 400;
+const int H_SENTBOX_LISTVIEW = 400;
+const int H_OUTBOX_LISTVIEW = 400;
+const int H_DRAFTS_LISTVIEW = 400;
+const int H_TRASH_LISTVIEW = 400;
+const int H_SPAMBOX_LISTVIEW = 400;
+const int Y_ACCOUNT_BITMAP = 24;
+const int W_ACCOUNT_BITMAP = 64;
+const int H_ACCOUNT_BITMAP = 64;
+const int Y_ACCOUNT_ADDRESS_ITEM = 60;
+const int Y_ACCOUNT_NAME_ITEM = 0;
+const int H_ACCOUNT_SETTINGS_NAME_ITEM = 66;
+const int H_ACCOUNTCUSTOM_ITEM = 112;
+const int X_COMMON_CUSTOM_ITEM = 12;
+const int Y_COMMON_CUSTOM_ITEM = 12;
+const int W_COMMON_CUSTOM_ITEM = 80;
+const int H_COMMON_CUSTOM_ITEM = 80;
+const int FONT_SIZE_ADDRESS_ITEM = 32;
+const int FONT_SIZE_NAME_ITEM = 44;
+const int FONT_SIZE_MAILBOX_LABEL = 32;
+//EmailSetting Form
+const wchar_t* IDC_SECTIONTABLEVIEW = L"IDC_SECTIONTABLEVIEW";
+const wchar_t* IDC_COLOR_PICKER_SCROLLPANEL = L"IDC_COLOR_PICKER_SCROLLPANEL";
+const wchar_t* IDC_COLOR_PICKER = L"IDC_COLOR_PICKER";
+const wchar_t* IDC_DONE_BUTTON = L"IDC_DONE_BUTTON";
+const wchar_t* IDC_CANCEL_BUTTON = L"IDC_CANCEL_BUTTON";
+const wchar_t* IDC_PANEL = L"IDC_PANEL";
+const wchar_t* IDC_SELECTED_COLOR_LABEL = L"IDC_SELECTED_COLOR_LABEL";
+
+const int W_SELECTEDCOLOR_ITEM = 15;
+const int Y_SCROLLPANEL = 41;
+const int H_HORIZONTALSPACE_PANEL4 = 42;
+const int Y_SHOW_EMAILPANEL = 129;
+const int H_COLOR_ICONLISTVIEW = 140;
+const int X_SELECTEDCOLOR_LABEL = 240;
+const int W_SELECTEDCOLOR_LABEL = 250;
+const int IDCLR_COLORPICKER_TWOFIVEFIVE = 255;
+const int IDCLR_COLORPICKER_THREEFOUR  = 34;
+const int Y_HORIZONTALSPACE_PANEL2 = 259;
+const int Y_SHOW_EMAILLIST_PANEL = 260;
+const int H_EXPANDEDLISTVIEW = 128;
+const int Y_HORIZONTALSPACE_PANEL3 = 388;
+const int Y_BLOCK_EMAIL_PANEL = 389;
+const int Y_HORIZONTALSPACE_PANEL4 = 501;
+const int Y_ACCOUNTLIST_PANEL = 543;
+const int X_DEFAULT_SENDING_BUTTON = 628;
+const int W_HORIZONTALSPACE_PANEL1 = 720;
+const int H_DEFAULT_SENDING_ACCOUNTPANEL = 128;
+const int H_SHOW_EMAILPANEL = 128;
+const int H_HORIZONTALSPACE_PANEL2 = 1;
+const int H_HORIZONTALSPACE_PANEL3 = 1;
+const int H_BLOCK_EMAIL_PANEL = 112;
+const int H_ACCOUNTLIST_PANEL = 400;
+const int H_DEFAULT_SENDING_CUSTOMITEM = 128;
+const int H_HORIZONTALSPACE_PANEL1 = 41;
+const int X_DEFAULT_SENDING_ACCOUNTPANEL = 12;
+const int H_DEFAULT_SENDING_ACCOUNTLABEL = 64;
+const int Y_DEFAULT_SENDING_ADDRESSLABEL = 64;
+const int H_DEFAULT_SENDING_ADDRESSLABEL = 64;
+const int Y_DEFAULT_SENDING_BUTTON = 32;
+const int W_DEFAULT_SENDING_BUTTON = 64;
+const int H_DEFAULT_SENDING_BUTTON = 64;
+const int X_DEFAULT_ACCOUNTLIST_PANEL = 12;
+const int Y_DEFAULT_ACCOUNTLIST_PANEL = 128;
+const int X_HORIZONTALSPACE_PANEL2 = 12;
+const int X_SHOW_EMAILPANEL = 12;
+const int H_SHOW_EMAIL_LABEL = 64;
+const int X_SHOW_EMAIL_BUTTON = 628;
+const int Y_SHOW_EMAIL_BUTTON = 32;
+const int W_SHOW_EMAIL_BUTTON = 64;
+const int H_SHOW_EMAIL_BUTTON = 64;
+const int X_SHOW_EMAILLIST_PANEL = 12;
+const int X_HORIZONTALSPACE_PANEL3 = 12;
+const int X_BLOCK_EMAIL_PANEL = 12;
+const int W_BLOCK_EMAIL_PANEL = 720;
+const int H_BLOCK_EMAIL_BUTTON = 112;
+const int X_HORIZONTALSPACE_PANEL4 = 12;
+const int X_ACCOUNTLIST_PANEL = 12;
+const int H_ACCOUNTLIST_LISTVIEW = 400;
+const int H_DEFAULT_SENDING_ACCOUNTLISTVIEW = 128;
+const int H_SHOW_EMAIL_LISTVIEW = 1024;
+const int Y_SELECTEDCOLOR_LABEL = 100;
+const int H_SELECTEDCOLOR_LABEL = 60;
+const int Y_COLOR_ICONLISTVIEW = 180;
+const int W_COLOR_ICONLISTVIEW = 720;
+const int W_COLOR_ICON = 50;
+const int H_COLOR_ICON = 50;
+const int Y_COLOR_PANEL = 620;
+const int W_COLOR_PANEL = 720;
+const int H_COLOR_PANEL = 400;
+const int H_SAVECANCEL_PANEL = 90;
+const int H_COLORPICKER_PANEL = 400;
+const int Y_ACCOUNT_SETTINGS_NAME_ITEM = 10;
+const int H_ACCOUNT_NAME_ITEM = 50;
+const int Y_ACCOUNT_SETTINGS_ADDRESS_ITEM = 60;
+const int X_ACCOUNT_BITMAP_ITEM = 25;
+const int Y_ACCOUNT_BITMAP_ITEM = 10;
+const int W_ACCOUNT_BITMAP_ITEM = 64;
+const int H_ACCOUNT_BITMAP_ITEM = 64;
+const int X_SELECTEDCOLOR_ITEM = 1;
+const int Y_SELECTEDCOLOR_ITEM = 1;
+const int H_SELECTEDCOLOR_ITEM = 30;
+const int X_CHOOSE_COLOR_ITEM = 620;
+const int Y_CHOOSE_COLOR_ITEM = 30;
+const int W_CHOOSE_COLOR_ITEM = 64;
+const int H_CHOOSE_COLOR_ITEM = 64;
+const int X_DEFAULTACCOUNT_ITEM = 12;
+const int Y_DEFAULTACCOUNT_ITEM = 12;
+const int H_DEFAULTACCOUNT_ITEM = 128;
+const int X_RECENTEMAIL_ITEM = 12;
+const int Y_RECENTEMAIL_ITEM = 12;
+const int H_RECENTEMAIL_ITEM = 128;
+const int Y_SHOW_RECENTMAIL_LABEL = 64;
+const int H_SHOW_RECENTMAIL_LABEL = 64;
+const int HORIZONTAL_ICON_SPACING = 100;
+const int VERTICAL_ICON_SPACING = 20;
+const int INTEGER_TWENTYFIVE = 25;
+const int IDCLR_COLORPICKER_SIXFOUR = 64;
+const int IDCLR_COLORPICKER_THREETWO = 32;
+const int IDCLR_COLORPICKER_TWOFOURZERO = 240;
+const int IDCLR_COLORPICKER_ONESIXZERO = 160;
+const int X_SAVECOLOR_BUTTON = 10;
+const int Y_SAVECOLOR_BUTTON = 15;
+const int W_SAVECOLOR_BUTTON = 150;
+const int H_SAVECOLOR_BUTTON = 64;
+const int X_CANCELCOLOR_BUTTON = 550;
+const int Y_CANCELCOLOR_BUTTON = 15;
+const int W_CANCELCOLOR_BUTTON = 150;
+const int H_CANCELCOLOR_BUTTON = 64;
+//BlockEmailSubjectForm
+const int X_SUBJECT_LIST_ITEM = 12;
+const int Y_SUBJECT_LIST_ITEM = 12;
+const int FONT_SUBJECTNAME_SIZE = 40;
+const int H_SUBJECT_LIST_ITEM = 128;
+//DeleteSubjectAddressForm
+const int H_SELECTED_LABEL = 64;
+//EmailDetailForm
+const int Y_EMAIL_DETAIL_FORM_SCROLL_PANEL = 4;
+const int Y_CCLABEL = 7;
+const int FONT_SIZE_DATETIME_LABEL = 30;
+const int FONT_SIZE_ITEM1 = 40;
+const int FONT_SIZE_INBOX_TOP_NAME = 35;
+const int H_DATETIMELABEL = 42;
+const int FONT_SIZE_SUBJECT_LABEL = 44;
+const int H_ITEM1 = 50;
+const int FONT_SIZE_INBOX_TOP_MAIN = 56;
+const int Y_STAROFFLABEL = 62;
+const int Y_BUTTONADDCONTACT = 75;
+const int W_CCLABEL = 90;
+const int Y_DOWNARROWBUTTON = 128;
+const int Y_TOFIELDACCORDIONPANEL = 139;
+const int H_SUBJECTPANEL = 234;
+const int Y_CCFIELDACCORDIONPANEL = 252;
+const int W_DATETIMELABEL = 492;
+const int X_MORECONTEXTMENU = 500;
+const int X_ITEM = 590;
+const int X_STAROFFLABEL = 620;
+const int X_DOWNARROWBUTTON = 626;
+const int Y_REPLYCONTEXTMENU = 1150;
+const int X_BUTTONADDCONTACT = 150;
+const int W_BUTTONADDCONTACT = 300;
+const int H_BUTTONADDCONTACT = 75;
+const int X_BUTTONSEND = 150;
+const int Y_BUTTONSEND = 150;
+const int W_BUTTONSEND = 300;
+const int H_BUTTONSEND = 75;
+const int X_BUTTONBLOCK = 150;
+const int Y_BUTTONBLOCK = 150;
+const int W_BUTTONBLOCK = 300;
+const int H_BUTTONBLOCK = 75;
+const int X_REPLYCONTEXTMENU = 250;
+const int Y_DELETECONTEXTMENU = 1150;
+const int Y_MORECONTEXTMENU = 1150;
+const int H_SUBJECTLABEL = 74;
+const int X_SUBJECTLABEL = 12;
+const int Y_SUBJECTLABEL = 30;
+const int X_SENDERLABEL = 12;
+const int Y_SENDERLABEL_OFFSET_FROM_SUBJECT_LABEL = 20;
+const int W_SENDERLABEL = 492;
+const int H_SENDERLABEL = 42;
+const int X_DATETIMELABEL = 12;
+const int Y_DATETIMELABEL_OFFSET_FROM_SUBJECT_LABEL = 62;
+const int W_SUBJECTLABEL = 582;
+const int H_TOFIELDPANEL = 112;
+const int W_DOWNARROWBUTTON = 68;
+const int H_DOWNARROWBUTTON = 68;
+const int W_STAROFFLABEL = 74;
+const int H_STAROFFLABEL = 74;
+const int H_CCFIELDPANEL = 112;
+const int H_CCLABEL = 64;
+const int FONT_SIZE_CCLABEL = 30;
+const int H_LIST = 112;
+const int H_LIST1 = 400;
+const int Y_ITEM = 10;
+const int W_ITEM = 64;
+const int H_ITEM = 64;
+const int X_ITEM1 = 60;
+const int Y_ITEM1 = 10;
+const int W_ITEM1 = 300;
+const int H_CCFIELDACCORDIONPANEL = 0;
+const int H_DIVIDERPANEL1 = 1;
+const int H_TOFIELDACCORDIONPANEL = 112;
+const int H_ATTACHMENTPANEL = 112;
+const int H_ITEM2 = 112;
+const int Y_DIVIDERPANEL1 = 138;
+const int H_EXPANDED_ATTACHMENTPANEL = 400;
+const int H_WEB_PANEL_OFFSET = 215;
+//ToFieldPanel
+const int Y_RECIPIENT_AREA = 13;
+const int H_RECIPIENT_AREA = 90;
+const int W_RECIPIENT_AREA = 606;
+const int W_CONTRACTED_RECIPIENT_AREA = 526;
+const int COUNT_LINE = 100;
+const int X_ADD_CONTACT_BUTTON = 634;
+const int X_RECIPIENT_AREA = 80;
+const int Y_READMODE_RECIPIENT_AREA = 10;
+const int W_TO_LABEL = 80;
+const int H_TO_LABEL = 112;
+const int Y_COUNT_LABEL = 24;
+const int W_COUNT_LABEL = 64;
+const int H_COUNT_LABEL = 64;
+const int Y_ADD_CONTACT_BUTTON = 24;
+const int W_ADD_CONTACT_BUTTON = 64;
+const int H_ADD_CONTACT_BUTTON = 64;
+//SearchOptionTrayPanel
+const int H_SEARCH_OPTION_TRAY_BUTTON = 72;
+const int W_SEARCH_OPTION_TRAY_BUTTON = 157;
+const int X_OPTION_TRAY_CONTEXT_BUTTON = 188;
+const int X_OPTION_TRAY_SENDER_BUTTON = 360;
+const int X_OPTION_TRAY_RECIPIENT_BUTTON = 532;
+const int X_OPTION_TRAY_SUBJECT_BUTTON = 16;
+const int Y_SEARCH_OPTION_TRAY_BUTTON = 7;
+const int FONT_SIZE_OPTION_TRAY_BUTTON_TEXT = 25;
+//OptionTrayPanel
+const int W_OPTION_TRAY_BUTTON = 218;
+const int X_OPTION_TRAY_SECURITY_BUTTON = 251;
+const int X_OPTION_TRAY_ATTACH_BUTTON = 486;
+const int X_OPTION_TRAY_CC_BUTTON = 16;
+const int Y_OPTION_TRAY_BUTTON = 16;
+const int H_OPTION_TRAY_BUTTON = 72;
+//Progress Panel
+const int DURATION_FOR_EACH_IMAGE = 800;
+const int REPEAT_COUNT = 10000;
+//AttachmentPanel
+const int X_ATTACHMENT_IMAGE = 26;
+const int LIST_ITEM_LEFT_MARGIN = 26;
+const int W_ATTACHMENT_ETC_IMAGE = 52;
+const int W_ATTACHMENT_IMAGE = 98;
+const int W_ATTACHMENT_NAME_OFFSET = 220;
+const int X_ATTACHMENT_NAME = 140;
+const int X_ATTACHMENT_DELETE_BUTTON_OFFSET = 80;
+const int X_ATTACHMENT_DOWNLOAD_CANCEL_BUTTON_OFFSET = 116;
+//CustomListViewForPopup
+const int FONT_SIZE_CUSTOM_POPUP = 26;
+//EmailSettingPresentationModel
+const int COUNT_SHOWN_EMAIL = 50;
+//EmailComposerForm
+const unsigned long MAX_MAIL_SIZE = 5*1024*1024;
+const int MAX_ATTACHMENT_COUNT = 20;
+const int X_MORE_CONTEXT_MENU_COMPOSER = 120;
+const int Y_MORE_CONTEXT_MENU_COMPOSER = 180;
+
+const wchar_t* BITMAP_EXTENSION = L".png";
+
+//EmailListForm
+const Tizen::Graphics::Color COLOR_SEARCH_OPTION_SELECTED = Tizen::Graphics::Color(185, 205, 229);
+const Tizen::Graphics::Color COLOR_SEARCH_RESULT_TEXT = COLOR_NAME_TEXT;
+const Tizen::Graphics::Color COLOR_SEARCH_OPTION_TRAY_PANEL = Tizen::Graphics::Color(215, 225, 232);
+const Tizen::Graphics::Color COLOR_SEARCH_OPTION_UNSELECTED = Tizen::Graphics::Color(185, 205, 229);
+const Tizen::Graphics::Color COLOR_BLACK = Tizen::Graphics::Color(0, 0, 0);
+const Tizen::Graphics::Color COLOR_LIST_BG_NORMAL = Tizen::Graphics::Color(249, 249, 249);
+const Tizen::Graphics::Color COLOR_LIST_BG_PRESSED = Tizen::Graphics::Color(42, 137, 194);
+const Tizen::Graphics::Color COLOR_LISTITEM_DIVIDERLINE = Tizen::Graphics::Color(169, 169, 169);
+const Tizen::Graphics::Color COLOR_READ_MAILS = Tizen::Graphics::Color(124, 124, 124);
+const Tizen::Graphics::Color COLOR_UNREAD_MAILS = Tizen::Graphics::Color(0, 0, 0);
+const Tizen::Graphics::Color COLOR_NAME_TEXT = Tizen::Graphics::Color(128, 128, 128);
+const Tizen::Graphics::Color COLOR_NAME_TEXT_1_LINE = Tizen::Graphics::Color(0, 0, 0);
+const Tizen::Graphics::Color COLOR_CONTENTS_TEXT = Tizen::Graphics::Color(128, 128, 128);
+const Tizen::Graphics::Color COLOR_GROUP_ITEM = Tizen::Graphics::Color(29, 100, 149);
+const Tizen::Graphics::Color COLOR_TEMP_TEXT_ELEMENT = Tizen::Graphics::Color(129, 129, 129);
+const Tizen::Graphics::Color COLOR_GOOGLE = Tizen::Graphics::Color(80, 107, 207);
+const Tizen::Graphics::Color COLOR_YAHOO = Tizen::Graphics::Color(204, 52, 52);
+const Tizen::Graphics::Color COLOR_FORM_BACKGROUND = Tizen::Graphics::Color(0x4D, 0x4D, 0x4D, 0xFF);
+const Tizen::Graphics::Color COLOR_SUBJECTLABEL_TEXT = Tizen::Graphics::Color(0, 0, 0);
+const Tizen::Graphics::Color COLOR_DATE_TIME_LABEL_TEXT = Tizen::Graphics::Color(128, 128, 128);
+const Tizen::Graphics::Color COLOR_HORIZONTAL_PANEL = Tizen::Graphics::Color(0x45, 0x45, 0x45, 0xFF);
+const Tizen::Graphics::Color COLOR_BG_SELECT_ALL = Tizen::Graphics::Color(215, 225, 232);
+const Tizen::Graphics::Color COLOR_LIST_UNREAD_COUNT_BG_NORMAL = Tizen::Graphics::Color(249, 249, 249);
+const Tizen::Graphics::Color COLOR_LIST_UNREAD_COUNT_BG_PRESSED = Tizen::Graphics::Color(87, 135, 194);
+// EmailDetailForm
+const Tizen::Graphics::Color INBOX_TOP_MAIN_TEXT_COLOR = Tizen::Graphics::Color(59, 115, 182);
+
+const wchar_t* EMAIL_BLOCKED_ADDRESS_SECTION = L"BLOCKED_ADDRESS";
+const wchar_t* EMAIL_BLOCKED_SUBJECT_SECTION = L"BLOCKED_SUBJECT";
+
+const wchar_t* EMAIL_GENERAL_SETTINGS_SECTION = L"EMAIL_GENRAL_SETTINGS";
+const wchar_t* EMAIL_GENERAL_THREADED = L"THREADED_LIST";
+const wchar_t* EMAIL_GENERAL_SENDING_ACCOUNT = L"SENDING_ACCOUNT";
+const wchar_t* EMAIL_GENERAL_SHOW_EMAIL = L"SHOW_EMAIL";
+
+const wchar_t* EMAIL_ACCOUNTS_SETTING_SECTION = L"MAILBOX_SETTINGS";
+const wchar_t* EMAIL_ACCOUNTS_REPLY_WITH_BODY = L"REPLY_WITH_BODY";
+const wchar_t* EMAIL_ACCOUNTS_FORWARD_WITH_FILES = L"FORWARD_WITH_FILES";
+const wchar_t* EMAIL_ACCOUNTS_BCC_MYSELF = L"ALWAYS_BCC_MYSELF";
+const wchar_t* EMAIL_ACCOUNTS_ADD_SIGNATURE = L"ADD_SIGNATURE";
+
+// <-- Email sync related Request Ids
+const int NOTIFICATION_POLL_INTERVAL = 500;
+const RequestId IDA_SYNC_HEADERS = 10000;
+const RequestId IDA_SYNC_HEADERS_ERROR = 10001;
+const RequestId IDA_SYNC_BODY = 10002;
+const RequestId IDA_SYNC_BODY_ERROR = 10003;
+const RequestId IDA_NOTI_DELETE_FINISHED = 10004;
+const RequestId IDA_NOTI_MAIL_MOVE_FINISHED = 10005;
+const RequestId IDA_VALIDATE_AND_CREATE_ACCOUNT_FINISH = 10006;
+const RequestId IDA_VALIDATE_AND_CREATE_ACCOUNT_FAIL = 10007;
+const RequestId IDA_NOTI_MAIL_ADD = 10008;
+const RequestId IDA_NOTI_MAIL_MOVE_FAIL = 10009;
+const RequestId IDA_SYNC_BODY_FOR_MAILID = 10010;
+const RequestId IDA_SYNC_BODY_FOR_MAILID_ERROR = 10011;
+const RequestId IDA_NOTI_DOWNLOAD_BODY_FINISH = 10012;
+const RequestId IDA_NOTI_DOWNLOAD_BODY_FAIL = 10013;
+const RequestId IDA_NOTI_DOWNLOAD_ATTACH_START = 10014;
+const RequestId IDA_NOTI_DOWNLOAD_ATTACH_FINISH = 10015;
+const RequestId IDA_NOTI_DOWNLOAD_ATTACH_FAIL = 10016;
+const RequestId IDA_NOTI_DOWNLOAD_FINISH = 10018;
+const RequestId IDA_NOTI_MAIL_UPDATE = 10019;
+const RequestId IDA_NOTI_MAIL_FIELD_UPDATE = 10020;
+const RequestId IDA_VALIDATE_ACCOUNT_FINISH = 10021;
+const RequestId IDA_VALIDATE_ACCOUNT_FAIL   = 10022;
+const RequestId IDA_SYNC_IMAP_MAILBOX_LIST_FINISH = 10023;
+const RequestId IDA_SYNC_IMAP_MAILBOX_LIST_FAIL   = 10024;
+// --> Email sync related Request Ids
+
+// --> composerform requests
+const RequestId IDA_SHOW_MAX_SIZE_EXCEEDED_MESSAGE_BOX  = 10080;
+const RequestId IDA_SHOW_DUPLICATE_FILES_MESSAGE_BOX    = 10081;
+const RequestId IDA_SHOW_MAX_NUMBER_OF_ATTACHMENTS_MESSAGE_BOX  = 10082;
+
+// --> recipientpanel requests
+const RequestId IDA_SHOW_INVALID_ADDRESS_MESSAGE_BOX      = 10090;
+const RequestId IDA_SHOW_DUPLICATE_ADDRESS_MESSAGE_BOX    = 10091;
+
+// --> attachmentpanel requests
+const RequestId IDA_LAUNCH_IMAGE_VIEWER_APPCONTROL             = 11111;
+const RequestId IDA_LAUNCH_CALENDAR_APPCONTROL                 = 11112;
+const RequestId IDA_LAUNCH_CONTACTS_APPCONTROL                 = 11113;
+const RequestId IDA_LAUNCH_VIDEO_PLAYER_APPCONTROL             = 11115;
+const RequestId IDA_EMAIL_APP_FOREGROUND                               = 11114;
+
+const int IDA_COLOR_CODE = 107;
+const int IDA_TOFIELDPANEL_ADD_CONTACT_BUTTON = 10008;
+const int IDA_TOFIELDPANEL_EXPAND_BUTTON = 10009;
+
+// <-- Email Settings Related Constants
+const wchar_t*         IDS_SAVE = L"Save";
+const wchar_t*  IDS_CANCEL = L"Cancel";
+const wchar_t*  IDS_RECENT25  =  L" 25";
+const wchar_t*  IDS_RECENT50  =  L" 50";
+const wchar_t*  IDS_RECENT75  =  L" 75";
+const wchar_t*  IDS_RECENT100 =  L" 100";
+const wchar_t*  IDS_RECENT125 =  L" 125";
+const wchar_t*  IDS_RECENT150 =  L" 150";
+const wchar_t*  IDS_RECENT175 =  L" 175";
+const wchar_t*  IDS_RECENT200 =  L" 200";
+const wchar_t*  IDS_DEFAULT_SIGNATURE = L"Sent from Tizen mobile";
+// --> Email Settings Related Constants
+
+
+// -->
+const wchar_t* IDS_GMAIL_LOGO_FILE   = L"M02_email_list_icon_gmail.png";
+const wchar_t* IDS_YAHOO_LOGO_FILE   = L"M02_email_list_icon_YahooMail.png";
+const wchar_t* IDS_HOTMAIL_LOGO_FILE = L"M02_email_list_icon_hotmail.png";
+const wchar_t* IDS_NAVER_LOGO_FILE      = L"M02_email_list_icon_naver.png";
+const wchar_t* IDS_SAMSUNG_LOGO_FILE = L"M02_email_list_icon_samsung.png";
+const wchar_t* IDS_DEFAULT_LOGO_FILE = L"A01_2_Icon_others.png";
+
+// <--
+
+/*--EmAddAccountForm--*/
+const wchar_t* IDS_SAMSUNG_MAIL = L"@samsung.com";
+const wchar_t* IDS_GMAIL_MAIL   = L"@gmail.";
+const wchar_t* IDS_YAHOO_MAIL   = L"@yahoo.";
+const wchar_t* IDS_HOTMAIL   = L"@hotmail.";
+const wchar_t* IDS_NAVER   = L"@naver.";
+const wchar_t* IDS_LIVE                = L"@live.";
+
+/*--EmAccountDetailForm--*/
+const wchar_t* IDS_MAILBOXLIST_BUTTON_ID_PREFIX = L"MBLB";
+const wchar_t* IDS_MAILBOXLIST_PANEL_ID_PREFIX  = L"MBL";
+const wchar_t* IDS_LISTVIEW = L"Listview";
+
+/*--EmEmailManualSetUpForm--*/
+const wchar_t* IDS_ITEM_CLOSED = L"C";
+const wchar_t* IDS_ITEM_OPEN   = L"O";
+
+/*--EmAccountSettingMainForm--*/
+const wchar_t* IDS_MAIL_OPTIONS_LIST_VIEW = L"MailOptionsListView";
+const wchar_t* IDS_SCN_ADD_SUBJECT = L"ScnAddSubject";
+const wchar_t* IDS_SUBJECT_PANEL = L"1";
+const wchar_t* IDS_PANEL_ID2     = L"2";
+const wchar_t* IDS_PANEL_ID3     = L"3";
+const wchar_t* IDS_PANEL_ID4     = L"4";
+const wchar_t* IDS_PANEL_ID5     = L"5";
+const wchar_t* IDS_PANEL_ID6     = L"6";
+const wchar_t* IDS_PANEL_ID7     = L"7";
+const wchar_t* IDS_PANEL_ID8     = L"8";
+const wchar_t* IDS_PANEL_ID9     = L"9";
+const wchar_t* IDS_PANEL_ID10    = L"10";
+const wchar_t* IDS_PANEL_ID11    = L"11";
+const wchar_t* IDS_PANEL_ID12    = L"12";
+const wchar_t* IDS_PANEL_ID13    = L"13";
+const wchar_t* IDS_PANEL_ID14    = L"14";
+const wchar_t* IDS_PANEL_ID15    = L"15";
+const wchar_t* IDS_PANEL_ID16    = L"16";
+const wchar_t* IDS_PANEL_ID17    = L"17";
+
+/*--EmEmailDetailForm--*/
+const wchar_t* IDS_EMAIL_BODY_SUBJECT_PANEL = L"EMAIL_SUBJECT_PANEL";
+const wchar_t* IDS_TO_FIELD_PANEL = L"TO_FIELD_PANEL";
+const wchar_t* IDS_CC_FIELD_PANEL = L"CC_FIELD_PANEL";
+const wchar_t* IDS_WEB_PANEL = L"WEB_PANEL";
+const wchar_t* IDS_UNBLOCK = L"Unblock";
+
+/*--EmEmailListForm--*/
+const wchar_t* IDS_VIEW_AS_LISTVIEW = L"VIEW_AS_LISTVIEW";
+const wchar_t* IDS_NO_SUBJECT = L"No subject";
+const wchar_t* IDS_NO_RECIPIENTS = L"No Recipients";
+const wchar_t* IDS_NO_PREVIEW_TEXT = L"No Preview Text";
+
+/*---EmFoldersForm--*/
+const wchar_t* IDS_FOLDERS = L"Folders";
+
+void
+AccountColorCustomListElement::SetAccountId(const int accId)
+{
+       __accountId = accId;
+       __pAccountsManager = EmailSettingsProvider::GetInstance();
+}
+
+bool
+AccountColorCustomListElement::OnDraw(Tizen::Graphics::Canvas &canvas, const Tizen::Graphics::Rectangle & rect, enum Tizen::Ui::Controls::ListItemDrawingStatus itemStatus)
+{
+       EmailAccount* pAcc = __pAccountsManager->GetAccountById(__accountId);
+       Tizen::Graphics::Color color = pAcc->GetColorCode();
+
+       if (canvas.FillRectangle(color, rect) != E_SUCCESS)
+       {
+               return false;
+       }
+
+       return true;
+}
+
+
+
+/***********************************************************
+ *
+ *   Stuff to be removed....
+ *
+ ***********************************************************/
+const int INTEGER_ONE = 1;
+const int INTEGER_TWO = 2;
+const int INTEGER_THREE = 3;
+const int INTEGER_FIVE = 5;
+const int INTEGER_FOURONE = 41;
+
+const int X_CONTEXT_MENU = 420;
+const int Y_CONTEXT_MENU = 100;
+
+const wchar_t* IDB_WHITE = L"White.png";
+const wchar_t* IDB_BROWN = L"Brown.png";
+const wchar_t* IDB_GREEN = L"Green.png";
+const wchar_t* IDB_PURPLE = L"Purple.png";
+const wchar_t* IDB_RED = L"Red.png";
+const wchar_t* IDB_YELLOW = L"Yellow.png";
+const wchar_t* IDB_PINK = L"Pink.png";
+const wchar_t* IDB_BLUE = L"Blue.png" ;
+const wchar_t* IDB_BLACK = L"Black.png";
+const wchar_t* IDB_MULTIPLE = L"Multiple.png";
diff --git a/src/EmUtils.cpp b/src/EmUtils.cpp
new file mode 100755 (executable)
index 0000000..166fe0a
--- /dev/null
@@ -0,0 +1,930 @@
+//
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// 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
+//
+//     http://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either exprs or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file                       EmUtils.cpp
+ * @brief                      Keeps the implementations for Utility functions,
+ * Implementations of the various Utility function which may be used throughout the application
+ */
+
+#include "EmEmailApp.h"
+#include "EmUtils.h"
+#include <regex.h>
+
+#define EMAIL_ACCOUNT_RGEX             "([a-z0-9!#$%&'*+/=?^_`{|}~-]+[.])*[a-z0-9!#$%&'*+/=?^_`{|}~-]+"
+#define EMAIL_DOMAIN_RGEX              "([a-z0-9!#$%&'*+/=?^_`{|}~-]+[.])+[a-z0-9!#$%&'*+/=?^_`{|}~-]+"
+#define EMAIL_ADDR_RGEX                        EMAIL_ACCOUNT_RGEX"@"EMAIL_DOMAIN_RGEX
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Locales;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+int Utils::__accountId=-1;
+int Utils::__jobHandle=-1;
+int Utils::__fontSize = -1;
+int Utils::__itemHeight = -1;
+
+Bitmap* Utils::__pFavoriteIconOff = null;
+Bitmap* Utils::__pFavoriteIconOn  = null;
+Bitmap* Utils::__pDetailFormFavoriteIconOff = null;
+Bitmap* Utils::__pDetailFormFavoriteIconOn  = null;
+Bitmap* Utils::__pAttachmentIcon  = null;
+Bitmap* Utils::__pAttachmentEtcIcon = null;
+DateTimeFormatter* Utils::__pTimeFormatter = null;
+DateTimeFormatter* Utils::__pDateFormatter = null;
+DateTimeFormatter* Utils::__pDetailFormTimeFormatter = null;
+Bitmap* Utils::__pProcessIcon[30] = {0};
+
+Utils::Utils()
+{
+       //  No implementation required
+}
+
+Utils::~Utils()
+{
+       //  No implementation required
+}
+
+void
+Utils::CleanUp(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pFavoriteIconOff != null)
+       {
+               delete __pFavoriteIconOff;
+               __pFavoriteIconOff = null;
+       }
+
+       if (__pFavoriteIconOn != null)
+       {
+               delete __pFavoriteIconOn;
+               __pFavoriteIconOn = null;
+       }
+
+       if (__pDetailFormFavoriteIconOff != null)
+       {
+               delete __pDetailFormFavoriteIconOff;
+               __pDetailFormFavoriteIconOff = null;
+       }
+
+       if (__pDetailFormFavoriteIconOn != null)
+       {
+               delete __pDetailFormFavoriteIconOn;
+               __pDetailFormFavoriteIconOn = null;
+       }
+
+       if (__pAttachmentIcon != null)
+       {
+               delete __pAttachmentIcon;
+               __pAttachmentIcon = null;
+       }
+
+       if (__pAttachmentEtcIcon != null)
+       {
+               delete __pAttachmentEtcIcon;
+               __pAttachmentEtcIcon = null;
+       }
+
+       if (__pTimeFormatter != null)
+       {
+               delete __pTimeFormatter;
+               __pTimeFormatter = null;
+       }
+
+       if (__pDateFormatter != null)
+       {
+               delete __pDateFormatter;
+               __pDateFormatter = null;
+       }
+
+       if (__pDetailFormTimeFormatter != null)
+       {
+               delete __pDetailFormTimeFormatter;
+               __pDetailFormTimeFormatter = null;
+       }
+
+       for (int i = 0; i < MAX_BITMAP_COUNT; i++)
+       {
+               if (__pProcessIcon[i] != null)
+               {
+                       delete __pProcessIcon[i];
+                       __pProcessIcon[i] = null;
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+int
+Utils::CompareDatesAndGetKey(const DateTime& currentDate, const DateTime& msgDate)
+{
+       AppLogDebug("ENTER, currentDate:(%ls), msgDate:(%ls)", currentDate.ToString().GetPointer(), msgDate.ToString().GetPointer());
+
+       int retVal=-1;
+       int currDay = currentDate.GetDay();
+       int msgDay = msgDate.GetDay();
+       int deltaDays = (currentDate.GetTime() - msgDate.GetTime()).GetDays();
+
+       if (currentDate.GetYear() == msgDate.GetYear())
+       {
+               if (currentDate.GetMonth() == msgDate.GetMonth())
+               {
+                       if (currDay == msgDay)
+                       {
+                               retVal = 0; // today
+                       }
+                       else if (currDay == msgDay + 1)
+                       {
+                               retVal = 1; // yesterday
+                       }
+                       else if (deltaDays >= 1 && deltaDays <= 7)
+                       {
+                               retVal = 2; // last week
+                       }
+                       else
+                       {
+                               retVal = 3; // older
+                       }
+               }
+               else
+               {
+                       if (deltaDays == 1)
+                       {
+                               retVal = 1; // yesterday
+                       }
+                       else if (deltaDays >= 1 && deltaDays <= 7)
+                       {
+                               retVal = 2; // last week
+                       }
+                       else
+                       {
+                               retVal = 3; // older
+                       }
+               }
+       }
+       else if (deltaDays == 1)
+       {
+               retVal = 1; // yesterday
+       }
+       else if (deltaDays >= 1 && deltaDays <= 7)
+       {
+               retVal = 2; // last week
+       }
+       else
+       {
+               retVal = 3; // older
+       }
+
+       AppLogDebug("EXIT, returning:(%d)", retVal);
+       return retVal;
+}
+
+void
+Utils::StringToChar(const String* pSrc, char** pPtrDest)
+{
+       int strLength = sizeof(wchar_t)*pSrc->GetLength();
+
+       if (strLength > 0)
+       {
+               *(pPtrDest) = new (std::nothrow) char[strLength + 1];
+               memset(*(pPtrDest), 0, strLength + 1);
+
+               wcstombs(*(pPtrDest), pSrc->GetPointer(), strLength);
+               AppLogDebug("Converted (%ls) to:(%s)",pSrc->GetPointer(), *(pPtrDest));
+       }
+       else
+       {
+               *(pPtrDest) = null;
+               AppLogDebug("Got empty string");
+       }
+
+       return;
+}
+
+Bitmap*
+Utils::LoadResourceBitmapN(const String& filePath)
+{
+       result r = E_SUCCESS;
+       AppResource* pAppResource = EmailApp::GetInstance()->GetAppResource();
+
+       Bitmap *pBitmap = pAppResource->GetBitmapN(filePath, BITMAP_PIXEL_FORMAT_ARGB8888);
+       TryLog(pBitmap != null, "[%s]Error loading resource bitmap:(%ls)",GetErrorMessage(r),filePath.GetPointer());
+       return pBitmap;
+}
+
+Bitmap*
+Utils::GetFavoriteIconOff(void)
+{
+       AppLogDebug("ENTER");
+       if (__pFavoriteIconOff == null)
+       {
+               AppLogDebug("Loading icon first time");
+               __pFavoriteIconOff = LoadResourceBitmapN(IDB_UNIMPORTANT);
+               AppLogDebug("Result of icon loading:(%s)", GetErrorMessage(GetLastResult()));
+       }
+       AppLogDebug("EXIT, returning icon");
+       return __pFavoriteIconOff;
+}
+
+Bitmap*
+Utils::GetFavoriteIconOn(void)
+{
+       AppLogDebug("ENTER");
+       if (__pFavoriteIconOn == null)
+       {
+               AppLogDebug("Loading icon first time");
+               __pFavoriteIconOn = LoadResourceBitmapN(IDB_IMPORTANT);
+               AppLogDebug("Result of icon loading:(%s)", GetErrorMessage(GetLastResult()));
+       }
+       AppLogDebug("EXIT, returning icon");
+       return __pFavoriteIconOn;
+}
+
+Bitmap*
+Utils::GetDetailFormFavoriteIconOff(void)
+{
+       AppLogDebug("ENTER");
+       if (__pDetailFormFavoriteIconOff == null)
+       {
+               AppLogDebug("Loading icon first time");
+               __pDetailFormFavoriteIconOff = LoadResourceBitmapN(IDB_DETAIL_UNIMPORTANT);
+               AppLogDebug("Result of icon loading:(%s)", GetErrorMessage(GetLastResult()));
+       }
+       AppLogDebug("EXIT, returning icon");
+       return __pDetailFormFavoriteIconOff;
+}
+
+Bitmap*
+Utils::GetDetailFormFavoriteIconOn(void)
+{
+       AppLogDebug("ENTER");
+       if (__pDetailFormFavoriteIconOn == null)
+       {
+               AppLogDebug("Loading icon first time");
+               __pDetailFormFavoriteIconOn = LoadResourceBitmapN(IDB_DETAIL_IMPORTANT);
+               AppLogDebug("Result of icon loading:(%s)", GetErrorMessage(GetLastResult()));
+       }
+       AppLogDebug("EXIT, returning icon");
+       return __pDetailFormFavoriteIconOn;
+}
+
+Bitmap*
+Utils::GetAttachmentIcon(void)
+{
+       AppLogDebug("ENTER");
+       if (__pAttachmentIcon == null)
+       {
+               AppLogDebug("Loading icon first time");
+               __pAttachmentIcon = LoadResourceBitmapN(IDB_ATTACHMENT_ICON);
+               AppLogDebug("Result of icon loading:(%s)", GetErrorMessage(GetLastResult()));
+       }
+       AppLogDebug("EXIT, returning icon");
+       return __pAttachmentIcon;
+}
+
+Bitmap*
+Utils::GetAttachmentEtcIcon(void)
+{
+       AppLogDebug("ENTER");
+       if (__pAttachmentEtcIcon == null)
+       {
+               AppLogDebug("Loading icon first time");
+               __pAttachmentEtcIcon = LoadResourceBitmapN(IDB_ATTACHMENT_ETC_ICON);
+               AppLogDebug("Result of icon loading:(%s)", GetErrorMessage(GetLastResult()));
+       }
+       AppLogDebug("EXIT, returning icon");
+       return __pAttachmentEtcIcon;
+}
+
+Bitmap*
+Utils::GetProcessIcon(int index)
+{
+       AppLogDebug("ENTER");
+       if (__pProcessIcon[index-1] == null)
+       {
+               AppLogDebug("Loading icon first time");
+               String bitmapName(IDB_WAIT_CURSOR_IMAGE_BASE);
+               bitmapName.Append(index);
+               bitmapName.Append(BITMAP_EXTENSION);
+               __pProcessIcon[index-1] = LoadResourceBitmapN(bitmapName);
+               AppLogDebug("Result of icon  %d loading:(%s)", index, GetErrorMessage(GetLastResult()));
+       }
+       AppLogDebug("EXIT, returning icon");
+       return __pProcessIcon[index-1];
+}
+
+DateTimeFormatter*
+Utils::GetTimeFormatter(void)
+{
+       AppLogDebug("ENTER");
+       String timeFormatKey = L"http://tizen.org/setting/locale.time.format.24hour";
+       bool is24HourFormat;
+
+       if (__pTimeFormatter == null)
+       {
+               AppLogDebug("Creating time formatter");
+               LocaleManager localeMgr;
+               localeMgr.Construct();
+               __pTimeFormatter = DateTimeFormatter::CreateDateFormatterN(localeMgr.GetSystemLocale(), DATE_TIME_STYLE_FULL);
+               AppLogDebug("Result of creating time formatter:(%s)", GetErrorMessage(GetLastResult()));
+       }
+
+       SettingInfo::GetValue(timeFormatKey, is24HourFormat);
+
+       if (is24HourFormat == true)
+       {
+               if (!__pTimeFormatter->GetPattern().Equals(L"H:mm", true))
+               {
+                       __pTimeFormatter->ApplyPattern(L"H:mm");
+               }
+       }
+       else
+       {
+               if (!__pTimeFormatter->GetPattern().Equals(L"h:mm a", true))
+               {
+                       __pTimeFormatter->ApplyPattern(L"h:mm a");
+               }
+       }
+
+
+       AppLogDebug("EXIT, returning time formatter");
+       return __pTimeFormatter;
+}
+
+DateTimeFormatter*
+Utils::GetDateFormatter(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__pDateFormatter == null)
+       {
+               AppLogDebug("Creating date formatter");
+               LocaleManager localeMgr;
+               localeMgr.Construct();
+               __pDateFormatter = DateTimeFormatter::CreateDateFormatterN(localeMgr.GetSystemLocale(), DATE_TIME_STYLE_FULL);
+               __pDateFormatter->ApplyPattern(L"MMM d");
+               AppLogDebug("Result of creating date formatter:(%s)", GetErrorMessage(GetLastResult()));
+       }
+
+       AppLogDebug("EXIT, returning date formatter");
+       return __pDateFormatter;
+}
+
+DateTimeFormatter*
+Utils::GetDetailFormTimeFormatter(void)
+{
+       AppLogDebug("ENTER");
+       String timeFormatKey = L"http://tizen.org/setting/locale.time.format.24hour";
+       bool is24HourFormat;
+
+       if (__pDetailFormTimeFormatter == null)
+       {
+               AppLogDebug("Creating time formatter");
+               LocaleManager localeMgr;
+               localeMgr.Construct();
+               __pDetailFormTimeFormatter = DateTimeFormatter::CreateDateTimeFormatterN(localeMgr.GetSystemLocale(), DATE_TIME_STYLE_SHORT, DATE_TIME_STYLE_SHORT);
+               AppLogDebug("Result of creating time formatter:(%s)", GetErrorMessage(GetLastResult()));
+       }
+
+       SettingInfo::GetValue(timeFormatKey, is24HourFormat);
+
+       if (is24HourFormat == true)
+       {
+               if (!__pDetailFormTimeFormatter->GetPattern().Equals(L"MM/dd/yyyy H:mm", true))
+               {
+                       __pDetailFormTimeFormatter->ApplyPattern(L"MM/dd/yyyy H:mm:ss");
+               }
+       }
+       else
+       {
+               if (!__pDetailFormTimeFormatter->GetPattern().Equals(L"MM/dd/yyyy h:mm a", true))
+               {
+                       __pDetailFormTimeFormatter->ApplyPattern(L"MM/dd/yyyy h:mm:ss a");
+               }
+       }
+
+       AppLogDebug("EXIT, returning time formatter");
+       return __pDetailFormTimeFormatter;
+}
+
+String
+Utils::GetResourceString(const String& stringId)
+{
+       String resourceString;
+       EmailApp::GetInstance()->GetAppResource()->GetString(stringId, resourceString);
+
+       AppLogDebug("Got resource string:(%ls)", resourceString.GetPointer());
+       return resourceString;
+}
+
+bool
+Utils::ValidateEmailAddress(const String& emailAddress)
+{
+       AppLogDebug("ENTER, emailAddress:(%ls)", emailAddress.GetPointer());
+
+       char* address;
+       Utils::StringToChar(&emailAddress, &address);
+
+       /* this following code verfies the email alias string using reg. exp. */
+       regex_t alias_list_regex;
+       int ret = FALSE;
+
+       if (regcomp(&alias_list_regex, EMAIL_ADDR_RGEX, REG_ICASE | REG_EXTENDED)) {
+               AppLogDebug("email alias regex unrecognized");
+               return FALSE;
+       }
+
+       int nsub = alias_list_regex.re_nsub + 1;        /* should be the number of parenthesized subexpressions (+ 1) */
+       regmatch_t pmatch[nsub];
+       memset(pmatch, 0, sizeof(regmatch_t) * nsub);
+
+       if (regexec(&alias_list_regex, address, nsub, pmatch, 0) == REG_NOMATCH)
+               AppLogDebug("failed : [%s]", address);
+       else {
+               AppLogDebug("success : [%s]", address);
+
+               /*
+                * remove sub-string match
+                */
+               if ((int)(pmatch[0].rm_eo - pmatch[0].rm_so) == strlen(address))
+                       ret = TRUE;
+       }
+
+       regfree(&alias_list_regex);
+       AppLogDebug("return value: [%d]", ret);
+
+       return ret;
+}
+
+String
+Utils::ExtractUserNameFromEmailAddress(const String& emailAddress)
+{
+       AppLogDebug("ENTER, emailAddress:(%ls)", emailAddress.GetPointer());
+
+       int index=0;
+       result r = E_SUCCESS;
+       String userName;
+       String emailAddressLowerCase;
+
+       emailAddress.ToLowerCase(emailAddressLowerCase);
+
+       if (emailAddressLowerCase.Contains(L"@live") == true || emailAddressLowerCase.Contains(L"@hotmail") == true)
+       {
+               userName = emailAddress;
+       }
+       else
+       {
+               r = emailAddress.IndexOf(L'@', 0, index);
+               AppLogDebug("Result of indexof:(%s), index:(%d)", GetErrorMessage(r), index);
+
+               if (r == E_SUCCESS)
+               {
+                       emailAddress.SubString(0, index, userName);
+               }
+       }
+
+       AppLogDebug("EXIT, returning:(%ls)", userName.GetPointer());
+       return userName;
+}
+
+void
+Utils::ExtractEmailIdFromFullAddress(const String& inputStr, String& outputStr)
+{
+       AppLogDebug("ENTER");
+
+       int startIndex = inputStr.GetLength()-1;
+       int endIndex   = 0;
+
+       result r = E_SUCCESS;
+
+       outputStr.Clear();
+       outputStr.Append(inputStr);
+
+       r |= inputStr.LastIndexOf(L'>', startIndex, endIndex);
+
+       startIndex = 0;
+       r |= inputStr.IndexOf(L'<', startIndex, startIndex);
+
+       if (r != E_SUCCESS)
+       {
+               AppLogDebug("EXIT, outputStr:(%ls)", outputStr.GetPointer());
+               return;
+       }
+
+       if (endIndex-startIndex > 1) // Atleast one char exists between '<' and '>'
+       {
+               outputStr.Clear();
+               inputStr.SubString(startIndex+1, endIndex-startIndex-1, outputStr);
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+void
+Utils::ExtractAliasFromFullAddress(const String& inputStr, String& outputStr)
+{
+       AppLogDebug("ENTER");
+
+       int startIndex = inputStr.GetLength()-1;
+       int endIndex   = 0;
+
+       result r = E_SUCCESS;
+
+       outputStr.Clear();
+
+       r |= inputStr.LastIndexOf(L'\"', startIndex, endIndex);
+
+       startIndex = 0;
+       r |= inputStr.IndexOf(L'\"', startIndex, startIndex);
+
+       if (r != E_SUCCESS)
+       {
+               ExtractEmailIdFromFullAddress(inputStr, outputStr);
+       }
+       else
+       {
+               if (endIndex-startIndex > 1) // Atleast one char exists between '"' and '"'
+               {
+                       outputStr.Clear();
+                       inputStr.SubString(startIndex+1, endIndex-startIndex-1, outputStr);
+               }
+               else
+               {
+                       ExtractEmailIdFromFullAddress(inputStr, outputStr);
+               }
+       }
+
+       AppLogDebug("EXIT");
+       return;
+}
+
+bool
+Utils::IsImageFile(String fileName)
+{
+       AppLogDebug("ENTER, filename:(%ls)", fileName.GetPointer());
+
+       fileName.ToLowerCase();
+       if (fileName.EndsWith(L"jpg") ||
+               fileName.EndsWith(L"jpeg") ||
+               fileName.EndsWith(L"bmp") ||
+               fileName.EndsWith(L"gif") ||
+               fileName.EndsWith(L"png") ||
+               fileName.EndsWith(L"tif"))
+       {
+               AppLogDebug("EXIT, returning true");
+               return true;
+       }
+
+       AppLogDebug("EXIT, returning false");
+       return false;
+}
+
+void
+Utils::BuildEmailIdStringFromFullAddress(const String& fullEmailAddress, String& outputStr)
+{
+       AppLogDebug("ENTER, Got fullAddress:(%ls)", fullEmailAddress.GetPointer());
+
+       result r = E_SUCCESS;
+       String token;
+       String emailAddress;
+       HashMap* pDuplicateMap = null;
+       IList* pKeyList = null;
+       Utility::StringTokenizer addressTokenizer(fullEmailAddress, IDS_DELIM_SEMICOLON);
+
+       pDuplicateMap = new (std::nothrow) HashMap();
+       TryReturn(pDuplicateMap != null, , "Failed to allocate memory for duplicate map");
+
+       r = pDuplicateMap->Construct();
+       TryCatch(r == E_SUCCESS, delete pDuplicateMap, "Failed to construct duplicate map");
+
+       while (addressTokenizer.HasMoreTokens())
+       {
+               addressTokenizer.GetNextToken(token);
+               ExtractEmailIdFromFullAddress(token, emailAddress);
+               pDuplicateMap->Add(new (std::nothrow) String(emailAddress), new (std::nothrow) Integer(1));
+       }
+
+       pKeyList = pDuplicateMap->GetKeysN();
+       if (pKeyList != null)
+       {
+               outputStr.Clear();
+
+               for (int i=0; i<pKeyList->GetCount(); i++)
+               {
+                       outputStr.Append(*static_cast<String*>(pKeyList->GetAt(i)));
+                       outputStr.Append(IDS_DELIM_SEMICOLON);
+               }
+
+               pKeyList->RemoveAll();
+               delete pKeyList;
+       }
+
+
+       pDuplicateMap->RemoveAll(true);
+       delete pDuplicateMap;
+
+CATCH:
+       AppLogDebug("EXIT, outputStr:(%ls)", outputStr.GetPointer());
+       return;
+}
+
+void
+Utils::BuildEmailIdStringFromArray(const ArrayList* pAddressList, String& outputStr)
+{
+       AppLogDebug("ENTER");
+
+       outputStr.Clear();
+
+       for (int i=0; i<pAddressList->GetCount(); i++)
+       {
+               outputStr.Append(*static_cast<const String*>(pAddressList->GetAt(i)));
+               outputStr.Append(IDS_DELIM_SEMICOLON);
+       }
+
+       AppLogDebug("EXIT, outputStr:(%ls)", outputStr.GetPointer());
+       return;
+}
+
+void
+Utils::BuildEmailIdStringFromCSV(const String inputStr, String& outputStr)
+{
+       AppLogDebug("ENTER, input string:(%ls)", inputStr.GetPointer());
+
+       String token;
+       String emailId;
+       Utility::StringTokenizer strTok(inputStr, L", ");
+
+       outputStr.Clear();
+       while (strTok.HasMoreTokens())
+       {
+               strTok.GetNextToken(token);
+               Utils::ExtractEmailIdFromFullAddress(token, emailId);
+
+               outputStr.Append(emailId);
+               outputStr.Append(IDS_DELIM_SEMICOLON);
+       }
+
+       AppLogDebug("EXIT, output string:(%ls)", outputStr.GetPointer());
+       return;
+}
+
+//void
+//Utils::CancelJob(void)
+//{
+//     AppLogDebug("ENTER");
+//
+//     EmailSettingsProvider* pEmailSettingsProvider = EmailSettingsProvider::GetInstance();
+//     pEmailSettingsProvider->CancelJob(__accountId, __jobHandle, EMAIL_CANCELED_BY_USER);
+//     pEmailSettingsProvider->DeleteAccount(__accountId);
+//     __accountId = -1;
+//     __jobHandle = -1;
+//
+//     AppLogDebug("EXIT");
+//}
+//
+//void
+//Utils::ClearJob(void)
+//{
+//     AppLogDebug("ENTER");
+//
+//     __accountId = -1;
+//     __jobHandle = -1;
+//
+//     AppLogDebug("EXIT");
+//}
+
+void
+Utils::RemoveDuplicateEmailId(String& emailIds)
+{
+       AppLogDebug("ENTER, got emailIds:(%ls)", emailIds.GetPointer());
+
+       result r = E_SUCCESS;
+       String token;
+       HashMap* pDuplicateMap = null;
+       IList*   pKeyList = null;
+       Utility::StringTokenizer emailTokenizer(emailIds, IDS_DELIM_SEMICOLON);
+
+       if (emailIds.IsEmpty() == false)
+       {
+
+               pDuplicateMap = new (std::nothrow) HashMap();
+               TryReturn(pDuplicateMap != null, , "Failed to allocate memory for duplicate map");
+
+               r = pDuplicateMap->Construct();
+               TryCatch(r == E_SUCCESS, delete pDuplicateMap, "Failed to construct duplicate map");
+
+               while (emailTokenizer.HasMoreTokens())
+               {
+                       emailTokenizer.GetNextToken(token);
+                       pDuplicateMap->Add(new (std::nothrow) String(token), new (std::nothrow) Integer(1));
+               }
+
+               pKeyList = pDuplicateMap->GetKeysN();
+               if (pKeyList != null)
+               {
+                       emailIds.Clear();
+
+                       for (int i=0; i<pKeyList->GetCount(); i++)
+                       {
+                               emailIds.Append(*static_cast<String*>(pKeyList->GetAt(i)));
+                               emailIds.Append(IDS_DELIM_SEMICOLON);
+                       }
+
+                       pKeyList->RemoveAll();
+                       delete pKeyList;
+               }
+
+
+               pDuplicateMap->RemoveAll(true);
+               delete pDuplicateMap;
+       }
+
+CATCH:
+       AppLogDebug("EXIT, returning emailIds:(%ls)", emailIds.GetPointer());
+       return;
+}
+
+const IMap*
+Utils::ParseExtraData(const IMap* pExtraData)
+{
+       AppLogDebug("ENTER");
+
+       if (pExtraData != null)
+       {
+               IMapEnumerator* pMapEnum = pExtraData->GetMapEnumeratorN();
+
+               if (pMapEnum != null)
+               {
+                       while (!IsFailed(pMapEnum->MoveNext()))
+                       {
+                               String* pKey = static_cast<String*>(pMapEnum->GetKey());
+                               AppLogDebug("Key:(%ls)", pKey->GetPointer());
+
+                               String* pVal = dynamic_cast<String*>(pMapEnum->GetValue());
+
+                               if (pVal != null)
+                               {
+                                       AppLogDebug("Value:(%ls)", pVal->GetPointer());
+                               }
+                               else
+                               {
+                                       ArrayList* pArr = dynamic_cast<ArrayList*>(pMapEnum->GetValue());
+
+                                       if (pArr != null)
+                                       {
+                                               for (int i=0; i<pArr->GetCount(); i++)
+                                               {
+                                                       pVal = static_cast<String*>(pArr->GetAt(i));
+                                                       AppLogDebug("Value[%d]:(%ls)", i, pVal->GetPointer());
+                                               }
+                                       }
+                                       else
+                                       {
+                                               AppLogDebug("Got unknown value");
+                                       }
+                               }
+                       }
+                       delete pMapEnum;
+               }
+               else
+               {
+                       AppLogDebug("Enum was null");
+               }
+       }
+       else
+       {
+               AppLogDebug("Data was null");
+       }
+
+       AppLogDebug("EXIT");
+       return pExtraData;
+}
+
+String
+Utils::GetDomainName(const String& emailAddress)
+{
+       AppLogDebug("ENTER, email address:(%ls)", emailAddress.GetPointer());
+
+       int domainNameStartPostion;
+       int domainNameEndPostion;
+       int length;
+       result r = E_SUCCESS;
+       String domainName = L"";
+       wchar_t atSymbol = L'@';
+       wchar_t dotSymbol = L'.';
+       wchar_t tmpChar;
+
+       r = emailAddress.IndexOf(atSymbol, 0, domainNameStartPostion);
+
+       if (r != E_SUCCESS)
+       {
+               return domainName;
+       }
+
+       r = emailAddress.IndexOf(dotSymbol, domainNameStartPostion+1, domainNameEndPostion);
+
+       if (r != E_SUCCESS)
+       {
+               return domainName;
+       }
+
+       length = domainNameEndPostion - domainNameStartPostion - 1;
+       emailAddress.SubString(domainNameStartPostion + 1, length, domainName);
+
+       // Capitalise the first character
+       domainName.GetCharAt(0, tmpChar);
+       tmpChar = std::towupper(tmpChar);
+       domainName.SetCharAt(tmpChar, 0);
+
+       AppLogDebug("EXIT, domain name:(%ls)", domainName.GetPointer());
+       return domainName;
+}
+
+int
+Utils::GetFontSize(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__fontSize == -1)
+       {
+               SetFontValues();
+       }
+
+       AppLogDebug("EXIT");
+
+       return __fontSize;
+}
+
+int
+Utils::GetItemHeight(void)
+{
+       AppLogDebug("ENTER");
+
+       if (__itemHeight == -1)
+       {
+               SetFontValues();
+       }
+
+       AppLogDebug("EXIT");
+
+       return __itemHeight;
+}
+
+void
+Utils::SetFontValues(void)
+{
+       AppLogDebug("ENTER");
+
+       String fontSizeString;
+       result r = SettingInfo::GetValue(L"http://tizen.org/setting/font.size", fontSizeString);
+       AppLogDebug("fontSize:(%ls), result of GetValue:(%s)", fontSizeString.GetPointer(), GetErrorMessage(r));
+
+       if (fontSizeString == L"small")
+       {
+               __fontSize = 36.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"medium")
+       {
+               __fontSize = 44.0f;
+               __itemHeight = 150.0f;
+       }
+       else if (fontSizeString == L"large")
+       {
+               __fontSize = 64.0f;
+               __itemHeight = 167.0f;
+       }
+       else if (fontSizeString == L"huge")
+       {
+               __fontSize = 81.0f;
+               __itemHeight = 186.0f;
+       }
+       else if (fontSizeString == L"giant")
+       {
+               __fontSize = 106.0f;
+               __itemHeight = 215.0f;
+       }
+
+       AppLogDebug("EXIT");
+}