|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Inline functions of CHssClientPlugin class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef HSSCLIENTPLUGIN_INL |
|
21 #define HSSCLIENTPLUGIN_INL |
|
22 |
|
23 // --------------------------------------------------------- |
|
24 // CHssClientPlugin::NewL |
|
25 // --------------------------------------------------------- |
|
26 // |
|
27 inline CHssClientPlugin* CHssClientPlugin::NewL( const TUid aUid, TDesC8& aUidText ) |
|
28 { |
|
29 TAny* interface( NULL ); |
|
30 if ( aUidText != KNullDesC8 ) |
|
31 { |
|
32 TEComResolverParams resolverParams; |
|
33 |
|
34 TBuf8<KExtensionAPILength> buf; |
|
35 buf.Append( KUidPrefix ); |
|
36 buf.Append( aUidText ); |
|
37 buf.Append( KExtensionAPI ); |
|
38 resolverParams.SetDataType( buf ); |
|
39 resolverParams.SetWildcardMatch( ETrue ); |
|
40 |
|
41 interface = REComSession::CreateImplementationL( |
|
42 K3rdPartyEcomInterfaceUid, _FOFF( CHssClientPlugin, |
|
43 iInstanceIdentifier ), |
|
44 resolverParams ); |
|
45 } |
|
46 else |
|
47 { |
|
48 interface = REComSession::CreateImplementationL( |
|
49 aUid, _FOFF( CHssClientPlugin, |
|
50 iInstanceIdentifier ) ); |
|
51 } |
|
52 return reinterpret_cast<CHssClientPlugin*>( interface ); |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------- |
|
56 //CHssClientPlugin::~CHssClientPlugin |
|
57 // --------------------------------------------------------- |
|
58 // |
|
59 inline CHssClientPlugin::~CHssClientPlugin() |
|
60 { |
|
61 REComSession::DestroyedImplementation( iInstanceIdentifier ); |
|
62 } |
|
63 |
|
64 #endif // CHssClientPlugin_INL |
|
65 |
|
66 // End of File |