Add the base code for gtest verification
[platform/core/connectivity/bluetooth-agent.git] / map-agent / bluetooth_map_types.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_TYPES_H_
25 #define BLUETOOTH_MAP_TYPES_H_
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #define FOLDER_COUNT 5 /* INBOX, OUTBOX, SENT, DRAFT, DELETED*/
32 #define MSG_TYPES 2 /* GSM_SMS, EMAIL*/
33 #define BT_MAP_SUBJECT_MAX_LEN 50
34
35 #define FILTER_TYPE_SMS_GSM             0x01
36 #define FILTER_TYPE_SMS_CDMA    0x02
37 #define FILTER_TYPE_EMAIL               0x04
38 #define FILTER_TYPE_MMS                 0x08
39
40 #define FILTER_READ_STATUS_ALL          0x00
41 #define FILTER_READ_STATUS_UNREAD       0x01
42 #define FILTER_READ_STATUS_READ         0x02
43
44 #define FILTER_PRIORITY_ALL             0x00
45 #define FILTER_PRIORITY_HIGH    0x01
46 #define FILTER_PRIORITY_LOW             0x02
47
48 typedef struct  {
49         char *handle;
50         char *subject;
51         char *datetime;
52         char *sender_name;
53         char *sender_addressing;
54         char *recipient_name;
55         char *recipient_addressing;
56         char *type;
57         char *size;
58         char *reception_status;
59         char *attachment_size;
60         char *replyto_addressing;
61         gboolean text;
62         gboolean priority;
63         gboolean read;
64         gboolean sent;
65         gboolean protect;
66         time_t time; /* for sorting */
67 } message_info_t;
68
69 typedef enum {
70         BT_MSG_INBOX = 0,
71         BT_MSG_SENT,
72         BT_MSG_OUTBOX,
73         BT_MSG_DRAFT,
74         BT_MSG_DELETED
75 } folders_t;
76
77 typedef enum {
78         BT_MSG_SOURCE_SMS = 0,
79         BT_MSG_SOURCE_EMAIL
80 } source_t;
81
82 typedef enum {
83         BT_MAP_ID_SMS,
84         BT_MAP_ID_EMAIL
85 } bt_msg_t;
86
87 typedef struct {
88         gboolean save_copy;
89         gboolean retry_send;
90         gboolean native;
91 } msg_send_option_t;
92
93
94 typedef struct {
95         guint32 parameter_mask;
96         guint8 type;
97         char *period_begin;
98         char *period_end;
99         guint8 read_status;
100         char *recipient;
101         char *originator;
102         guint8 priority;
103 } map_msg_filter_t;
104
105 #ifdef __cplusplus
106 }
107 #endif
108 #endif /* BLUETOOTH_MAP_TYPES_H_ */