sysstatemgmt/systemstatemgr/ssm/inc/ssmswppolicyconst.h
author William Roberts <williamr@symbian.org>
Wed, 23 Jun 2010 22:58:50 +0100
branchGCC_SURGE
changeset 38 61516c5786af
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Select correct DEF file for GCCE builds, and remove obsolete eabi deffiles which were used instead - bug 2965

// ssmswppolicyconst.h

// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef SSMSWPPOLICYCONST_H_
#define SSMSWPPOLICYCONST_H_

const TUint KFirstUsedOpCode = 1;

enum TSsmSwpPolicySrvCommand
	{
	ESsmPolicySrvSetSwpPolicyDllHandleAndInitialize = KFirstUsedOpCode,
	ESsmPolicySrvInitializeCancel,
	ESsmPolicySrvPrepareCommandList,
	ESsmPolicySrvPrepareCommandListCancel,
	ESsmPolicySrvCommandList,
	ESsmPolicySrvHandleCleReturnValue,
	ESsmPolicySrvHandleCleReturnValueCancel,

	//Only for testing purpose and used in debug builds only
	EDebugMarkHeap,
	EDeleteSSwpPolicySessionInfo,
	EDebugMarkHeapEnd,
	EDebugSetHeapFailure,
	EDebugHeapReset,
	
	EEndOfSsmSwpPolicySrvOpCodes
	};

const TInt KSsmSwpPolicySrvVersionMajor = 0; // 0-127
const TInt KSsmSwpPolicySrvVersionMinor = 0; // 0-99
const TInt KSsmSwpPolicySrvVersionBuild = 0; // 0-32767
	
_LIT(KSsmSwpPolicyServer,"SsmSwpPolicyServer");

#define IN_RANGE( x, y ) ( (x >= 0) && (x < y) )

_LIT( KSsmSwpPolicyBadIdx,"SsmSwpPolicyBadIdx" );
const TInt KSsmSwpPolicySrvArrayIndexInvalid = -555;	//random no.
const TInt KSsmSwpPolicyStreamBufMaxSize = 6000;
	
#endif //SSMSWPPOLICYCONST_H_