equal
deleted
inserted
replaced
|
1 /* |
|
2 * Component Name: Headset Simulator |
|
3 * Author: Comarch S.A. |
|
4 * Version: 1.0 |
|
5 * Copyright (c) 2010 Comarch S.A. |
|
6 * |
|
7 * This Software is submitted by Comarch S.A. to Symbian Foundation Limited on |
|
8 * the basis of the Member Contribution Agreement entered between Comarch S.A. |
|
9 * and Symbian Foundation Limited on 5th June 2009 (“Agreement”) and may be |
|
10 * used only in accordance with the terms and conditions of the Agreement. |
|
11 * Any other usage, duplication or redistribution of this Software is not |
|
12 * allowed without written permission of Comarch S.A. |
|
13 * |
|
14 */ |
|
15 |
|
16 inline CHsProfileBase* CHsProfileBase::NewL( const TUid aUid ) |
|
17 { |
|
18 TAny *any = REComSession::CreateImplementationL( aUid, _FOFF( |
|
19 CHsProfileBase, iDtor_ID_Key ) ); |
|
20 return (CHsProfileBase*) any; |
|
21 } |
|
22 |
|
23 inline CHsProfileBase* CHsProfileBase::NewL( const TDesC8 &aProfilName ) |
|
24 { |
|
25 TEComResolverParams params; |
|
26 |
|
27 params.SetDataType( aProfilName ); |
|
28 params.SetWildcardMatch( ETrue ); |
|
29 |
|
30 TAny *any = REComSession::CreateImplementationL( |
|
31 KHsProfileBaseInterfaceDefinitionUid, _FOFF( CHsProfileBase, |
|
32 iDtor_ID_Key ), params ); |
|
33 return (CHsProfileBase*) any; |
|
34 } |
|
35 |
|
36 inline CHsProfileBase::~CHsProfileBase() |
|
37 { |
|
38 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
39 } |
|
40 |