omaprovisioning/provisioning/ProvisioningEngine/Src/CWPBindingContextManager.cpp
changeset 73 ae69c2e8bc34
parent 0 b497e44ab2fc
equal deleted inserted replaced
71:d2517372cc44 73:ae69c2e8bc34
   161     CDbColSet* colset = table.ColSetL();
   161     CDbColSet* colset = table.ColSetL();
   162     TInt contextId( colset->ColNo( KDbColumnDataContextId ) );
   162     TInt contextId( colset->ColNo( KDbColumnDataContextId ) );
   163     delete colset;
   163     delete colset;
   164     
   164     
   165     User::LeaveIfError( table.SetIndex( KDbIndexDataContextId ) );
   165     User::LeaveIfError( table.SetIndex( KDbIndexDataContextId ) );
   166     table.SeekL( TDbSeekKey( TUint( aUid ) ) );
   166     TInt found( 0 );	
   167     TInt found( 0 );
   167     if(table.SeekL( TDbSeekKey( TUint( aUid ) ) ))
   168     while( table.AtRow() && 
   168     {    	
       
   169     	while( table.AtRow() && 
   169         (table.GetL(), table.ColUint32( contextId ) == aUid ) )
   170         (table.GetL(), table.ColUint32( contextId ) == aUid ) )
   170         {
   171         {
   171         found++;
   172         found++;
   172         table.NextL();
   173         table.NextL();
   173         }
   174         }
       
   175     }
   174     FTRACE(RDebug::Print(_L("[Provisioning] CWPBindingContextManager::ContextDataCountL count (%d)"), found));
   176     FTRACE(RDebug::Print(_L("[Provisioning] CWPBindingContextManager::ContextDataCountL count (%d)"), found));
   175     CleanupStack::PopAndDestroy(); // table
   177     CleanupStack::PopAndDestroy(); // table
   176     return found;
   178     return found;
   177     }
   179     }
   178 
   180