equal
deleted
inserted
replaced
173 |
173 |
174 // ---------------------------------------------------------------------------- |
174 // ---------------------------------------------------------------------------- |
175 // CPsDataPluginInterface::RequestForDataL |
175 // CPsDataPluginInterface::RequestForDataL |
176 // Requests for data from the data store |
176 // Requests for data from the data store |
177 // ---------------------------------------------------------------------------- |
177 // ---------------------------------------------------------------------------- |
178 void CPsDataPluginInterface::RequestForDataL(TDesC& aDataStore) |
178 void CPsDataPluginInterface::RequestForDataL(TDesC& aDataStore) |
179 { |
179 { |
180 |
180 |
181 PRINT ( _L("Enter CPsDataPluginInterface::RequestForDataL") ); |
181 PRINT ( _L("Enter CPsDataPluginInterface::RequestForDataL") ); |
182 |
182 |
183 for ( TInt idx = 0; idx < iPsDataPluginInstances.Count(); idx++ ) |
183 for ( TInt idx = 0; idx < iPsDataPluginInstances.Count(); idx++ ) |
184 { |
184 { |
185 if(iPsDataPluginInstances[idx]->IsDataStoresSupportedL(aDataStore)) |
185 if ( iPsDataPluginInstances[idx]->IsDataStoresSupportedL(aDataStore) ) |
186 { |
186 { |
187 iPsDataPluginInstances[idx]->RequestForDataL(aDataStore); |
187 iPsDataPluginInstances[idx]->RequestForDataL(aDataStore); |
188 break; |
188 break; |
189 } |
189 } |
190 } |
190 } |
191 |
191 |
192 PRINT ( _L("End CPsDataPluginInterface::RequestForDataL") ); |
192 PRINT ( _L("End CPsDataPluginInterface::RequestForDataL") ); |
193 |
193 |
195 |
195 |
196 // ---------------------------------------------------------------------------- |
196 // ---------------------------------------------------------------------------- |
197 // CPsDataPluginInterface::GetAllSupportedDataStoresL |
197 // CPsDataPluginInterface::GetAllSupportedDataStoresL |
198 // Requests all the supported data stores from data adapters |
198 // Requests all the supported data stores from data adapters |
199 // ---------------------------------------------------------------------------- |
199 // ---------------------------------------------------------------------------- |
200 void CPsDataPluginInterface::GetAllSupportedDataStoresL(RPointerArray<TDesC>& aDataStores) |
200 void CPsDataPluginInterface::GetAllSupportedDataStoresL(RPointerArray<TDesC>& aDataStores) |
201 { |
201 { |
202 |
202 |
203 PRINT ( _L("Enter CPsDataPluginInterface::GetAllSupportedDataStoresL") ); |
203 PRINT ( _L("Enter CPsDataPluginInterface::GetAllSupportedDataStoresL") ); |
204 |
204 |
205 for ( TInt idx = 0; idx < iPsDataPluginInstances.Count(); idx++ ) |
205 for ( TInt idx = 0; idx < iPsDataPluginInstances.Count(); idx++ ) |
206 { |
206 { |
207 iPsDataPluginInstances[idx]->GetSupportedDataStoresL(aDataStores); |
207 iPsDataPluginInstances[idx]->GetSupportedDataStoresL(aDataStores); |
208 } |
208 } |
209 |
209 |
210 PRINT ( _L("End CPsDataPluginInterface::GetAllSupportedDataStoresL") ); |
210 PRINT ( _L("End CPsDataPluginInterface::GetAllSupportedDataStoresL") ); |
211 |
211 |
212 } |
212 } |
226 CleanupClosePushL( dataStores ); |
226 CleanupClosePushL( dataStores ); |
227 iPsDataPluginInstances[idx]->GetSupportedDataStoresL(dataStores); |
227 iPsDataPluginInstances[idx]->GetSupportedDataStoresL(dataStores); |
228 |
228 |
229 for ( TInt i(0); i<dataStores.Count(); i++) |
229 for ( TInt i(0); i<dataStores.Count(); i++) |
230 { |
230 { |
231 if ( dataStores[i]->Compare(aUri) == 0) |
231 if ( dataStores[i]->Compare(aUri) == 0 ) |
232 { |
232 { |
233 iPsDataPluginInstances[idx]->GetSupportedDataFieldsL(aDataFields); |
233 iPsDataPluginInstances[idx]->GetSupportedDataFieldsL(aDataFields); |
234 break; |
234 break; |
235 } |
235 } |
236 } |
236 } |
237 CleanupStack::PopAndDestroy( &dataStores ); // Close |
237 CleanupStack::PopAndDestroy( &dataStores ); // Close |
238 } |
238 } |
239 |
239 |
240 PRINT ( _L("End CPsDataPluginInterface::GetAllSupportedDataStoresL") ); |
240 PRINT ( _L("End CPsDataPluginInterface::GetAllSupportedDataStoresL") ); |