ba5328af6c9b7664a8929537f3e4280f69c704f9
[platform/core/connectivity/bluetooth-agent.git] / map-agent / bluetooth_map_sms.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  *               Syam Sidhardhan <s.syam@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 BLUETOOTH_MAP_SMS_H_
25 #define BLUETOOTH_MAP_SMS_H_
26
27 #include <glib.h>
28 #include "bluetooth_map_types.h"
29 #include "map_bmessage.h"
30
31 gboolean _bt_map_start_sms_service(void);
32
33 void _bt_map_stop_sms_service(void);
34
35 gboolean _bt_map_sms_get_supported_folders(gboolean folders[FOLDER_COUNT][MSG_TYPES]);
36
37 gboolean _bt_map_get_sms_message_list(gchar *folder, guint16 max,
38                 guint8 subject_len, map_msg_filter_t *filter,
39                 GSList **sms_list, guint64 *count, gboolean *newmsg);
40
41 gboolean _bt_map_get_sms_message(int message_id, gboolean attach,
42                 gboolean transcode, gboolean first_request, gchar **bmseg);
43
44 gboolean _bt_map_set_sms_delete_status(int msg_id, gboolean delete_status);
45
46 gboolean _bt_map_sms_set_read_status(int msg_id, gboolean read_status);
47
48 gboolean _bt_map_push_sms_data(struct bmsg_data *bmsg_info,
49                 msg_send_option_t *option, char *folder);
50
51 #endif /* BLUETOOTH_MAP_SMS_H_ */