equal
deleted
inserted
replaced
149 |
149 |
150 TIpcArgs ipcArgs; |
150 TIpcArgs ipcArgs; |
151 ipcArgs.Set( 1, &aUri ); |
151 ipcArgs.Set( 1, &aUri ); |
152 ipcArgs.Set( 2, &mediaIdPckg ); |
152 ipcArgs.Set( 2, &mediaIdPckg ); |
153 |
153 |
154 TInt err = SendReceive( EBlacklistRemoveFromDB, ipcArgs ); |
154 const TInt err = SendReceive( EBlacklistRemoveFromDB, ipcArgs ); |
155 User::LeaveIfError( err ); |
155 User::LeaveIfError( err ); |
156 |
156 |
157 WRITELOG( "CBlacklistServer::RemoveFromDBL - end" ); |
157 WRITELOG( "CBlacklistServer::RemoveFromDBL - end" ); |
158 } |
158 } |
159 |
159 |
166 WRITELOG( "CBlacklistServer::DoLoadBlacklistL - begin" ); |
166 WRITELOG( "CBlacklistServer::DoLoadBlacklistL - begin" ); |
167 |
167 |
168 TPckgBuf<TInt> handleBuf; |
168 TPckgBuf<TInt> handleBuf; |
169 TIpcArgs ipcArgs; |
169 TIpcArgs ipcArgs; |
170 ipcArgs.Set( 1, &handleBuf ); |
170 ipcArgs.Set( 1, &handleBuf ); |
171 TInt err = SendReceive( EGetBlacklistData, ipcArgs ); |
171 const TInt err = SendReceive( EGetBlacklistData, ipcArgs ); |
172 User::LeaveIfError( err ); |
172 User::LeaveIfError( err ); |
173 aHandle = handleBuf(); |
173 aHandle = handleBuf(); |
174 |
174 |
175 WRITELOG( "CBlacklistServer::DoLoadBlacklistL - end" ); |
175 WRITELOG( "CBlacklistServer::DoLoadBlacklistL - end" ); |
176 } |
176 } |
268 // |
268 // |
269 void RBlacklistClient::RemoveFromMemoryTableL( const TDesC& aUri, const TUint32 aMediaId ) |
269 void RBlacklistClient::RemoveFromMemoryTableL( const TDesC& aUri, const TUint32 aMediaId ) |
270 { |
270 { |
271 WRITELOG( "CBlacklistServer::RemoveFromMemoryTableL - begin" ); |
271 WRITELOG( "CBlacklistServer::RemoveFromMemoryTableL - begin" ); |
272 |
272 |
273 TInt index = GetListIndex( aUri, aMediaId ); |
273 const TInt index = GetListIndex( aUri, aMediaId ); |
274 if ( index >= 0 ) |
274 if ( index >= 0 ) |
275 { |
275 { |
276 CBlacklistItem* item = iBlacklistMemoryTable[index]; |
276 CBlacklistItem* item = iBlacklistMemoryTable[index]; |
277 delete item; |
277 delete item; |
278 iBlacklistMemoryTable.Remove( index ); |
278 iBlacklistMemoryTable.Remove( index ); |
288 // |
288 // |
289 EXPORT_C TBool RBlacklistClient::IsBlacklistedL( const TDesC& aUri, TUint32 aMediaId, TTime aLastModifiedTime ) |
289 EXPORT_C TBool RBlacklistClient::IsBlacklistedL( const TDesC& aUri, TUint32 aMediaId, TTime aLastModifiedTime ) |
290 { |
290 { |
291 WRITELOG( "CBlacklistServer::IsBlacklistedL - begin" ); |
291 WRITELOG( "CBlacklistServer::IsBlacklistedL - begin" ); |
292 |
292 |
293 TInt index = GetListIndex( aUri, aMediaId ); |
293 const TInt index = GetListIndex( aUri, aMediaId ); |
294 if ( index >= 0 ) |
294 if ( index >= 0 ) |
295 { |
295 { |
296 TInt64 modified( 0 ); |
296 TInt64 modified( 0 ); |
297 modified = iBlacklistMemoryTable[index]->Modified(); |
297 modified = iBlacklistMemoryTable[index]->Modified(); |
298 |
298 |