Tizen 2.0 Release
[framework/system/sync-agent.git] / src / fw-plugins / common-public / contact / include / in_datastore_info_contact.h
1 /*
2  * sync-agent
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 #ifndef IN_DATASTORE_INFO_CONTACT_H_
19 #define IN_DATASTORE_INFO_CONTACT_H_
20
21 /* ITEM COUNT */
22 #define MAX_ITEM_COUNT_CONTACT          65535
23
24 /* FIELD COUNT */
25 #define MAX_FIELD_COUNT_TEL                     3
26 #define MAX_FIELD_COUNT_EMAIL           2
27 #define MAX_FIELD_COUNT_URL                     1
28 #define MAX_FIELD_COUNT_ADDR            2
29
30 /* NAME FIELD */
31 #define MAX_LEN_FAMILY                          2000
32 #define MAX_LEN_GIVEN                           2000
33 #define MAX_LEN_MIDDLE                          2000
34 #define MAX_LEN_PREFIX                          FALSE
35 #define MAX_LEN_SUFFIX                          2000
36 #define MAX_LEN_FORMATTED                       FALSE
37 #define MAX_LEN_NICKNAME                        2000
38 #define MAX_LEN_READING_NAME                    FALSE
39 #define MAX_LEN_READING_LAST_NAME               FALSE
40
41 /* TEL FIELD */
42 #define MAX_LEN_TEL                                     100
43
44 /* EMAIL FIELD */
45 #define MAX_LEN_EMAIL                           100
46
47 /* URL FIELD */
48 #define MAX_LEN_URL                                     100
49
50 /* ADDR FIELD */
51 #define MAX_LEN_POBOX                           FALSE
52 #define MAX_LEN_EXT_ADDR                        FALSE
53 #define MAX_LEN_STREET                          50
54 #define MAX_LEN_LOCALITY                        50
55 #define MAX_LEN_REGION                          50
56 #define MAX_LEN_POSTAL_CODE                     50
57 #define MAX_LEN_COUNTRY                         20
58
59 /* DEVICE CONTACT */
60 #define MAX_LEN_NOTE                            100
61 #define MAX_LEN_COMPANY                         50
62 #define MAX_LEN_DEPARTMENT                      FALSE
63 #define MAX_LEN_TITLE                           FALSE
64 #define MAX_LEN_HOBBY                           FALSE
65 #define MIN_PERIOD_YEAR                         1970
66 #define MAX_PERIOD_YEAR                         2037
67 #define MAX_LEN_PHOTO                           46
68
69 /* FEATURE */
70 #define IF_SUPPORT_GENDER                       FALSE
71
72 /* SIM CONTACT */
73 #define TYPE_SIM
74 #define MAX_LEN_NAME
75 #define MAX_LEN_NUMBER
76 #define MAX_COUNT_ANR
77 #define MAX_LEN_ANR
78 #define MAX_LEN_SNE
79 #define IF_USING_SIM
80
81 #endif                          /* IN_DATASTORE_INFO_CONTACT_H_ */