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 CHsSdpBase* CHsSdpBase::NewL( const TUid aUid ) |
|
17 { |
|
18 TAny *impl = REComSession::CreateImplementationL( aUid, _FOFF( CHsSdpBase, |
|
19 iDtor_ID_Key ) ); |
|
20 return (CHsSdpBase*) impl; |
|
21 } |
|
22 |
|
23 inline CHsSdpBase* CHsSdpBase::NewL( const TDesC8 &aData ) |
|
24 { |
|
25 |
|
26 TEComResolverParams params; |
|
27 |
|
28 params.SetDataType( aData ); |
|
29 params.SetWildcardMatch( ETrue ); |
|
30 |
|
31 TAny *impl = REComSession::CreateImplementationL( |
|
32 KHsSdpBaseInterfaceDefinitionUid, |
|
33 _FOFF( CHsSdpBase, iDtor_ID_Key ), params ); |
|
34 return (CHsSdpBase*) impl; |
|
35 } |
|
36 |
|
37 inline CHsSdpBase::~CHsSdpBase() |
|
38 { |
|
39 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
40 } |
|
41 |
|
42 inline void CHsSdpBase::SetServicePort( TInt aPort ) |
|
43 { |
|
44 iServicePort = aPort; |
|
45 } |