equal
deleted
inserted
replaced
15 * Profile plug-in publisher |
15 * Profile plug-in publisher |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 #include <ecom/ecom.h> |
19 #include <ecom/ecom.h> |
20 #include <LiwServiceHandler.h> |
20 #include <liwservicehandler.h> |
21 #include <aipluginsettings.h> |
21 #include <aipluginsettings.h> |
22 |
22 |
23 |
23 |
24 #include "wrtdata.h" |
24 #include "wrtdata.h" |
25 #include "wrtdatapluginconst.h" |
25 #include "wrtdatapluginconst.h" |
196 // |
196 // |
197 void CWrtData::GetMenuItemsL() |
197 void CWrtData::GetMenuItemsL() |
198 { |
198 { |
199 if(iInterface) |
199 if(iInterface) |
200 { |
200 { |
201 TInt confindex( 0 ); |
|
202 |
|
203 CLiwDefaultMap *outDataMap = CLiwDefaultMap::NewLC(); |
201 CLiwDefaultMap *outDataMap = CLiwDefaultMap::NewLC(); |
204 CLiwDefaultMap* filter = CreateFilterLC( ); |
202 CLiwDefaultMap* filter = CreateFilterLC( ); |
205 //append filter to input param |
203 //append filter to input param |
206 ExecuteCommandL( filter, outDataMap, KPubData ); |
204 ExecuteCommandL( filter, outDataMap, KPubData ); |
207 CleanupStack::PopAndDestroy( filter ); |
205 CleanupStack::PopAndDestroy( filter ); |
291 CLiwDefaultMap *outDataMap = CLiwDefaultMap::NewLC(); |
289 CLiwDefaultMap *outDataMap = CLiwDefaultMap::NewLC(); |
292 //Create filter criteria for requested entries in form of LIW map: |
290 //Create filter criteria for requested entries in form of LIW map: |
293 CLiwDefaultMap* filter = CreateFilterLC(); |
291 CLiwDefaultMap* filter = CreateFilterLC(); |
294 ExecuteCommandL( filter, outDataMap, KCpData ); |
292 ExecuteCommandL( filter, outDataMap, KCpData ); |
295 CleanupStack::PopAndDestroy( filter ); |
293 CleanupStack::PopAndDestroy( filter ); |
296 TInt id = KErrNotFound; |
|
297 TLiwVariant variant; |
294 TLiwVariant variant; |
298 if ( outDataMap->FindL( KImage1, variant ) ) |
295 if ( outDataMap->FindL( KImage1, variant ) ) |
299 { |
296 { |
300 TInt handle = KErrBadHandle; |
297 TInt handle = KErrBadHandle; |
301 TUint uintHandle = 0; |
298 TUint uintHandle = 0; |
398 HBufC8* triggerName = HBufC8::NewLC( KWRTContentNameMaxLength ); |
395 HBufC8* triggerName = HBufC8::NewLC( KWRTContentNameMaxLength ); |
399 |
396 |
400 CLiwGenericParamList* inParamList = &iServiceHandler->InParamListL(); |
397 CLiwGenericParamList* inParamList = &iServiceHandler->InParamListL(); |
401 CLiwGenericParamList* outParamList = &iServiceHandler->OutParamListL(); |
398 CLiwGenericParamList* outParamList = &iServiceHandler->OutParamListL(); |
402 CLiwDefaultMap* filter = NULL; |
399 CLiwDefaultMap* filter = NULL; |
403 TInt confindex (0); |
400 |
404 |
|
405 triggerName->Des().Copy(aTrigger); |
401 triggerName->Des().Copy(aTrigger); |
406 if ( aObjectId == KPubData ) |
402 if ( aObjectId == KPubData ) |
407 { |
403 { |
408 // this trigger belongs to publisher registery. |
404 // this trigger belongs to publisher registery. |
409 // in such case it is assumed that all the items in the widgets |
405 // in such case it is assumed that all the items in the widgets |