--- a/smf/smfservermodule/smfserver/datastoremgr/dsm.h Thu Sep 23 17:43:31 2010 +0530
+++ b/smf/smfservermodule/smfserver/datastoremgr/dsm.h Mon Oct 11 21:59:54 2010 +0530
@@ -105,7 +105,7 @@
QString getErrorText() const;
public slots:
- SmfRelationId create(SmfProvider *aProvider=NULL, SmfContact *aContact=NULL);
+ SmfError create(SmfRelationId &RelID,SmfProvider *aProvider=NULL, SmfContact *aContact=NULL);
/** assign contact to a relation */
SmfError associate( SmfRelationId aRelation,
@@ -162,7 +162,8 @@
const QString &snsDesc,
const QString &snsUrl);
- int addContactToTable( const QString &userId,
+ SmfError addContactToTable( int &aContactId,
+ const QString &userId,
const QString &contactUrl,
const QString &localId,
const QString &managerUri,
@@ -184,7 +185,7 @@
SmfRelationItem* searchContact(const int aContactId);
/**search for contact if exist, return True/False*/
- TBool contactIfExist( const int aContactId);
+ TBool contactIfExist( const QString &userId,const QString &snsName);
/*------------------Operation on Relation Table-------------------*/
@@ -233,6 +234,7 @@
QSqlDatabase db;
SmfRelationItem * iSmsfRelationItem;
DSMContactPckg *iDSMContactPckgItem;
+ SmfRelationId iRelationId;
};