ccservices/cmsservices/cmsengine/inc/cmscommondefines.h
changeset 0 e686773b3f54
child 14 81f8547efd4f
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005 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 *       
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CMSCOMMON_H__
       
    21 #define __CMSCOMMON_H__
       
    22 
       
    23 #include <e32def.h>
       
    24     
       
    25 // server name
       
    26 _LIT( KCmsServerName,                          "!CmsServer" );
       
    27 _LIT( KCmsServerLib,                           "CmsServer" );
       
    28 _LIT( KCmsServerExe,                           "cmsserver.exe");
       
    29 
       
    30 // A version must be specifyed when creating a session with the server
       
    31 const TUint KCmsSrvMajorVersionNumber          = 0;
       
    32 const TUint KCmsSrvMinorVersionNumber          = 1;
       
    33 const TUint KCmsSrvBuildVersionNumber          = 1;
       
    34 
       
    35 // Server panic codes
       
    36 enum TCmsServerPanic
       
    37     {
       
    38     ECmsCreateServer = 0,
       
    39     ECmsStartServer,
       
    40     ECmsFileServerConnect,
       
    41     EMainSchedulerError,
       
    42     EBadSubSessionRemove,
       
    43     EBadSubsessionHandle,
       
    44     ENullInterfaceHandle,
       
    45     ENullMessageHandle,
       
    46     ENullContactHandle,
       
    47     ENullBPASHandle,
       
    48     EBufferOverflow,
       
    49     EBadRequest
       
    50     };
       
    51     
       
    52 //Opcodes used in message passing between client and server
       
    53 enum TCmsServerRequest
       
    54 	{
       
    55 	ECmsOpenID = 0,
       
    56     ECmsOpenLink,
       
    57 	ECmsOpenPhoneNbr,
       
    58     ECmsCancelOperation,
       
    59     ECmsCloseSubsession,
       
    60     ECmsFetchContactField,
       
    61     ECmsFetchEnabledFields,
       
    62     ECmsFetchContactIdentifier,
       
    63     ECmsOrderNotification,
       
    64     ECmsOrderNextNotification,
       
    65     ECmsCancelNotification,
       
    66     ECmsCancelExternalContactFind,
       
    67     ECmsFindParentStore,
       
    68     ECmsFindExternalContact,
       
    69     ECmsFetchServiceAvailability,
       
    70     ECmsGetContactActionFieldCount
       
    71 	};	
       
    72 
       
    73 //Presence data stream delimiters
       
    74 _LIT8( KDelimiterNewLine,                           "\r\n\r\n" );
       
    75 _LIT8( KDelimiterSpaceLit,                          " " );
       
    76 _LIT8( KDelimiterQuoteLit,                          "\"" );
       
    77 const TInt KDelimiterSpace                          = 32;
       
    78 const TInt KDelimiterQuote                          = 34;
       
    79 
       
    80 //Presence data stream identifiers
       
    81 const TInt KPresenceDataBrandId                     = 0;
       
    82 const TInt KPresenceDataElementTextId               = 1;
       
    83 const TInt KPresenceDataElementImageId              = 2;
       
    84 const TInt KPresenceDataLanguageId                  = 3;
       
    85 const TInt KPresenceDataUserIdentity                = 4;
       
    86 const TInt KPresenceDataServiceType                 = 5;
       
    87 
       
    88 //Number of asynchronous requests
       
    89 const TUint KTTMaxAsyncRequests                     = 4;
       
    90 
       
    91 //Number of data transfer requests
       
    92 const TUint KTTDataTransferRequests                 = 3;
       
    93 
       
    94 //Default number of message slots per session
       
    95 const TUint KTTDefaultMessageSlots	                = 52; // KTTMaxAsyncRequests + 2; // TODO: temporary for demo
       
    96 
       
    97 const TInt KServerLogBufferMaxSize                  = 2000;
       
    98 
       
    99 #endif // #ifndef __CMSCOMMON_H__
       
   100 
       
   101 // End of File