smf/smfservermodule/smfclient/smfrelationmgr.h
changeset 26 83d6a149c755
parent 25 a180113055cb
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
   127 	 *
   127 	 *
   128 	 * If the contact is already stored with ContactManager (e.g. contact exists in phonebook),
   128 	 * If the contact is already stored with ContactManager (e.g. contact exists in phonebook),
   129 	 * then it would have QtMobility::QContactId properly filled with managerUri and localId.
   129 	 * then it would have QtMobility::QContactId properly filled with managerUri and localId.
   130 	 * These two field would also be stored in SmfRelationMgr (for easily identifying the SmfContacts).
   130 	 * These two field would also be stored in SmfRelationMgr (for easily identifying the SmfContacts).
   131 	 *
   131 	 *
   132 	 * After successful creation, a relationId would be returned. More and more SmfContacts can
   132 	 * @param aRelationID[] To get the relationID after successful creation of contact and Relation Table
   133 	 * be added to this relation using this RelationId
   133 	 * @return SmfError ErrorCode to identify the type of Error
       
   134 	 * 
       
   135 	 * After successful creation, SmfNoError would be returned. More and more SmfContacts can
       
   136 	 * be added to this relation using the RelationId aRelationID
       
   137 	 * 
       
   138 	 * In case of error, proper error code will be returned
   134 	 */
   139 	 */
   135 	SmfRelationId create(SmfProvider *provider=NULL, SmfContact *contact=NULL);
   140 	SmfError create(SmfRelationId &aRelationID,SmfProvider *provider=NULL, SmfContact *contact=NULL);
   136 
   141 
   137 	/** assign contact to a relation */
   142 	/** assign contact to a relation 
   138 	SmfError associate( SmfRelationId& phoneId,
   143 	 * @param aRelationID The realationId to associate to
       
   144 	 */
       
   145 	SmfError associate( SmfRelationId& aRelationID,
   139 						const SmfContact* contact,
   146 						const SmfContact* contact,
   140 						SmfProvider* provider);
   147 						SmfProvider* provider);
   141 
   148 
   142 	/** remove contact from a relation */
   149 	/** remove contact from a relation */
   143 	SmfError remove(SmfRelationId& relation,
   150 	SmfError remove(SmfRelationId& relation,