serviceproviders/sapi_logging/src/loggingcallback.cpp
branchRCL_3
changeset 45 a9c0808a1095
parent 44 0b68a1b0c15e
equal deleted inserted replaced
44:0b68a1b0c15e 45:a9c0808a1095
   425     CleanupStack::PopAndDestroy( OutParm );
   425     CleanupStack::PopAndDestroy( OutParm );
   426     CleanupStack::Pop(this);   
   426     CleanupStack::Pop(this);   
   427     }   
   427     }   
   428 
   428 
   429 
   429 
   430  void  LoggingInterfaceCB :: CancelNotifyL( TUint aTransid )
   430  void  LoggingInterfaceCB :: CancelNotifyL( TUint aTransid ,TBool aFlag )
   431     {
   431     {
   432     CleanupStack :: PushL( this ) ;
   432     if(aFlag)
   433     CLiwGenericParamList *OutParm = CLiwGenericParamList :: NewL() ;
   433         {
   434     CleanupStack :: PushL( OutParm ) ;
   434         CleanupStack :: PushL( this ) ;
   435     CLiwGenericParamList *InParm = CLiwGenericParamList :: NewL() ;
   435         CLiwGenericParamList *OutParm = CLiwGenericParamList :: NewL() ;
   436     CleanupStack :: PushL( InParm ) ;
   436         CleanupStack :: PushL( OutParm ) ;
   437     OutParm->AppendL( TLiwGenericParam( KErrCode , TLiwVariant( ( TInt32 )SErrNone ) ) ) ;
   437         CLiwGenericParamList *InParm = CLiwGenericParamList :: NewL() ;
   438     iCallBack->HandleNotifyL( aTransid, KLiwEventCanceled, *OutParm, *InParm ) ;
   438         CleanupStack :: PushL( InParm ) ;
   439     CleanupStack::PopAndDestroy( InParm );
   439         OutParm->AppendL( TLiwGenericParam( KErrCode , TLiwVariant( ( TInt32 )SErrNone ) ) ) ;
   440     CleanupStack::PopAndDestroy( OutParm );
   440         iCallBack->HandleNotifyL( aTransid, KLiwEventCanceled, *OutParm, *InParm ) ;
   441     CleanupStack :: Pop( this ) ;
   441         CleanupStack::PopAndDestroy( InParm );
       
   442         CleanupStack::PopAndDestroy( OutParm );
       
   443         CleanupStack :: Pop( this ) ;
       
   444         }  
   442     delete this;
   445     delete this;
   443     }
   446     }