equal
deleted
inserted
replaced
878 HBufC* cid = contentid.AllocLC(); |
878 HBufC* cid = contentid.AllocLC(); |
879 if ( FindWidgetInstanceId(cid->Des()) < 0 ) |
879 if ( FindWidgetInstanceId(cid->Des()) < 0 ) |
880 { |
880 { |
881 iInstIdList.AppendL( contentid.AllocL() ); |
881 iInstIdList.AppendL( contentid.AllocL() ); |
882 } |
882 } |
883 TInt widgetInstance = FindWidgetInstanceId(cid->Des()); |
883 TInt widgetInstance = FindWidgetInstanceId(cid->Des()); |
884 PublishSetupWizardL(widgetInstance); |
884 if(widgetInstance>=0)// coverity fix, index can be negativ, allowed 0, since it is valid index |
885 iMailCpsHandler->UpdateMailboxesL(widgetInstance, cid->Des()); |
885 { |
886 // Widget visible on the homescreen. Publishing allowed. |
886 PublishSetupWizardL(widgetInstance); |
887 iAllowedToPublish[widgetInstance] = ETrue; |
887 iMailCpsHandler->UpdateMailboxesL(widgetInstance, cid->Des()); |
|
888 // Widget visible on the homescreen. Publishing allowed. |
|
889 iAllowedToPublish[widgetInstance] = ETrue; |
|
890 } |
888 CleanupStack::PopAndDestroy( cid ); |
891 CleanupStack::PopAndDestroy( cid ); |
889 } |
892 } |
890 else if (trigger.Compare(KPluginStartup16) == 0) |
893 else if (trigger.Compare(KPluginStartup16) == 0) |
891 { |
894 { |
892 // Widget added to homescreen |
895 // Widget added to homescreen |
1010 // |
1013 // |
1011 void CMailCpsIf::ResetPublishedDataL( const TDesC& aContentId ) |
1014 void CMailCpsIf::ResetPublishedDataL( const TDesC& aContentId ) |
1012 { |
1015 { |
1013 FUNC_LOG; |
1016 FUNC_LOG; |
1014 // Clean up all published data |
1017 // Clean up all published data |
1015 if( !iMsgInterface ) GetMessagingInterfaceL(); |
1018 if( iMsgInterface == NULL) GetMessagingInterfaceL(); // Coverity fix, it does not like !iMsgInterface comparison |
1016 CLiwGenericParamList* inParam = &(iServiceHandler->InParamListL()); |
1019 CLiwGenericParamList* inParam = &(iServiceHandler->InParamListL()); |
1017 CLiwGenericParamList* outParam = &(iServiceHandler->OutParamListL()); |
1020 CLiwGenericParamList* outParam = &(iServiceHandler->OutParamListL()); |
1018 |
1021 |
1019 // Fill input param |
1022 // Fill input param |
1020 TLiwGenericParam cptype( KType, TLiwVariant( KCpData )); |
1023 TLiwGenericParam cptype( KType, TLiwVariant( KCpData )); |