epoc32/include/http/framework/csecuritypolicy.inl
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/http/framework/csecuritypolicy.inl	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/http/framework/csecuritypolicy.inl	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,65 @@
     1.4 -csecuritypolicy.inl
     1.5 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +
    1.21 +
    1.22 +/**
    1.23 + @file CSecurityPolicy.inl
    1.24 + @warning : This file contains Rose Model ID comments - please do not delete
    1.25 +*/
    1.26 +
    1.27 +#ifndef __CSECURITYPOLICY_INL__
    1.28 +#define __CSECURITYPOLICY_INL__
    1.29 +
    1.30 +
    1.31 +inline CSecurityPolicy* CSecurityPolicy::NewL(RStringPool aStringPool)
    1.32 +	{
    1.33 +	_LIT8(KDataTypeName, "security-policy");
    1.34 +
    1.35 +	// CSecurityPolicy ECOM Interface UID = 101F4485
    1.36 +	const TUid KUidSecPolInterface = {0x101F4485};
    1.37 +
    1.38 +	// Set up the parameters which allow ECOM's resolver to pick the right implementation
    1.39 +	TEComResolverParams resParams;
    1.40 +	resParams.SetDataType(KDataTypeName());
    1.41 +
    1.42 +	// Get the instantiation.  Allow ECOM to use the default resolver.  Pass in the init params.
    1.43 +	TAny* ptr = REComSession::CreateImplementationL(KUidSecPolInterface,
    1.44 +								 _FOFF(CSecurityPolicy, iDtor_ID_Key),
    1.45 +								 &aStringPool,
    1.46 +								 resParams);
    1.47 +
    1.48 +	return REINTERPRET_CAST(CSecurityPolicy*, ptr);
    1.49 +	}
    1.50 +
    1.51 +inline CSecurityPolicy::~CSecurityPolicy()
    1.52 +	{
    1.53 +	REComSession::DestroyedImplementation(iDtor_ID_Key);
    1.54 +	}
    1.55 +
    1.56 +inline CSecurityPolicy::CSecurityPolicy(RStringPool aStrPool)
    1.57 +	: iStrPool(aStrPool)
    1.58 +	{
    1.59 +	}
    1.60 +
    1.61 +
    1.62 +
    1.63 +inline void CSecurityPolicy::Reserved1()
    1.64 +	{}
    1.65 +inline void CSecurityPolicy::Reserved2()
    1.66 +	{}
    1.67 +
    1.68 +
    1.69 +#endif // __CSECURITYPOLICY_INL__