epoc32/include/cntdef.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 cntdef.h
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CNTDEF_H__
       
    17 #define __CNTDEF_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 #if !( defined __SYMBIAN_CNTMODEL_HIDE_DBMS__ && defined __SYMBIAN_CNTMODEL_USE_SQLITE__ )
       
    22 #include <d32dbms.h>
       
    23 #else
       
    24 #include <s32std.h>
       
    25 #include <f32file.h>
       
    26 #endif
       
    27 
       
    28 #include <cntdef.hrh>
       
    29 
       
    30 
       
    31 // Constants
       
    32 
       
    33 /**
       
    34 @internalTechnology
       
    35 @released
       
    36 */
       
    37 const TInt KSpeedDialPhoneLength = 64;
       
    38 
       
    39 /**
       
    40 @internalTechnology
       
    41 @released
       
    42 */
       
    43 const TInt KCntMinSpeedDialIndex = 1;
       
    44 
       
    45 /**
       
    46 @internalTechnology
       
    47 @released
       
    48 */
       
    49 const TInt KCntMaxSpeedDialIndex = 9;
       
    50 
       
    51 /**
       
    52 Phone Match Length
       
    53 @internalTechnology
       
    54 @released
       
    55 */
       
    56 const TInt KMaxPhoneMatchLength = 15;
       
    57 
       
    58 /**
       
    59 @internalTechnology
       
    60 @released
       
    61 */
       
    62 const TInt KLowerSevenDigits = 7;
       
    63 
       
    64 /**
       
    65 Used for firstname, lastname, companyname, secondname and their
       
    66 associated pronunciation fields and e-mail address
       
    67 @internalTechnology
       
    68 @released
       
    69 */
       
    70 const TInt KCntMaxTextFieldLength=255;
       
    71 
       
    72 // Type definitions
       
    73 
       
    74 /**
       
    75 @internalTechnology
       
    76 @released
       
    77 */
       
    78 typedef TBuf<KSpeedDialPhoneLength> TSpeedDialPhoneNumber;
       
    79 
       
    80 /** Contact item ID. These are used to uniquely identify contact items within a
       
    81 contacts database. Contact items include contact cards, contact card templates,
       
    82 contact card groups and own cards. Contact item IDs are also used to uniquely
       
    83 identify agents.
       
    84 @publishedAll
       
    85 @released
       
    86 */
       
    87 typedef TInt32 TContactItemId;
       
    88 
       
    89 /** A UID which identifies a contact item field's type. The possible values are
       
    90 defined as UIDs in cntdef.h.
       
    91 @publishedAll
       
    92 @released
       
    93 */
       
    94 typedef TUid TFieldType;
       
    95 
       
    96 /** A contact item field's storage type.
       
    97 
       
    98 This is an unsigned integer value which identifies the type of data stored
       
    99 in a contact item field. The possible values are defined in cntdef.hrh as:
       
   100 
       
   101 - KStorageTypeText (used by CContactTextFields)
       
   102 
       
   103 - KStorageTypeStore (used by CContactStoreFields)
       
   104 
       
   105 - KStorageTypeContactItemId (used by CContactAgentFields)
       
   106 
       
   107 - KStorageTypeDateTime (used by CContactDateFields)
       
   108 
       
   109 Note that numeric fields are not supported. Numbers (e.g. telephone
       
   110 numbers) are stored in the database using text fields.
       
   111 @publishedAll
       
   112 @released
       
   113 */
       
   114 typedef TUint TStorageType;
       
   115 
       
   116 /** Machine identifier.
       
   117 
       
   118 This is used when synchronising the contact database to identify the
       
   119 machine with which the database has been synchronised.
       
   120 @see CContactDatabase::SetLastSyncDateL()
       
   121 @see CContactDatabase::GetLastSyncDateL().
       
   122 @publishedAll
       
   123 @released
       
   124 */
       
   125 typedef TInt32 TContactSyncId;
       
   126 
       
   127 /** Stores the value of KUidContactsDbFile as an integer.
       
   128 @publishedAll
       
   129 @released
       
   130 */
       
   131 const TInt KUidContactsDbFileValue=0x100065FF;
       
   132 /**
       
   133 The third UID of the contacts database file, c:\\system\\data\\contacts.cdb.
       
   134 This should be used by file recogniser implementations.
       
   135 @publishedAll
       
   136 @released
       
   137 */
       
   138 const TUid KUidContactsDbFile={KUidContactsDbFileValue};
       
   139 
       
   140 
       
   141 /** NULL contact item ID. Indicates that no contact item is present.
       
   142 @publishedAll
       
   143 @released
       
   144 */
       
   145 const TContactItemId KNullContactId=-1;
       
   146 /**
       
   147 The ID of the system template.
       
   148 @publishedAll
       
   149 @released
       
   150 */
       
   151 const TContactItemId KGoldenTemplateId=0;
       
   152 
       
   153 /** Identifies a vCard that has been pasted from the clipboard into the Contacts application.
       
   154 @publishedAll
       
   155 @released
       
   156 */
       
   157 const TUid KClipboardUidTypeVCard={0x100038f6};
       
   158 
       
   159 /** Identifies a contact card (CContactCard).
       
   160 @publishedAll
       
   161 @released
       
   162 */
       
   163 const TUid KUidContactCard={KUidContactCardValue};
       
   164 /** Identifies a contact group (CContactGroup).
       
   165 @publishedAll
       
   166 @released
       
   167 */
       
   168 const TUid KUidContactGroup={KUidContactGroupValue};
       
   169 /** Identifies the system template (CContactTemplate).
       
   170 @publishedAll
       
   171 @released
       
   172 */
       
   173 const TUid KUidContactTemplate={KUidContactTemplateValue};
       
   174 /** Identifies an own card (CContactOwnCard).
       
   175 @publishedAll
       
   176 @released
       
   177 */
       
   178 const TUid KUidContactOwnCard={KUidContactOwnCardValue}; 
       
   179 /** Identifies a non-system template (CContactCardTemplate). 
       
   180 @publishedAll
       
   181 @released
       
   182 */
       
   183 const TUid KUidContactCardTemplate={KUidContactCardTemplateValue};
       
   184 /** The UID that identifies ICC entries. These are a special type of
       
   185 contact item that are stored in the SIM (ICC) card on the phone.
       
   186 
       
   187 @publishedAll
       
   188 @released
       
   189 */
       
   190 const TUid KUidContactICCEntry={KUidContactICCEntryValue};
       
   191 
       
   192 /** Identifies any CContactItem-derived class (all of the above).
       
   193 @publishedAll
       
   194 @released
       
   195 */
       
   196 const TUid KUidContactItem={0x10005673};
       
   197 /** This identifies the CContactCard and CContactGroup classes.
       
   198 It is used internally by the contacts model.
       
   199 @publishedAll
       
   200 @released
       
   201 */
       
   202 const TUid KUidContactCardOrGroup={0x10005F71};
       
   203 
       
   204 
       
   205 /*
       
   206  * Speed-dial UIDs.
       
   207  * These are used to indicate the speed-dial position for a particular field.
       
   208  * They are added to the content type of a phone number field set as a
       
   209  * speed-dial using CContactDatabase::SetFieldAsSpeedDialL().
       
   210  */
       
   211 /** Field maps to the first speed dial position.
       
   212 @publishedAll
       
   213 @released
       
   214 */
       
   215 const TUid KUidSpeedDialOne={KUidSpeedDialOneValue};
       
   216 /** Field maps to the second speed dial position.
       
   217 @publishedAll
       
   218 @released
       
   219 */
       
   220 const TUid KUidSpeedDialTwo={KUidSpeedDialTwoValue};
       
   221 /** Field maps to the third speed dial position.
       
   222 @publishedAll
       
   223 @released
       
   224 */
       
   225 const TUid KUidSpeedDialThree={KUidSpeedDialThreeValue};
       
   226 /** Field maps to the fourth speed dial position.
       
   227 @publishedAll
       
   228 @released
       
   229 */
       
   230 const TUid KUidSpeedDialFour={KUidSpeedDialFourValue};
       
   231 /** Field maps to the fifth speed dial position.
       
   232 @publishedAll
       
   233 @released
       
   234 */
       
   235 const TUid KUidSpeedDialFive={KUidSpeedDialFiveValue};
       
   236 /** Field maps to the sixth speed dial position.
       
   237 @publishedAll
       
   238 @released
       
   239 */
       
   240 const TUid KUidSpeedDialSix={KUidSpeedDialSixValue};
       
   241 /** Field maps to the seventh speed dial position.
       
   242 @publishedAll
       
   243 @released
       
   244 */
       
   245 const TUid KUidSpeedDialSeven={KUidSpeedDialSevenValue};
       
   246 /** Field maps to the eighth speed dial position.
       
   247 @publishedAll
       
   248 @released
       
   249 */
       
   250 const TUid KUidSpeedDialEight={KUidSpeedDialEightValue};
       
   251 /** Field maps to the ninth speed dial position.
       
   252 @publishedAll
       
   253 @released
       
   254 */
       
   255 const TUid KUidSpeedDialNine={KUidSpeedDialNineValue};
       
   256 
       
   257 /*
       
   258  * Contact field type UIDs.
       
   259  */
       
   260 /** Address field.
       
   261 @publishedAll
       
   262 @released
       
   263 */
       
   264 const TUid KUidContactFieldAddress={KUidContactFieldAddressValue};
       
   265 /** Post office box field.
       
   266 @publishedAll
       
   267 @released
       
   268 */
       
   269 const TUid KUidContactFieldPostOffice={KUidContactFieldPostOfficeValue};
       
   270 /** Extended address field.
       
   271 @publishedAll
       
   272 @released
       
   273 */
       
   274 const TUid KUidContactFieldExtendedAddress={KUidContactFieldExtendedAddressValue};
       
   275 /** Locality field.
       
   276 @publishedAll
       
   277 @released
       
   278 */
       
   279 const TUid KUidContactFieldLocality={KUidContactFieldLocalityValue};
       
   280 /** Region field.
       
   281 @publishedAll
       
   282 @released
       
   283 */
       
   284 const TUid KUidContactFieldRegion={KUidContactFieldRegionValue};
       
   285 /** Post code field.
       
   286 @publishedAll
       
   287 @released
       
   288 */
       
   289 const TUid KUidContactFieldPostcode={KUidContactFieldPostCodeValue};
       
   290 /** Country field.
       
   291 @publishedAll
       
   292 @released
       
   293 */
       
   294 const TUid KUidContactFieldCountry={KUidContactFieldCountryValue};
       
   295 
       
   296 /** Company name field.
       
   297 @publishedAll
       
   298 @released
       
   299 */
       
   300 const TUid KUidContactFieldCompanyName={KUidContactFieldCompanyNameValue};
       
   301 /** Company name pronunciation field.
       
   302 @publishedAll
       
   303 @released
       
   304 */
       
   305 const TUid KUidContactFieldCompanyNamePronunciation={KUidContactFieldCompanyNamePronunciationValue};
       
   306 /** Phone number field.
       
   307 @publishedAll
       
   308 @released
       
   309 */
       
   310 const TUid KUidContactFieldPhoneNumber={KUidContactFieldPhoneNumberValue};
       
   311 /** Given name field.
       
   312 @publishedAll
       
   313 @released
       
   314 */
       
   315 const TUid KUidContactFieldGivenName={KUidContactFieldGivenNameValue};
       
   316 /** Family name field.
       
   317 @publishedAll
       
   318 @released
       
   319 */
       
   320 const TUid KUidContactFieldFamilyName={KUidContactFieldFamilyNameValue};
       
   321 /** Given name pronunciation field.
       
   322 @publishedAll
       
   323 @released
       
   324 */
       
   325 const TUid KUidContactFieldGivenNamePronunciation={KUidContactFieldGivenNamePronunciationValue};
       
   326 /** Family name pronunciation field.
       
   327 @publishedAll
       
   328 @released
       
   329 */
       
   330 const TUid KUidContactFieldFamilyNamePronunciation={KUidContactFieldFamilyNamePronunciationValue};
       
   331 /** Middle name field.
       
   332 @publishedAll
       
   333 @released
       
   334 */
       
   335 const TUid KUidContactFieldAdditionalName={KUidContactFieldAdditionalNameValue};
       
   336 /** Name suffix field.
       
   337 @publishedAll
       
   338 @released
       
   339 */
       
   340 const TUid KUidContactFieldSuffixName={KUidContactFieldSuffixNameValue};
       
   341 /** Name prefix field.
       
   342 @publishedAll
       
   343 @released
       
   344 */
       
   345 const TUid KUidContactFieldPrefixName={KUidContactFieldPrefixNameValue};
       
   346 /** Hidden field.
       
   347 @publishedAll
       
   348 @released
       
   349 */
       
   350 const TUid KUidContactFieldHidden={KUidContactFieldHiddenValue};
       
   351 /** Hidden field.
       
   352 @publishedAll
       
   353 @released
       
   354 */
       
   355 const TUid KUidContactFieldDefinedText={KUidContactFieldDefinedTextValue};
       
   356 /** Email address field.
       
   357 @publishedAll
       
   358 @released
       
   359 */
       
   360 const TUid KUidContactFieldEMail={KUidContactFieldEMailValue};
       
   361 /** Telephone number used for a messaging service.
       
   362 @publishedAll
       
   363 @released
       
   364 */
       
   365 const TUid KUidContactFieldMsg={KUidContactFieldMsgValue};
       
   366 /** Telephone number used for SMS messages.
       
   367 @publishedAll
       
   368 @released
       
   369 */
       
   370 const TUid KUidContactFieldSms={KUidContactFieldSmsValue};
       
   371 /** Fax number field.
       
   372 @publishedAll
       
   373 @released
       
   374 */
       
   375 const TUid KUidContactFieldFax={KUidContactFieldFaxValue};
       
   376 /** Comment field.
       
   377 @publishedAll
       
   378 @released
       
   379 */
       
   380 const TUid KUidContactFieldNote={KUidContactFieldNoteValue};
       
   381 /** Comment field.
       
   382 @publishedAll
       
   383 @released
       
   384 */
       
   385 const TUid KUidContactStorageInline={KUidContactFieldStorageInlineValue};
       
   386 /** Birthday field.
       
   387 @publishedAll
       
   388 @released
       
   389 */
       
   390 const TUid KUidContactFieldBirthday={KUidContactFieldBirthdayValue};
       
   391 /** URL field.
       
   392 @publishedAll
       
   393 @released
       
   394 */
       
   395 const TUid KUidContactFieldUrl={KUidContactFieldUrlValue};
       
   396 /** Template label field (a label which is used to refer to a template, for instance "work
       
   397 template", "personal template").
       
   398 @publishedAll
       
   399 @released
       
   400 */
       
   401 const TUid KUidContactFieldTemplateLabel={KUidContactFieldTemplateLabelValue};
       
   402 /** A picture field, for instance a logo or a photo.
       
   403 @publishedAll
       
   404 @released
       
   405 */
       
   406 const TUid KUidContactFieldPicture={KUidContactFieldPictureValue};
       
   407 /** Used internally by the contacts model.
       
   408 @publishedAll
       
   409 @released
       
   410 */
       
   411 const TUid KUidContactFieldDTMF={KUidContactFieldDTMFValue};
       
   412 /** Identifies a ring tone field. This is a ring tone that is associated with a contact item.
       
   413 @publishedAll
       
   414 @released
       
   415 */
       
   416 const TUid KUidContactFieldRingTone={KUidContactFieldRingToneValue};
       
   417 /** Identifies a job title field.
       
   418 @publishedAll
       
   419 @released
       
   420 */
       
   421 const TUid KUidContactFieldJobTitle={KUidContactFieldJobTitleValue};
       
   422 /** Identifies an instant messaging address field.
       
   423 @publishedAll
       
   424 @released
       
   425 */
       
   426 const TUid KUidContactFieldIMAddress = { KUidContactFieldIMAddressValue };
       
   427 /** Identifies a USIM second name field. This field is provided to
       
   428 store an additional representation of the contact's name, such as a
       
   429 nickname or a different representation. An example could be a Japanese
       
   430 contact which has a romanised name and an alternative representation using
       
   431 kanji (pictogram) characters.
       
   432 @publishedAll
       
   433 @released
       
   434 */
       
   435 const TUid KUidContactFieldSecondName = { KUidContactFieldSecondNameValue };
       
   436 /** Identifies a SIP identity field.
       
   437 @publishedAll
       
   438 @released
       
   439 */
       
   440 const TUid KUidContactFieldSIPID = { KUidContactFieldSIPIDValue };
       
   441 /** Identifies a Assistant field.
       
   442 @publishedAll
       
   443 @released
       
   444 */
       
   445 const TUid KUidContactFieldAssistant = { KUidContactFieldAssistantValue };
       
   446 /** Identifies an Anniversary field.
       
   447 @publishedAll
       
   448 @released
       
   449 */
       
   450 const TUid KUidContactFieldAnniversary = { KUidContactFieldAnniversaryValue };
       
   451 /** Identifies a Spouse field.
       
   452 @publishedAll
       
   453 @released
       
   454 */
       
   455 const TUid KUidContactFieldSpouse = { KUidContactFieldSpouseValue };
       
   456 /** Identifies a Children field.
       
   457 @publishedAll
       
   458 @released
       
   459 */
       
   460 const TUid KUidContactFieldChildren = { KUidContactFieldChildrenValue };
       
   461 /** Identifies a Class field.
       
   462 @publishedAll
       
   463 @released
       
   464 */
       
   465 const TUid KUidContactFieldClass = { KUidContactFieldClassValue };
       
   466 /** Identifies a Department field.
       
   467 @publishedAll
       
   468 @released
       
   469 */
       
   470 const TUid KUidContactFieldDepartmentName = { KUidContactFieldDepartmentNameValue };
       
   471 /*
       
   472 * CContactICCEntry (Telephony specific) UIDs.
       
   473  */
       
   474 /** Identifies an ICC slot contact field in the contact item.
       
   475 @publishedAll
       
   476 @released
       
   477 */
       
   478 const TUid KUidContactFieldICCSlot={KUidContactFieldICCSlotValue};
       
   479 /** Identifies an ICC Phonebook contact field in the contact item.
       
   480 @publishedAll
       
   481 @released
       
   482 */
       
   483 const TUid KUidContactFieldICCPhonebook={KUidContactFieldICCPhonebookValue};
       
   484 /** Identifies an ICC Group contact field in the contact item.
       
   485 @publishedAll
       
   486 @released
       
   487 */
       
   488 const TUid KUidContactFieldICCGroup={KUidContactFieldICCGroupValue};
       
   489 
       
   490 /** Identifies a voice dial field. This is a voice recording associated with a telephone number
       
   491 field in the item.
       
   492 @publishedAll
       
   493 @released
       
   494 */
       
   495 const TUid KUidContactsVoiceDialField={KUidContactsVoiceDialFieldValue};
       
   496 
       
   497 /** Indicates no field present.
       
   498 @publishedAll
       
   499 @released
       
   500 */
       
   501 const TUid KUidContactFieldNone={KUidContactFieldNoneValue};
       
   502 /** Used in field type matching to indicate that all field types match.
       
   503 @publishedAll
       
   504 @released
       
   505 */
       
   506 const TInt32 KUidContactFieldMatchAllValue=0x110FFF22;
       
   507 const TUid KUidContactFieldMatchAll={KUidContactFieldMatchAllValue};
       
   508 
       
   509 /*
       
   510  * Contact field type vCard mappings.
       
   511  * The vCard mapping describes how the field should be handled by the
       
   512  * vCard import/export code.
       
   513  */
       
   514 /** Field type maps to the Post office box field in an ADR vCard property value.
       
   515 @publishedAll
       
   516 @released
       
   517 */
       
   518 const TUid KUidContactFieldVCardMapPOSTOFFICE={KIntContactFieldVCardMapPOSTOFFICE};
       
   519 /** Field type maps to the Extended address field in an ADR vCard property value.
       
   520 @publishedAll
       
   521 @released
       
   522 */
       
   523 const TUid KUidContactFieldVCardMapEXTENDEDADR={KIntContactFieldVCardMapEXTENDEDADR};
       
   524 /** Field type maps to vCard property ADR.
       
   525 @publishedAll
       
   526 @released
       
   527 */
       
   528 const TUid KUidContactFieldVCardMapADR={KIntContactFieldVCardMapADR};
       
   529 /** Field type maps to the Locality field in an ADR vCard property value.
       
   530 @publishedAll
       
   531 @released
       
   532 */
       
   533 const TUid KUidContactFieldVCardMapLOCALITY={KIntContactFieldVCardMapLOCALITY};
       
   534 /** Field type maps to the Region field in an ADR vCard property value.
       
   535 @publishedAll
       
   536 @released
       
   537 */
       
   538 const TUid KUidContactFieldVCardMapREGION={KIntContactFieldVCardMapREGION};
       
   539 /** Field type maps to the Postcode field in an ADR vCard property value.
       
   540 @publishedAll
       
   541 @released
       
   542 */
       
   543 const TUid KUidContactFieldVCardMapPOSTCODE={KIntContactFieldVCardMapPOSTCODE};
       
   544 /** Field type maps to the Country field in an ADR vCard property value.
       
   545 @publishedAll
       
   546 @released
       
   547 */
       
   548 const TUid KUidContactFieldVCardMapCOUNTRY={KIntContactFieldVCardMapCOUNTRY};
       
   549 
       
   550 /** Field type maps to vCard property AGENT.
       
   551 @publishedAll
       
   552 @released
       
   553 */
       
   554 const TUid KUidContactFieldVCardMapAGENT={KIntContactFieldVCardMapAGENT};
       
   555 /** Field type maps to vCard property BDAY.
       
   556 @publishedAll
       
   557 @released
       
   558 */
       
   559 const TUid KUidContactFieldVCardMapBDAY={KIntContactFieldVCardMapBDAY};
       
   560 /** Field type maps to vCard property EMAIL.
       
   561 @publishedAll
       
   562 @released
       
   563 */
       
   564 const TUid KUidContactFieldVCardMapEMAILINTERNET={KIntContactFieldVCardMapEMAILINTERNET};
       
   565 /** Field type maps to vCard property GEO.
       
   566 @publishedAll
       
   567 @released
       
   568 */
       
   569 const TUid KUidContactFieldVCardMapGEO={KIntContactFieldVCardMapGEO};
       
   570 /** Field type maps to vCard property LABEL.
       
   571 @publishedAll
       
   572 @released
       
   573 */
       
   574 const TUid KUidContactFieldVCardMapLABEL={KIntContactFieldVCardMapLABEL};
       
   575 /** Field type maps to vCard property LOGO.
       
   576 @publishedAll
       
   577 @released
       
   578 */
       
   579 const TUid KUidContactFieldVCardMapLOGO={KIntContactFieldVCardMapLOGO};
       
   580 /** Field type maps to vCard property MAILER.
       
   581 @publishedAll
       
   582 @released
       
   583 */
       
   584 const TUid KUidContactFieldVCardMapMAILER={KIntContactFieldVCardMapMAILER};
       
   585 /** Field type maps to vCard property NOTE.
       
   586 @publishedAll
       
   587 @released
       
   588 */
       
   589 const TUid KUidContactFieldVCardMapNOTE={KIntContactFieldVCardMapNOTE};
       
   590 /** Field type maps to vCard property ORG.
       
   591 @publishedAll
       
   592 @released
       
   593 */
       
   594 const TUid KUidContactFieldVCardMapORG={KIntContactFieldVCardMapORG};
       
   595 /** Field type maps to vCard X-IRMC-ORG parameter of property SOUND.
       
   596 @publishedAll
       
   597 @released
       
   598 */
       
   599 const TUid KUidContactFieldVCardMapORGPronunciation={KIntContactFieldVCardMapORGPronunciation};
       
   600 /** Field type maps to vCard property PHOTO.
       
   601 @publishedAll
       
   602 @released
       
   603 */
       
   604 const TUid KUidContactFieldVCardMapPHOTO={KIntContactFieldVCardMapPHOTO};
       
   605 /** Field type maps to vCard property ROLE.
       
   606 @publishedAll
       
   607 @released
       
   608 */
       
   609 const TUid KUidContactFieldVCardMapROLE={KIntContactFieldVCardMapROLE};
       
   610 /** Field type maps to vCard property SOUND.
       
   611 @publishedAll
       
   612 @released
       
   613 */
       
   614 const TUid KUidContactFieldVCardMapSOUND={KIntContactFieldVCardMapSOUND};
       
   615 /** Field type maps to vCard property TEL.
       
   616 @publishedAll
       
   617 @released
       
   618 */
       
   619 const TUid KUidContactFieldVCardMapTEL={KIntContactFieldVCardMapTEL};
       
   620 /** Field type maps to vCard property parameter FAX.
       
   621 @publishedAll
       
   622 @released
       
   623 */
       
   624 const TUid KUidContactFieldVCardMapTELFAX={KIntContactFieldVCardMapTELFAX};
       
   625 /** Field type maps to vCard property TITLE.
       
   626 @publishedAll
       
   627 @released
       
   628 */
       
   629 const TUid KUidContactFieldVCardMapTITLE={KIntContactFieldVCardMapTITLE};
       
   630 /** Field type maps to vCard property URL.
       
   631 @publishedAll
       
   632 @released
       
   633 */
       
   634 const TUid KUidContactFieldVCardMapURL={KIntContactFieldVCardMapURL};
       
   635 /** Field maps to the vCard property N (name). Must be used in conjunction with
       
   636 a name-related field type (e.g. KUidContactFieldGivenName) to form the given
       
   637 name field mapping.
       
   638 @publishedAll
       
   639 @released
       
   640 */
       
   641 const TUid KUidContactFieldVCardMapUnusedN={KIntContactFieldVCardMapUnusedN};
       
   642 /** Field type maps to vCard property FN (the display name).
       
   643 @publishedAll
       
   644 @released
       
   645 */
       
   646 const TUid KUidContactFieldVCardMapUnusedFN={KIntContactFieldVCardMapUnusedFN};
       
   647 /** Mapping between the vCard property and field type is not required.
       
   648 @publishedAll
       
   649 @released
       
   650 */
       
   651 const TUid KUidContactFieldVCardMapNotRequired={KIntContactFieldVCardMapNotRequired};
       
   652 /** Unknown mapping between a field type and a vCard extension property.
       
   653 @publishedAll
       
   654 @released
       
   655 */
       
   656 const TUid KUidContactFieldVCardMapUnknownXDash={KIntContactFieldVCardMapUnknownXDash};
       
   657 /** Unknown mapping between field type and non-extension vCard property.
       
   658 @publishedAll
       
   659 @released
       
   660 */
       
   661 const TUid KUidContactFieldVCardMapUnknown={KIntContactFieldVCardMapUnknown};
       
   662 /** Field type maps to vCard property UID.
       
   663 @publishedAll
       
   664 @released
       
   665 */
       
   666 const TUid KUidContactFieldVCardMapUID={KIntContactFieldVCardMapUID};
       
   667 /** Field type maps to vCard property parameter WORK.
       
   668 @publishedAll
       
   669 @released
       
   670 */
       
   671 const TUid KUidContactFieldVCardMapWORK={KIntContactFieldVCardMapWORK};
       
   672 /** Field type maps to vCard property parameter HOME.
       
   673 @publishedAll
       
   674 @released
       
   675 */
       
   676 const TUid KUidContactFieldVCardMapHOME={KIntContactFieldVCardMapHOME};
       
   677 /** Field type maps to vCard property parameter MSG.
       
   678 @publishedAll
       
   679 @released
       
   680 */
       
   681 const TUid KUidContactFieldVCardMapMSG={KIntContactFieldVCardMapMSG};
       
   682 /** Field type maps to vCard property parameter VOICE.
       
   683 @publishedAll
       
   684 @released
       
   685 */
       
   686 const TUid KUidContactFieldVCardMapVOICE={KIntContactFieldVCardMapVOICE};
       
   687 /** Field type maps to vCard property parameter FAX.
       
   688 @publishedAll
       
   689 @released
       
   690 */
       
   691 const TUid KUidContactFieldVCardMapFAX={KIntContactFieldVCardMapFAX};
       
   692 /** Field type maps to vCard property parameter PREF.
       
   693 @publishedAll
       
   694 @released
       
   695 */
       
   696 const TUid KUidContactFieldVCardMapPREF={KIntContactFieldVCardMapPREF};
       
   697 /** Field type maps to vCard property parameter CELL.
       
   698 @publishedAll
       
   699 @released
       
   700 */
       
   701 const TUid KUidContactFieldVCardMapCELL={KIntContactFieldVCardMapCELL};
       
   702 /** Field type maps to vCard property parameter PAGER.
       
   703 @publishedAll
       
   704 @released
       
   705 */
       
   706 const TUid KUidContactFieldVCardMapPAGER={KIntContactFieldVCardMapPAGER};
       
   707 /** Field type maps to vCard property parameter BBS.
       
   708 @publishedAll
       
   709 @released
       
   710 */
       
   711 const TUid KUidContactFieldVCardMapBBS={KIntContactFieldVCardMapBBS};
       
   712 /** Field type maps to vCard property parameter MODEM.
       
   713 @publishedAll
       
   714 @released
       
   715 */
       
   716 const TUid KUidContactFieldVCardMapMODEM={KIntContactFieldVCardMapMODEM};
       
   717 /** Field type maps to vCard property parameter CAR.
       
   718 @publishedAll
       
   719 @released
       
   720 */
       
   721 const TUid KUidContactFieldVCardMapCAR={KIntContactFieldVCardMapCAR};
       
   722 /** Field type maps to vCard property parameter ISDN.
       
   723 @publishedAll
       
   724 @released
       
   725 */
       
   726 const TUid KUidContactFieldVCardMapISDN={KIntContactFieldVCardMapISDN};
       
   727 /** Field type maps to vCard property parameter VIDEO.
       
   728 @publishedAll
       
   729 @released
       
   730 */
       
   731 const TUid KUidContactFieldVCardMapVIDEO={KIntContactFieldVCardMapVIDEO};
       
   732 /** Field type maps to vCard property parameter DOM.
       
   733 @publishedAll
       
   734 @released
       
   735 */
       
   736 const TUid KUidContactFieldVCardMapDOM={KIntContactFieldVCardMapDOM};
       
   737 /** Field type maps to vCard property parameter INTL.
       
   738 @publishedAll
       
   739 @released
       
   740 */
       
   741 const TUid KUidContactFieldVCardMapINTL={KIntContactFieldVCardMapINTL};
       
   742 /** Field type maps to vCard property parameter POSTAL.
       
   743 @publishedAll
       
   744 @released
       
   745 */
       
   746 const TUid KUidContactFieldVCardMapPOSTAL={KIntContactFieldVCardMapPOSTAL};
       
   747 /** Field type maps to vCard property parameter PARCEL.
       
   748 @publishedAll
       
   749 @released
       
   750 */
       
   751 const TUid KUidContactFieldVCardMapPARCEL={KIntContactFieldVCardMapPARCEL};
       
   752 /** Field type maps to vCard property parameter value GIF.
       
   753 @publishedAll
       
   754 @released
       
   755 */
       
   756 const TUid KUidContactFieldVCardMapGIF={KIntContactFieldVCardMapGIF};
       
   757 /** Field type maps to vCard property parameter value CGM.
       
   758 @publishedAll
       
   759 @released
       
   760 */
       
   761 const TUid KUidContactFieldVCardMapCGM={KIntContactFieldVCardMapCGM};
       
   762 /** Field type maps to vCard property parameter value WMF.
       
   763 @publishedAll
       
   764 @released
       
   765 */
       
   766 const TUid KUidContactFieldVCardMapWMF={KIntContactFieldVCardMapWMF};
       
   767 /** Field type maps to vCard property parameter value BMP.
       
   768 @publishedAll
       
   769 @released
       
   770 */
       
   771 const TUid KUidContactFieldVCardMapBMP={KIntContactFieldVCardMapBMP};
       
   772 /** Field type maps to vCard property parameter value MET.
       
   773 @publishedAll
       
   774 @released
       
   775 */
       
   776 const TUid KUidContactFieldVCardMapMET={KIntContactFieldVCardMapMET};
       
   777 /** Field type maps to vCard property parameter value PMB.
       
   778 @publishedAll
       
   779 @released
       
   780 */
       
   781 const TUid KUidContactFieldVCardMapPMB={KIntContactFieldVCardMapPMB};
       
   782 /** Field type maps to vCard property parameter value DIB.
       
   783 @publishedAll
       
   784 @released
       
   785 */
       
   786 const TUid KUidContactFieldVCardMapDIB={KIntContactFieldVCardMapDIB};
       
   787 /** Field type maps to vCard property parameter value PICT.
       
   788 @publishedAll
       
   789 @released
       
   790 */
       
   791 const TUid KUidContactFieldVCardMapPICT={KIntContactFieldVCardMapPICT};
       
   792 /** Field type maps to vCard property parameter value TIFF.
       
   793 @publishedAll
       
   794 @released
       
   795 */
       
   796 const TUid KUidContactFieldVCardMapTIFF={KIntContactFieldVCardMapTIFF};
       
   797 /** Field type maps to vCard property parameter value PDF.
       
   798 @publishedAll
       
   799 @released
       
   800 */
       
   801 const TUid KUidContactFieldVCardMapPDF={KIntContactFieldVCardMapPDF};
       
   802 /** Field type maps to vCard property parameter value PS.
       
   803 @publishedAll
       
   804 @released
       
   805 */
       
   806 const TUid KUidContactFieldVCardMapPS={KIntContactFieldVCardMapPS};
       
   807 /** Field type maps to vCard property parameter value JPEG.
       
   808 @publishedAll
       
   809 @released
       
   810 */
       
   811 const TUid KUidContactFieldVCardMapJPEG={KIntContactFieldVCardMapJPEG};
       
   812 /** Field type maps to vCard property parameter value MPEG.
       
   813 @publishedAll
       
   814 @released
       
   815 */
       
   816 const TUid KUidContactFieldVCardMapMPEG={KIntContactFieldVCardMapMPEG};
       
   817 /** Field type maps to vCard property parameter value MPEG2.
       
   818 @publishedAll
       
   819 @released
       
   820 */
       
   821 const TUid KUidContactFieldVCardMapMPEG2={KIntContactFieldVCardMapMPEG2};
       
   822 /** Field type maps to vCard property parameter value AVI.
       
   823 @publishedAll
       
   824 @released
       
   825 */
       
   826 const TUid KUidContactFieldVCardMapAVI={KIntContactFieldVCardMapAVI};
       
   827 /** Field type maps to vCard property parameter value QTIME.
       
   828 @publishedAll
       
   829 @released
       
   830 */
       
   831 const TUid KUidContactFieldVCardMapQTIME={KIntContactFieldVCardMapQTIME};
       
   832 /** Field type maps to vCard property TZ.
       
   833 @publishedAll
       
   834 @released
       
   835 */
       
   836 const TUid KUidContactFieldVCardMapTZ={KIntContactFieldVCardMapTZ};
       
   837 /** Field type maps to vCard property KEY.
       
   838 @publishedAll
       
   839 @released
       
   840 */
       
   841 const TUid KUidContactFieldVCardMapKEY={KIntContactFieldVCardMapKEY};
       
   842 /** Field type maps to vCard property parameter value X509.
       
   843 @publishedAll
       
   844 @released
       
   845 */
       
   846 const TUid KUidContactFieldVCardMapX509={KIntContactFieldVCardMapX509};
       
   847 /** Field type maps to vCard property parameter value PGP.
       
   848 @publishedAll
       
   849 @released
       
   850 */
       
   851 const TUid KUidContactFieldVCardMapPGP={KIntContactFieldVCardMapPGP};
       
   852 /** Used internally by the contacts model.
       
   853 @publishedAll
       
   854 @released
       
   855 */
       
   856 const TUid KUidContactFieldVCardMapSMIME={KIntContactFieldVCardMapSMIME};
       
   857 /** The field contains a Wireless Village instant messaging ID.
       
   858 @publishedAll
       
   859 @released
       
   860 */
       
   861 const TUid KUidContactFieldVCardMapWV={KIntContactFieldVCardMapWV};
       
   862 /** Field type mapping of a vCard property to contacts Second Name Field
       
   863 @publishedAll
       
   864 @released
       
   865 */
       
   866 const TUid KUidContactFieldVCardMapSECONDNAME={KIntContactFieldVCardMapSECONDNAME};
       
   867 /** Field type mapping of a vCard property to contacts SIP Identity Field.
       
   868 @publishedAll
       
   869 @released
       
   870 */
       
   871 const TUid KUidContactFieldVCardMapSIPID={KIntContactFieldVCardMapSIPID};
       
   872 /** Field type maps to vCard extension property parameter value POC
       
   873 (Push to Talk Over Cellular).
       
   874 @publishedAll
       
   875 @released
       
   876 */
       
   877 const TUid KUidContactFieldVCardMapPOC={KIntContactFieldVCardMapPOC};
       
   878 /** Field type maps to vCard extension property parameter value SWIS
       
   879 ("See What I See").
       
   880 @publishedAll
       
   881 @released
       
   882 */
       
   883 const TUid KUidContactFieldVCardMapSWIS={KIntContactFieldVCardMapSWIS};
       
   884 /** Field type maps to vCard extension property parameter value VOIP
       
   885 (Voice Over IP).
       
   886 @publishedAll
       
   887 @released
       
   888 */
       
   889 const TUid KUidContactFieldVCardMapVOIP={KIntContactFieldVCardMapVOIP};
       
   890 /** Field type maps to vCard extension property parameter value Assistant
       
   891 @publishedAll
       
   892 @released
       
   893 */
       
   894 const TUid KUidContactFieldVCardMapAssistant={KIntContactFieldVCardMapAssistant};
       
   895 /** Field type maps to vCard extension property parameter value AssistantTel
       
   896 @publishedAll
       
   897 @released
       
   898 */
       
   899 const TUid KUidContactFieldVCardMapAssistantTel={KIntContactFieldVCardMapAssistantTel};
       
   900 /** Field type maps to vCard extension property parameter value Anniversary
       
   901 @publishedAll
       
   902 @released
       
   903 */
       
   904 const TUid KUidContactFieldVCardMapAnniversary={KIntContactFieldVCardMapAnniversary};
       
   905 /** Field type maps to vCard extension property parameter value Spouse
       
   906 @publishedAll
       
   907 @released
       
   908 */
       
   909 const TUid KUidContactFieldVCardMapSpouse={KIntContactFieldVCardMapSpouse};
       
   910 /** Field type maps to vCard extension property parameter value Children
       
   911 @publishedAll
       
   912 @released
       
   913 */
       
   914 const TUid KUidContactFieldVCardMapChildren={KIntContactFieldVCardMapChildren};
       
   915 /** Field type maps to vCard extension property parameter value Class
       
   916 @publishedAll
       
   917 @released
       
   918 */
       
   919 const TUid KUidContactFieldVCardMapClass={KIntContactFieldVCardMapClass};
       
   920 /** Field type maps to vCard extension property parameter value Department
       
   921 @publishedAll
       
   922 @released
       
   923 */
       
   924 const TUid KUidContactFieldVCardMapDepartment={KIntContactFieldVCardMapDepartment};
       
   925 
       
   926 /** Name of the TYPE property parameter, for which the values are work, home etc. 
       
   927 @publishedAll
       
   928 @released
       
   929 */
       
   930 _LIT(KVersitParamType,"TYPE");
       
   931 /** Name of the WORK property parameter.
       
   932 @publishedAll
       
   933 @released
       
   934 */
       
   935 _LIT(KVersitParamWork,"WORK");
       
   936 /** Name of the HOME property parameter.
       
   937 @publishedAll
       
   938 @released
       
   939 */
       
   940 _LIT(KVersitParamHome,"HOME");
       
   941 /** Name of the MSG property parameter.
       
   942 @publishedAll
       
   943 @released
       
   944 */
       
   945 _LIT(KVersitParamMsg,"MSG");
       
   946 /** Name of the VOICE property parameter.
       
   947 @publishedAll
       
   948 @released
       
   949 */
       
   950 _LIT(KVersitParamVoice,"VOICE");
       
   951 /** Name of the FAX property parameter.
       
   952 @publishedAll
       
   953 @released
       
   954 */
       
   955 _LIT(KVersitParamFax,"FAX");
       
   956 /** Name of the PREF property parameter.
       
   957 @publishedAll
       
   958 @released
       
   959 */
       
   960 _LIT(KVersitParamPref,"PREF");
       
   961 /** Name of the CELL property parameter.
       
   962 @publishedAll
       
   963 @released
       
   964 */
       
   965 _LIT(KVersitParamCell,"CELL");
       
   966 /** Name of the PAGER property parameter.
       
   967 @publishedAll
       
   968 @released
       
   969 */
       
   970 _LIT(KVersitParamPager,"PAGER");
       
   971 /** Name of the BBS property parameter.
       
   972 @publishedAll
       
   973 @released
       
   974 */
       
   975 _LIT(KVersitParamBbs,"BBS");
       
   976 /** Name of the MODEM property parameter.
       
   977 @publishedAll
       
   978 @released
       
   979 */
       
   980 _LIT(KVersitParamModem,"MODEM");
       
   981 /** Name of the CAR property parameter.
       
   982 @publishedAll
       
   983 @released
       
   984 */
       
   985 _LIT(KVersitParamCar,"CAR");
       
   986 /** Name of the ISDN property parameter.
       
   987 @publishedAll
       
   988 @released
       
   989 */
       
   990 _LIT(KVersitParamIsdn,"ISDN");
       
   991 /** Name of the VIDEO property parameter.
       
   992 @publishedAll
       
   993 @released
       
   994 */
       
   995 _LIT(KVersitParamVideo,"VIDEO");
       
   996 /** Name of the DOM property parameter.
       
   997 @publishedAll
       
   998 @released
       
   999 */
       
  1000 _LIT(KVersitParamDom,"DOM");
       
  1001 /** Name of the GIF property parameter.
       
  1002 @publishedAll
       
  1003 @released
       
  1004 */
       
  1005 _LIT(KVersitParamGif,"GIF");
       
  1006 /** Name of the CGM property parameter.
       
  1007 @publishedAll
       
  1008 @released
       
  1009 */
       
  1010 _LIT(KVersitParamCgm,"CGM");
       
  1011 /** Name of the WMF property parameter.
       
  1012 @publishedAll
       
  1013 @released
       
  1014 */
       
  1015 _LIT(KVersitParamWmf,"WMF");
       
  1016 /** Name of the BMP property parameter.
       
  1017 @publishedAll
       
  1018 @released
       
  1019 */
       
  1020 _LIT(KVersitParamBmp,"BMP");
       
  1021 /** Name of the MET property parameter.
       
  1022 @publishedAll
       
  1023 @released
       
  1024 */
       
  1025 _LIT(KVersitParamMet,"MET");
       
  1026 /** Name of the PMB property parameter.
       
  1027 @publishedAll
       
  1028 @released
       
  1029 */
       
  1030 _LIT(KVersitParamPmb,"PMB");
       
  1031 /** Name of the DIB property parameter.
       
  1032 @publishedAll
       
  1033 @released
       
  1034 */
       
  1035 _LIT(KVersitParamDib,"DIB");
       
  1036 /** Name of the PICT property parameter.
       
  1037 @publishedAll
       
  1038 @released
       
  1039 */
       
  1040 _LIT(KVersitParamPict,"PICT");
       
  1041 /** Name of the TIFF property parameter.
       
  1042 @publishedAll
       
  1043 @released
       
  1044 */
       
  1045 _LIT(KVersitParamTiff,"TIFF");
       
  1046 /** Name of the PDF property parameter.
       
  1047 @publishedAll
       
  1048 @released
       
  1049 */
       
  1050 _LIT(KVersitParamPdf,"PDF");
       
  1051 /** Name of the PS property parameter.
       
  1052 @publishedAll
       
  1053 @released
       
  1054 */
       
  1055 _LIT(KVersitParamPs,"PS");
       
  1056 /** Name of the JPEG property parameter.
       
  1057 @publishedAll
       
  1058 @released
       
  1059 */
       
  1060 _LIT(KVersitParamJpeg,"JPEG");
       
  1061 /** Name of the MPEG property parameter.
       
  1062 @publishedAll
       
  1063 @released
       
  1064 */
       
  1065 _LIT(KVersitParamMpeg,"MPEG");
       
  1066 /** Name of the MPEG2 property parameter.
       
  1067 @publishedAll
       
  1068 @released
       
  1069 */
       
  1070 _LIT(KVersitParamMpeg2,"MPEG2");
       
  1071 /** Name of the AVI property parameter.
       
  1072 @publishedAll
       
  1073 @released
       
  1074 */
       
  1075 _LIT(KVersitParamAvi,"AVI");
       
  1076 /** Name of the QTIME property parameter.
       
  1077 @publishedAll
       
  1078 @released
       
  1079 */
       
  1080 _LIT(KVersitParamQtime,"QTIME");
       
  1081 /** Name of the X509 property parameter.
       
  1082 @publishedAll
       
  1083 @released
       
  1084 */
       
  1085 _LIT(KVersitParamX509,"X509");
       
  1086 /** Name of the PGP property parameter.
       
  1087 @publishedAll
       
  1088 @released
       
  1089 */
       
  1090 _LIT(KVersitParamPGP,"PGP");
       
  1091 
       
  1092 /** 8 bit name of the TYPE property parameter.
       
  1093 @publishedAll
       
  1094 @released
       
  1095 */
       
  1096 _LIT8(KVersitParam8Type,"TYPE");
       
  1097 /** 8 bit name of the WORK property parameter.
       
  1098 @publishedAll
       
  1099 @released
       
  1100 */
       
  1101 _LIT8(KVersitParam8Work,"WORK");
       
  1102 /** 8 bit name of the HOME property parameter.
       
  1103 @publishedAll
       
  1104 @released
       
  1105 */
       
  1106 _LIT8(KVersitParam8Home,"HOME");
       
  1107 /** 8 bit name of the MSG property parameter.
       
  1108 @publishedAll
       
  1109 @released
       
  1110 */
       
  1111 _LIT8(KVersitParam8Msg,"MSG");
       
  1112 /** 8 bit name of the VOICE property parameter.
       
  1113 @publishedAll
       
  1114 @released
       
  1115 */
       
  1116 _LIT8(KVersitParam8Voice,"VOICE");
       
  1117 /** 8 bit name of the FAX property parameter.
       
  1118 @publishedAll
       
  1119 @released
       
  1120 */
       
  1121 _LIT8(KVersitParam8Fax,"FAX");
       
  1122 /** 8 bit name of the PREF property parameter.
       
  1123 @publishedAll
       
  1124 @released
       
  1125 */
       
  1126 _LIT8(KVersitParam8Pref,"PREF");
       
  1127 /** 8 bit name of the CELL property parameter.
       
  1128 @publishedAll
       
  1129 @released
       
  1130 */
       
  1131 _LIT8(KVersitParam8Cell,"CELL");
       
  1132 /** 8 bit name of the PAGER property parameter.
       
  1133 @publishedAll
       
  1134 @released
       
  1135 */
       
  1136 _LIT8(KVersitParam8Pager,"PAGER");
       
  1137 /** 8 bit name of the BBS property parameter.
       
  1138 @publishedAll
       
  1139 @released
       
  1140 */
       
  1141 _LIT8(KVersitParam8Bbs,"BBS");
       
  1142 /** 8 bit name of the MODEM property parameter.
       
  1143 @publishedAll
       
  1144 @released
       
  1145 */
       
  1146 _LIT8(KVersitParam8Modem,"MODEM");
       
  1147 /** 8 bit name of the CAR property parameter.
       
  1148 @publishedAll
       
  1149 @released
       
  1150 */
       
  1151 _LIT8(KVersitParam8Car,"CAR");
       
  1152 /** 8 bit name of the ISDN property parameter.
       
  1153 @publishedAll
       
  1154 @released
       
  1155 */
       
  1156 _LIT8(KVersitParam8Isdn,"ISDN");
       
  1157 /** 8 bit name of the VIDEO property parameter.
       
  1158 @publishedAll
       
  1159 @released
       
  1160 */
       
  1161 _LIT8(KVersitParam8Video,"VIDEO");
       
  1162 /** 8 bit name of the DOM property parameter.
       
  1163 @publishedAll
       
  1164 @released
       
  1165 */
       
  1166 _LIT8(KVersitParam8Dom,"DOM");
       
  1167 /** 8 bit name of the GIF property parameter.
       
  1168 @publishedAll
       
  1169 @released
       
  1170 */
       
  1171 _LIT8(KVersitParam8Gif,"GIF");
       
  1172 /** 8 bit name of the CGM property parameter.
       
  1173 @publishedAll
       
  1174 @released
       
  1175 */
       
  1176 _LIT8(KVersitParam8Cgm,"CGM");
       
  1177 /** 8 bit name of the WMF property parameter.
       
  1178 @publishedAll
       
  1179 @released
       
  1180 */
       
  1181 _LIT8(KVersitParam8Wmf,"WMF");
       
  1182 /** 8 bit name of the BMP property parameter.
       
  1183 @publishedAll
       
  1184 @released
       
  1185 */
       
  1186 _LIT8(KVersitParam8Bmp,"BMP");
       
  1187 /** 8 bit name of the MET property parameter.
       
  1188 @publishedAll
       
  1189 @released
       
  1190 */
       
  1191 _LIT8(KVersitParam8Met,"MET");
       
  1192 /** 8 bit name of the PMB property parameter.
       
  1193 @publishedAll
       
  1194 @released
       
  1195 */
       
  1196 _LIT8(KVersitParam8Pmb,"PMB");
       
  1197 /** 8 bit name of the DIB property parameter.
       
  1198 @publishedAll
       
  1199 @released
       
  1200 */
       
  1201 _LIT8(KVersitParam8Dib,"DIB");
       
  1202 /** 8 bit name of the PICT property parameter.
       
  1203 @publishedAll
       
  1204 @released
       
  1205 */
       
  1206 _LIT8(KVersitParam8Pict,"PICT");
       
  1207 /** 8 bit name of the TIFF property parameter.
       
  1208 @publishedAll
       
  1209 @released
       
  1210 */
       
  1211 _LIT8(KVersitParam8Tiff,"TIFF");
       
  1212 /** 8 bit name of the PDF property parameter.
       
  1213 @publishedAll
       
  1214 @released
       
  1215 */
       
  1216 _LIT8(KVersitParam8Pdf,"PDF");
       
  1217 /** 8 bit name of the PS property parameter.
       
  1218 @publishedAll
       
  1219 @released
       
  1220 */
       
  1221 _LIT8(KVersitParam8Ps,"PS");
       
  1222 /** 8 bit name of the JPEG property parameter.
       
  1223 @publishedAll
       
  1224 @released
       
  1225 */
       
  1226 _LIT8(KVersitParam8Jpeg,"JPEG");
       
  1227 /** 8 bit name of the MPEG property parameter.
       
  1228 @publishedAll
       
  1229 @released
       
  1230 */
       
  1231 _LIT8(KVersitParam8Mpeg,"MPEG");
       
  1232 /** 8 bit name of the MPEG2 property parameter.
       
  1233 @publishedAll
       
  1234 @released
       
  1235 */
       
  1236 _LIT8(KVersitParam8Mpeg2,"MPEG2");
       
  1237 /** 8 bit name of the AVI property parameter.
       
  1238 @publishedAll
       
  1239 @released
       
  1240 */
       
  1241 _LIT8(KVersitParam8Avi,"AVI");
       
  1242 /** 8 bit name of the QTIME property parameter.
       
  1243 @publishedAll
       
  1244 @released
       
  1245 */
       
  1246 _LIT8(KVersitParam8Qtime,"QTIME");
       
  1247 /** 8 bit name of the X509 property parameter.
       
  1248 @publishedAll
       
  1249 @released
       
  1250 */
       
  1251 _LIT8(KVersitParam8X509,"X509");
       
  1252 /** 8 bit name of the PGP property parameter.
       
  1253 @publishedAll
       
  1254 @released
       
  1255 */
       
  1256 _LIT8(KVersitParam8PGP,"PGP");
       
  1257 
       
  1258 /**
       
  1259 8 bit name of the X-IRMC-N property parameter (family or given
       
  1260 name pronunciation).
       
  1261 @publishedAll
       
  1262 @released
       
  1263 */
       
  1264 _LIT8(KVersitParam8NamePrn,"X-IRMC-N");
       
  1265 /**
       
  1266 8 bit name of the X-IRMC-ORG property parameter (company
       
  1267 name pronunciation).
       
  1268 @publishedAll
       
  1269 @released
       
  1270 */
       
  1271 _LIT8(KVersitParam8CompanyPrn,"X-IRMC-ORG");
       
  1272 /**
       
  1273 8 bit name of the X-IRMC- property parameter (pronunciation field prefix).
       
  1274 @publishedAll
       
  1275 @released
       
  1276 */
       
  1277 _LIT8(KVersitParam8PronunciationPrefix,"X-IRMC-");
       
  1278 
       
  1279 
       
  1280 
       
  1281 class CContactIdArray : public CBase
       
  1282 /** Array of contact item IDs (TContactItemIds).
       
  1283 
       
  1284 Instances of this class are used in several contact database functions,
       
  1285 for instance CContactDatabase::DeleteContactsL().
       
  1286 @publishedAll
       
  1287 @released
       
  1288 */
       
  1289 	{
       
  1290 public:
       
  1291 	IMPORT_C static CContactIdArray* NewL();
       
  1292 	IMPORT_C static CContactIdArray* NewLC();
       
  1293 	IMPORT_C static CContactIdArray* NewL(const CContactIdArray* aArray);
       
  1294 	IMPORT_C static CContactIdArray* NewLC(const CContactIdArray* aArray);
       
  1295 	static CContactIdArray* NewLC(RReadStream& aStream);
       
  1296 	IMPORT_C ~CContactIdArray();
       
  1297 	inline const TContactItemId& operator[](TInt aIndex) const;
       
  1298 	inline TContactItemId& operator[](TInt aIndex);
       
  1299 	inline TInt Count() const;
       
  1300 	inline void Reset();
       
  1301 	IMPORT_C TInt Find(TContactItemId aId) const;
       
  1302 	IMPORT_C void AddL(TContactItemId aId);
       
  1303 
       
  1304 	inline void Remove(TInt aIndex);
       
  1305 	inline void Remove(TInt aIndex,TInt aCount);
       
  1306 	inline void InsertL(TInt aIndex,TContactItemId aId);
       
  1307 	IMPORT_C void MoveL(TInt aOldIndex,TInt aNewIndex);
       
  1308 	IMPORT_C void ReverseOrder();
       
  1309 	IMPORT_C void InternalizeL(RReadStream& aStream);
       
  1310 	IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
       
  1311 public:  // intended for internal Contacts Model usage only
       
  1312 	void Sort();
       
  1313 private:
       
  1314 	CContactIdArray();
       
  1315 	void ConstructL();
       
  1316 	void CloneL(const CContactIdArray* aArray);
       
  1317 private:
       
  1318 	CArrayFixFlat<TContactItemId> *iIds;
       
  1319 	};
       
  1320 inline const TContactItemId& CContactIdArray::operator[](TInt aIndex) const
       
  1321 /** Gets the indexed TContactItemId.
       
  1322 
       
  1323 @param aIndex The position of the contact ID within the array, relative to zero.
       
  1324 This must be non-negative and less than the number of objects in the array
       
  1325 otherwise the operator raises a panic.
       
  1326 @return A reference to a const element of the array. */
       
  1327 	{ return (*iIds)[aIndex]; }
       
  1328 
       
  1329 inline TContactItemId& CContactIdArray::operator[](TInt aIndex)
       
  1330 /** Gets the indexed TContactItemId.
       
  1331 
       
  1332 @param aIndex The position of the contact ID within the array, relative to zero.
       
  1333 This must be non-negative and less than the number of objects in the array
       
  1334 otherwise the operator raises a panic.
       
  1335 @return A reference to a non-const element of the array. */
       
  1336 	{ return (*iIds)[aIndex]; }
       
  1337 
       
  1338 inline TInt CContactIdArray::Count() const
       
  1339 /** Gets the number of contact IDs in the array.
       
  1340 
       
  1341 @return The number of contact IDs in the array. */
       
  1342 	{ return iIds->Count(); }
       
  1343 
       
  1344 inline void CContactIdArray::Reset()
       
  1345 /** Removes all contact IDs from the array. */
       
  1346 	{ iIds->Reset(); }
       
  1347 
       
  1348 inline void CContactIdArray::Remove(TInt aIndex)
       
  1349 /** Removes the indexed contact ID from the array.
       
  1350 
       
  1351 The index value must not be negative and must not be greater than the number
       
  1352 of elements in the array, otherwise the function raises a panic.
       
  1353 
       
  1354 @param aIndex The index of the contact ID to remove. */
       
  1355 	{ iIds->Delete(aIndex); }
       
  1356 
       
  1357 inline void CContactIdArray::Remove(TInt aIndex,TInt aCount)
       
  1358 /** Removes a block of contact IDs from the array.
       
  1359 
       
  1360 This function raises a panic if any of the following are true:-
       
  1361 
       
  1362 - aCount is negative
       
  1363 
       
  1364 - aIndex is negative or is greater than the number of elements currently in
       
  1365 the array
       
  1366 
       
  1367 - the sum of aIndex and aCount is greater than the number of elements currently
       
  1368 in the array
       
  1369 
       
  1370 @param aIndex The index of the first contact ID to remove.
       
  1371 @param aCount The number of contiguous contact IDs to delete from the array.
       
  1372 If this is not specified, a value of one is assumed. */
       
  1373 	{ iIds->Delete(aIndex,aCount); }
       
  1374 
       
  1375 inline void CContactIdArray::InsertL(TInt aIndex,TContactItemId aId)
       
  1376 /** Inserts a contact ID into the array.
       
  1377 
       
  1378 The index must be valid or a panic occurs.
       
  1379 
       
  1380 The function may attempt to expand the array buffer. If there is insufficient
       
  1381 memory available, the function leaves. The leave code is one of the system
       
  1382 error codes. If the function leaves, the array is left in the state it was
       
  1383 in before the call.
       
  1384 
       
  1385 @param aIndex The index at which to insert the contact ID.
       
  1386 @param aId The contact ID to insert. */
       
  1387 	{ iIds->InsertL(aIndex,aId); }
       
  1388 	
       
  1389 
       
  1390 /** Shows supported event action types that are used when deleting
       
  1391 a contact or an array of contacts
       
  1392 @internalTechnology
       
  1393 @released
       
  1394 */
       
  1395 enum TCntSendEventAction
       
  1396 	{
       
  1397 	EDeferEvent              = 0,
       
  1398 	ESendEvent               = 1,
       
  1399 	ESendUnknownChangesEvent = 2,
       
  1400 	};
       
  1401 
       
  1402 #endif