smf/smfservermodule/smfserver/server/smfserversymbian.cpp
changeset 26 83d6a149c755
parent 25 a180113055cb
--- a/smf/smfservermodule/smfserver/server/smfserversymbian.cpp	Thu Sep 23 17:43:31 2010 +0530
+++ b/smf/smfservermodule/smfserver/server/smfserversymbian.cpp	Mon Oct 11 21:59:54 2010 +0530
@@ -132,10 +132,10 @@
 
 
 SmfServerSymbianSession::SmfServerSymbianSession(SmfServerSymbian* aServer):
-			iServer(aServer),iPtrToBuf(NULL,0) ,
-			iIntfNameSymbian8(NULL,0), iProviderSymbian8(NULL,0),
-			iIntfNameSymbian(NULL,0) ,iXtraDataPtr8(NULL,0),
-			iPtrToDataForClient(NULL,0) ,iPtr8DataForDSM(NULL,0),iPtr8DataFromDSM(NULL,0)  
+			iServer(aServer), iIntfNameSymbian8(NULL,0),
+			iProviderSymbian8(NULL,0), iXtraDataPtr8(NULL,0), 
+			iPtr8DataForDSM(NULL,0), iPtr8DataFromDSM(NULL,0), 
+			iPtrToDataForClient(NULL,0)  
 	{
 	iServer->iSessionCount++;
 	}
@@ -147,6 +147,7 @@
 	iServer->iSessionCount--;
 	}
 
+#ifdef Q_FOR_FUTURE 
 void SmfServerSymbianSession::clientAuthorizationFinished(bool success)
 	{
 	qDebug()<<"Inside SmfServerSymbianSession::clientAuthorizationFinished() = "<<success;
@@ -162,6 +163,7 @@
 		HandleClientMessageL(iMessage);
 		}
 	}
+#endif
 
 void SmfServerSymbianSession::resultsAvailable(QByteArray* parsedData,SmfError error)
 	{
@@ -195,10 +197,13 @@
 	qDebug()<<"Inside SmfServerSymbianSession::ServiceL() = "<<iMessage.Function();
 	iMessage = aMessage;
 
+
+#ifdef Q_FOR_FUTURE 
 	//construct the client auth id
 	SmfClientAuthID clientAuthID;
 	clientAuthID.pid = aMessage.SecureId();
 	clientAuthID.session = this;
+#endif
 	//TODO:- No client pid checking?No capability? So why symbian client-server?
 	HandleClientMessageL(iMessage);
 	}
@@ -216,7 +221,7 @@
 	 *so it seems PM needs to provide two overloaded getPlugins API But for every client intf instanciation
 	 *we would execute the same things twice.
 	 *TODO:- to be changed after GetServices returns SmfProvider+pluginID 
-	 * 
+	 * 
 	 */
 	if( (SmfGetService == aMessage.Function()) 			||
 		(SmfPostGetMaxCharsInPost == aMessage.Function())	||
@@ -379,6 +384,10 @@
 			iPtr8DataFromDSM.Set(iData8FromDSM->Des());
 			iPtr8DataFromDSM.Copy(reinterpret_cast<const TText8*>(qtdataFromDSM.constData()),qtdataFromDSM.length());
 			TInt writeErr = aMessage.Write(1,iPtr8DataFromDSM);
+			iDSMErr.Zero();
+			TInt errInt = dsmErr;
+			iDSMErr.AppendNum(errInt);
+			writeErr = aMessage.Write(2,iDSMErr);
 			}
 		}
 	else