diff -r 1a2a00e78665 -r 7feec50967db contentpublishingsrv/contentpublishingserver/cpserver/src/cpserversession.cpp --- 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 // for CleanupResetAndDestroyPushL #include -#include +#include #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 idData(id); - iDataManager->AddNonPersistentDataL( map ); - aMessage.WriteL( KReturnPosition, idData ); - CleanupStack::PopAndDestroy( map ); - } + // ----------------------------------------------------------------------------- // CCPServerSession::GetListL // --------------- --------------------------------------------------------------