|
1 /* |
|
2 * Copyright (c) 2006 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: ECOM specific functionality for Converged Call Provider |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CCONVERGEDCALLPROVIDER_INL |
|
21 #define CCONVERGEDCALLPROVIDER_INL |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <ecom/ecom.h> |
|
25 #include <cconvergedcallprovider.h> |
|
26 |
|
27 |
|
28 /** |
|
29 CCP API Concerged Call Provider UID |
|
30 */ |
|
31 const TUid KConvergedCallProviderUid = { 0x10282588 }; |
|
32 |
|
33 // ============================ MEMBER FUNCTIONS =============================== |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // CConvergedCallProvider::CConvergedCallProvider |
|
37 // C++ default constructor can NOT contain any code, that |
|
38 // might leave. |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 inline CConvergedCallProvider::CConvergedCallProvider() |
|
42 { |
|
43 } |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // CConvergedCallProvider::~CConvergedCallProvider() |
|
47 // Destructor. |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 inline CConvergedCallProvider::~CConvergedCallProvider() |
|
51 { |
|
52 // Inform the ECOM framework that this specific instance of the |
|
53 // interface has been destroyed. |
|
54 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // CConvergedCallProvider::NewL. |
|
59 // Interface's static factory method implementation. |
|
60 // Asks ECOM plugin framework to instantiate plugin implementation. |
|
61 // Leaves if the implementation cannot be found |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 inline CConvergedCallProvider* CConvergedCallProvider::NewL( const TUid& aImplementationUid ) |
|
65 { |
|
66 // Set up the interface find for the default resolver. |
|
67 return REINTERPRET_CAST( CConvergedCallProvider*, |
|
68 REComSession::CreateImplementationL( aImplementationUid, |
|
69 _FOFF(CConvergedCallProvider,iDtor_ID_Key )) ); |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // CCCPInterface::ListImplementationsL |
|
74 // Lists all implementations for this interface |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 inline void CConvergedCallProvider::ListImplementationsL( RImplInfoPtrArray& aImplArray ) |
|
78 { |
|
79 REComSession::ListImplementationsL( KConvergedCallProviderUid, aImplArray ); |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // CCCPInterface::InitializeL |
|
84 // Initializes plugin |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 inline void CConvergedCallProvider::InitializeL( const TUint32 /*aServiceId*/, |
|
88 const MCCPObserver& aObserver, |
|
89 const MCCPSsObserver& aSsObserver ) |
|
90 { |
|
91 InitializeL( aObserver, aSsObserver ); |
|
92 } |
|
93 |
|
94 #endif // CCONVERGEDCALLPROVIDER_INL |
|
95 |
|
96 // End of File |
|
97 |