equal
deleted
inserted
replaced
370 @param aUid The implementation UID. |
370 @param aUid The implementation UID. |
371 @return TInt The proxy data provider identifier. |
371 @return TInt The proxy data provider identifier. |
372 */ |
372 */ |
373 EXPORT_C TInt CMTPDataProviderController::DpId(TUint aUid) |
373 EXPORT_C TInt CMTPDataProviderController::DpId(TUint aUid) |
374 { |
374 { |
375 return iDataProviders.FindInOrder(TUid::Uid(aUid), CMTPDataProvider::LinearOrderUid); |
375 TInt dpId = KErrNotFound; |
|
376 for (TUint index=0; index < iDataProviders.Count(); index++) |
|
377 { |
|
378 if (iDataProviders[index]->ImplementationUid().iUid == aUid) |
|
379 { |
|
380 dpId = iDataProviders[index]->DataProviderId(); |
|
381 break; |
|
382 } |
|
383 } |
|
384 |
|
385 return dpId; |
376 } |
386 } |
377 |
387 |
378 /** |
388 /** |
379 Provides the identifier of the proxy data provider. |
389 Provides the identifier of the proxy data provider. |
380 @return TInt The proxy data provider identifier. |
390 @return TInt The proxy data provider identifier. |