18 #include "blacklistclient.h" |
18 #include "blacklistclient.h" |
19 #include "blacklistcommon.h" |
19 #include "blacklistcommon.h" |
20 #include "mdcserializationbuffer.h" |
20 #include "mdcserializationbuffer.h" |
21 #include "blacklistitem.h" |
21 #include "blacklistitem.h" |
22 #include "harvesterlog.h" |
22 #include "harvesterlog.h" |
|
23 #include "OstTraceDefinitions.h" |
|
24 #ifdef OST_TRACE_COMPILER_IN_USE |
|
25 #include "blacklistclientTraces.h" |
|
26 #endif |
|
27 |
23 |
28 |
24 |
29 |
25 // --------------------------------------------------------------------------- |
30 // --------------------------------------------------------------------------- |
26 // RBlacklistClient::RBlacklistClient() |
31 // RBlacklistClient::RBlacklistClient() |
27 // --------------------------------------------------------------------------- |
32 // --------------------------------------------------------------------------- |
36 // --------------------------------------------------------------------------- |
41 // --------------------------------------------------------------------------- |
37 // |
42 // |
38 EXPORT_C RBlacklistClient::~RBlacklistClient() |
43 EXPORT_C RBlacklistClient::~RBlacklistClient() |
39 { |
44 { |
40 WRITELOG( "RBlacklistClient::~RBlacklistClient - begin" ); |
45 WRITELOG( "RBlacklistClient::~RBlacklistClient - begin" ); |
|
46 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_RBLACKLISTCLIENT, "RBlacklistClient::~RBlacklistClient -begin" ); |
41 |
47 |
42 RSessionBase::Close(); |
48 RSessionBase::Close(); |
43 iBlacklistMemoryTable.ResetAndDestroy(); |
49 iBlacklistMemoryTable.ResetAndDestroy(); |
44 iBlacklistMemoryTable.Close(); |
50 iBlacklistMemoryTable.Close(); |
45 iBlacklistChunk.Close(); |
51 iBlacklistChunk.Close(); |
46 iFs.Close(); |
52 iFs.Close(); |
47 |
53 |
48 WRITELOG( "RBlacklistClient::~RBlacklistClient - end" ); |
54 WRITELOG( "RBlacklistClient::~RBlacklistClient - end" ); |
|
55 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_RBLACKLISTCLIENT, "RBlacklistClient::~RBlacklistClient - end" ); |
|
56 |
49 } |
57 } |
50 |
58 |
51 // --------------------------------------------------------------------------- |
59 // --------------------------------------------------------------------------- |
52 // RBlacklistClient::Connect() |
60 // RBlacklistClient::Connect() |
53 // --------------------------------------------------------------------------- |
61 // --------------------------------------------------------------------------- |
54 // |
62 // |
55 EXPORT_C TInt RBlacklistClient::Connect() |
63 EXPORT_C TInt RBlacklistClient::Connect() |
56 { |
64 { |
57 WRITELOG( "RBlacklistClient::Connect - begin" ); |
65 WRITELOG( "RBlacklistClient::Connect - begin" ); |
58 |
66 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_CONNECT, "RBlacklistClient::Connect - begin" ); |
|
67 |
59 iSessionOk = EFalse; |
68 iSessionOk = EFalse; |
60 |
69 |
61 TInt error = iFs.Connect(); |
70 TInt error = iFs.Connect(); |
62 |
71 |
63 if( error != KErrNone ) |
72 if( error != KErrNone ) |
81 { |
90 { |
82 iFs.Close(); |
91 iFs.Close(); |
83 } |
92 } |
84 |
93 |
85 WRITELOG( "RBlacklistClient::Connect - end" ); |
94 WRITELOG( "RBlacklistClient::Connect - end" ); |
86 |
95 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_CONNECT, "RBlacklistClient::Connect - end" ); |
|
96 |
87 return error; |
97 return error; |
88 } |
98 } |
89 |
99 |
90 // --------------------------------------------------------------------------- |
100 // --------------------------------------------------------------------------- |
91 // RBlacklistClient::Version() |
101 // RBlacklistClient::Version() |
92 // --------------------------------------------------------------------------- |
102 // --------------------------------------------------------------------------- |
93 // |
103 // |
94 TVersion RBlacklistClient::Version() const |
104 TVersion RBlacklistClient::Version() const |
95 { |
105 { |
96 WRITELOG( "RBlacklistClient::Version - begin" ); |
106 WRITELOG( "RBlacklistClient::Version - begin" ); |
97 |
107 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_VERSION, "RBlacklistClient::Version - begin" ); |
|
108 |
98 return TVersion( KBlacklistServerMajorVersion, KBlacklistServerMinorVersion, |
109 return TVersion( KBlacklistServerMajorVersion, KBlacklistServerMinorVersion, |
99 KBlacklistServerBuildVersion ); |
110 KBlacklistServerBuildVersion ); |
100 |
111 |
101 } |
112 } |
102 |
113 |
130 User::WaitForRequest( status ); |
142 User::WaitForRequest( status ); |
131 error = server.ExitType() == EExitPanic ? KErrCommsBreak : status.Int(); |
143 error = server.ExitType() == EExitPanic ? KErrCommsBreak : status.Int(); |
132 server.Close(); |
144 server.Close(); |
133 |
145 |
134 WRITELOG( "RBlacklistClient::StartServer - end" ); |
146 WRITELOG( "RBlacklistClient::StartServer - end" ); |
135 |
147 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_STARTSERVER, "RBlacklistClient::StartServer - end" ); |
|
148 |
136 return error; |
149 return error; |
137 } |
150 } |
138 |
151 |
139 // --------------------------------------------------------------------------- |
152 // --------------------------------------------------------------------------- |
140 // RBlacklistClient::RemoveFromDBL() |
153 // RBlacklistClient::RemoveFromDBL() |
141 // --------------------------------------------------------------------------- |
154 // --------------------------------------------------------------------------- |
142 // |
155 // |
143 void RBlacklistClient::RemoveFromDBL( const TDesC& aUri, TUint32 aMediaId ) const |
156 void RBlacklistClient::RemoveFromDBL( const TDesC& aUri, TUint32 aMediaId ) const |
144 { |
157 { |
145 WRITELOG( "RBlacklistClient::RemoveFromDBL - begin" ); |
158 WRITELOG( "RBlacklistClient::RemoveFromDBL - begin" ); |
146 |
159 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_REMOVEFROMDBL, "RBlacklistClient::RemoveFromDBL - begin" ); |
|
160 |
147 TPckgBuf<TUint32> mediaIdPckg( aMediaId ); |
161 TPckgBuf<TUint32> mediaIdPckg( aMediaId ); |
148 |
162 |
149 TIpcArgs ipcArgs; |
163 TIpcArgs ipcArgs; |
150 ipcArgs.Set( 1, &aUri ); |
164 ipcArgs.Set( 1, &aUri ); |
151 ipcArgs.Set( 2, &mediaIdPckg ); |
165 ipcArgs.Set( 2, &mediaIdPckg ); |
152 |
166 |
153 const TInt err = SendReceive( EBlacklistRemoveFromDB, ipcArgs ); |
167 const TInt err = SendReceive( EBlacklistRemoveFromDB, ipcArgs ); |
154 User::LeaveIfError( err ); |
168 User::LeaveIfError( err ); |
155 |
169 |
156 WRITELOG( "RBlacklistClient::RemoveFromDBL - end" ); |
170 WRITELOG( "RBlacklistClient::RemoveFromDBL - end" ); |
|
171 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_REMOVEFROMDBL, "RBlacklistClient::RemoveFromDBL end" ); |
|
172 |
157 } |
173 } |
158 |
174 |
159 // --------------------------------------------------------------------------- |
175 // --------------------------------------------------------------------------- |
160 // RBlacklistClient::DoLoadBlacklistL() |
176 // RBlacklistClient::DoLoadBlacklistL() |
161 // --------------------------------------------------------------------------- |
177 // --------------------------------------------------------------------------- |
162 // |
178 // |
163 void RBlacklistClient::DoLoadBlacklistL( TInt& aHandle ) const |
179 void RBlacklistClient::DoLoadBlacklistL( TInt& aHandle ) const |
164 { |
180 { |
165 WRITELOG( "RBlacklistClient::DoLoadBlacklistL - begin" ); |
181 WRITELOG( "RBlacklistClient::DoLoadBlacklistL - begin" ); |
166 |
182 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_DOLOADBLACKLISTL, "RBlacklistClient::DoLoadBlacklistL - begin" ); |
|
183 |
167 TPckgBuf<TInt> handleBuf; |
184 TPckgBuf<TInt> handleBuf; |
168 TIpcArgs ipcArgs; |
185 TIpcArgs ipcArgs; |
169 ipcArgs.Set( 1, &handleBuf ); |
186 ipcArgs.Set( 1, &handleBuf ); |
170 const TInt err = SendReceive( EGetBlacklistData, ipcArgs ); |
187 const TInt err = SendReceive( EGetBlacklistData, ipcArgs ); |
171 User::LeaveIfError( err ); |
188 User::LeaveIfError( err ); |
172 aHandle = handleBuf(); |
189 aHandle = handleBuf(); |
173 |
190 |
174 WRITELOG( "RBlacklistClient::DoLoadBlacklistL - end" ); |
191 WRITELOG( "RBlacklistClient::DoLoadBlacklistL - end" ); |
|
192 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_DOLOADBLACKLISTL, "RBlacklistClient::DoLoadBlacklistL - end" ); |
|
193 |
175 } |
194 } |
176 |
195 |
177 // --------------------------------------------------------------------------- |
196 // --------------------------------------------------------------------------- |
178 // RBlacklistClient::LoadBlacklistL() |
197 // RBlacklistClient::LoadBlacklistL() |
179 // --------------------------------------------------------------------------- |
198 // --------------------------------------------------------------------------- |
180 // |
199 // |
181 EXPORT_C void RBlacklistClient::LoadBlacklistL() |
200 EXPORT_C void RBlacklistClient::LoadBlacklistL() |
182 { |
201 { |
183 WRITELOG( "RBlacklistClient::LoadBlacklistL - begin" ); |
202 WRITELOG( "RBlacklistClient::LoadBlacklistL - begin" ); |
184 |
203 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_LOADBLACKLISTL, "RBlacklistClient::LoadBlacklistL - begin" ); |
|
204 |
185 if ( !iSessionOk ) |
205 if ( !iSessionOk ) |
186 { |
206 { |
187 return; |
207 return; |
188 } |
208 } |
189 |
209 |
236 |
256 |
237 CleanupStack::PopAndDestroy( buffer ); |
257 CleanupStack::PopAndDestroy( buffer ); |
238 CleanupStack::PopAndDestroy( name ); |
258 CleanupStack::PopAndDestroy( name ); |
239 |
259 |
240 WRITELOG( "RBlacklistClient::LoadBlacklistL - end" ); |
260 WRITELOG( "RBlacklistClient::LoadBlacklistL - end" ); |
|
261 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_LOADBLACKLISTL, "RBlacklistClient::LoadBlacklistL - end" ); |
|
262 |
241 } |
263 } |
242 |
264 |
243 // --------------------------------------------------------------------------- |
265 // --------------------------------------------------------------------------- |
244 // RBlacklistClient::AddToMemoryTableL() |
266 // RBlacklistClient::AddToMemoryTableL() |
245 // --------------------------------------------------------------------------- |
267 // --------------------------------------------------------------------------- |
246 // |
268 // |
247 void RBlacklistClient::AddToMemoryTableL( const TInt64& aModified, |
269 void RBlacklistClient::AddToMemoryTableL( const TInt64& aModified, |
248 const TDesC& aUri, const TUint32 aMediaId ) |
270 const TDesC& aUri, const TUint32 aMediaId ) |
249 { |
271 { |
250 WRITELOG( "RBlacklistClient::AddToMemoryTableL - begin" ); |
272 WRITELOG( "RBlacklistClient::AddToMemoryTableL - begin" ); |
251 |
273 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_ADDTOMEMORYTABLEL, "RBlacklistClient::AddToMemoryTableL - begin" ); |
|
274 |
252 CBlacklistItem* item = CBlacklistItem::NewL( aModified, aUri, aMediaId ); |
275 CBlacklistItem* item = CBlacklistItem::NewL( aModified, aUri, aMediaId ); |
253 |
276 |
254 const TInt err = iBlacklistMemoryTable.Append( item ); // ownership is transferred |
277 const TInt err = iBlacklistMemoryTable.Append( item ); // ownership is transferred |
255 if ( err != KErrNone ) |
278 if ( err != KErrNone ) |
256 { |
279 { |
257 delete item; |
280 delete item; |
258 } |
281 } |
259 |
282 |
260 |
283 |
261 WRITELOG( "RBlacklistClient::AddToMemoryTableL - end" ); |
284 WRITELOG( "RBlacklistClient::AddToMemoryTableL - end" ); |
|
285 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_ADDTOMEMORYTABLEL, "RBlacklistClient::AddToMemoryTableL - end" ); |
|
286 |
262 } |
287 } |
263 |
288 |
264 // --------------------------------------------------------------------------- |
289 // --------------------------------------------------------------------------- |
265 // RBlacklistClient::RemoveFromMemoryTableL() |
290 // RBlacklistClient::RemoveFromMemoryTableL() |
266 // --------------------------------------------------------------------------- |
291 // --------------------------------------------------------------------------- |
267 // |
292 // |
268 void RBlacklistClient::RemoveFromMemoryTableL( const TDesC& aUri, const TUint32 aMediaId ) |
293 void RBlacklistClient::RemoveFromMemoryTableL( const TDesC& aUri, const TUint32 aMediaId ) |
269 { |
294 { |
270 WRITELOG( "RBlacklistClient::RemoveFromMemoryTableL - begin" ); |
295 WRITELOG( "RBlacklistClient::RemoveFromMemoryTableL - begin" ); |
271 |
296 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_REMOVEFROMMEMORYTABLEL, "RBlacklistClient::RemoveFromMemoryTableL - begin" ); |
|
297 |
272 const TInt index = GetListIndex( aUri, aMediaId ); |
298 const TInt index = GetListIndex( aUri, aMediaId ); |
273 if ( index >= 0 ) |
299 if ( index >= 0 ) |
274 { |
300 { |
275 CBlacklistItem* item = iBlacklistMemoryTable[index]; |
301 CBlacklistItem* item = iBlacklistMemoryTable[index]; |
276 delete item; |
302 delete item; |
277 iBlacklistMemoryTable.Remove( index ); |
303 iBlacklistMemoryTable.Remove( index ); |
278 } |
304 } |
279 |
305 |
280 WRITELOG( "RBlacklistClient::RemoveFromMemoryTableL - end" ); |
306 WRITELOG( "RBlacklistClient::RemoveFromMemoryTableL - end" ); |
|
307 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_REMOVEFROMMEMORYTABLEL, "RBlacklistClient::RemoveFromMemoryTableL - end" ); |
|
308 |
281 } |
309 } |
282 |
310 |
283 |
311 |
284 // --------------------------------------------------------------------------- |
312 // --------------------------------------------------------------------------- |
285 // RBlacklistClient::IsBlacklistedL() |
313 // RBlacklistClient::IsBlacklistedL() |
286 // --------------------------------------------------------------------------- |
314 // --------------------------------------------------------------------------- |
287 // |
315 // |
288 EXPORT_C TBool RBlacklistClient::IsBlacklistedL( const TDesC& aUri, TUint32 aMediaId, TTime /*aLastModifiedTime*/ ) |
316 EXPORT_C TBool RBlacklistClient::IsBlacklistedL( const TDesC& aUri, TUint32 aMediaId, TTime /*aLastModifiedTime*/ ) |
289 { |
317 { |
290 WRITELOG( "RBlacklistClient::IsBlacklistedL - begin" ); |
318 WRITELOG( "RBlacklistClient::IsBlacklistedL - begin" ); |
|
319 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_ISBLACKLISTEDL, "RBlacklistClient::IsBlacklistedL - begin" ); |
|
320 |
291 |
321 |
292 if ( !iSessionOk ) |
322 if ( !iSessionOk ) |
293 { |
323 { |
294 return EFalse; |
324 return EFalse; |
295 } |
325 } |
329 } |
361 } |
330 } |
362 } |
331 else |
363 else |
332 { |
364 { |
333 WRITELOG( "RBlacklistClient::IsBlacklistedL - file is blacklisted, no modification time found" ); |
365 WRITELOG( "RBlacklistClient::IsBlacklistedL - file is blacklisted, no modification time found" ); |
|
366 OstTrace0( TRACE_NORMAL, DUP2_RBLACKLISTCLIENT_ISBLACKLISTEDL, "RBlacklistClient::IsBlacklistedL - file is blacklisted, no modification time found" ); |
|
367 |
334 return ETrue; |
368 return ETrue; |
335 } |
369 } |
336 |
370 |
337 } |
371 } |
338 |
372 |
339 WRITELOG( "RBlacklistClient::IsBlacklistedL - end" ); |
373 WRITELOG( "RBlacklistClient::IsBlacklistedL - end" ); |
|
374 OstTrace0( TRACE_NORMAL, DUP3_RBLACKLISTCLIENT_ISBLACKLISTEDL, "RBlacklistClient::IsBlacklistedL - end" ); |
|
375 |
340 return EFalse; |
376 return EFalse; |
341 } |
377 } |
342 |
378 |
343 // --------------------------------------------------------------------------- |
379 // --------------------------------------------------------------------------- |
344 // RBlacklistClient::GetListIndex() |
380 // RBlacklistClient::GetListIndex() |
345 // --------------------------------------------------------------------------- |
381 // --------------------------------------------------------------------------- |
346 // |
382 // |
347 TInt RBlacklistClient::GetListIndex( const TDesC& aUri, TUint32 aMediaId ) |
383 TInt RBlacklistClient::GetListIndex( const TDesC& aUri, TUint32 aMediaId ) |
348 { |
384 { |
349 WRITELOG( "RBlacklistClient::GetListIndex - begin" ); |
385 WRITELOG( "RBlacklistClient::GetListIndex - begin" ); |
350 |
386 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_GETLISTINDEX, "RBlacklistClient::GetListIndex - begin" ); |
|
387 |
351 for ( TInt i( 0 ); i < iBlacklistMemoryTable.Count(); ++i ) |
388 for ( TInt i( 0 ); i < iBlacklistMemoryTable.Count(); ++i ) |
352 { |
389 { |
353 if ( iBlacklistMemoryTable[i]->Compare( aUri, aMediaId ) ) |
390 if ( iBlacklistMemoryTable[i]->Compare( aUri, aMediaId ) ) |
354 { |
391 { |
355 return i; |
392 return i; |
356 } |
393 } |
357 } |
394 } |
358 |
395 |
359 WRITELOG( "RBlacklistClient::GetListIndex - end" ); |
396 WRITELOG( "RBlacklistClient::GetListIndex - end" ); |
360 |
397 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_GETLISTINDEX, "RBlacklistClient::GetListIndex - end" ); |
|
398 |
361 return KErrNotFound; |
399 return KErrNotFound; |
362 } |
400 } |
363 |
401 |
364 |
402 |
365 // --------------------------------------------------------------------------- |
403 // --------------------------------------------------------------------------- |
367 // --------------------------------------------------------------------------- |
405 // --------------------------------------------------------------------------- |
368 // |
406 // |
369 EXPORT_C void RBlacklistClient::AddL( const TDesC& aUri, TUint32 aMediaId, TTime aLastModifiedTime ) const |
407 EXPORT_C void RBlacklistClient::AddL( const TDesC& aUri, TUint32 aMediaId, TTime aLastModifiedTime ) const |
370 { |
408 { |
371 WRITELOG( "RBlacklistClient::AddL - begin" ); |
409 WRITELOG( "RBlacklistClient::AddL - begin" ); |
372 |
410 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_ADDL, "RBlacklistClient::AddL - begin" ); |
|
411 |
373 TPckgC<TUint32> mediaIdPckg( aMediaId ); |
412 TPckgC<TUint32> mediaIdPckg( aMediaId ); |
374 TPckgC<TTime> lastModifiedTimePckg( aLastModifiedTime ); |
413 TPckgC<TTime> lastModifiedTimePckg( aLastModifiedTime ); |
375 |
414 |
376 TIpcArgs ipcArgs; |
415 TIpcArgs ipcArgs; |
377 ipcArgs.Set( 0, &mediaIdPckg ); |
416 ipcArgs.Set( 0, &mediaIdPckg ); |
380 |
419 |
381 const TInt err = SendReceive( EBlacklistAdd, ipcArgs ); |
420 const TInt err = SendReceive( EBlacklistAdd, ipcArgs ); |
382 User::LeaveIfError( err ); |
421 User::LeaveIfError( err ); |
383 |
422 |
384 WRITELOG( "RBlacklistClient::AddL - end" ); |
423 WRITELOG( "RBlacklistClient::AddL - end" ); |
|
424 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_ADDL, "RBlacklistClient::AddL - end" ); |
|
425 |
385 } |
426 } |
386 |
427 |
387 |
428 |
388 // --------------------------------------------------------------------------- |
429 // --------------------------------------------------------------------------- |
389 // RBlacklistClient::RemoveL() |
430 // RBlacklistClient::RemoveL() |
390 // --------------------------------------------------------------------------- |
431 // --------------------------------------------------------------------------- |
391 // |
432 // |
392 EXPORT_C void RBlacklistClient::RemoveL( const TDesC& aUri, TUint32 aMediaId ) const |
433 EXPORT_C void RBlacklistClient::RemoveL( const TDesC& aUri, TUint32 aMediaId ) const |
393 { |
434 { |
394 WRITELOG( "RBlacklistClient::RemoveL - begin" ); |
435 WRITELOG( "RBlacklistClient::RemoveL - begin" ); |
395 |
436 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_REMOVEL, "RBlacklistClient::RemoveL - begin" ); |
|
437 |
396 TPckgBuf<TUint32> mediaIdPckg( aMediaId ); |
438 TPckgBuf<TUint32> mediaIdPckg( aMediaId ); |
397 |
439 |
398 TIpcArgs ipcArgs; |
440 TIpcArgs ipcArgs; |
399 ipcArgs.Set( 1, &aUri ); |
441 ipcArgs.Set( 1, &aUri ); |
400 ipcArgs.Set( 2, &mediaIdPckg ); |
442 ipcArgs.Set( 2, &mediaIdPckg ); |
401 |
443 |
402 const TInt err = SendReceive( EBlacklistRemove, ipcArgs ); |
444 const TInt err = SendReceive( EBlacklistRemove, ipcArgs ); |
403 User::LeaveIfError( err ); |
445 User::LeaveIfError( err ); |
404 |
446 |
405 WRITELOG( "RBlacklistClient::RemoveL - end" ); |
447 WRITELOG( "RBlacklistClient::RemoveL - end" ); |
|
448 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_REMOVEL, "RBlacklistClient::RemoveL - end" ); |
|
449 |
406 } |
450 } |
407 |
451 |
408 // --------------------------------------------------------------------------- |
452 // --------------------------------------------------------------------------- |
409 // RBlacklistClient::CloseDBL() |
453 // RBlacklistClient::CloseDBL() |
410 // --------------------------------------------------------------------------- |
454 // --------------------------------------------------------------------------- |
411 // |
455 // |
412 EXPORT_C void RBlacklistClient::CloseDBL() |
456 EXPORT_C void RBlacklistClient::CloseDBL() |
413 { |
457 { |
414 WRITELOG( "RBlacklistClient::CloseDBL - begin" ); |
458 WRITELOG( "RBlacklistClient::CloseDBL - begin" ); |
415 |
459 OstTrace0( TRACE_NORMAL, RBLACKLISTCLIENT_CLOSEDBL, "RBlacklistClient::CloseDBL - begin" ); |
|
460 |
416 if ( !iSessionOk ) |
461 if ( !iSessionOk ) |
417 { |
462 { |
418 User::Leave( KErrDisconnected ); |
463 User::Leave( KErrDisconnected ); |
419 } |
464 } |
420 else |
465 else |
421 { |
466 { |
422 SendReceive( EBlacklistCloseDB ); |
467 SendReceive( EBlacklistCloseDB ); |
423 } |
468 } |
424 |
469 |
425 WRITELOG( "RBlacklistClient::CloseDBL - end" ); |
470 WRITELOG( "RBlacklistClient::CloseDBL - end" ); |
|
471 OstTrace0( TRACE_NORMAL, DUP1_RBLACKLISTCLIENT_CLOSEDBL, "RBlacklistClient::CloseDBL- end" ); |
|
472 |
426 } |
473 } |
427 |
474 |
428 |
475 |
429 // End of File |
476 // End of File |