165 // ---------------------------------------------------------------------------- |
167 // ---------------------------------------------------------------------------- |
166 // |
168 // |
167 void CHarvesterPluginValidator::UpdatePluginsL() |
169 void CHarvesterPluginValidator::UpdatePluginsL() |
168 { |
170 { |
169 // set property value to 1 (which means "in progress") |
171 // set property value to 1 (which means "in progress") |
170 iInProgressProperty.Set(TUid::Uid(KHarvesterUid), KInProgressPropertyKey, |
172 iInProgressProperty.Set(TUid::Uid(KHarvesterUid), KInProgressPropertyKey, 1); |
171 1); |
173 CContentHarvesterPlugin* plugin = NULL; |
|
174 CContentHarvesterPlugin* fsplugin = |
|
175 static_cast<CContentHarvesterPlugin*> (GetImplementation( |
|
176 TUid::Uid(KADatFactorySettingsServerPluginUid))); |
|
177 |
|
178 if (fsplugin) |
|
179 { |
|
180 iBlacklist->AppendL(TUid::Uid(KADatFactorySettingsServerPluginUid)); |
|
181 TRAP_IGNORE( fsplugin->UpdateL() ); |
|
182 iBlacklist->RemoveL(TUid::Uid(KADatFactorySettingsServerPluginUid)); |
|
183 } |
172 for (TInt i = 0; i < iPluginArray.Count(); i++) |
184 for (TInt i = 0; i < iPluginArray.Count(); i++) |
173 { |
185 { |
174 //first we append UID to the blacklist |
186 plugin |
175 iBlacklist->AppendL(iPluginArray[i].iImplementationUid); |
187 = static_cast<CContentHarvesterPlugin*> (iPluginArray[i].iPlugin); |
176 |
188 if (plugin != fsplugin) |
177 TRAP_IGNORE( static_cast<CContentHarvesterPlugin*> |
189 { |
178 ( iPluginArray[i].iPlugin )->UpdateL() ); |
190 //first we append UID to the blacklist |
179 |
191 iBlacklist->AppendL(iPluginArray[i].iImplementationUid); |
180 //no panic during update so we can remove UID from blacklist |
192 TRAP_IGNORE( plugin->UpdateL() ); |
181 iBlacklist->RemoveL(iPluginArray[i].iImplementationUid); |
193 //no panic during update so we can remove UID from blacklist |
|
194 iBlacklist->RemoveL(iPluginArray[i].iImplementationUid); |
|
195 } |
182 } |
196 } |
183 // set property value to 0 (which means "finished") |
197 // set property value to 0 (which means "finished") |
184 iInProgressProperty.Set(TUid::Uid(KHarvesterUid), KInProgressPropertyKey, |
198 iInProgressProperty.Set(TUid::Uid(KHarvesterUid), KInProgressPropertyKey, |
185 0); |
199 0); |
186 } |
200 } |