diff -r a180113055cb -r 83d6a149c755 smf/smfservermodule/smfserver/server/smfserver.cpp --- a/smf/smfservermodule/smfserver/server/smfserver.cpp Thu Sep 23 17:43:31 2010 +0530 +++ b/smf/smfservermodule/smfserver/server/smfserver.cpp Mon Oct 11 21:59:54 2010 +0530 @@ -155,7 +155,8 @@ authList.clear(); for(int i=0;iCheckPluginAuthentication(list[i]); + bool isAuthorized = false; + isAuthorized = m_credentialMngr->CheckPluginAuthentication(list[i]); if(isAuthorized) authList.append(list[i]); } @@ -220,7 +221,7 @@ QByteArray& qtdataFromDSM ) { qDebug()<<"Inside SmfServer::sendToDSM()"; - + SmfError err = SmfNoError; DataStoreManager* dsm = DataStoreManager::getDataStoreManager(); //Note:- deserialization and formation of user profile and social profile are done by server @@ -250,7 +251,9 @@ delete contact; contact = NULL; } - SmfRelationId relnId = dsm->create(provider,contact); + SmfRelationId relnId; + relnId.clear(); + err = dsm->create(relnId,provider,contact); writeStream<serviceName(); - QString snsUrl = (provider->serviceUrl()).toString(); - QString snsDesc = provider->description(); - - SmfError err = dsm->associate(relnId,contact,provider); + err = dsm->associate(relnId,contact,provider); int errInt = err; writeStream<remove(relnId, contact); + err = dsm->remove(relnId, contact); int errInt = err; writeStream<>relnId; - SmfError err = dsm->deleteRelation(relnId); + err = dsm->deleteRelation(relnId); int errInt = err; writeStream<clientAuthorizationFinished(success); } +#endif /** * This API is called by PM once its done with request and parsing @@ -455,34 +456,3 @@ //CMclient->requestAuthExpiryNotify(); } -#ifdef CLIENT_SERVER_TEST -/** - * Seems reduntant - */ -/*void SmfServer::serviceClient(QByteArray* parsedData) - { - Q_UNUSED(parsedData) - }*/ - -dummyPM::dummyPM(SmfServer* server,QObject* parent) -: m_server(server),QObject(parent) - { - m_timer = new QTimer(this); - connect(m_timer, SIGNAL(timeout()), this, SLOT(responseAvailable())); - } -SmfError dummyPM::createRequest ( const quint32& aSessionID, - const QString& aPluginID, - const SmfRequestTypeID& aOperation, - QByteArray& aInputData ) - { - qDebug()<start(1000); - } -void dummyPM::responseAvailable() - { - - } -#endif