|
1 /* |
|
2 * Copyright (c) 2009 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 methods for CAwsEngineBase class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 5 % |
|
20 */ |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // ----------------------------------------------------------------------------- |
|
24 // |
|
25 inline CAwsEngineBase* CAwsEngineBase::NewL( |
|
26 TInt aUid, |
|
27 TAwsEngineConstructionParameters* aConstructionParameters ) |
|
28 { |
|
29 if( !aConstructionParameters ) |
|
30 { |
|
31 User::Leave( KErrArgument ); |
|
32 } |
|
33 |
|
34 const TUid KTMPUid = { aUid }; |
|
35 |
|
36 TAny* interface = REComSession::CreateImplementationL( |
|
37 KTMPUid, |
|
38 _FOFF( CAwsEngineBase, iInstanceIdentifier ), |
|
39 aConstructionParameters ); |
|
40 |
|
41 return reinterpret_cast<CAwsEngineBase*>( interface ); |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 inline CAwsEngineBase::~CAwsEngineBase() |
|
48 { |
|
49 REComSession::DestroyedImplementation( iInstanceIdentifier ); |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------- |
|
53 // CAwsEngineBase::ListImplementationsL |
|
54 // --------------------------------------------------------- |
|
55 inline void CAwsEngineBase::ListImplementationsL( |
|
56 RImplInfoPtrArray& aImplInfoArray) |
|
57 { |
|
58 const TUid KInterfaceUid = { KAwsClientInterfaceUid }; |
|
59 |
|
60 REComSession::ListImplementationsL(KInterfaceUid, |
|
61 aImplInfoArray); |
|
62 } |
|
63 |