diff -r 1cee9f1b95e0 -r a180113055cb smf/smfservermodule/smfserver/server/smfserversymbian.cpp --- a/smf/smfservermodule/smfserver/server/smfserversymbian.cpp Thu Sep 23 17:20:22 2010 +0530 +++ b/smf/smfservermodule/smfserver/server/smfserversymbian.cpp Thu Sep 23 17:43:31 2010 +0530 @@ -21,6 +21,7 @@ #include #include +#include "smfpluginmanager.h" #include "smfserversymbian_p.h" @@ -136,7 +137,6 @@ iIntfNameSymbian(NULL,0) ,iXtraDataPtr8(NULL,0), iPtrToDataForClient(NULL,0) ,iPtr8DataForDSM(NULL,0),iPtr8DataFromDSM(NULL,0) { - qDebug()<<"Inside SmfServerSymbianSession::SmfServerSymbianSession()"; iServer->iSessionCount++; } @@ -206,7 +206,6 @@ void SmfServerSymbianSession::HandleClientMessageL(const RMessage2& aMessage) { qDebug()<<"Inside SmfServerSymbianSession::HandleClientMessageL() = "<wrapper())->cancelRequest(iLastRequest); + + iErrBuf.Zero(); + iErrBuf.AppendNum(err); + iMessage.Write(2,iErrBuf); + aMessage.Complete(iLastRequest); + + } + void SmfServerSymbianSession::HandleDSMServiceL(const RMessage2 & aMessage) { qDebug()<<"Inside SmfServerSymbianSession::HandleDSMServiceL()"; + iLastRequest = aMessage.Function(); //TODO:-If DSM takes care of deserialization and formation of User and social //profile from the params then switch case can be removed if(iData8ForDSM) @@ -269,7 +287,7 @@ break; case SmfRelationAssociate: { - int maxAlloc = 100; + int maxAlloc = 1000; iData8ForDSM = HBufC8::New(maxAlloc); iPtr8DataForDSM.Set(iData8ForDSM->Des()); TInt readerr0 = aMessage.Read(0,iPtr8DataForDSM); @@ -355,6 +373,8 @@ delete iData8FromDSM; iData8FromDSM = NULL; } + int siz = qtdataFromDSM.size(); + qDebug()<<"Size of Data to be sent back thru DSM Create : "<Des()); iPtr8DataFromDSM.Copy(reinterpret_cast(qtdataFromDSM.constData()),qtdataFromDSM.length()); @@ -368,6 +388,7 @@ iDSMErr.AppendNum(errInt); TInt writeErr = aMessage.Write(2,iDSMErr); } + aMessage.Complete(iLastRequest); } @@ -375,6 +396,8 @@ { qDebug()<<"Inside SmfServerSymbianSession::HandleSyncServiceL()"; + iLastRequest = aMessage.Function(); + // Following is the data format sent by client // 1. SmfProvider +PageInfo flag+ aPageNum + aPerPage (if pageinfoflag is set) + XtraInfo flag(size of xtra data) Serialized // 2. Interface name as string ("org.symbian.smf.client.gallery") @@ -536,6 +559,7 @@ void SmfServerSymbianSession::HandleCommonServiceL(const RMessage2& aMessage) { qDebug()<<"Inside SmfServerSymbianSession::HandleCommonServiceL() = "<Des()); + qDebug()<<"data info (0) size = "<