PECengine/PluginServer2/SrvInc/PEngPlgSrvCommon.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:  See class description below.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CPENGPLGSRVCOMMON_H__
       
    20 #define __CPENGPLGSRVCOMMON_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 //Client's version number. Major, Minor, Build
       
    26 const TInt KClientVersionMajor = 1;
       
    27 const TInt KClientVersionMinor = 0;
       
    28 const TInt KClientVersionBuild = 0;
       
    29 const TInt KRequiredVersionMajor = 1;
       
    30 const TInt KRequiredVersionMinor = 0;
       
    31 const TInt KRequiredVersionBuild = 0;
       
    32 
       
    33 /**
       
    34  * Base name for Storage Server executable.
       
    35  * Executable drive, folder and filename extension are determined
       
    36  * by the PEngServerStarter during the compile / runtime.
       
    37  *
       
    38  * This has to match component base name in component mmp file.
       
    39  */
       
    40 _LIT( KPEngPluginServerExe, "PEngPlgServ2" );
       
    41 
       
    42 _LIT8(  KPEngOfflineType, "PECOffline" );
       
    43 _LIT8(  KPEngOnlineType, "PECOnline" );
       
    44 
       
    45 //  DATA TYPES
       
    46 enum TPEngCacheServerMessages
       
    47     {
       
    48     EPEngPlgShutdownServer = 1,	    // no parameters
       
    49     EPEngPlgSetStateOffline,        // no parameters
       
    50     EPEngPlgSetStateOnline,         // no parameters
       
    51     EPEngPlgPluginCount,		    // no parameters, return >= 0 == count, return < 0 == error
       
    52     EPEngPlgPluginUid,              // parameter 0 is for the plugin index
       
    53     // return >= 0 == uid, return < 0 == error
       
    54     EPEngPlgServerLastRequest       // keep this as the last one for policy setting
       
    55     };
       
    56 
       
    57 enum TPEngCacheServerPanic
       
    58     {
       
    59     EClientMissing = 1,
       
    60     ESchedulerError,
       
    61     };
       
    62 
       
    63 enum TPEngCacheClientPanic
       
    64     {
       
    65     EBadRequest = 1024
       
    66     };
       
    67 
       
    68 enum TPEngPlgOnlineState
       
    69     {
       
    70     EPEngPlgSvrStateUnknown,
       
    71     EPEngPlgSvrStateOffline,
       
    72     EPEngPlgSvrStateOnline
       
    73     };
       
    74 
       
    75 #endif      //  __CPENGPLGSRVCOMMON_H__
       
    76