os/ossrv/lowlevellibsandfws/pluginfw/Framework/T_PlatSecECom/T_PlatSecInterface.inl
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/Framework/T_PlatSecECom/T_PlatSecInterface.inl Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,95 @@
1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#include <e32def.h>
1.20 +
1.21 +const TUid KUidPlatSecECom1Impl = {0x102026AA};
1.22 +const TUid KUidPlatSecECom2Impl = {0x102026AC};
1.23 +const TUid KUidPlatSecECom3Impl = {0x102026AE};
1.24 +const TUid KUidPlatSecECom4Impl = {0x102026B1};
1.25 +
1.26 +inline CPlatSecInterface1::CPlatSecInterface1() :
1.27 + CBase()
1.28 + {
1.29 + }
1.30 +
1.31 +inline CPlatSecInterface1::~CPlatSecInterface1()
1.32 + {
1.33 + REComSession::DestroyedImplementation(iDtor_ID_Key);
1.34 + }
1.35 +
1.36 +inline CPlatSecInterface1* CPlatSecInterface1::NewL()
1.37 + {
1.38 + TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom1Impl,
1.39 + _FOFF(CPlatSecInterface1, iDtor_ID_Key));
1.40 + return reinterpret_cast <CPlatSecInterface1*> (p);
1.41 + }
1.42 +
1.43 +//
1.44 +
1.45 +inline CPlatSecInterface2::CPlatSecInterface2() :
1.46 + CBase()
1.47 + {
1.48 + }
1.49 +
1.50 +inline CPlatSecInterface2::~CPlatSecInterface2()
1.51 + {
1.52 + REComSession::DestroyedImplementation(iDtor_ID_Key);
1.53 + }
1.54 +
1.55 +inline CPlatSecInterface2* CPlatSecInterface2::NewL()
1.56 + {
1.57 + TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom2Impl,
1.58 + _FOFF(CPlatSecInterface2, iDtor_ID_Key));
1.59 + return reinterpret_cast <CPlatSecInterface2*> (p);
1.60 + }
1.61 +
1.62 +
1.63 +//
1.64 +
1.65 +inline CPlatSecInterface3::CPlatSecInterface3() :
1.66 + CBase()
1.67 + {
1.68 + }
1.69 +
1.70 +inline CPlatSecInterface3::~CPlatSecInterface3()
1.71 + {
1.72 + REComSession::DestroyedImplementation(iDtor_ID_Key);
1.73 + }
1.74 +
1.75 +inline CPlatSecInterface3* CPlatSecInterface3::NewL()
1.76 + {
1.77 + TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom3Impl,
1.78 + _FOFF(CPlatSecInterface3, iDtor_ID_Key));
1.79 + return reinterpret_cast <CPlatSecInterface3*> (p);
1.80 + }
1.81 +//
1.82 +
1.83 +inline CPlatSecInterface4::CPlatSecInterface4() :
1.84 + CBase()
1.85 + {
1.86 + }
1.87 +
1.88 +inline CPlatSecInterface4::~CPlatSecInterface4()
1.89 + {
1.90 + REComSession::DestroyedImplementation(iDtor_ID_Key);
1.91 + }
1.92 +
1.93 +inline CPlatSecInterface4* CPlatSecInterface4::NewL()
1.94 + {
1.95 + TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom4Impl,
1.96 + _FOFF(CPlatSecInterface4, iDtor_ID_Key));
1.97 + return reinterpret_cast <CPlatSecInterface4*> (p);
1.98 + }