upload tizen1.0 source
[profile/ivi/obexd.git] / plugins / bmessage-parser.h
1 /*
2  *
3  *  Bmessage parser.
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  *
19  */
20
21 #define BMESSAGE_VERSION "VERSION:1.0"
22
23 enum bmessage_read_status {
24         BMESSAGE_STATUS_READ,
25         BMESSAGE_STATUS_UNREAD
26 };
27
28 enum bmessage_type {
29         BMESSAGE_TYPE_EMAIL,
30         BMESSAGE_TYPE_SMS_GSM,
31         BMESSAGE_TYPE_SMS_CDMA,
32         BMESSAGE_TYPE_MMS
33 };
34
35 enum bmessage_charset {
36         BMESSAGE_CHAR_UTF8,
37         BMESSAGE_CHAR_NONE
38 };
39
40 enum bmessage_encoding {
41         BMESSAGE_ENCODE_8BIT,
42         BMESSAGE_ENCODE_G_7BIT,
43         BMESSAGE_ENCODE_G_7BITEXT,
44         BMESSAGE_ENCODE_G_UCS2,
45         BMESSAGE_ENCODE_G_8BIT,
46         BMESSAGE_ENCODE_C_8BIT,
47         BMESSAGE_ENCODE_C_EPM,
48         BMESSAGE_ENCODE_C_7ASCII,
49         BMESSAGE_ENCODE_C_IA5,
50         BMESSAGE_ENCODE_C_UNICODE,
51         BMESSAGE_ENCODE_C_SJIS,
52         BMESSAGE_ENCODE_C_KOREAN,
53         BMESSAGE_ENCODE_C_LATINHEB,
54         BMESSAGE_ENCODE_C_LATIN,
55         BMESSAGE_ENCODE_NONE
56 };
57
58 enum bmessage_language {
59         BMESSAGE_LANGUAGE_TURKISH,
60         BMESSAGE_LANGUAGE_SPANISH,
61         BMESSAGE_LANGUAGE_PORTUGUESE,
62         BMESSAGE_LANGUAGE_ENGLISH,
63         BMESSAGE_LANGUAGE_FRENCH,
64         BMESSAGE_LANGUAGE_JAPANESE,
65         BMESSAGE_LANGUAGE_KOREAN,
66         BMESSAGE_LANGUAGE_CHINESE,
67         BMESSAGE_LANGUAGE_HEBREW,
68         BMESSAGE_LANGUAGE_UNKNOWN
69 };
70
71 enum bmessage_vcard_version {
72         BMSG_VCARD_21,
73         BMSG_VCARD_30
74 };
75
76 struct bmessage_vcard {
77         enum bmessage_vcard_version version;
78         char *n;
79         char *fn;
80         char *tel;
81         char *email;
82 };
83
84 struct bmessage_property {
85         GList *originators;
86         GList *recipients;
87         enum bmessage_read_status read_status;
88         enum bmessage_type type;
89         char *folder;
90         long int part_id;
91         enum bmessage_charset charset;
92         enum bmessage_encoding encoding;
93         enum bmessage_language language;
94         int body_length;
95 };