equal
deleted
inserted
replaced
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 |