voipplugins/accountcreationplugin/src/accountcreationplugin.cpp
branchRCL_3
changeset 8 7117cbf1600a
parent 0 a4daefaec16c
--- a/voipplugins/accountcreationplugin/src/accountcreationplugin.cpp	Fri Feb 19 22:44:34 2010 +0200
+++ b/voipplugins/accountcreationplugin/src/accountcreationplugin.cpp	Fri Mar 12 15:42:09 2010 +0200
@@ -65,6 +65,9 @@
     iServiceHandler = CAiwServiceHandler::NewL();
 
     iEikEnv = CEikonEnv::Static();
+    
+    iCBEventParamList = CAiwGenericParamList::NewL();
+    iCBEventParamList->Reset();
 
     ACPLOG( "CAccountCreationPlugin::ConstructL end" );
     }
@@ -98,6 +101,7 @@
         }
  
 	iEikEnv = NULL;
+	delete iCBEventParamList;
 
     ACPLOG( "CAccountCreationPlugin::~CAccountCreationPlugin end" );
     }
@@ -134,13 +138,12 @@
     variant.Set( placing );
     TAiwGenericParam genericParamPlace( EGenericParamError, variant );
     paramList.AppendL( genericParamPlace );
-
+	
     // Send callback to the customer application.
-    CAiwGenericParamList* nullList = NULL;
     callback->HandleNotifyL( 
         KAiwCmdCSCUiExtensionPlugins,
         KAiwEventStarted,
-        *nullList,
+        *iCBEventParamList,
         paramList );
 
     ACPLOG( "CAccountCreationPlugin::SendInitializedCallbackL end" );
@@ -165,11 +168,10 @@
     paramList.AppendL( genericParamUid );
 
     // Send callback to the customer application.
-    CAiwGenericParamList* nullList = NULL;
     callback->HandleNotifyL( 
         KAiwCmdCSCUiExtensionPlugins,
         KAiwEventStopped,
-        *nullList,
+        *iCBEventParamList,
         paramList );
 
     ACPLOG( "CAccountCreationPlugin::SendCompletedCallbackL end" );
@@ -194,11 +196,10 @@
     paramList.AppendL( genericParamUid );
 
     // Send callback to the customer application.
-    CAiwGenericParamList* nullList = NULL;
     callback->HandleNotifyL( 
         KAiwCmdCSCUiExtensionPlugins,
         KAiwEventError,
-        *nullList,
+        *iCBEventParamList,
         paramList );
 
     ACPLOG( "CAccountCreationPlugin::SendErrorCallbackL end" );