• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef VCARD_CONSTANT_H
17 #define VCARD_CONSTANT_H
18 #include <cstdint>
19 
20 namespace OHOS {
21 namespace Telephony {
22 const int32_t DB_FAILD = -1;
23 const int32_t ID_NONE = -1;
24 constexpr const int32_t VERSION_21_NUM = 0;
25 constexpr const int32_t VERSION_30_NUM = 1;
26 constexpr const int32_t VERSION_40_NUM = 2;
27 constexpr const char *VERSION_21 = "2.1";
28 constexpr const char *VERSION_30 = "3.0";
29 constexpr const char *VERSION_40 = "4.0";
30 constexpr const char *DEFAULT_INTERMEDIATE_CHARSET = "ISO-8859-1";
31 constexpr const char *DEFAULT_IMPORT_CHARSET = "UTF-8";
32 constexpr const char *DEFAULT_EXPORT_CHARSET = "UTF-8";
33 constexpr const char *DEFAULT_ENCODING = "8BIT";
34 constexpr const char *DEFAULT_CHARSET = "UTF-8";
35 constexpr const char *VCARD_TYPE_VERSION = "VERSION";
36 constexpr const char *VCARD_TYPE_BEGIN = "BEGIN";
37 constexpr const char *VCARD_TYPE_N = "N";
38 constexpr const char *VCARD_TYPE_FN = "FN";
39 constexpr const char *VCARD_TYPE_ADR = "ADR";
40 constexpr const char *VCARD_TYPE_EMAIL = "EMAIL";
41 constexpr const char *VCARD_TYPE_NOTE = "NOTE";
42 constexpr const char *VCARD_TYPE_ORG = "ORG";
43 constexpr const char *VCARD_TYPE_SOUND = "SOUND";
44 constexpr const char *VCARD_TYPE_TEL = "TEL";
45 constexpr const char *VCARD_TYPE_TITLE = "TITLE";
46 constexpr const char *VCARD_TYPE_ROLE = "ROLE";
47 constexpr const char *VCARD_TYPE_PHOTO = "PHOTO";
48 constexpr const char *VCARD_TYPE_LOGO = "LOGO";
49 constexpr const char *VCARD_TYPE_URL = "URL";
50 constexpr const char *VCARD_TYPE_BDAY = "BDAY";
51 constexpr const char *VCARD_TYPE_ANNIVERSARY = "ANNIVERSARY";
52 constexpr const char *VCARD_TYPE_NAME = "NAME";
53 constexpr const char *VCARD_TYPE_NICKNAME = "NICKNAME";
54 constexpr const char *VCARD_TYPE_SORT_STRING = "SORT-STRING";
55 constexpr const char *VCARD_TYPE_IMPP = "IMPP";
56 constexpr const char *VCARD_TYPE_END = "END";
57 constexpr const char *VCARD_TYPE_REV = "REV";
58 constexpr const char *VCARD_TYPE_AGENT = "AGENT";
59 constexpr const char *VCARD_TYPE_GENDER = "GENDER";
60 constexpr const char *VCARD_TYPE_XML = "XML";
61 constexpr const char *VCARD_TYPE_FBURL = "FBURL";
62 constexpr const char *VCARD_TYPE_PRODID = "PRODID";
63 constexpr const char *VCARD_TYPE_RELATED = "RELATED";
64 constexpr const char *VCARD_TYPE_CATEGORIES = "CATEGORIES";
65 constexpr const char *VCARD_TYPE_CLIENTPIDMAP = "CLIENTPIDMAP";
66 constexpr const char *VCARD_TYPE_CALURI = "CALURI";
67 constexpr const char *VCARD_TYPE_X_SIP = "X-SIP";
68 constexpr const char *VCARD_TYPE_X_PHONETIC_FIRST_NAME = "X-PHONETIC-FIRST-NAME";
69 constexpr const char *VCARD_TYPE_X_PHONETIC_MIDDLE_NAME = "X-PHONETIC-MIDDLE-NAME";
70 constexpr const char *VCARD_TYPE_X_PHONETIC_LAST_NAME = "X-PHONETIC-LAST-NAME";
71 constexpr const char *VCARD_TYPE_X_PHONETIC = "X-PHONETIC";
72 constexpr const char *VCARD_TYPE_X_AIM = "X-AIM";
73 constexpr const char *VCARD_TYPE_X_MSN = "X-MSN";
74 constexpr const char *VCARD_TYPE_X_YAHOO = "X-YAHOO";
75 constexpr const char *VCARD_TYPE_X_ICQ = "X-ICQ";
76 constexpr const char *VCARD_TYPE_X_JABBER = "X-JABBER";
77 constexpr const char *VCARD_TYPE_X_SKYPE_USERNAME = "X-SKYPE-USERNAME";
78 constexpr const char *VCARD_TYPE_X_QQ = "X-QQ";
79 constexpr const char *VCARD_TYPE_X_NETMEETING = "X-NETMEETING";
80 constexpr const char *VCARD_TYPE_X_SKYPE_PSTNNUMBER = "X-SKYPE-PSTNNUMBER";
81 constexpr const char *VCARD_TYPE_X_HUANLIAO = "X-HUANLIAO";
82 
83 constexpr const char *VCARD_TYPE_X_CLASS = "X-CLASS";
84 constexpr const char *VCARD_TYPE_X_REDUCTION = "X-REDUCTION";
85 constexpr const char *VCARD_TYPE_X_NO = "X-NO";
86 constexpr const char *VCARD_TYPE_X_DCM_HMN_MODE = "X-DCM-HMN-MODE";
87 constexpr const char *VCARD_TYPE_X_OHOS_CUSTOM = "X_OHOS_CUSTOM";
88 constexpr const char *VCARD_TYPE_X_GROUP = "X-GROUP-MEMBERSHIP";
89 
90 constexpr const char *VCARD_TYPE_X_MOBILE_CUSTOM = "X-OHOS-CUSTOM";
91 constexpr const char *VCARD_TYPE_X_MOBILE_RELATION = "RELATION";
92 constexpr const char *VCARD_TYPE_X_MOBILE_EVENTS = "CONTACT_EVENT";
93 
94 constexpr const char *VCARD_PARAM_TYPE = "TYPE";
95 constexpr const char *VCARD_PARAM_X_IRMC_N = "X-IRMC-N";
96 
97 constexpr const char *VCARD_PARAM_TYPE_HOME = "HOME";
98 constexpr const char *VCARD_PARAM_TYPE_WORK = "WORK";
99 constexpr const char *VCARD_PARAM_TYPE_FAX = "FAX";
100 constexpr const char *VCARD_PARAM_TYPE_CELL = "CELL";
101 constexpr const char *VCARD_PARAM_TYPE_VOICE = "VOICE";
102 constexpr const char *VCARD_PARAM_TYPE_INTERNET = "INTERNET";
103 
104 constexpr const char *VCARD_PARAM_VALUE = "VALUE";
105 constexpr const char *VCARD_PARAM_CHARSET = "CHARSET";
106 constexpr const char *VCARD_PARAM_ENCODING = "ENCODING";
107 
108 constexpr const char *VCARD_PARAM_TYPE_PREF = "PREF";
109 
110 constexpr const char *VCARD_PARAM_TYPE_CAR = "CAR";
111 constexpr const char *VCARD_PARAM_TYPE_ISDN = "ISDN";
112 constexpr const char *VCARD_PARAM_TYPE_PAGER = "PAGER";
113 constexpr const char *VCARD_PARAM_TYPE_TLX = "TLX";
114 
115 constexpr const char *VCARD_PARAM_TYPE_MODEM = "MODEM";
116 constexpr const char *VCARD_PARAM_TYPE_MSG = "MSG";
117 constexpr const char *VCARD_PARAM_TYPE_BBS = "BBS";
118 constexpr const char *VCARD_PARAM_TYPE_VIDEO = "VIDEO";
119 
120 constexpr const char *VCARD_PARAM_TYPE_UID = "UID";
121 
122 constexpr const char *VCARD_PARAM_ENCODING_7BIT = "7BIT";
123 constexpr const char *VCARD_PARAM_ENCODING_8BIT = "8BIT";
124 constexpr const char *VCARD_PARAM_ENCODING_QP = "QUOTED-PRINTABLE";
125 constexpr const char *VCARD_PARAM_ENCODING_BASE64 = "BASE64";
126 constexpr const char *VCARD_PARAM_ENCODING_B = "B";
127 
128 constexpr const char *VCARD_PARAM_PHONE_EXTRA_TYPE_CALLBACK = "CALLBACK";
129 constexpr const char *VCARD_PARAM_PHONE_EXTRA_TYPE_RADIO = "RADIO";
130 constexpr const char *VCARD_PARAM_PHONE_EXTRA_TYPE_TTY_TDD = "TTY-TDD";
131 constexpr const char *VCARD_PARAM_PHONE_EXTRA_TYPE_ASSISTANT = "ASSISTANT";
132 constexpr const char *VCARD_PARAM_PHONE_EXTRA_TYPE_COMPANY_MAIN = "COMPANY-MAIN";
133 constexpr const char *VCARD_PARAM_PHONE_EXTRA_TYPE_OTHER = "OTHER";
134 
135 constexpr const char *VCARD_PARAM_ADR_TYPE_PARCEL = "PARCEL";
136 constexpr const char *VCARD_PARAM_ADR_TYPE_DOM = "DOM";
137 constexpr const char *VCARD_PARAM_ADR_TYPE_INTL = "INTL";
138 constexpr const char *VCARD_PARAM_ADR_EXTRA_TYPE_OTHER = "OTHER";
139 
140 constexpr const char *VCARD_PARAM_LANGUAGE = "LANGUAGE";
141 
142 constexpr const char *VCARD_PARAM_SORT_AS = "SORT-AS";
143 
144 constexpr const char *VCARD_PARAM_EXTRA_TYPE_COMPANY = "COMPANY";
145 constexpr const char *VCARD_EXPORT_FILE_PATH = "/data/storage/el4/base/files/";
146 constexpr const char *VCARD_TIME_FORMAT = "%Y%m%d_%H%M%S";
147 constexpr const char *VCARD_FILE_EXTENSION = ".vcf";
148 
149 constexpr const char *VCARD_HEX_TABLE = "0123456789ABCDEF";
150 constexpr const char VCARD_HALF_BYTE = 4;
151 
152 constexpr const int32_t VCARD_PHONE_NUM_FORMAT_JAPAN = 2;
153 constexpr const int32_t VCARD_PHONE_NUM_FORMAT_NANP = 1;
154 constexpr const int32_t SIZE_ZERO = 0;
155 constexpr const int32_t SIZE_ONE = 1;
156 constexpr const int32_t SIZE_TWO = 2;
157 constexpr const int32_t SIZE_THREE = 3;
158 constexpr const int32_t SIZE_FOUR = 4;
159 constexpr const int32_t SIZE_FIVE = 5;
160 constexpr const int32_t VALUE_INDEX_ZERO = 0;
161 constexpr const int32_t VALUE_INDEX_ONE = 1;
162 constexpr const int32_t VALUE_INDEX_TWO = 2;
163 constexpr const int32_t VALUE_INDEX_THREE = 3;
164 constexpr const int32_t VALUE_INDEX_FOUR = 4;
165 constexpr const int32_t VALUE_INDEX_FIVE = 5;
166 constexpr const int32_t VALUE_LEN_ZERO = 0;
167 constexpr const int32_t VALUE_LEN_ONE = 1;
168 constexpr const int32_t VALUE_LEN_TWO = 2;
169 constexpr const int32_t VALUE_LEN_THREE = 3;
170 constexpr const int32_t VALUE_LEN_FOUR = 4;
171 constexpr const int32_t VALUE_LEN_FIVE = 5;
172 constexpr const int32_t CONTACTS_NOT_DELETED = 0;
173 constexpr const int32_t ENCODEN_QUOTED_PRIN_MAX_LEN = 67;
174 constexpr const int32_t NUM_MINUS_ONE = -1;
175 constexpr const int32_t DECODE_CHAR_MAX_SIZE = 16;
176 constexpr const int32_t BATCH_INSERT_MAX_SIZE = 300;
177 constexpr const int32_t INT_64_LENTGH = 19;
178 
179 class TypeId {
180 public:
181     static constexpr int32_t EMAIL = 1;
182     static constexpr int32_t IM = 2;
183     static constexpr int32_t NICKNAME = 3;
184     static constexpr int32_t ORGANIZATION = 4;
185     static constexpr int32_t PHONE = 5;
186     static constexpr int32_t NAME = 6;
187     static constexpr int32_t POSTAL_ADDRESS = 7;
188     static constexpr int32_t PHOTO = 8;
189     static constexpr int32_t GROUP = 9;
190     static constexpr int32_t NOTE = 10;
191     static constexpr int32_t CONTACT_EVENT = 11;
192     static constexpr int32_t WEBSITE = 12;
193     static constexpr int32_t RELATION = 13;
194     static constexpr int32_t SIP_ADDRESS = 17;
195 };
196 
197 class TypeData {
198 public:
199     static constexpr const char *EMAIL = "email";
200     static constexpr const char *IM = "im";
201     static constexpr const char *NICKNAME = "nickname";
202     static constexpr const char *ORGANIZATION = "organization";
203     static constexpr const char *PHONE = "phone";
204     static constexpr const char *NAME = "name";
205     static constexpr const char *ADDRESS = "postal_address";
206     static constexpr const char *PHOTO = "photo";
207     static constexpr const char *GROUP_MEMBERSHIP = "group_membership";
208     static constexpr const char *NOTE = "note";
209     static constexpr const char *CONTACT_EVENT = "contact_event";
210     static constexpr const char *WEBSITE = "website";
211     static constexpr const char *RELATION = "relation";
212     static constexpr const char *CONTACT_MISC = "contact_misc";
213     static constexpr const char *HICALL_DEVICE = "hicall_device";
214     static constexpr const char *CAMCARD = "camcard";
215     static constexpr const char *SIP_ADDRESS = "sip_address";
216 };
217 
218 // account
219 class Account {
220 public:
221     static constexpr const char *ID = "id";
222     static constexpr const char *ACCOUNT_TYPE = "account_type";
223 };
224 
225 // contact
226 class Contact {
227 public:
228     static constexpr const char *ID = "id";
229 };
230 
231 // raw_contact
232 class RawContact {
233 public:
234     static constexpr const char *ID = "id";
235     static constexpr const char *ACCOUNT_ID = "account_id";
236     static constexpr const char *CONTACT_ID = "contact_id";
237     static constexpr const char *IS_DELETED = "is_deleted";
238     static constexpr const char *PRIMARY_CONTACT = "primary_contact";
239     static constexpr const char *UUID = "uuid";
240     static constexpr const char *DISPLAY_NAME = "display_name";
241 };
242 
243 // contact_data
244 class ContactData {
245 public:
246     static constexpr const char *CONTACT_DATA_ID = "id";
247     static constexpr const char *RAW_CONTACT_ID = "raw_contact_id";
248     static constexpr const char *TYPE_ID = "type_id";
249     static constexpr const char *DETAIL_INFO = "detail_info";
250     static constexpr const char *LABEL_ID = "custom_data";
251     static constexpr const char *LABEL_NAME = "extend7";
252     static constexpr const char *FULL_NAME = "detail_info";
253     static constexpr const char *FAMILY_NAME = "family_name";
254     static constexpr const char *FAMILY_NAME_PHONETIC = "phonetic_name";
255     static constexpr const char *GIVEN_NAME = "given_name";
256     static constexpr const char *GIVEN_NAME_PHONETIC = "given_name_phonetic";
257     static constexpr const char *MIDDLE_NAME_PHONETIC = "middle_name_phonetic";
258     static constexpr const char *MIDDLE_NAME = "other_lan_last_name";
259     static constexpr const char *ALIAS_DETAIL_INFO_KEY = "alias_detail_info";
260     static constexpr const char *NAME_PREFIX = "alpha_name";
261     static constexpr const char *NAME_SUFFIX = "other_lan_first_name";
262     static constexpr const char *POBOX = "pobox";
263     static constexpr const char *POSTCODE = "postcode";
264     static constexpr const char *REGION = "region";
265     static constexpr const char *STREET = "street";
266     static constexpr const char *COUNTRY = "country";
267     static constexpr const char *CITY = "city";
268     static constexpr const char *POSITION = "position";
269     static constexpr const char *PHONETIC_NAME = "phonetic_name";
270     static constexpr const char *BLOB_DATA = "blob_data";
271 };
272 
273 // group
274 class Group {
275 public:
276     static constexpr const char *GROUP_NAME = "group_name";
277     static constexpr const char *GROUP_ID = "id";
278     static constexpr const char *GROUP_ACCOUNT_ID = "account_id";
279     static constexpr const char *GROUP_IS_DELETED = "is_deleted";
280 };
281 
282 enum class EmailType {
283     /**
284      * Indicates an invalid label ID.
285      */
286     INVALID_LABEL_ID = -1,
287     /**
288      * Indicates a custom label.
289      */
290     CUSTOM_LABEL = 10000,
291 
292     /**
293      * Indicates a home email.
294      */
295     EMAIL_HOME = 1,
296 
297     /**
298      * Indicates a work email.
299      */
300     EMAIL_WORK = 2,
301 
302     /**
303      * Indicates an email of the OTHER type.
304      */
305     EMAIL_OTHER = 3,
306 };
307 
308 enum class EventType {
309     /**
310      * Indicates an invalid label ID.
311      */
312     INVALID_LABEL_ID = -1,
313     /**
314      * Indicates a custom label.
315      */
316     CUSTOM_LABEL = 0,
317 
318     /**
319      * Indicates an anniversary event.
320      */
321     EVENT_ANNIVERSARY = 3,
322 
323     /**
324      * Indicates an event of the OTHER type.
325      */
326     EVENT_OTHER = 4,
327 
328     /**
329      * Indicates an birthday event.
330      */
331     EVENT_BIRTHDAY = 1,
332 
333     /**
334      * Indicates a lunar birthday event.
335      */
336     EVENT_LUNAR_BIRTHDAY = 2,
337 };
338 
339 enum class EventHM4Type {
340     EVENT_HM4_ANNIVERSARY = 1,
341     EVENT_HM4_OTHER = 2,
342     EVENT_HM4_BIRTHDAY = 3,
343     EVENT_HM4_LUNAR_BIRTHDAY = 4,
344 };
345 
346 enum class ImType {
347     /**
348      * Indicates an invalid label ID.
349      */
350     INVALID_LABEL_ID = -2,
351 
352     /**
353      * Indicates a custom label.
354      */
355     CUSTOM_LABEL = -1,
356 
357     /**
358      * Indicates an AIM instant message.
359      */
360     IM_AIM = 1,
361 
362     /**
363      * Indicates a Windows Live instant message.
364      */
365     IM_MSN = 2,
366 
367     /**
368      * Indicates a Yahoo instant message.
369      */
370     IM_YAHOO = 3,
371 
372     /**
373      * Indicates a Skype instant message.
374      */
375     IM_SKYPE = 4,
376 
377     /**
378      * Indicates a QQ instant message.
379      */
380     IM_QQ = 5,
381 
382     /**
383      * Indicates an ICQ instant message.
384      */
385     IM_ICQ = 7,
386 
387     /**
388      * Indicates a huanliao instant message.
389      */
390     IM_HUANLIAO = 6,
391 
392     /**
393      * Indicates a Jabber instant message.
394      */
395     IM_JABBER = 8,
396 };
397 
398 enum class PhoneVcType {
399     /**
400      * Indicates an invalid label ID.
401      */
402     INVALID_LABEL_ID = -1,
403 
404     /**
405      * Indicates a custom label.
406      */
407     CUSTOM_LABEL = 10000,
408 
409     /**
410      * Indicates a home number.
411      */
412     NUM_HOME = 1,
413 
414     /**
415      * Indicates a mobile phone number.
416      */
417     NUM_MOBILE = 2,
418 
419     /**
420      * Indicates a work number.
421      */
422     NUM_WORK = 3,
423 
424     /**
425      * Indicates a work fax number.
426      */
427     NUM_FAX_WORK = 4,
428 
429     /**
430      * Indicates a home fax number.
431      */
432     NUM_FAX_HOME = 5,
433 
434     /**
435      * Indicates a pager number.
436      */
437     NUM_PAGER = 6,
438 
439     /**
440      * Indicates a number of the OTHER type.
441      */
442     NUM_OTHER = 7,
443 
444     /**
445      * Indicates a callback number.
446      */
447     NUM_CALLBACK = 8,
448 
449     /**
450      * Indicates a car number.
451      */
452     NUM_CAR = 9,
453 
454     /**
455      * Indicates a company director number.
456      */
457     NUM_COMPANY_MAIN = 10,
458 
459     /**
460      * Indicates an Integrated Services Digital Network (ISDN) number.
461      */
462     NUM_ISDN = 11,
463 
464     /**
465      * Indicates a main number.
466      */
467     NUM_MAIN = 12,
468 
469     /**
470      * Indicates a number of the OTHER_FAX type.
471      */
472     NUM_OTHER_FAX = 13,
473 
474     /**
475      * Indicates a radio number.
476      */
477     NUM_RADIO = 14,
478 
479     /**
480      * Indicates a telex number.
481      */
482     NUM_TELEX = 15,
483 
484     /**
485      * Indicates a teletypewriter (TTY) or test-driven development (TDD) number.
486      */
487     NUM_TTY_TDD = 16,
488 
489     /**
490      * Indicates a work mobile phone number.
491      */
492     NUM_WORK_MOBILE = 17,
493 
494     /**
495      * Indicates a work pager number.
496      */
497     NUM_WORK_PAGER = 18,
498 
499     /**
500      * Indicates an assistant number.
501      */
502     NUM_ASSISTANT = 19,
503 
504     /**
505      * Indicates an MMS number.
506      */
507     NUM_MMS = 20,
508 };
509 
510 enum class PostalType {
511     /**
512      * Indicates an invalid label ID.
513      */
514     INVALID_LABEL_ID = -1,
515 
516     /**
517      * Indicates a custom label.
518      */
519     CUSTOM_LABEL = 10000,
520 
521     /**
522      * Indicates a home address.
523      */
524     ADDR_HOME = 1,
525 
526     /**
527      * Indicates a work address.
528      */
529     ADDR_WORK = 2,
530 
531     /**
532      * Indicates an address of the OTHER type.
533      */
534     ADDR_OTHER = 3,
535 };
536 
537 enum class SipType {
538     /**
539      * Indicates an invalid label ID.
540      */
541     INVALID_LABEL_ID = -1,
542 
543     /**
544      * Indicates a custom label.
545      */
546     CUSTOM_LABEL = 0,
547 
548     /**
549      * Indicates a home SIP address.
550      */
551     SIP_HOME = 1,
552 
553     /**
554      * Indicates a work SIP address.
555      */
556     SIP_WORK = 2,
557 
558     /**
559      * Indicates an SIP address of the OTHER type.
560      */
561     SIP_OTHER = 3,
562 };
563 
564 enum class RelationType {
565     /**
566      * Indicates an invalid label ID.
567      */
568     INVALID_LABEL_ID = -1,
569 
570     /**
571      * Indicates a custom label.
572      */
573     CUSTOM_LABEL = 10000,
574 
575     /**
576      * Indicates an assistant.
577      */
578     RELATION_ASSISTANT = 1,
579 
580     /**
581      * Indicates a brother.
582      */
583     RELATION_BROTHER = 2,
584 
585     /**
586      * Indicates a child.
587      */
588     RELATION_CHILD = 3,
589 
590     /**
591      * Indicates a domestic partner.
592      */
593     RELATION_DOMESTIC_PARTNER = 4,
594 
595     /**
596      * Indicates a father.
597      */
598     RELATION_FATHER = 5,
599 
600     /**
601      * Indicates a friend.
602      */
603     RELATION_FRIEND = 6,
604 
605     /**
606      * Indicates a relation manager.
607      */
608     RELATION_MANAGER = 7,
609 
610     /**
611      * Indicates a mother.
612      */
613     RELATION_MOTHER = 8,
614 
615     /**
616      * Indicates a parent.
617      */
618     RELATION_PARENT = 9,
619 
620     /**
621      * Indicates a partner.
622      */
623     RELATION_PARTNER = 10,
624 
625     /**
626      * Indicates a referrer.
627      */
628     RELATION_REFERRED_BY = 11,
629 
630     /**
631      * Indicates a relative.
632      */
633     RELATION_RELATIVE = 12,
634 
635     /**
636      * Indicates a sister.
637      */
638     RELATION_SISTER = 13,
639 
640     /**
641      * Indicates a spouse.
642      */
643     RELATION_SPOUSE = 14,
644 };
645 
646 constexpr const char *DATA_VCARD = "VCARD";
647 constexpr const char *DATA_PUBLIC = "PUBLIC";
648 
649 constexpr const char *PARAM_SEPARATOR = ";";
650 constexpr const char *PARAM_SEPARATOR_V3_V4 = ",";
651 constexpr const char *END_OF_LINE = "\r\n";
652 constexpr const char *DATA_SEPARATOR = ":";
653 constexpr const char *ITEM_SEPARATOR = ";";
654 constexpr const char *WS = " ";
655 constexpr const char *PARAM_EQUAL = "=";
656 
657 constexpr const char *PARAM_ENCODING_QP = "ENCODING=QUOTED-PRINTABLE";
658 constexpr const char *PARAM_ENCODING_BASE64_V21 = "ENCODING=BASE64";
659 constexpr const char *PARAM_ENCODING_BASE64_AS_B = "ENCODING=B";
660 
661 constexpr const char *SHIFT_JIS = "SHIFT_JIS";
662 const int32_t MAX_LINE_NUMS_BASE64_V30 = 75;
663 
664 } // namespace Telephony
665 } // namespace OHOS
666 #endif // VCARD_CONSTANT_H
667