mtpfws/mtpfw/src/cmtpdataprovidercontroller.cpp
branchRCL_3
changeset 23 f5809cfbf6d5
parent 14 60a94a45d437
child 32 f85613f12947
equal deleted inserted replaced
19:ef55b168cedb 23:f5809cfbf6d5
   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.