# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1270065729 -10800 # Node ID 68159986cd410dba5feecbd8522a07e64bf5afcd # Parent 5dae2c62e9b6113a617bf252363f438e0f41c311 Revision: 201011 Kit: 201013 diff -r 5dae2c62e9b6 -r 68159986cd41 package_definition.xml --- a/package_definition.xml Mon Mar 15 12:43:25 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 5dae2c62e9b6 -r 68159986cd41 serviceproviders/sapi_logging/loggingservice/src/loggingasyncservice.cpp --- a/serviceproviders/sapi_logging/loggingservice/src/loggingasyncservice.cpp Mon Mar 15 12:43:25 2010 +0200 +++ b/serviceproviders/sapi_logging/loggingservice/src/loggingasyncservice.cpp Wed Mar 31 23:02:09 2010 +0300 @@ -210,7 +210,7 @@ case EReadEvents : { iIter->SetTaskId(EReadEvents) ; - iCallback->HandleNotifyL( iTransId, KErrNone, iIter ) ; + iCallback->HandleNotifyL( iTransId, iStatus.Int(), iIter ) ; iIter = NULL ; iTask = ESleep; break; @@ -219,7 +219,7 @@ case EGetRecent: { iIter->SetTaskId(EGetRecent) ; - iCallback->HandleNotifyL( iTransId ,KErrNone, iIter ) ; + iCallback->HandleNotifyL( iTransId ,iStatus.Int(), iIter ) ; iIter = NULL ; iTask = ESleep; break; @@ -231,14 +231,7 @@ iIter->SetTaskId( EGetEvent ) ; delete iUpdatedEvent ; iUpdatedEvent = NULL ; - - if( iStatus.Int() != KErrNone ) - { - delete iIter; - iIter = NULL ; - } - - iCallback->HandleNotifyL(iTransId , KErrNone, iIter) ; + iCallback->HandleNotifyL(iTransId , iStatus.Int(), iIter) ; iIter = NULL ; iTask = ESleep; break ; diff -r 5dae2c62e9b6 -r 68159986cd41 serviceproviders/sapi_logging/src/loggingcallback.cpp --- a/serviceproviders/sapi_logging/src/loggingcallback.cpp Mon Mar 15 12:43:25 2010 +0200 +++ b/serviceproviders/sapi_logging/src/loggingcallback.cpp Wed Mar 31 23:02:09 2010 +0300 @@ -89,12 +89,21 @@ { case EReadEvents : { + if( aStatus == KErrNone ) + { CLiwLogIter *iter = CLiwLogIter :: NewL( aIter ) ; CleanupClosePushL( *iter ); OutParm->AppendL( TLiwGenericParam ( KResponse , TLiwVariant( iter ) ) ) ; CleanupStack :: Pop( iter ) ; iter->DecRef(); iCallBack->HandleNotifyL( aTransId, KLiwEventCompleted, *OutParm, *InParm ) ; + } + else + { + iCallBack->HandleNotifyL( aTransId, KLiwEventError, *OutParm, *InParm ) ; + delete aIter; + aIter = NULL; + } CleanupStack::PopAndDestroy( InParm ); CleanupStack::PopAndDestroy( OutParm ); CleanupStack :: Pop( this ) ; @@ -104,13 +113,22 @@ case EGetEvent : { + if( aStatus == KErrNone ) + { CLiwLogIter *iter = CLiwLogIter :: NewL( aIter ) ; CleanupClosePushL( *iter ); OutParm->AppendL( TLiwGenericParam ( KResponse , TLiwVariant( iter ) ) ) ; CleanupStack :: Pop( iter ) ; iter->DecRef(); iCallBack->HandleNotifyL( aTransId, KLiwEventCompleted, *OutParm, *InParm ) ; - CleanupStack::PopAndDestroy( InParm ); + } + else + { + iCallBack->HandleNotifyL( aTransId, KLiwEventError, *OutParm, *InParm ) ; + delete aIter; + aIter = NULL; + } + CleanupStack::PopAndDestroy( InParm ); CleanupStack::PopAndDestroy( OutParm ); CleanupStack :: Pop( this ) ; delete this ; @@ -119,12 +137,21 @@ case EGetRecent : { + if( aStatus == KErrNone ) + { CLiwLogIter *iter = CLiwLogIter :: NewL( aIter ) ; CleanupClosePushL( *iter ); OutParm->AppendL( TLiwGenericParam ( KResponse , TLiwVariant( iter ) ) ) ; CleanupStack :: Pop( iter ) ; iter->DecRef(); iCallBack->HandleNotifyL( aTransId, KLiwEventCompleted, *OutParm, *InParm ) ; + } + else + { + iCallBack->HandleNotifyL( aTransId, KLiwEventError, *OutParm, *InParm ) ; + delete aIter; + aIter = NULL; + } CleanupStack::PopAndDestroy( InParm ); CleanupStack::PopAndDestroy( OutParm ); CleanupStack :: Pop( this ) ;