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