1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/*
* Copyright 2012 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.tizenopensource.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.
*/
#ifndef _EMAIL_ENGINE_H_
#define _EMAIL_ENGINE_H_
#include <glib.h>
#include <email-api.h>
G_BEGIN_DECLS
/* Array length definition */
#define TAG_LEN 20 /*tag for hightlight keyword <color=#ff0000>key</>*/
#define FROM_LEN 100
#define SUBJECT_LEN 100
#define FOLDER_LEN 100
#define ADDR_LEN 320
#define RECIPIENT_LEN 100
gboolean email_engine_initialize(void);
void email_engine_finalize(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(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_delete_account(gint account_id);
gboolean email_engine_get_account_list(int *count, email_account_t **_account_list);
gboolean email_engine_free_account_list(email_account_t **_account_list, int count);
gboolean email_engine_get_account_full_data(int acctid, 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_delete_mail(gint account_id, int mailbox_id, gint mail_id, int sync);
gchar *email_engine_get_attachment_path(gint attach_id); /* g_free(). */
G_END_DECLS
#endif /* _EMAIL_ENGINE_H_ */
/* EOF */
|