|
1 /* |
|
2 * Copyright (c) 2003 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 for CCoUtlInterface class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <ecom/ecom.h> |
|
22 #include <CoUtlInterface.hrh> |
|
23 |
|
24 // CONSTANTS |
|
25 _LIT8( KCoUtlResolverData, "default" ); |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CCoUtlInterface::NewL |
|
31 // ECom is used to create instance. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 inline CCoUtlInterface* CCoUtlInterface::NewL() |
|
35 { |
|
36 const TUid KCoUtlInterfaceDefinitionUid = |
|
37 { KCoUtlInterfaceUid }; |
|
38 |
|
39 TEComResolverParams params; |
|
40 params.SetDataType( KCoUtlResolverData ); |
|
41 params.SetWildcardMatch( EFalse ); |
|
42 |
|
43 TAny* ptr = |
|
44 REComSession::CreateImplementationL( |
|
45 KCoUtlInterfaceDefinitionUid, |
|
46 _FOFF( CCoUtlInterface, iDtor_ID_Key ), |
|
47 params, |
|
48 KRomOnlyResolverUid ); |
|
49 |
|
50 return reinterpret_cast< CCoUtlInterface* >( ptr ); |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CCoUtlInterface::~CCoUtlInterface |
|
55 // ECom is used to delete instance.. |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 inline CCoUtlInterface::~CCoUtlInterface() |
|
59 { |
|
60 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
61 } |
|
62 |
|
63 // End of File |