Fix wrong return value of model name
[platform/core/connectivity/bluetooth-agent.git] / map-agent / bluetooth_map_email.h
1 /*
2  * Bluetooth-agent
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Girishashok Joshi <girish.joshi@samsung.com>
8  *               Chanyeol Park <chanyeol.park@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *              http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24 #ifndef __DEF_MAP_EMAIL_H_
25 #define __DEF_MAP_EMAIL_H_
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #include <glib.h>
32 #include "bluetooth_map_types.h"
33 #include "map_bmessage.h"
34
35 gboolean _bt_map_start_email_service(void);
36
37 gboolean _bt_map_stop_email_service(void);
38
39 gboolean _bt_map_email_get_supported_folders(gboolean folders[FOLDER_COUNT][MSG_TYPES]);
40
41 gboolean _bt_map_get_email_list(char *folder, int max,
42                 guint8 subject_len, map_msg_filter_t *filter,
43                 GSList **email_list, guint64 *count, gboolean *newmsg);
44
45 gboolean _bt_map_update_mailbox(char *folder);
46
47 gboolean _bt_map_set_email_read_status(int mail_id, int read_status);
48
49 gboolean _bt_map_set_email_delete_status(int mail_id, int read_status);
50
51 gboolean _bt_map_get_email_message(int mail_id, gboolean attach,
52                 gboolean transcode, gboolean first_request, gchar **bmseg);
53
54 gboolean _bt_map_push_email_data(struct bmsg_data *bmsg_info,
55                 msg_send_option_t *option, char *folder);
56
57 #ifdef __cplusplus
58 }
59 #endif
60 #endif /* __DEF_MAP_EMAIL_H_ */