policymanagement/policyengine/policyengineserver/src/PolicyProcessor.cpp
changeset 40 588ad05716be
parent 0 b497e44ab2fc
child 36 1ff291ad36ba
child 44 39aa16f3fdc2
--- a/policymanagement/policyengine/policyengineserver/src/PolicyProcessor.cpp	Mon May 03 13:19:46 2010 +0300
+++ b/policymanagement/policyengine/policyengineserver/src/PolicyProcessor.cpp	Sat May 01 10:33:10 2010 +0530
@@ -752,10 +752,10 @@
 	if ( name.Length() && fingerPrint.Length())
 	{
 		//create notifier
-		RNotifier notifier;
+/*		RNotifier notifier;
 		CleanupClosePushL( notifier);
 		User::LeaveIfError( notifier.Connect() );
-		
+*/		
 		//create parameter descriptor
 		TBuf8<100> responseBuf;
 		HBufC8 * data = HBufC8::NewLC( name.Length() + fingerPrint.Length() + 1);
@@ -766,7 +766,7 @@
 
 		//create CAsyncHandler to Auto start/stop CActiveScheduler
 		CASyncHandler * async = CASyncHandler::NewLC();
-		notifier.StartNotifierAndGetResponse( async->GetRequestStatus(), KUidPolicyEngineUi, ptr, responseBuf);
+//		notifier.StartNotifierAndGetResponse( async->GetRequestStatus(), KUidPolicyEngineUi, ptr, responseBuf);
 		
 		//Start CActiveScheduler and execute stop when request is completed
 		async->WaitForRequest();
@@ -775,7 +775,7 @@
 		
 		if ( async->GetRequestStatus() > 0) //request pending...
 		{
-			notifier.CancelNotifier( KUidPolicyEngineUi);	
+//			notifier.CancelNotifier( KUidPolicyEngineUi);	
 		}
 		else
 		{
@@ -787,7 +787,8 @@
 			}
 		}
 		
-		CleanupStack::PopAndDestroy( 3, &notifier);	//notifier, data, CASyncHandler
+	//	CleanupStack::PopAndDestroy( 3, &notifier);	//notifier, data, CASyncHandler
+	CleanupStack::PopAndDestroy( 2);
 		
 		
 	}