rtsecuritymanager/rtsecuritymanagerserver/inc/rtsecmgrsubsession.inl
author MattD <mattd@symbian.org>
Thu, 12 Nov 2009 16:07:15 +0000
changeset 16 1bbcd4fdd5e1
parent 0 99ef825efeca
permissions -rw-r--r--
Added tag PDK_3.0.c for changeset 93c869ba5d1f

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:      
*
*/






inline CRTSecMgrSubSession::CRTSecMgrSubSession(CRTSecMgrSession* aSession,
		CScript* aScriptInfo, CRTSecMgrServer* aSecMgrServer) :
	iSession(aSession), iScript(aScriptInfo),iSecMgrServer(aSecMgrServer)
	{
	}

inline CRTSecMgrSubSession* CRTSecMgrSubSession::NewL(CRTSecMgrSession* aSession,
		CScript* aScript,CRTSecMgrServer* aSecMgrServer)
	{
	return new (ELeave) CRTSecMgrSubSession(aSession,aScript,aSecMgrServer);
	}

inline CRTSecMgrSubSession::~CRTSecMgrSubSession()
	{
	delete iScript;
	}

inline TExecutableID CRTSecMgrSubSession::ScriptID() const
	{
	if ( iScript)
		{
		return iScript->ScriptID ();
		}

	return KAnonymousScript;
	}

inline const CScript& CRTSecMgrSubSession::Script() const
	{
	return *iScript;
	}