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