contentpublishingsrv/contentpublishingserver/cpserver/src/cpserversession.cpp
changeset 85 7feec50967db
parent 0 79c6a41cd166
child 86 e492551a0d54
--- a/contentpublishingsrv/contentpublishingserver/cpserver/src/cpserversession.cpp	Tue Feb 02 00:23:10 2010 +0200
+++ b/contentpublishingsrv/contentpublishingserver/cpserver/src/cpserversession.cpp	Tue Mar 23 23:17:02 2010 +0200
@@ -20,7 +20,7 @@
 #include <s32mem.h>
 // for CleanupResetAndDestroyPushL
 #include <mmf/common/mmfcontrollerpluginresolver.h>
-#include <liwgenericparam.h>
+#include <LiwGenericParam.h>
 
 #include "cpserversession.h"
 #include "cpliwmap.h"
@@ -70,13 +70,13 @@
 //
 CCPServerSession::~CCPServerSession()
     {
-    //remove notification handler from an array of sessions in data manager
-    if ( iNotificationHandler && iDataManager )
-        {
-        iDataManager->RemoveObserver( iNotificationHandler );
-        }
     if ( isRegister && iNotificationHandler )
         {
+        //remove notification handler from an array of sessions in data manager
+        if ( iDataManager )
+        	{
+        	iDataManager->RemoveObserver( iNotificationHandler );
+        	}
         iNotificationHandler->ErrorComplete( KErrCancel );
         }
     if ( iServer )
@@ -153,9 +153,6 @@
         case ECpServerAddData:
             AddDataL( aMessage );
             break;
-        case ECpServerAddDataNonPersistent:
-            AddDataNonPersistentL( aMessage );
-            break;
         case ECpServerGetListSize:
             GetListSizeL( aMessage );
             break;
@@ -214,22 +211,7 @@
 	    }
     CleanupStack::PopAndDestroy( map );
     }
-
-// -----------------------------------------------------------------------------
-// CCPServerSession::AddDataNonPersistentL
-// --------------- --------------------------------------------------------------
-//
-void CCPServerSession::AddDataNonPersistentL( const RMessage2& aMessage )
-    {
-    CP_DEBUG( _L8("CCPServerSession::AddDataL()" ) );
-    CCPLiwMap* map = UnpackFromClientLC( aMessage );
-    map->SetSecurityL( aMessage );
-    TUint id( 0 );
-    TPckg<TUint> idData(id);
-    iDataManager->AddNonPersistentDataL( map );
-    aMessage.WriteL( KReturnPosition, idData );
-    CleanupStack::PopAndDestroy( map );
-    }
+    
 // -----------------------------------------------------------------------------
 // CCPServerSession::GetListL
 // --------------- --------------------------------------------------------------