int mailbox_type;
int folder_mode;
- unsigned emf_handle;
+ int emf_handle;
Elm_Object_Item *root_item;
Elm_Object_Item *it;
Evas_Object *entry;
/*static void _go_button_clicked_cb(void *data, Evas_Object * obj, void *event_info);*/
static void _edbus_event_account_receive(void *local_data, DBusMessage *message);
-static void _stop_emf_job(EmailAccountUGD *ug_data, unsigned handle);
+static void _stop_emf_job(EmailAccountUGD *ug_data, int handle);
static void _entry_changed_cb(void *data, Evas_Object *obj, void *event_info);
static void _entry_focused_cb(void *data, Evas_Object *obj, void *event_info);
email_mailbox_t *mlist = (email_mailbox_t *)(node->data);
email_mailbox_t mbox = { 0, };
int err_code = EMAIL_ERROR_NONE;
- unsigned handle;
+ int handle;
int on_server = (EMAIL_SERVER_TYPE_POP3 == GET_ACCOUNT_SERVER_TYPE(ug_data->account_id)?0:1);
memset(&mbox, 0x00, sizeof(email_mailbox_t));
email_mailbox_t *mlist = (email_mailbox_t *)(node->data);
email_mailbox_t mbox = { 0, };
int err_code = EMAIL_ERROR_NONE;
- unsigned handle;
+ int handle;
char arg1[MAX_STR_LEN] = { 0, };
char arg2[MAX_STR_LEN] = { 0, };
char arg3[MAX_STR_LEN] = { 0, };
char arg2[MAX_STR_LEN] = { 0, };
char arg3[MAX_STR_LEN] = { 0, };
int err_code = EMAIL_ERROR_NONE;
- unsigned handle;
+ int handle;
int on_server = (EMAIL_SERVER_TYPE_POP3 == GET_ACCOUNT_SERVER_TYPE(alist->ug_data->account_id)?0:1);
strcpy(arg1, elm_entry_markup_to_utf8(elm_object_text_get(alist->ug_data->entry)));
email_mailbox_t *mlist_to = (email_mailbox_t *)(node_to->data);
char arg1[MAX_STR_LEN] = { 0, };
int err_code = EMAIL_ERROR_NONE;
- unsigned handle;
+ int handle;
int on_server = (EMAIL_SERVER_TYPE_POP3 == GET_ACCOUNT_SERVER_TYPE(alist->ug_data->account_id)?0:1);
if(strlen(mlist_to->mailbox_name) > 0)
debug_leave();
}
-static void _stop_emf_job(EmailAccountUGD *ug_data, unsigned handle)
+static void _stop_emf_job(EmailAccountUGD *ug_data, int handle)
{
debug_log("");
if (!ug_data) {
gboolean email_engine_initialize(void);
void email_engine_finalize(void);
void email_engine_finalize_force(void);
-gboolean email_engine_add_account_with_validation(email_account_t *_account, int *account_id, unsigned *handle, int *error_code);
+gboolean email_engine_add_account_with_validation(email_account_t *_account, int *account_id, int *handle, int *error_code);
gboolean email_engine_add_account(email_account_t *_account, int *account_id);
gboolean email_engine_update_account_with_validation(gint account_id, email_account_t *_account);
gboolean email_engine_update_account(gint account_id, email_account_t *_account);
gboolean email_engine_get_default_account(gint *account_id);
gboolean email_engine_set_default_account(gint account_id);
-gboolean email_engine_sync_folder(gint account_id, int mailbox_id, unsigned *handle);
-void email_engine_stop_working(gint account_id, unsigned handle);
+gboolean email_engine_sync_folder(gint account_id, int mailbox_id, int *handle);
+void email_engine_stop_working(gint account_id, int handle);
gboolean email_engine_check_seen_mail(gint account_id, gint mail_id);
int email_engine_check_body_download(int mail_id);
-gboolean email_engine_body_download(gint account_id, gint mail_id, unsigned *handle);
-gboolean email_engine_attachment_download(gint account_id, gint mail_id, gint index, unsigned *handle);
+gboolean email_engine_body_download(gint account_id, gint mail_id, int *handle);
+gboolean email_engine_attachment_download(gint account_id, gint mail_id, gint index, int *handle);
gboolean email_engine_delete_mail(gint account_id, int mailbox_id, gint mail_id, int sync);
gboolean email_engine_delete_all_mail(gint account_id, int mailbox_id, int sync);
return TRUE;
}
-gboolean email_engine_add_account_with_validation(email_account_t *_account, int *account_id, unsigned *handle, int *error_code)
+gboolean email_engine_add_account_with_validation(email_account_t *_account, int *account_id, int *handle, int *error_code)
{
debug_log("");
RETURN_VAL_IF_FAIL(_account != NULL, FALSE);
debug_log("account id (%d)", account_id);
gboolean res = FALSE;
- unsigned email_handle = 0;
+ int email_handle = 0;
int err = 0;
err = email_sync_header(account_id, mailbox_id, &email_handle);
RETURN_VAL_IF_FAIL(mail_id > 0, FALSE);
int err = 0;
- unsigned email_handle = 0;
+ int email_handle = 0;
gboolean res = FALSE;
err = email_download_body(mail_id, 0, &email_handle);
return res;
}
-gboolean email_engine_attachment_download(gint account_id, gint mail_id, gint index, unsigned *handle)
+gboolean email_engine_attachment_download(gint account_id, gint mail_id, gint index, int *handle)
{
debug_log("");
RETURN_VAL_IF_FAIL(account_id > ACCOUNT_MIN, FALSE);
RETURN_VAL_IF_FAIL(index > 0, FALSE);
int err = 0;
- unsigned email_handle = 0;
+ int email_handle = 0;
gboolean res = FALSE;
err = email_download_attachment(mail_id, index, &email_handle);
int mailbox_type;
gboolean is_attachment;
gboolean is_seen;
- gboolean is_sending_now;
+ email_mail_status_t is_sending_now;
gboolean is_body_download;
gint mail_id;
gint account_id;
MailboxAdvSearchViewInfo *adv_search_info;
gboolean b_advanced_search_view;
- unsigned emf_handle;
+ int emf_handle;
EmailAccountInfo *account_info;
E_DBus_Connection *edbus_conn;
gchar *prev_group_title;
ui_gadget_h create_composer_ug(char *ug_name, service_h service, void *data);
void layout_composer_cb(ui_gadget_h ug, enum ug_mode mode, void *priv);
void result_composer_cb(ui_gadget_h ug, service_h service, void *priv);
-void _stop_emf_job(EmailMailboxUGD *mailbox_ugd, unsigned handle, gboolean change_download_label_in_panel);
+void _stop_emf_job(EmailMailboxUGD *mailbox_ugd, int handle, gboolean change_download_label_in_panel);
void email_rotate_landscape(EmailMailboxUGD *mailbox_ugd);
void _update_toolbar_clicked_cb(void *data, Evas_Object *obj, void *event_info);
void _update_toolbar_cancel_clicked_cb(void *data, Evas_Object *obj, void *event_info);
Eina_List *nth_list = eina_list_nth_list(list, i);
list_data *ld = eina_list_data_get(nth_list);
- /* For all other views where mail list is present but threaded mail list is not present */
- int seen_flag = (ld->is_seen == false)? 1 /* make it read */ :
- 0 /* make it unread */;
- int err = email_set_flags_field(ld->account_id, &(ld->mail_id), 1, EMAIL_FLAGS_SEEN_FIELD, seen_flag, 1);
+ //make it unread state in all cases
+ int err = email_set_flags_field(ld->account_id, &(ld->mail_id), 1, EMAIL_FLAGS_SEEN_FIELD, 0, 1);
if (err != EMAIL_ERROR_NONE)
debug_log("email_set_flags_field - err(%d)", err);
if (ld->is_attachment == true) {
elm_object_item_signal_emit(ld->item, "elm,state,attach", "elm");
}
- if(ld->priority != EMAIL_OPTION_PRIORITY_NORMAL) {
+ if(ld->priority != EMAIL_MAIL_PRIORITY_NORMAL) {
elm_object_item_signal_emit(ld->item, "elm,state,priority", "elm");
}
if(ld->reply_flag || ld->forward_flag) {
else if(!g_strcmp0(source, "elm.icon.priority"))
{
- if(ld->priority == EMAIL_OPTION_PRIORITY_HIGH) {
+ if(ld->priority == EMAIL_MAIL_PRIORITY_HIGH) {
Evas_Object *ic = elm_icon_add(obj);
elm_icon_file_set(ic, IMGDIR "/M02_email_icon_priority.png", NULL);
elm_icon_resizable_set(ic, 0, 0);
return (void *)ic;
}
#if 0 // support low priority message
- else if(ld->priority == EMAIL_OPTION_PRIORITY_LOW) {
+ else if(ld->priority == EMAIL_MAIL_PRIORITY_LOW) {
if(ld->item)
edje_object_signal_emit((Evas_Object *)elm_genlist_item_object_get(ld->item), "elm,state,priority", "elm");
Evas_Object *ic = elm_icon_add(obj);
#if 0
else if(!g_strcmp0(source, "elm.icon.appointment"))
{
- if(ld->priority == 1)
+ if(ld->priority == EMAIL_MAIL_PRIORITY_HIGH)
{
if(ld->item)
edje_object_signal_emit((Evas_Object *)elm_genlist_item_object_get(ld->item), "elm,state,priority", "elm");
break;
case EMAIL_VIEW_PRIORITY:
- if(ld->priority == EMAIL_OPTION_PRIORITY_HIGH){
+ if(ld->priority == EMAIL_MAIL_PRIORITY_HIGH){
group_index = 0;
ld->group_title = g_strdup(_("IDS_EMAIL_BODY_HIGH_M_PRIORITY"));
}
- else if(ld->priority == EMAIL_OPTION_PRIORITY_NORMAL)
+ else if(ld->priority == EMAIL_MAIL_PRIORITY_NORMAL)
{
group_index = 1;
ld->group_title = g_strdup(_("IDS_EMAIL_BODY_NORMAL_M_EMAILPRIORITY"));
return EINA_FALSE;
}
-void _stop_emf_job(EmailMailboxUGD *mailbox_ugd, unsigned handle, gboolean change_download_label_in_panel)
+void _stop_emf_job(EmailMailboxUGD *mailbox_ugd, int handle, gboolean change_download_label_in_panel)
{
debug_log("");
gint account_id = mailbox_ugd->account_id;
{
debug_log("");
- unsigned handle = 0;
+ int handle = 0;
gboolean res = FALSE;
gint account_id = mailbox_ugd->account_id;
{
debug_log("");
- unsigned handle = 0;
+ int handle = 0;
int err = 0;
err = email_sync_header_for_all_account(&handle);