epoc32/include/mw/http/framework/csecuritypolicy.inl
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file CSecurityPolicy.inl
    18  @warning : This file contains Rose Model ID comments - please do not delete
    19 */
    20 
    21 #ifndef __CSECURITYPOLICY_INL__
    22 #define __CSECURITYPOLICY_INL__
    23 
    24 
    25 inline CSecurityPolicy* CSecurityPolicy::NewL(RStringPool aStringPool)
    26 	{
    27 	_LIT8(KDataTypeName, "security-policy");
    28 
    29 	// CSecurityPolicy ECOM Interface UID = 101F4485
    30 	const TUid KUidSecPolInterface = {0x101F4485};
    31 
    32 	// Set up the parameters which allow ECOM's resolver to pick the right implementation
    33 	TEComResolverParams resParams;
    34 	resParams.SetDataType(KDataTypeName());
    35 
    36 	// Get the instantiation.  Allow ECOM to use the default resolver.  Pass in the init params.
    37 	TAny* ptr = REComSession::CreateImplementationL(KUidSecPolInterface,
    38 								 _FOFF(CSecurityPolicy, iDtor_ID_Key),
    39 								 &aStringPool,
    40 								 resParams);
    41 
    42 	return REINTERPRET_CAST(CSecurityPolicy*, ptr);
    43 	}
    44 
    45 inline CSecurityPolicy::~CSecurityPolicy()
    46 	{
    47 	REComSession::DestroyedImplementation(iDtor_ID_Key);
    48 	}
    49 
    50 inline CSecurityPolicy::CSecurityPolicy(RStringPool aStrPool)
    51 	: iStrPool(aStrPool)
    52 	{
    53 	}
    54 
    55 
    56 
    57 inline void CSecurityPolicy::Reserved1()
    58 	{}
    59 inline void CSecurityPolicy::Reserved2()
    60 	{}
    61 
    62 
    63 #endif // __CSECURITYPOLICY_INL__