messagingfw/biomsgfw/CBCPINC/CBCPDEF.H
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 1999-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Definitions for use in the Compact Business Card parser.
       
    15 // 
       
    16 //
       
    17 
       
    18 #if !defined (__CBCPDEF_H__)
       
    19 #define __CBCPDEF_H__
       
    20 
       
    21 // Compact Business Card parser UID.
       
    22 const TUid KUidMsvBIOBusinessCardParserDLL = {0x1000526B};
       
    23 
       
    24 // Parse constants
       
    25 #define KCharColon          ':'
       
    26 #define KCharComma		    ','
       
    27 #define KCharSlash			'/'
       
    28 #define KCharCarriageReturn '\r'
       
    29 
       
    30 _LIT(KCharSemiColon,";");
       
    31 _LIT(KVCardExt,".vcf");
       
    32 
       
    33 // Header fields defined in Nokia Smart Messaging Specification grammar (3.3.1).
       
    34 // N.B. If fields are modified then PrintFieldToRichTextL() will need to be changed accordingly.
       
    35 _LIT(KBusinessCardHeader,"Business Card");
       
    36 _LIT(KHeaderName, "Name");
       
    37 _LIT(KHeaderCompany,"Company");
       
    38 _LIT(KHeaderTitle,"Title");
       
    39 #define KTelOffset 4
       
    40 _LIT(KHeaderPhone,"Phone");
       
    41 _LIT(KHeaderFax,"Fax");
       
    42 _LIT(KHeaderEmail,"Email");
       
    43 #define KNumberOfAddressLines 5
       
    44 _LIT(KHeaderStreet1,"Street1");
       
    45 _LIT(KHeaderStreet2,"Street2");
       
    46 _LIT(KHeaderStreet3,"Street3");
       
    47 _LIT(KHeaderStreet4,"Street4");
       
    48 _LIT(KHeaderStreet5,"Street5");
       
    49 _LIT(KHeaderExtra,"Extra lines");
       
    50 _LIT(KInitialFieldValue,"");				// For initialising newly created fields.
       
    51 
       
    52 // vCard fields.
       
    53 // These are all the vCard fields for which we can extract data from a Compact Business Card.
       
    54 _LIT(KVCardHeader,"BEGIN:VCARD");
       
    55 _LIT(KVCardFormattedName,"\r\nFN:");
       
    56 _LIT(KVCardName,"\r\nN:");
       
    57 _LIT(KVCardAddress,"\r\nADR:");
       
    58 _LIT(KVCardNote,"\r\nNOTE:");
       
    59 _LIT(KVCardTel,"\r\nTEL;VOICE:");
       
    60 _LIT(KVCardTelCell,"\r\nTEL;CELL:");
       
    61 _LIT(KVCardFax,"\r\nTEL;FAX:");
       
    62 _LIT(KVCardFaxCell,"\r\nTEL;FAX;CELL:");
       
    63 _LIT(KVCardEmail,"\r\nEMAIL;INTERNET:");
       
    64 _LIT(KVCardTitle,"\r\nTITLE:");
       
    65 _LIT(KVCardOrg,"\r\nORG:");
       
    66 _LIT(KVCardVersion,"\r\nVERSION:2.1");
       
    67 _LIT(KVCardClass,"\r\nCLASS:PUBLIC");
       
    68 _LIT(KVCardFooter,"\r\nEND:VCARD\r\n");
       
    69 
       
    70 
       
    71 // Prefix added to indicate a cellphone number
       
    72 _LIT(KVPrefixCell,"(GSM)");
       
    73 
       
    74 
       
    75 #define KUidCharsetISO88591         0x10003b10
       
    76 #define	KServerIdModVal				512
       
    77 
       
    78 
       
    79 #endif //__CBCPDEF_H__