|
1 /* |
|
2 * Copyright (c) 2002-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : sipprofileagent.inl |
|
16 * Part of : sip profile agent |
|
17 * inline functions |
|
18 * Version : 1.0 |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 |
|
24 const TUid KSIPProfileAgentInterfaceUid = {0x101F4136}; |
|
25 |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 |
|
30 // Destructor |
|
31 inline CSIPProfileAgent::~CSIPProfileAgent() |
|
32 { |
|
33 REComSession::DestroyedImplementation(iDtor_ID_Key); |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CSIPProfileAgent::CSIPProfileAgent |
|
38 // C++ default constructor can NOT contain any code, that |
|
39 // might leave. |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 inline CSIPProfileAgent::CSIPProfileAgent() |
|
43 { |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CSIPProfileAgent::NewL |
|
48 // Two-phased constructor. |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 inline CSIPProfileAgent* CSIPProfileAgent::NewL( |
|
52 const TDesC8& aProfileType, |
|
53 TSIPProfileAgentInitParams& aSIPProfileAgentInitParams) |
|
54 |
|
55 { |
|
56 TEComResolverParams resolverParams; |
|
57 resolverParams.SetDataType(aProfileType); |
|
58 return reinterpret_cast<CSIPProfileAgent*>( |
|
59 REComSession::CreateImplementationL( |
|
60 KSIPProfileAgentInterfaceUid, |
|
61 _FOFF(CSIPProfileAgent,iDtor_ID_Key), |
|
62 &aSIPProfileAgentInitParams, |
|
63 resolverParams)); |
|
64 } |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // CSIPProfileAgent::ListAllImplementationsL |
|
68 // lists all interface implementations |
|
69 // (other items were commented in a header). |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 |
|
73 inline void CSIPProfileAgent::ListAllImplementationsL( |
|
74 RImplInfoPtrArray& aImplInfoArray) |
|
75 { |
|
76 REComSession::ListImplementationsL( |
|
77 KSIPProfileAgentInterfaceUid, |
|
78 aImplInfoArray); |
|
79 } |