|
1 /* |
|
2 * ============================================================================ |
|
3 * Name : ./accesssec/eapol/eapol_framework/wapi_symbian/wapi_server/include/WapiSettingsIf.inl |
|
4 * Part of : WAPI / WAPI *** Info from the SWAD |
|
5 * Description : WAPI authentication |
|
6 * Version : %version: 3 % << Don't touch! Updated by Synergy at check-out. |
|
7 * |
|
8 * Copyright © 2001-2010 Nokia. All rights reserved. |
|
9 * This material, including documentation and any related computer |
|
10 * programs, is protected by copyright controlled by Nokia. All |
|
11 * rights are reserved. Copying, including reproducing, storing, |
|
12 * adapting or translating, any or all of this material requires the |
|
13 * prior written consent of Nokia. This material also contains |
|
14 * confidential information which may not be disclosed to others |
|
15 * without the prior written consent of Nokia. |
|
16 * ============================================================================ |
|
17 * Template version: 4.2 |
|
18 */ |
|
19 |
|
20 #include <e32base.h> |
|
21 #include <ecom/ecom.h> |
|
22 |
|
23 inline CWapiSettingsIf::~CWapiSettingsIf() |
|
24 { |
|
25 // Unload DLL |
|
26 REComSession::DestroyedImplementation(iDtor_ID_Key); |
|
27 } |
|
28 |
|
29 inline CWapiSettingsIf* CWapiSettingsIf::NewL(abs_eap_am_tools_c * const tools, AbsEapSendInterface * client) |
|
30 { |
|
31 RDebug::Print(_L("CWapiSettingsIf::NewL(Wapi): start (tools=0x%08x, client=0x%08x)"), tools, client); |
|
32 |
|
33 TWapiSettingsIfParameters params; |
|
34 params.iTools = tools; |
|
35 params.iClient = client; |
|
36 |
|
37 // This call finds and loads the correct DLL and after that calls the |
|
38 // entry function in the interface implementation in the DLL. |
|
39 TAny* ptr = 0; |
|
40 |
|
41 const TUid KimplementationUid = { 0x2002DC92 }; |
|
42 |
|
43 TRAPD( err, ptr = REComSession::CreateImplementationL( |
|
44 KimplementationUid, |
|
45 _FOFF(CWapiSettingsIf, iDtor_ID_Key), |
|
46 (TAny*) ¶ms)); |
|
47 |
|
48 RDebug::Print(_L("CWapiSettingsIf::NewL(Wapi): CreateImplementationL(Uid=0x%08x), err=%d, returns ptr=0x%08x\n"), |
|
49 KimplementationUid.iUid, |
|
50 err, |
|
51 ptr); |
|
52 |
|
53 |
|
54 User::LeaveIfError(err); |
|
55 |
|
56 return (CWapiSettingsIf *) ptr; |
|
57 } |