sl@0
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#include <e32def.h>
|
sl@0
|
17 |
|
sl@0
|
18 |
const TUid KUidPlatSecECom1Impl = {0x102026AA};
|
sl@0
|
19 |
const TUid KUidPlatSecECom2Impl = {0x102026AC};
|
sl@0
|
20 |
const TUid KUidPlatSecECom3Impl = {0x102026AE};
|
sl@0
|
21 |
const TUid KUidPlatSecECom4Impl = {0x102026B1};
|
sl@0
|
22 |
|
sl@0
|
23 |
inline CPlatSecInterface1::CPlatSecInterface1() :
|
sl@0
|
24 |
CBase()
|
sl@0
|
25 |
{
|
sl@0
|
26 |
}
|
sl@0
|
27 |
|
sl@0
|
28 |
inline CPlatSecInterface1::~CPlatSecInterface1()
|
sl@0
|
29 |
{
|
sl@0
|
30 |
REComSession::DestroyedImplementation(iDtor_ID_Key);
|
sl@0
|
31 |
}
|
sl@0
|
32 |
|
sl@0
|
33 |
inline CPlatSecInterface1* CPlatSecInterface1::NewL()
|
sl@0
|
34 |
{
|
sl@0
|
35 |
TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom1Impl,
|
sl@0
|
36 |
_FOFF(CPlatSecInterface1, iDtor_ID_Key));
|
sl@0
|
37 |
return reinterpret_cast <CPlatSecInterface1*> (p);
|
sl@0
|
38 |
}
|
sl@0
|
39 |
|
sl@0
|
40 |
//
|
sl@0
|
41 |
|
sl@0
|
42 |
inline CPlatSecInterface2::CPlatSecInterface2() :
|
sl@0
|
43 |
CBase()
|
sl@0
|
44 |
{
|
sl@0
|
45 |
}
|
sl@0
|
46 |
|
sl@0
|
47 |
inline CPlatSecInterface2::~CPlatSecInterface2()
|
sl@0
|
48 |
{
|
sl@0
|
49 |
REComSession::DestroyedImplementation(iDtor_ID_Key);
|
sl@0
|
50 |
}
|
sl@0
|
51 |
|
sl@0
|
52 |
inline CPlatSecInterface2* CPlatSecInterface2::NewL()
|
sl@0
|
53 |
{
|
sl@0
|
54 |
TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom2Impl,
|
sl@0
|
55 |
_FOFF(CPlatSecInterface2, iDtor_ID_Key));
|
sl@0
|
56 |
return reinterpret_cast <CPlatSecInterface2*> (p);
|
sl@0
|
57 |
}
|
sl@0
|
58 |
|
sl@0
|
59 |
|
sl@0
|
60 |
//
|
sl@0
|
61 |
|
sl@0
|
62 |
inline CPlatSecInterface3::CPlatSecInterface3() :
|
sl@0
|
63 |
CBase()
|
sl@0
|
64 |
{
|
sl@0
|
65 |
}
|
sl@0
|
66 |
|
sl@0
|
67 |
inline CPlatSecInterface3::~CPlatSecInterface3()
|
sl@0
|
68 |
{
|
sl@0
|
69 |
REComSession::DestroyedImplementation(iDtor_ID_Key);
|
sl@0
|
70 |
}
|
sl@0
|
71 |
|
sl@0
|
72 |
inline CPlatSecInterface3* CPlatSecInterface3::NewL()
|
sl@0
|
73 |
{
|
sl@0
|
74 |
TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom3Impl,
|
sl@0
|
75 |
_FOFF(CPlatSecInterface3, iDtor_ID_Key));
|
sl@0
|
76 |
return reinterpret_cast <CPlatSecInterface3*> (p);
|
sl@0
|
77 |
}
|
sl@0
|
78 |
//
|
sl@0
|
79 |
|
sl@0
|
80 |
inline CPlatSecInterface4::CPlatSecInterface4() :
|
sl@0
|
81 |
CBase()
|
sl@0
|
82 |
{
|
sl@0
|
83 |
}
|
sl@0
|
84 |
|
sl@0
|
85 |
inline CPlatSecInterface4::~CPlatSecInterface4()
|
sl@0
|
86 |
{
|
sl@0
|
87 |
REComSession::DestroyedImplementation(iDtor_ID_Key);
|
sl@0
|
88 |
}
|
sl@0
|
89 |
|
sl@0
|
90 |
inline CPlatSecInterface4* CPlatSecInterface4::NewL()
|
sl@0
|
91 |
{
|
sl@0
|
92 |
TAny* p = REComSession::CreateImplementationL(KUidPlatSecECom4Impl,
|
sl@0
|
93 |
_FOFF(CPlatSecInterface4, iDtor_ID_Key));
|
sl@0
|
94 |
return reinterpret_cast <CPlatSecInterface4*> (p);
|
sl@0
|
95 |
}
|