accessoryservices/accessoryserver/src/ASYProxy/ASYProxyAsyLoader.cpp
branchRCL_3
changeset 81 24127ea5a236
parent 56 1ddbe54d0645
equal deleted inserted replaced
71:fdcef27a50b8 81:24127ea5a236
   380                 }
   380                 }
   381             }
   381             }
   382 
   382 
   383         if ( found == EFalse )
   383         if ( found == EFalse )
   384             {
   384             {
   385             onlyServicesIndexArray.AppendL( i );
   385             onlyServicesIndexArray.Append( i );
   386             }
   386             }
   387         }
   387         }
   388 
   388 
   389     // ASYProxy must know the "real" ASYs count
   389     // ASYProxy must know the "real" ASYs count
   390     iAsyProxy->SetASYsCount( iServiceImplInfoArray.Count() - onlyServicesIndexArray.Count() );
   390     iAsyProxy->SetASYsCount( iServiceImplInfoArray.Count() - onlyServicesIndexArray.Count() );
   395         {
   395         {
   396         CImplementationInformation *implementationInformation =
   396         CImplementationInformation *implementationInformation =
   397             iServiceImplInfoArray.operator[]( onlyServicesIndexArray.operator[]( k ) );
   397             iServiceImplInfoArray.operator[]( onlyServicesIndexArray.operator[]( k ) );
   398 
   398 
   399         iServiceImplInfoArray.Remove( onlyServicesIndexArray.operator[]( k ) );
   399         iServiceImplInfoArray.Remove( onlyServicesIndexArray.operator[]( k ) );
   400         iServiceImplInfoArray.AppendL( implementationInformation );
   400         iServiceImplInfoArray.Append( implementationInformation );
   401         }
   401         }
   402 
   402 
   403     // Find Service / Handler pairs
   403     // Find Service / Handler pairs
   404     // ----------------------------------------------------------------
   404     // ----------------------------------------------------------------
   405     for ( TInt i=0; i<=lastServiceIndex; i++ )
   405     for ( TInt i=0; i<=lastServiceIndex; i++ )
   421     // ----------------------------------------------------------------
   421     // ----------------------------------------------------------------
   422     TUid zeroUid;
   422     TUid zeroUid;
   423     zeroUid.iUid = ZEROHANDLERUID;
   423     zeroUid.iUid = ZEROHANDLERUID;
   424     while ( iImplUidsHandlerArray.Count() < iServiceImplInfoArray.Count() )
   424     while ( iImplUidsHandlerArray.Count() < iServiceImplInfoArray.Count() )
   425         {
   425         {
   426         iImplUidsHandlerArray.AppendL( zeroUid );
   426         iImplUidsHandlerArray.Append( zeroUid );
   427         }
   427         }
   428 
   428 
   429     User::RequestComplete( ptrStat, KErrNone );
   429     User::RequestComplete( ptrStat, KErrNone );
   430     CleanupStack::PopAndDestroy( &onlyServicesIndexArray );
   430     CleanupStack::PopAndDestroy( &onlyServicesIndexArray );
   431     // only ServicesIndexArray.Close() was called;
   431     // only ServicesIndexArray.Close() was called;