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      static constexpr const char *PRIMARY_CONTACT = "primary_contact";
231  };
232  
233  // contact_data
234  class ContactData {
235  public:
236      static constexpr const char *CONTACT_DATA_ID = "id";
237      static constexpr const char *RAW_CONTACT_ID = "raw_contact_id";
238      static constexpr const char *TYPE_ID = "type_id";
239      static constexpr const char *DETAIL_INFO = "detail_info";
240      static constexpr const char *LABEL_ID = "custom_data";
241      static constexpr const char *LABEL_NAME = "extend7";
242      static constexpr const char *FULL_NAME = "detail_info";
243      static constexpr const char *FAMILY_NAME = "family_name";
244      static constexpr const char *FAMILY_NAME_PHONETIC = "phonetic_name";
245      static constexpr const char *GIVEN_NAME = "given_name";
246      static constexpr const char *GIVEN_NAME_PHONETIC = "given_name_phonetic";
247      static constexpr const char *MIDDLE_NAME_PHONETIC = "middle_name_phonetic";
248      static constexpr const char *MIDDLE_NAME = "other_lan_last_name";
249      static constexpr const char *ALIAS_DETAIL_INFO_KEY = "alias_detail_info";
250      static constexpr const char *NAME_PREFIX = "alpha_name";
251      static constexpr const char *NAME_SUFFIX = "other_lan_first_name";
252      static constexpr const char *POBOX = "pobox";
253      static constexpr const char *POSTCODE = "postcode";
254      static constexpr const char *REGION = "region";
255      static constexpr const char *STREET = "street";
256      static constexpr const char *COUNTRY = "country";
257      static constexpr const char *CITY = "city";
258      static constexpr const char *POSITION = "position";
259      static constexpr const char *PHONETIC_NAME = "phonetic_name";
260      static constexpr const char *BLOB_DATA = "blob_data";
261  };
262  
263  enum class EmailType {
264      /**
265       * Indicates an invalid label ID.
266       */
267      INVALID_LABEL_ID = -1,
268      /**
269       * Indicates a custom label.
270       */
271      CUSTOM_LABEL = 0,
272  
273      /**
274       * Indicates a home email.
275       */
276      EMAIL_HOME = 1,
277  
278      /**
279       * Indicates a work email.
280       */
281      EMAIL_WORK = 2,
282  
283      /**
284       * Indicates an email of the OTHER type.
285       */
286      EMAIL_OTHER = 3,
287  };
288  
289  enum class EventType {
290      /**
291       * Indicates an invalid label ID.
292       */
293      INVALID_LABEL_ID = -1,
294      /**
295       * Indicates a custom label.
296       */
297      CUSTOM_LABEL = 0,
298  
299      /**
300       * Indicates an anniversary event.
301       */
302      EVENT_ANNIVERSARY = 3,
303  
304      /**
305       * Indicates an event of the OTHER type.
306       */
307      EVENT_OTHER = 4,
308  
309      /**
310       * Indicates an birthday event.
311       */
312      EVENT_BIRTHDAY = 1,
313  
314      /**
315       * Indicates a lunar birthday event.
316       */
317      EVENT_LUNAR_BIRTHDAY = 2,
318  };
319  
320  enum class EventHM4Type {
321      EVENT_HM4_ANNIVERSARY = 1,
322      EVENT_HM4_OTHER = 2,
323      EVENT_HM4_BIRTHDAY = 3,
324      EVENT_HM4_LUNAR_BIRTHDAY = 4,
325  };
326  
327  enum class ImType {
328      /**
329       * Indicates an invalid label ID.
330       */
331      INVALID_LABEL_ID = -2,
332  
333      /**
334       * Indicates a custom label.
335       */
336      CUSTOM_LABEL = -1,
337  
338      /**
339       * Indicates an AIM instant message.
340       */
341      IM_AIM = 1,
342  
343      /**
344       * Indicates a Windows Live instant message.
345       */
346      IM_MSN = 2,
347  
348      /**
349       * Indicates a Yahoo instant message.
350       */
351      IM_YAHOO = 3,
352  
353      /**
354       * Indicates a Skype instant message.
355       */
356      IM_SKYPE = 4,
357  
358      /**
359       * Indicates a QQ instant message.
360       */
361      IM_QQ = 5,
362  
363      /**
364       * Indicates an ICQ instant message.
365       */
366      IM_ICQ = 7,
367  
368      /**
369       * Indicates a huanliao instant message.
370       */
371      IM_HUANLIAO = 6,
372  
373      /**
374       * Indicates a Jabber instant message.
375       */
376      IM_JABBER = 8,
377  };
378  
379  enum class PhoneVcType {
380      /**
381       * Indicates an invalid label ID.
382       */
383      INVALID_LABEL_ID = -1,
384  
385      /**
386       * Indicates a custom label.
387       */
388      CUSTOM_LABEL = 0,
389  
390      /**
391       * Indicates a home number.
392       */
393      NUM_HOME = 1,
394  
395      /**
396       * Indicates a mobile phone number.
397       */
398      NUM_MOBILE = 2,
399  
400      /**
401       * Indicates a work number.
402       */
403      NUM_WORK = 3,
404  
405      /**
406       * Indicates a work fax number.
407       */
408      NUM_FAX_WORK = 4,
409  
410      /**
411       * Indicates a home fax number.
412       */
413      NUM_FAX_HOME = 5,
414  
415      /**
416       * Indicates a pager number.
417       */
418      NUM_PAGER = 6,
419  
420      /**
421       * Indicates a number of the OTHER type.
422       */
423      NUM_OTHER = 7,
424  
425      /**
426       * Indicates a callback number.
427       */
428      NUM_CALLBACK = 8,
429  
430      /**
431       * Indicates a car number.
432       */
433      NUM_CAR = 9,
434  
435      /**
436       * Indicates a company director number.
437       */
438      NUM_COMPANY_MAIN = 10,
439  
440      /**
441       * Indicates an Integrated Services Digital Network (ISDN) number.
442       */
443      NUM_ISDN = 11,
444  
445      /**
446       * Indicates a main number.
447       */
448      NUM_MAIN = 12,
449  
450      /**
451       * Indicates a number of the OTHER_FAX type.
452       */
453      NUM_OTHER_FAX = 13,
454  
455      /**
456       * Indicates a radio number.
457       */
458      NUM_RADIO = 14,
459  
460      /**
461       * Indicates a telex number.
462       */
463      NUM_TELEX = 15,
464  
465      /**
466       * Indicates a teletypewriter (TTY) or test-driven development (TDD) number.
467       */
468      NUM_TTY_TDD = 16,
469  
470      /**
471       * Indicates a work mobile phone number.
472       */
473      NUM_WORK_MOBILE = 17,
474  
475      /**
476       * Indicates a work pager number.
477       */
478      NUM_WORK_PAGER = 18,
479  
480      /**
481       * Indicates an assistant number.
482       */
483      NUM_ASSISTANT = 19,
484  
485      /**
486       * Indicates an MMS number.
487       */
488      NUM_MMS = 20,
489  };
490  
491  enum class PostalType {
492      /**
493       * Indicates an invalid label ID.
494       */
495      INVALID_LABEL_ID = -1,
496  
497      /**
498       * Indicates a custom label.
499       */
500      CUSTOM_LABEL = 10000,
501  
502      /**
503       * Indicates a home address.
504       */
505      ADDR_HOME = 1,
506  
507      /**
508       * Indicates a work address.
509       */
510      ADDR_WORK = 2,
511  
512      /**
513       * Indicates an address of the OTHER type.
514       */
515      ADDR_OTHER = 3,
516  };
517  
518  enum class SipType {
519      /**
520       * Indicates an invalid label ID.
521       */
522      INVALID_LABEL_ID = -1,
523  
524      /**
525       * Indicates a custom label.
526       */
527      CUSTOM_LABEL = 0,
528  
529      /**
530       * Indicates a home SIP address.
531       */
532      SIP_HOME = 1,
533  
534      /**
535       * Indicates a work SIP address.
536       */
537      SIP_WORK = 2,
538  
539      /**
540       * Indicates an SIP address of the OTHER type.
541       */
542      SIP_OTHER = 3,
543  };
544  
545  enum class RelationType {
546      /**
547       * Indicates an invalid label ID.
548       */
549      INVALID_LABEL_ID = -1,
550  
551      /**
552       * Indicates a custom label.
553       */
554      CUSTOM_LABEL = 10000,
555  
556      /**
557       * Indicates an assistant.
558       */
559      RELATION_ASSISTANT = 1,
560  
561      /**
562       * Indicates a brother.
563       */
564      RELATION_BROTHER = 2,
565  
566      /**
567       * Indicates a child.
568       */
569      RELATION_CHILD = 3,
570  
571      /**
572       * Indicates a domestic partner.
573       */
574      RELATION_DOMESTIC_PARTNER = 4,
575  
576      /**
577       * Indicates a father.
578       */
579      RELATION_FATHER = 5,
580  
581      /**
582       * Indicates a friend.
583       */
584      RELATION_FRIEND = 6,
585  
586      /**
587       * Indicates a relation manager.
588       */
589      RELATION_MANAGER = 7,
590  
591      /**
592       * Indicates a mother.
593       */
594      RELATION_MOTHER = 8,
595  
596      /**
597       * Indicates a parent.
598       */
599      RELATION_PARENT = 9,
600  
601      /**
602       * Indicates a partner.
603       */
604      RELATION_PARTNER = 10,
605  
606      /**
607       * Indicates a referrer.
608       */
609      RELATION_REFERRED_BY = 11,
610  
611      /**
612       * Indicates a relative.
613       */
614      RELATION_RELATIVE = 12,
615  
616      /**
617       * Indicates a sister.
618       */
619      RELATION_SISTER = 13,
620  
621      /**
622       * Indicates a spouse.
623       */
624      RELATION_SPOUSE = 14,
625  };
626  
627  constexpr const char *DATA_VCARD = "VCARD";
628  constexpr const char *DATA_PUBLIC = "PUBLIC";
629  
630  constexpr const char *PARAM_SEPARATOR = ";";
631  constexpr const char *PARAM_SEPARATOR_V3_V4 = ",";
632  constexpr const char *END_OF_LINE = "\r\n";
633  constexpr const char *DATA_SEPARATOR = ":";
634  constexpr const char *ITEM_SEPARATOR = ";";
635  constexpr const char *WS = " ";
636  constexpr const char *PARAM_EQUAL = "=";
637  
638  constexpr const char *PARAM_ENCODING_QP = "ENCODING=QUOTED-PRINTABLE";
639  constexpr const char *PARAM_ENCODING_BASE64_V21 = "ENCODING=BASE64";
640  constexpr const char *PARAM_ENCODING_BASE64_AS_B = "ENCODING=B";
641  
642  constexpr const char *SHIFT_JIS = "SHIFT_JIS";
643  const int32_t MAX_LINE_NUMS_BASE64_V30 = 75;
644  
645  } // namespace Telephony
646  } // namespace OHOS
647  #endif // VCARD_CONSTANT_H
648