servicewidget/servicewidgetdatapublisher/src/cservicewidgetplugin.cpp
branchRCL_3
changeset 12 36d367c62acb
parent 9 9fdee5e1da30
child 13 76f25fb7a6a1
equal deleted inserted replaced
10:d20aea8a18b6 12:36d367c62acb
   201 // ----------------------------------------------------------------------------
   201 // ----------------------------------------------------------------------------
   202 //	
   202 //	
   203 void CServiceWidgetPlugin::UpdateL() 
   203 void CServiceWidgetPlugin::UpdateL() 
   204     {
   204     {
   205     TRACE_SWP(TXT("CServiceWidgetPlugin::UpdateL() Start") );
   205     TRACE_SWP(TXT("CServiceWidgetPlugin::UpdateL() Start") );
       
   206     //Unregisrer all previously registered services.
       
   207     if(iContentPublisher)
       
   208 		{
       
   209 		iContentPublisher->UnregisterAllWidgetsL();
       
   210 		}
   206     //register for service table notifications
   211     //register for service table notifications
   207     RArray<TUint> serviceIds;
   212     RArray<TUint> serviceIds;
   208     CleanupClosePushL( serviceIds );
   213     CleanupClosePushL( serviceIds );
   209     iSpNotifyChange = CSPNotifyChange::NewL( *this );    
   214     iSpNotifyChange = CSPNotifyChange::NewL( *this );    
   210     iSpNotifyChange->NotifyChangeL( serviceIds );
   215     iSpNotifyChange->NotifyChangeL( serviceIds );