Revision: 201017
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 16:52:10 +0300
changeset 21 5aacbb121f34
parent 19 c29f8e059978
child 24 8447e6f7e2f5
child 25 cfa56fceeabb
child 29 000337104c92
Revision: 201017 Kit: 201019
vpnengine/vpncleaner/group/vpncleaner.mmp
vpnengine/vpncleaner/src/vpncleanerexe.cpp
vpnengine/vpnconnagt/src/vpnconnagt.cpp
--- a/vpnengine/vpncleaner/group/vpncleaner.mmp	Mon May 03 13:28:39 2010 +0300
+++ b/vpnengine/vpncleaner/group/vpncleaner.mmp	Fri May 14 16:52:10 2010 +0300
@@ -23,7 +23,7 @@
 TARGETTYPE     exe
 UID            0x1000008d 0x101FAE02
 
-CAPABILITY	   ALL -TCB
+CAPABILITY	   WriteDeviceData ReadDeviceData ReadUserData
 VENDORID       VID_DEFAULT
 
 SOURCEPATH     ../src
--- a/vpnengine/vpncleaner/src/vpncleanerexe.cpp	Mon May 03 13:28:39 2010 +0300
+++ b/vpnengine/vpncleaner/src/vpncleanerexe.cpp	Fri May 14 16:52:10 2010 +0300
@@ -54,7 +54,7 @@
 
     if ( KErrNone == err )
         {
-        _LIT( KRomPath, "z:\\sys\\bin\\kmdserver.exe" );
+        _LIT( KRomPath, "z:\\resource\\vpnlogmessages.rsc" );
 
         if ( KErrNone == fs.Att( KRomPath, fileAttr ) )
             {
--- a/vpnengine/vpnconnagt/src/vpnconnagt.cpp	Mon May 03 13:28:39 2010 +0300
+++ b/vpnengine/vpnconnagt/src/vpnconnagt.cpp	Fri May 14 16:52:10 2010 +0300
@@ -89,13 +89,7 @@
     LOG(TName name;
     name.AppendFormat(_L("[0x%08x]"), this);
     Log::Printf(_L("%s Destructing VPN Connection Agent\n"),name.PtrZ()));
-
-    if ( FeatureManager::FeatureSupported( KFeatureIdFfImsDeregistrationInVpn ) )
-        {
-        delete iSipObserver;
-        iSipObserver = NULL;
-        }
-        
+    
     if ( iFeatureManagerInitialized )
         {
         // We can safely call UnInitializeLib as we have really intialized it.
@@ -107,6 +101,11 @@
     iServiceStartedCallback.Cancel();
     iConnectCompleteCallback.Cancel();
     iDisconnectCallback.Cancel();
+    
+    delete iSipObserver;
+    iSipObserver = NULL;
+    
+    LOG_("CVPNConnAgt::~CVPNConnAgt end");
     }
 
 // ---------------------------------------------------------------------------
@@ -133,19 +132,22 @@
     CAgentBase::ConstructL();
     iConnected = EFalse;
     iDisconnecting = EFalse;
-    LOG_("CVPNConnAgt::ReadConfigurationL EventMediator");
-    User::LeaveIfError(iEventMediator.Connect());
-        
+
     // Initialize Feature Manager.
     FeatureManager::InitializeLibL();  // Successfull call increases reference count
     iFeatureManagerInitialized = ETrue;
-   
+
     // Create CVpnSipObserver for communicating with SIP profile server via 
     // P&S keys for SIP de/re-registration. this pointer is passed to have call back.
     if ( FeatureManager::FeatureSupported( KFeatureIdFfImsDeregistrationInVpn ) )
         {
+        LOG_("CVPNConnAgt::ConstructL FfImsDeregistrationInVpn");
         iSipObserver = CVpnSipObserver::NewL( *this );
         }
+
+    User::LeaveIfError(iEventMediator.Connect());
+
+    LOG_("CVPNConnAgt::ConstructL end");
     }
 
 // ---------------------------------------------------------------------------