mobilemessaging/postcard/postcardinc/PostcardPrivateCRKeys.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *     Central repository UID and key definitions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __POSTCARDPRIVATECRKEYS_H__
       
    22 #define __POSTCARDPRIVATECRKEYS_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 // Maximum length of strings in postcard repository
       
    27 const TInt KCRPocaMaxString = 128;
       
    28 
       
    29 // Postcard cenrep repository
       
    30 const TUid KCRUidPostcard = {0x102824AB};
       
    31 
       
    32 // Keys into repository
       
    33 
       
    34 // Posrcard service provider address (number or email address)
       
    35 const TUint32 KPocaKeyServiceProvider = 0x01;
       
    36 
       
    37 // Mandatory postcard address fields
       
    38 // Bits correspond the following fields
       
    39 // 	1	Name (1)
       
    40 //	2	Additional info (2)
       
    41 //	3	Street (4)
       
    42 //	4	Zip Code (8)
       
    43 //	5	City (16)
       
    44 //	6	State (32)
       
    45 //	7	Country (64)
       
    46 // default: 21
       
    47 const TUint32 KPocaKeyMandatoryFields = 0x02;
       
    48 
       
    49 // Max lengths of fields
       
    50 // 0 hids the field
       
    51 
       
    52 const TUint32 KPocaKeyMaxGreetingLength = 0x03;
       
    53 const TUint32 KPocaKeyMaxNameLength = 0x04;
       
    54 const TUint32 KPocaKeyMaxInfoLength = 0x05;
       
    55 const TUint32 KPocaKeyMaxStreetLength = 0x06;
       
    56 const TUint32 KPocaKeyMaxZipLength = 0x07;
       
    57 const TUint32 KPocaKeyMaxCityLength = 0x08;
       
    58 const TUint32 KPocaKeyMaxStateLength = 0x09;
       
    59 const TUint32 KPocaKeyMaxCountryLength = 0x0a;
       
    60 
       
    61 // Following numbers correspond the following fields
       
    62 //  0   Greeting text
       
    63 // 	1	Name
       
    64 //	2	Additional info
       
    65 //	3	Street
       
    66 //	4	Zip Code
       
    67 //	5	City
       
    68 //	6	State
       
    69 //	7	Country
       
    70 // If this is left empty, postcard is created using OMA MMS Spec
       
    71 const TUint32 KPocaKeyServiceSpecialFormat = 0x0b;
       
    72 
       
    73 // This must be the same as used above
       
    74 const TUint32 KPocaKeyServiceSeparator = 0x0c;
       
    75 
       
    76 // This is used to replace the possible separator strings in the user added
       
    77 // text. Note! This must be of the same length as r_postcard_service_separator
       
    78 const TUint32 KPocaKeyServiceReplaceString = 0x0d;
       
    79 
       
    80 // Number of keys
       
    81 const TInt KPocaKeyCount = KPocaKeyServiceReplaceString;
       
    82 
       
    83 #endif // __POSTCARDPRIVATECRKEYS_H__