31 class MDesC8Array; |
31 class MDesC8Array; |
32 class CLiwDefaultMap; |
32 class CLiwDefaultMap; |
33 class CLiwDefaultList; |
33 class CLiwDefaultList; |
34 class MLiwNotifyCallback; |
34 class MLiwNotifyCallback; |
35 class CLiwGenericParamList; |
35 class CLiwGenericParamList; |
|
36 class CRepository; |
36 |
37 |
37 namespace hspswrapper{ |
38 namespace hspswrapper{ |
38 |
|
39 |
39 |
40 class CHspsConfiguration; |
40 class CHspsConfiguration; |
41 class CItemMap; |
41 class CItemMap; |
42 class CPluginInfo; |
42 class CPluginInfo; |
43 class CAddPluginResult; |
43 class CAddPluginResult; |
226 * @param aPluginId Plugin id to be removed |
226 * @param aPluginId Plugin id to be removed |
227 * @return Operation status. KErrNone (success), KErrNotFound |
227 * @return Operation status. KErrNone (success), KErrNotFound |
228 */ |
228 */ |
229 IMPORT_C TInt RemovePluginL(const TDesC8& aPluginId); |
229 IMPORT_C TInt RemovePluginL(const TDesC8& aPluginId); |
230 |
230 |
231 /** |
231 /** |
232 * Sets plugin active into active configuration. |
232 * Sets plugin active. |
233 * |
233 * |
234 * @param aPluginId Plugin id to be activated |
234 * @param aPluginId Plugin id to be activated |
235 * @return Operation status. KErrNone (success), KErrNotFound |
235 * @return Operation status. KErrNone (success), KErrNotFound |
236 */ |
236 */ |
237 IMPORT_C TInt SetActivePluginL(const TDesC8& aPluginId); |
237 IMPORT_C TInt SetActivePluginL(const TDesC8& aPluginId); |
238 |
238 |
239 /** |
239 /** |
240 * Restore active view. Will remove all plugins in active view. |
240 * Restore active view. Will remove all plugins in active view. |
241 * |
241 * |
242 * @return Operation status. KErrNone (success), KErrNotFound |
242 * @return Operation status. KErrNone (success), KErrNotFound |
243 */ |
243 */ |
244 IMPORT_C TInt RestoreActiveViewL(); |
244 IMPORT_C TInt RestoreActiveViewL(); |
245 |
245 |
246 /** |
246 /** |
247 * Restore whole root configuration. Will remove |
247 * Restore whole root configuration. Will remove |
248 * everything except one view. |
248 * everything except one view. |
249 * |
249 * |
250 * @return Operation status. KErrNone (success), KErrNotFound |
250 * @return Operation status. KErrNone (success), KErrNotFound |
251 */ |
251 */ |
252 IMPORT_C TInt RestoreRootL(); |
252 IMPORT_C TInt RestoreRootL(); |
253 |
253 |
254 /** |
254 /** |
255 * Replace plugin in the active configuration. |
255 * Replace plugin in the active configuration. |
256 * |
256 * |
257 * @param aPluginId Plugin id to be replaced |
257 * @param aPluginId Plugin id to be replaced |
312 |
312 |
313 /** |
313 /** |
314 * Returns HSPS services interface |
314 * Returns HSPS services interface |
315 */ |
315 */ |
316 IMPORT_C MLiwInterface* HspsInterface() const; |
316 IMPORT_C MLiwInterface* HspsInterface() const; |
317 |
317 |
318 protected: |
318 protected: |
319 CHspsWrapper(MHspsWrapperObserver* aObserver); |
319 CHspsWrapper(MHspsWrapperObserver* aObserver); |
320 void ConstructL(const TDesC8& aAppUid); |
320 void ConstructL(const TDesC8& aAppUid); |
321 |
321 void ProcessConfigurationMapL( const CLiwMap& aSource, |
322 void ProcessConfigurationMapL(const CLiwMap& aSource, CHspsConfiguration& aTarget); |
322 CHspsConfiguration& aTarget, |
323 void ProcessConfigurationPluginsL(const CLiwList& aPluginsList, CHspsConfiguration& aTarget); |
323 const TBool aAppConf ); |
|
324 void ProcessConfigurationPluginsL( const CLiwList& aPluginsList, |
|
325 CHspsConfiguration& aTarget, |
|
326 const TBool aAppConf ); |
324 void ProcessConfigurationSettingsL(const CLiwList& aItemList, CHspsConfiguration& aTarget); |
327 void ProcessConfigurationSettingsL(const CLiwList& aItemList, CHspsConfiguration& aTarget); |
325 void ProcessConfigurationResourcesL(const CLiwList& aObjectList, CHspsConfiguration& aTarget); |
328 void ProcessConfigurationResourcesL(const CLiwList& aObjectList, CHspsConfiguration& aTarget); |
326 void ProcessConfItemPropertiesL(const CLiwList& aPropertyMapList,CItemMap& aItemMap); |
329 void ProcessConfItemPropertiesL(const CLiwList& aPropertyMapList,CItemMap& aItemMap); |
327 void ProcessPluginsL(const CLiwList& aPluginInfoMapList, RPointerArray<CPluginInfo>& aPlugins); |
330 void ProcessPluginsL(const CLiwList& aPluginInfoMapList, RPointerArray<CPluginInfo>& aPlugins); |
328 void FillMapFromItemL( CLiwDefaultMap& aMap, const CItemMap& aItemMap ); |
331 void FillMapFromItemL( CLiwDefaultMap& aMap, const CItemMap& aItemMap ); |
329 void FillMapFromPropertiesL( CLiwDefaultList& aInPropertyMapList, const RPointerArray<CPropertyMap>& aProperties ); |
332 void FillMapFromPropertiesL( CLiwDefaultList& aInPropertyMapList, const RPointerArray<CPropertyMap>& aProperties ); |
|
333 TInt LoadActivePluginIdL(); |
|
334 const TDesC8& ActivePluginId() const; |
330 |
335 |
331 protected: // from MLiwNotifyCallback |
336 protected: // from MLiwNotifyCallback |
332 |
337 |
333 /** |
338 /** |
334 * Handle HSPS notifications |
339 * Handle HSPS notifications |