emailservices/emailserver/cmailhandlerplugin/src/cmailcpsif.cpp
branchRCL_3
changeset 20 efd4f1afd43e
parent 16 b5fbb9b25d57
equal deleted inserted replaced
18:6b8f3b30d0ec 20:efd4f1afd43e
   636     User::LeaveIfError( mifParse.Set( KMifPath, &dllFileName, NULL ) );
   636     User::LeaveIfError( mifParse.Set( KMifPath, &dllFileName, NULL ) );
   637 
   637 
   638     if (!iconIds.Length())
   638     if (!iconIds.Length())
   639         {
   639         {
   640         TBuf<KMaxDescLen> id;    
   640         TBuf<KMaxDescLen> id;    
   641         if ( aBitmapId == EMbmCmailhandlerpluginQgn_stat_message_mail_uni )
   641         if ( aBitmapId == EMbmCmailhandlerpluginQgn_indi_cmail_unseen_msg )
   642             {
   642             {
   643             iconIds.Append( KSkinPrefix );
   643             iconIds.Append( KSkinPrefix );
   644             id.Num( EAknsMajorGeneric );
   644             id.Num( EAknsMajorGeneric );
   645             iconIds.Append( id );
   645             iconIds.Append( id );
   646             iconIds.Append( KSpace );
   646             iconIds.Append( KSpace );
   647             id.Num( EAknsMinorGenericQgnStatMessageMailUni );
   647             id.Num( EAknsMinorGenericQgnIndiCmailUnseenMsg );
   648             iconIds.Append( id );
   648             iconIds.Append( id );
   649             iconIds.Append( KSkinPostfix );                    
   649             iconIds.Append( KSkinPostfix );                    
   650             }
   650             }
   651         else if ( aBitmapId == EMbmCmailhandlerpluginQgn_indi_cmail_outbox_msg )
   651         else if ( aBitmapId == EMbmCmailhandlerpluginQgn_indi_cmail_outbox_msg )
   652             {
   652             {
   958                                      }
   958                                      }
   959                                  }
   959                                  }
   960                              CleanupStack::PopAndDestroy( cid );
   960                              CleanupStack::PopAndDestroy( cid );
   961                              }
   961                              }
   962                          else if (trigger.Compare(KPluginShutdown16) == 0)
   962                          else if (trigger.Compare(KPluginShutdown16) == 0)
   963                              {                            
   963                              {
   964                              // Widget removed from homescreen.
   964                              // Widget removed from homescreen.
   965                              HBufC* cid = contentid.AllocLC();                             
   965                              HBufC* cid = contentid.AllocLC();                             
   966                              ResetPublishedDataL( cid->Des() );							 
   966                              ResetPublishedDataL( cid->Des() );							 
   967                              iMailCpsHandler->DissociateWidgetFromSettingL( cid->Des() );
   967                              iMailCpsHandler->DissociateWidgetFromSettingL( cid->Des() );
   968                              TInt widgetInstance = GetWidgetInstanceId( cid->Des() );
   968                              TInt widgetInstance = GetWidgetInstanceId( cid->Des() );
  1195     TBool rVal( EFalse );
  1195     TBool rVal( EFalse );
  1196     if ( aInstance >= 0 && aInstance < GetWidgetInstanceCount() )
  1196     if ( aInstance >= 0 && aInstance < GetWidgetInstanceCount() )
  1197         {
  1197         {
  1198         rVal = iInstIdList[aInstance].iUpdateNeeded;
  1198         rVal = iInstIdList[aInstance].iUpdateNeeded;
  1199         }
  1199         }
       
  1200     INFO_1("CMAIL CMailCpsIf::UpdateNeeded(): ret = %d",rVal);
  1200     return rVal;
  1201     return rVal;
  1201     }
  1202     }
  1202 
  1203