os/ossrv/lowlevellibsandfws/pluginfw/Framework/T_PlatSecECom/T_PlatSecInterface.inl
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2004-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 #include <e32def.h>
    17 
    18 const TUid KUidPlatSecECom1Impl = {0x102026AA};
    19 const TUid KUidPlatSecECom2Impl = {0x102026AC};
    20 const TUid KUidPlatSecECom3Impl = {0x102026AE};
    21 const TUid KUidPlatSecECom4Impl = {0x102026B1};
    22 
    23 inline CPlatSecInterface1::CPlatSecInterface1() :
    24 	CBase()
    25 	{
    26 	}
    27 
    28 inline CPlatSecInterface1::~CPlatSecInterface1()
    29 	{
    30 	REComSession::DestroyedImplementation(iDtor_ID_Key);
    31 	}
    32 
    33 inline CPlatSecInterface1* CPlatSecInterface1::NewL()
    34 	{
    35 	TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom1Impl,
    36 												  _FOFF(CPlatSecInterface1, iDtor_ID_Key));
    37 	return reinterpret_cast <CPlatSecInterface1*> (p);
    38 	}
    39 
    40 //
    41 
    42 inline CPlatSecInterface2::CPlatSecInterface2() :
    43 	CBase()
    44 	{
    45 	}
    46 
    47 inline CPlatSecInterface2::~CPlatSecInterface2()
    48 	{
    49 	REComSession::DestroyedImplementation(iDtor_ID_Key);
    50 	}
    51 
    52 inline CPlatSecInterface2* CPlatSecInterface2::NewL()
    53 	{
    54 	TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom2Impl,
    55 												  _FOFF(CPlatSecInterface2, iDtor_ID_Key));
    56 	return reinterpret_cast <CPlatSecInterface2*> (p);
    57 	}
    58 
    59 
    60 //
    61 
    62 inline CPlatSecInterface3::CPlatSecInterface3() :
    63 	CBase()
    64 	{
    65 	}
    66 
    67 inline CPlatSecInterface3::~CPlatSecInterface3()
    68 	{
    69 	REComSession::DestroyedImplementation(iDtor_ID_Key);
    70 	}
    71 
    72 inline CPlatSecInterface3* CPlatSecInterface3::NewL()
    73 	{
    74 	TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom3Impl,
    75 												  _FOFF(CPlatSecInterface3, iDtor_ID_Key));
    76 	return reinterpret_cast <CPlatSecInterface3*> (p);
    77 	}
    78 //
    79 
    80 inline CPlatSecInterface4::CPlatSecInterface4() :
    81 	CBase()
    82 	{
    83 	}
    84 
    85 inline CPlatSecInterface4::~CPlatSecInterface4()
    86 	{
    87 	REComSession::DestroyedImplementation(iDtor_ID_Key);
    88 	}
    89 
    90 inline CPlatSecInterface4* CPlatSecInterface4::NewL()
    91 	{
    92 	TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom4Impl,
    93 												  _FOFF(CPlatSecInterface4, iDtor_ID_Key));
    94 	return reinterpret_cast <CPlatSecInterface4*> (p);
    95 	}