PECengine/PresenceServer2/ServerInc/TPEngServerCommon.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Common constants definition for Presence server and its client
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __TPENGSERVERCOMMON_H__
       
    20 #define __TPENGSERVERCOMMON_H__
       
    21 
       
    22 //  CONSTANTS
       
    23 _LIT( KServerName, "PEngTransactionServer" );
       
    24 
       
    25 _LIT( KSessionName, "DPEngTransactionServerSession" );
       
    26 
       
    27 //Client's version number.
       
    28 const TInt KClientVersionMajor = 1;
       
    29 const TInt KClientVersionMinor = 1;
       
    30 const TInt KClientVersionBuild = 1;
       
    31 
       
    32 const CActive::TPriority KServerPriority = CActive::EPriorityStandard;
       
    33 const TThreadPriority KServerThreadPriority = EPriorityNormal;
       
    34 
       
    35 
       
    36 
       
    37 /**
       
    38 * Base name for Presence Server executable.
       
    39 * Executable drive, folder and filename extension are determined
       
    40 * by the PEngServerStarter during the compile / runtime.
       
    41 *
       
    42 * This has to match component base name in component mmp file.
       
    43 */
       
    44 _LIT( KServerExe, "PENGSERVER2" );
       
    45 
       
    46 
       
    47 
       
    48 enum TPEngServerPanic
       
    49     {
       
    50     EClientMissing = 1,
       
    51 
       
    52     ESchedulerError,
       
    53 
       
    54     EStateMachineInitFailed,
       
    55 
       
    56     EPECBadDescriptor,
       
    57 
       
    58     EPECBadRequest
       
    59     };
       
    60 
       
    61 #endif      //  __TPENGSERVERCOMMON_H__
       
    62