|
1 /* |
|
2 * Copyright (c) 2005-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: Map extension plugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "cpmapuiextensionplugin.h" |
|
19 |
|
20 // Phonebook 2 |
|
21 #include "cpmapcmd.h" |
|
22 #include "pbk2mapcommands.hrh" |
|
23 #include <CPbk2AppUiBase.h> |
|
24 #include <Pbk2Commands.hrh> |
|
25 #include <MPbk2CommandHandler.h> |
|
26 #include <MPbk2ApplicationServices.h> |
|
27 #include <Pbk2MapUIRes.rsg> |
|
28 #include <Pbk2Commands.rsg> |
|
29 #include <Pbk2UIControls.hrh> |
|
30 #include <Pbk2UIControls.rsg> |
|
31 #include <cpmapcontacteditorextension.h> |
|
32 #include "cpmapcmd.h" |
|
33 |
|
34 // System includes |
|
35 #include <coemain.h> |
|
36 #include <eikmenub.h> |
|
37 #include <AiwCommon.hrh> |
|
38 #include <AiwServiceHandler.h> |
|
39 |
|
40 // -------------------------------------------------------------------------- |
|
41 // CPmapUIExtensionPlugin::CPmapUIExtensionPlugin |
|
42 // -------------------------------------------------------------------------- |
|
43 // |
|
44 CPmapUIExtensionPlugin::CPmapUIExtensionPlugin() |
|
45 { |
|
46 } |
|
47 |
|
48 // -------------------------------------------------------------------------- |
|
49 // CPmapUIExtensionPlugin::~CPmapUIExtensionPlugin |
|
50 // -------------------------------------------------------------------------- |
|
51 // |
|
52 CPmapUIExtensionPlugin::~CPmapUIExtensionPlugin() |
|
53 { |
|
54 } |
|
55 |
|
56 // -------------------------------------------------------------------------- |
|
57 // CPmapUIExtensionPlugin::NewL |
|
58 // -------------------------------------------------------------------------- |
|
59 // |
|
60 CPmapUIExtensionPlugin* CPmapUIExtensionPlugin::NewL() |
|
61 { |
|
62 CPmapUIExtensionPlugin* self = new ( ELeave ) CPmapUIExtensionPlugin(); |
|
63 CleanupStack::PushL( self ); |
|
64 self->ConstructL(); |
|
65 CleanupStack::Pop( self ); |
|
66 return self; |
|
67 } |
|
68 |
|
69 // -------------------------------------------------------------------------- |
|
70 // CPmapUIExtensionPlugin::ConstructL |
|
71 // -------------------------------------------------------------------------- |
|
72 // |
|
73 void CPmapUIExtensionPlugin::ConstructL() |
|
74 { |
|
75 } |
|
76 |
|
77 // -------------------------------------------------------------------------- |
|
78 // CPmapUIExtensionPlugin::CreateExtensionViewL |
|
79 // -------------------------------------------------------------------------- |
|
80 // |
|
81 MPbk2UIExtensionView* CPmapUIExtensionPlugin::CreateExtensionViewL |
|
82 ( TUid /*aViewId*/, CPbk2UIExtensionView& /*aView*/ ) |
|
83 { |
|
84 return NULL; |
|
85 } |
|
86 |
|
87 // -------------------------------------------------------------------------- |
|
88 // CPmapUIExtensionPlugin::DynInitMenuPaneL |
|
89 // -------------------------------------------------------------------------- |
|
90 // |
|
91 void CPmapUIExtensionPlugin::DynInitMenuPaneL( TInt /*aResourceId*/, |
|
92 CEikMenuPane* /*aMenuPane*/, MPbk2ContactUiControl& /*aControl*/ ) |
|
93 { |
|
94 |
|
95 } |
|
96 |
|
97 // -------------------------------------------------------------------------- |
|
98 // CPmapUIExtensionPlugin::UpdateStorePropertiesL |
|
99 // -------------------------------------------------------------------------- |
|
100 // |
|
101 void CPmapUIExtensionPlugin::UpdateStorePropertiesL |
|
102 ( CPbk2StorePropertyArray& /*aPropertyArray*/ ) |
|
103 { |
|
104 // Do nothing |
|
105 } |
|
106 |
|
107 // -------------------------------------------------------------------------- |
|
108 // CPmapUIExtensionPlugin::CreatePbk2ContactEditorExtensionL |
|
109 // -------------------------------------------------------------------------- |
|
110 // |
|
111 MPbk2ContactEditorExtension* |
|
112 CPmapUIExtensionPlugin::CreatePbk2ContactEditorExtensionL |
|
113 ( CVPbkContactManager& aContactManager, |
|
114 MVPbkStoreContact& aContact, |
|
115 MPbk2ContactEditorControl& aEditorControl ) |
|
116 { |
|
117 return CPmapContactEditorExtension::NewL |
|
118 ( aContactManager, aContact, aEditorControl ); |
|
119 } |
|
120 |
|
121 // -------------------------------------------------------------------------- |
|
122 // CPmapUIExtensionPlugin::CreatePbk2UiControlExtensionL |
|
123 // -------------------------------------------------------------------------- |
|
124 // |
|
125 MPbk2ContactUiControlExtension* |
|
126 CPmapUIExtensionPlugin::CreatePbk2UiControlExtensionL |
|
127 ( CVPbkContactManager& /*aContactManager*/ ) |
|
128 { |
|
129 return NULL; |
|
130 } |
|
131 |
|
132 // -------------------------------------------------------------------------- |
|
133 // CPmapUIExtensionPlugin::CreatePbk2SettingsViewExtensionL |
|
134 // -------------------------------------------------------------------------- |
|
135 // |
|
136 MPbk2SettingsViewExtension* |
|
137 CPmapUIExtensionPlugin::CreatePbk2SettingsViewExtensionL |
|
138 ( CVPbkContactManager& /*aContactManager*/ ) |
|
139 { |
|
140 return NULL; |
|
141 } |
|
142 |
|
143 // -------------------------------------------------------------------------- |
|
144 // CPmapUIExtensionPlugin::CreatePbk2AppUiExtensionL |
|
145 // -------------------------------------------------------------------------- |
|
146 // |
|
147 MPbk2AppUiExtension* CPmapUIExtensionPlugin::CreatePbk2AppUiExtensionL |
|
148 ( CVPbkContactManager& /*aContactManager*/ ) |
|
149 { |
|
150 return NULL; |
|
151 } |
|
152 |
|
153 // -------------------------------------------------------------------------- |
|
154 // CPmapUIExtensionPlugin::CreatePbk2CommandForIdL |
|
155 // -------------------------------------------------------------------------- |
|
156 // |
|
157 MPbk2Command* CPmapUIExtensionPlugin::CreatePbk2CommandForIdL |
|
158 ( TInt aCommandId, MPbk2ContactUiControl& aUiControl ) const |
|
159 { |
|
160 switch(aCommandId) |
|
161 { |
|
162 case EPbk2ExtensionAssignFromMap: |
|
163 case EPbk2ExtensionShowOnMap: |
|
164 return CPmapCmd::NewL( aUiControl, aCommandId ); |
|
165 default: |
|
166 break; |
|
167 } |
|
168 return NULL; |
|
169 } |
|
170 |
|
171 // -------------------------------------------------------------------------- |
|
172 // CPmapUIExtensionPlugin::CreatePbk2AiwInterestForIdL |
|
173 // -------------------------------------------------------------------------- |
|
174 // |
|
175 MPbk2AiwInterestItem* CPmapUIExtensionPlugin::CreatePbk2AiwInterestForIdL( |
|
176 TInt /*aInterestId*/, |
|
177 CAiwServiceHandler& /*aServiceHandler*/ ) const |
|
178 { |
|
179 return NULL; |
|
180 } |
|
181 |
|
182 // -------------------------------------------------------------------------- |
|
183 // CPmapUIExtensionPlugin::GetHelpContextL |
|
184 // -------------------------------------------------------------------------- |
|
185 // |
|
186 TBool CPmapUIExtensionPlugin::GetHelpContextL |
|
187 ( TCoeHelpContext& /*aContext*/, const CPbk2AppViewBase& /*aView*/, |
|
188 MPbk2ContactUiControl& /*aUiControl*/ ) |
|
189 { |
|
190 return EFalse; |
|
191 } |
|
192 |
|
193 // -------------------------------------------------------------------------- |
|
194 // CPmapUIExtensionPlugin::ApplyDynamicViewGraphChangesL |
|
195 // -------------------------------------------------------------------------- |
|
196 // |
|
197 void CPmapUIExtensionPlugin::ApplyDynamicViewGraphChangesL |
|
198 ( CPbk2ViewGraph& /*aViewGraph*/ ) |
|
199 { |
|
200 // Do nothing |
|
201 } |
|
202 |
|
203 // -------------------------------------------------------------------------- |
|
204 // CPmapUIExtensionPlugin::ApplyDynamicPluginInformationDataL |
|
205 // -------------------------------------------------------------------------- |
|
206 // |
|
207 void CPmapUIExtensionPlugin::ApplyDynamicPluginInformationDataL |
|
208 ( CPbk2UIExtensionInformation& /*aUiExtensionInformation*/ ) |
|
209 { |
|
210 // Do nothing |
|
211 } |
|
212 |
|
213 // End of File |