epoc32/include/app/cntdef.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     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
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    16 #ifndef __CNTDEF_H__
    16 #ifndef __CNTDEF_H__
    17 #define __CNTDEF_H__
    17 #define __CNTDEF_H__
    18 
    18 
    19 #include <e32base.h>
    19 #include <e32base.h>
    20 
    20 
    21 #if !( defined __SYMBIAN_CNTMODEL_HIDE_DBMS__ && defined __SYMBIAN_CNTMODEL_USE_SQLITE__ )
    21 #if !( defined __SYMBIAN_CNTMODEL_HIDE_DBMS__ )
    22 #include <d32dbms.h>
    22 #include <d32dbms.h>
    23 #else
    23 #else
    24 #include <s32std.h>
    24 #include <s32std.h>
    25 #include <f32file.h>
    25 #include <f32file.h>
    26 #endif
    26 #endif
    29 
    29 
    30 
    30 
    31 // Constants
    31 // Constants
    32 
    32 
    33 /**
    33 /**
    34 @internalTechnology
    34 @publishedAll 
    35 @released
    35 @released
    36 */
    36 */
    37 const TInt KSpeedDialPhoneLength = 64;
    37 const TInt KSpeedDialPhoneLength = 64;
    38 
    38 
    39 /**
    39 /**
    40 @internalTechnology
    40 @publishedAll
    41 @released
    41 @released
    42 */
    42 */
    43 const TInt KCntMinSpeedDialIndex = 1;
    43 const TInt KCntMinSpeedDialIndex = 1;
    44 
    44 
    45 /**
    45 /**
    46 @internalTechnology
    46 @publishedAll
    47 @released
    47 @released
    48 */
    48 */
    49 const TInt KCntMaxSpeedDialIndex = 9;
    49 const TInt KCntMaxSpeedDialIndex = 9;
    50 
    50 
    51 /**
    51 /**
    52 Phone Match Length
    52 Phone Match Length
    53 @internalTechnology
    53 @publishedAll
    54 @released
    54 @released
    55 */
    55 */
    56 const TInt KMaxPhoneMatchLength = 15;
    56 const TInt KMaxPhoneMatchLength = 15;
    57 
    57 
    58 /**
    58 /**
    59 @internalTechnology
    59 @publishedAll
    60 @released
    60 @released
    61 */
    61 */
    62 const TInt KLowerSevenDigits = 7;
    62 const TInt KLowerSevenDigits = 7;
    63 
    63 
    64 /**
    64 /**
    65 Used for firstname, lastname, companyname, secondname and their
    65 Used for firstname, lastname, companyname, secondname and their
    66 associated pronunciation fields and e-mail address
    66 associated pronunciation fields and e-mail address
    67 @internalTechnology
    67 @publishedAll
    68 @released
    68 @released
    69 */
    69 */
    70 const TInt KCntMaxTextFieldLength=255;
    70 const TInt KCntMaxTextFieldLength=255;
    71 
    71 
    72 // Type definitions
    72 // Type definitions
    73 
    73 
    74 /**
    74 /**
    75 @internalTechnology
    75 @publishedAll
    76 @released
    76 @released
    77 */
    77 */
    78 typedef TBuf<KSpeedDialPhoneLength> TSpeedDialPhoneNumber;
    78 typedef TBuf<KSpeedDialPhoneLength> TSpeedDialPhoneNumber;
    79 
    79 
    80 /** Contact item ID. These are used to uniquely identify contact items within a
    80 /** Contact item ID. These are used to uniquely identify contact items within a
   484 /** Identifies an ICC Group contact field in the contact item.
   484 /** Identifies an ICC Group contact field in the contact item.
   485 @publishedAll
   485 @publishedAll
   486 @released
   486 @released
   487 */
   487 */
   488 const TUid KUidContactFieldICCGroup={KUidContactFieldICCGroupValue};
   488 const TUid KUidContactFieldICCGroup={KUidContactFieldICCGroupValue};
   489 
       
   490 /** Identifies a voice dial field. This is a voice recording associated with a telephone number
   489 /** Identifies a voice dial field. This is a voice recording associated with a telephone number
   491 field in the item.
   490 field in the item.
   492 @publishedAll
   491 @publishedAll
   493 @released
   492 @released
   494 */
   493 */
   495 const TUid KUidContactsVoiceDialField={KUidContactsVoiceDialFieldValue};
   494 const TUid KUidContactsVoiceDialField={KUidContactsVoiceDialFieldValue};
   496 
   495 /** Identifies a Geo field in the contact item. 
       
   496 @publishedAll
       
   497 @released
       
   498 */
       
   499 const TUid KUidContactFieldGEO={KUidContactFieldGEOValue};
   497 /** Indicates no field present.
   500 /** Indicates no field present.
   498 @publishedAll
   501 @publishedAll
   499 @released
   502 @released
   500 */
   503 */
   501 const TUid KUidContactFieldNone={KUidContactFieldNoneValue};
   504 const TUid KUidContactFieldNone={KUidContactFieldNoneValue};
   502 /** Used in field type matching to indicate that all field types match.
   505 /** Used in field type matching to indicate that all field types match.
   503 @publishedAll
   506 @publishedAll
   504 @released
   507 @released
   505 */
   508 */
   506 const TInt32 KUidContactFieldMatchAllValue=0x110FFF22;
   509 const TInt32 KUidContactFieldMatchAllValue=0x110FFF22;
       
   510 /** Used in field type matching to indicate that all field types match.
       
   511 @publishedAll
       
   512 @released
       
   513 */
   507 const TUid KUidContactFieldMatchAll={KUidContactFieldMatchAllValue};
   514 const TUid KUidContactFieldMatchAll={KUidContactFieldMatchAllValue};
   508 
   515 
   509 /*
   516 /*
   510  * Contact field type vCard mappings.
   517  * Contact field type vCard mappings.
   511  * The vCard mapping describes how the field should be handled by the
   518  * The vCard mapping describes how the field should be handled by the
   697 /** Field type maps to vCard property parameter CELL.
   704 /** Field type maps to vCard property parameter CELL.
   698 @publishedAll
   705 @publishedAll
   699 @released
   706 @released
   700 */
   707 */
   701 const TUid KUidContactFieldVCardMapCELL={KIntContactFieldVCardMapCELL};
   708 const TUid KUidContactFieldVCardMapCELL={KIntContactFieldVCardMapCELL};
       
   709 /** Field type maps to vCard property parameter INTERNET.
       
   710 @publishedAll
       
   711 @released
       
   712 */
       
   713 const TUid KUidContactFieldVCardMapINTERNET={KIntContactFieldVCardMapINTERNET};
   702 /** Field type maps to vCard property parameter PAGER.
   714 /** Field type maps to vCard property parameter PAGER.
   703 @publishedAll
   715 @publishedAll
   704 @released
   716 @released
   705 */
   717 */
   706 const TUid KUidContactFieldVCardMapPAGER={KIntContactFieldVCardMapPAGER};
   718 const TUid KUidContactFieldVCardMapPAGER={KIntContactFieldVCardMapPAGER};
  1086 /** Name of the PGP property parameter.
  1098 /** Name of the PGP property parameter.
  1087 @publishedAll
  1099 @publishedAll
  1088 @released
  1100 @released
  1089 */
  1101 */
  1090 _LIT(KVersitParamPGP,"PGP");
  1102 _LIT(KVersitParamPGP,"PGP");
       
  1103 /** Name of the INTERNET property parameter.
       
  1104 @publishedAll
       
  1105 @released
       
  1106 */
       
  1107 _LIT(KVersitParamINTERNET,"INTERNET");
  1091 
  1108 
  1092 /** 8 bit name of the TYPE property parameter.
  1109 /** 8 bit name of the TYPE property parameter.
  1093 @publishedAll
  1110 @publishedAll
  1094 @released
  1111 @released
  1095 */
  1112 */
  1252 /** 8 bit name of the PGP property parameter.
  1269 /** 8 bit name of the PGP property parameter.
  1253 @publishedAll
  1270 @publishedAll
  1254 @released
  1271 @released
  1255 */
  1272 */
  1256 _LIT8(KVersitParam8PGP,"PGP");
  1273 _LIT8(KVersitParam8PGP,"PGP");
       
  1274 /** 8 bit name of the INTERNET property parameter.
       
  1275 @publishedAll
       
  1276 @released
       
  1277 */
       
  1278 _LIT8(KVersitParam8Internet,"INTERNET");
  1257 
  1279 
  1258 /**
  1280 /**
  1259 8 bit name of the X-IRMC-N property parameter (family or given
  1281 8 bit name of the X-IRMC-N property parameter (family or given
  1260 name pronunciation).
  1282 name pronunciation).
  1261 @publishedAll
  1283 @publishedAll