simpleengine/xdmrlspres/inc/rlspresxdmconstsint.h
changeset 0 c8caa15ef882
equal deleted inserted replaced
-1:000000000000 0:c8caa15ef882
       
     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:    RLS and Presence XDM, This is internal constants.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __RLSPRESXDMCONSTSINT_H__
       
    21 #define __RLSPRESXDMCONSTSINT_H__
       
    22 
       
    23 #include <xcapappusagedef.h>
       
    24 
       
    25 // this is total length of rule id i.e. KPresRuleIDPrefix + random number
       
    26 const TInt KPresRuleIDLength(7);
       
    27 const TInt KPresRuleIDPrefixLength(3);
       
    28 const TInt KPresRuleIDNumLength(4);
       
    29 const TInt KPresRuleIdCalc(16770000); // basically we want only last four digits
       
    30 
       
    31 const TInt KPresDateTimeBufLength(60);
       
    32 const TInt KPresTransCompAttrLength = 25;
       
    33 const TInt KPresRLSElemAttrNameLen  = 10;
       
    34 
       
    35 const TInt KPresRLSDesArrayInitlVal = 10;
       
    36 const TInt KPresRLSChildConstBufLen = 5;
       
    37 
       
    38 //Validity constants
       
    39 const TInt KPresDTWithoutUTCLength = 24;
       
    40 const TInt KPresDTSeperatorPos     = 10; 
       
    41 
       
    42 
       
    43 // document names
       
    44 _LIT(KRLSDocumentName, "index");
       
    45 _LIT(KPresDocumentName, "pres-rules");
       
    46 
       
    47 // directory model names
       
    48 _LIT(KRLSDirectoryModel, "rls-services");
       
    49 _LIT(KPresRulesDirectoryModel, "org.openmobilealliance.pres-rules");
       
    50 
       
    51 //Logging constants
       
    52 _LIT(KPresRLSLogDir, "rlspresxdmapi");
       
    53 _LIT(KPresRLSLogFile, "rlspresxdm.txt");
       
    54 
       
    55 // Time formatting strings
       
    56 _LIT(KPresDateTimeFormatString, "%Y%M%D%/0%1%/1%2%/2%3%/3%J%:1%T%:2%S%.%*C3%:3");
       
    57 _LIT(KPresUTCFormatString, "%J%:1%T");
       
    58 _LIT(KPresSpaceString, " ");
       
    59 
       
    60 
       
    61 // Async operation states for RlsXDM
       
    62 enum ERLSXDMAsyncOperation
       
    63     {
       
    64     ERLSXDMNoRequestMade = 0,
       
    65     ERLSXDMUpdateToServer,
       
    66     ERLSXDMUpdateFromServer,
       
    67     ERLSXDMDeletingEmptyLists,
       
    68     ERLSXDMDeletedEmptyLists,
       
    69     ERLSXDMRequestCancelling
       
    70     };
       
    71 
       
    72 // Async operation states for PresXDM    
       
    73 enum EPresXDMAsyncOperation
       
    74     {
       
    75     EPresXDMNoRequestMade = 0,
       
    76     EPresXDMUpdateToServer,
       
    77     EPresXDMUpdateFromServer,
       
    78     EPresXDMRequestCancelling        
       
    79     };
       
    80 
       
    81 // The first rule id from which random generation begins   
       
    82 _LIT(   KPresRuleIDPrefix,                                  "nok0000");
       
    83 
       
    84 
       
    85 #endif // __RLSPRESXDMCONSTSINT_H__