os/persistentdata/persistentstorage/centralrepository/cenrepsrv/srvreqs.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/centralrepository/cenrepsrv/srvreqs.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,93 @@
     1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef SRVREQS_H
    1.20 +#define SRVREQS_H
    1.21 +
    1.22 +#include <e32base.h>
    1.23 +
    1.24 +enum TServerRequest
    1.25 +	{
    1.26 +	EInitialise,
    1.27 +	ECreateInt,
    1.28 +	ECreateReal,
    1.29 +	ECreateString,
    1.30 +	EDelete,
    1.31 +	EGetInt,
    1.32 +	ESetInt,
    1.33 +	EGetReal,
    1.34 +	ESetReal,
    1.35 +	EGetString,
    1.36 +	ESetString,
    1.37 +	EFind,
    1.38 +	EFindEqInt,
    1.39 +	EFindEqReal,
    1.40 +	EFindEqString,
    1.41 +	EFindNeqInt,
    1.42 +	EFindNeqReal,
    1.43 +	EFindNeqString,
    1.44 +	EGetFindResult,
    1.45 +	ENotifyRequestCheck,
    1.46 +	ENotifyRequest,
    1.47 +	ENotifyCancel,
    1.48 +	ENotifyCancelAll,
    1.49 +	EGroupNotifyRequest,
    1.50 +	EGroupNotifyCancel,
    1.51 +	EReset,
    1.52 +	EResetAll,
    1.53 +	ETransactionStart,
    1.54 +	ETransactionCommit,
    1.55 +	ETransactionCancel,
    1.56 +	EMove,
    1.57 +	ETransactionState,
    1.58 +	ETransactionFail,
    1.59 +	EDeleteRange,
    1.60 +	EGetMeta,
    1.61 +
    1.62 +	EClose,              //Add any new func code above EClose, not after
    1.63 +	                     //Or you need to insert gaps in actionTable!
    1.64 +	ELastInTable=EClose, //ELastInTable should always be set equal to the last service ID
    1.65 +
    1.66 +	EGetSetParameters,
    1.67 +	EInitialiseServer
    1.68 +	};
    1.69 +
    1.70 +#if defined(__CENTREP_SERVER_PERFTEST__) || defined(__CENTREP_SERVER_MEMTEST__) || defined(__CENTREP_SERVER_CACHETEST__)
    1.71 +
    1.72 +enum TServerGetSetParametersSubCmd
    1.73 +	{
    1.74 +	//Subcommands for CentRep server performance test which is run when __CENTREP_SERVER_PERFTEST__ macro is defined
    1.75 +	EGetPerfResults,
    1.76 +	ERestartPerfTests,
    1.77 +	EStopPerfTests,	
    1.78 +	//Subcommands for CentRep server memory test which is run when __CENTREP_SERVER_MEMTEST__ macro is defined
    1.79 +	EGetMemResults,
    1.80 +	ERestartMemTests,
    1.81 +	ESingleMemTest,	
    1.82 +	//Subcommands for CentRep server cache test which is run when __CENTREP_SERVER_CACHETEST__ macro is defined
    1.83 +	EEnableCache,
    1.84 +	EDisableCache,
    1.85 +	// The identifier for last command. Should always remain at the end
    1.86 +	ELast
    1.87 +	};
    1.88 +#endif // __CENTREP_SERVER_PERFTEST__ || __CENTREP_SERVER_MEMTEST__ || __CENTREP_SERVER_CACHETEST__
    1.89 +
    1.90 +struct TKeyFilter
    1.91 +	{
    1.92 +	TUint32 iPartialId;
    1.93 +	TUint32 iIdMask;
    1.94 +	};
    1.95 +	
    1.96 +#endif // SRVREQS_H