|
1 /* |
|
2 * Copyright (c) 2000 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of terminalsecurity components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SCPPLUGIN_INL |
|
20 #define __SCPPLUGIN_INL |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include <e32debug.h> |
|
24 #include <ecom/ecom.h> |
|
25 |
|
26 #include <SCPServerInterface.h> |
|
27 |
|
28 // ================= MEMBER FUNCTIONS ======================= |
|
29 |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // |
|
33 CSCPPlugin::CSCPPlugin() |
|
34 { |
|
35 // No implementation required |
|
36 } |
|
37 |
|
38 |
|
39 // Static constructor. |
|
40 CSCPPlugin* CSCPPlugin::NewL( TDesC8& aResData ) |
|
41 { |
|
42 // Set the resolver parameters to seek out the |
|
43 // specific object with the given ID data |
|
44 TEComResolverParams resolverParams; |
|
45 resolverParams.SetDataType( aResData ); |
|
46 resolverParams.SetWildcardMatch( ETrue ); |
|
47 |
|
48 // Create the implementation |
|
49 TAny* newPlugin = REComSession::CreateImplementationL( |
|
50 KSCPPluginInterfaceUID, |
|
51 _FOFF( CSCPPlugin, iDtor_ID_Key ), |
|
52 resolverParams |
|
53 ); |
|
54 |
|
55 return static_cast<CSCPPlugin*>( newPlugin ); |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------- |
|
59 // void CSCPPlugin::~CSCPPlugin() |
|
60 // |
|
61 // |
|
62 // Status : Draft |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 CSCPPlugin::~CSCPPlugin() |
|
66 { |
|
67 Dprint( (_L("--> CSCPPlugin::~CSCPPlugin()")) ); |
|
68 |
|
69 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
70 |
|
71 Dprint( (_L("<-- CSCPPlugin::~CSCPPlugin()")) ); |
|
72 } |
|
73 |
|
74 #endif // __SCPPLUGIN_INL |
|
75 |
|
76 // End of File |
|
77 |