|
1 /* |
|
2 * Copyright (c) 2007 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: Implementation of the class CPbkxRemoteContactLookupEnvImpl. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "emailtrace.h" |
|
20 #include <ecom/implementationproxy.h> |
|
21 #include "cpbkxremotecontactlookupenvimpl.h" |
|
22 #include "cpbkxrclsearchengine.h" |
|
23 #include "cpbkxrclsettingsengine.h" |
|
24 |
|
25 const TImplementationProxy ImplementationTable[] = |
|
26 { |
|
27 IMPLEMENTATION_PROXY_ENTRY( |
|
28 KPbkxRemoteContactLookupServiceImplImpUid, |
|
29 CPbkxRemoteContactLookupEnvImpl::NewL ) |
|
30 }; |
|
31 |
|
32 // ======== MEMBER FUNCTIONS ======== |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // ?description_if_needed |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 CPbkxRemoteContactLookupEnvImpl::CPbkxRemoteContactLookupEnvImpl() |
|
39 { |
|
40 FUNC_LOG; |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // ?description_if_needed |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 void CPbkxRemoteContactLookupEnvImpl::ConstructL() |
|
48 { |
|
49 FUNC_LOG; |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // ?description_if_needed |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 CPbkxRemoteContactLookupEnvImpl* CPbkxRemoteContactLookupEnvImpl::NewL() |
|
57 { |
|
58 FUNC_LOG; |
|
59 CPbkxRemoteContactLookupEnvImpl* self = new (ELeave) CPbkxRemoteContactLookupEnvImpl(); |
|
60 CleanupStack::PushL( self ); |
|
61 self->ConstructL(); |
|
62 CleanupStack::Pop( self ); |
|
63 return self; |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // ?description_if_needed |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 CPbkxRemoteContactLookupEnvImpl::~CPbkxRemoteContactLookupEnvImpl() |
|
71 { |
|
72 FUNC_LOG; |
|
73 delete iServiceUi; |
|
74 delete iSettingsUi; |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // From class MPbkxRemoteContactLookupUi |
|
79 // ?implementation_description |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 MPbkxRemoteContactLookupServiceUi* CPbkxRemoteContactLookupEnvImpl::ServiceUiL() |
|
83 { |
|
84 FUNC_LOG; |
|
85 |
|
86 if( iServiceUi == NULL ) |
|
87 { |
|
88 iServiceUi = CPbkxRclSearchEngine::NewL(); |
|
89 } |
|
90 |
|
91 return static_cast<MPbkxRemoteContactLookupServiceUi*>(iServiceUi); |
|
92 } |
|
93 |
|
94 // --------------------------------------------------------------------------- |
|
95 // From class MPbkxRemoteContactLookupUi |
|
96 // ?implementation_description |
|
97 // --------------------------------------------------------------------------- |
|
98 // |
|
99 MPbkxRemoteContactLookupSettingsUi* CPbkxRemoteContactLookupEnvImpl::SettingsUiL() |
|
100 { |
|
101 FUNC_LOG; |
|
102 |
|
103 if( iSettingsUi == NULL ) |
|
104 { |
|
105 iSettingsUi = CPbkxRclSettingsEngine::NewL(); |
|
106 } |
|
107 |
|
108 return static_cast<MPbkxRemoteContactLookupSettingsUi*>(iSettingsUi); |
|
109 } |
|
110 |
|
111 // ======== GLOBAL FUNCTIONS ======== |
|
112 |
|
113 // --------------------------------------------------------------------------- |
|
114 // ?implementation_description |
|
115 // --------------------------------------------------------------------------- |
|
116 // |
|
117 |
|
118 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount ) |
|
119 { |
|
120 FUNC_LOG; |
|
121 aTableCount = sizeof( ImplementationTable ) / sizeof( TImplementationProxy ); |
|
122 return ImplementationTable; |
|
123 } |
|
124 |