serviceproviders/sapi_contacts_vpbk/contactservice/inc/contactservice.h
changeset 22 fc9cf246af83
parent 19 989d2f495d90
child 33 50974a8b132e
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
   114     					   Ttype type,
   114     					   Ttype type,
   115     					   const TDesC8& aContactId = KNullDesC8,  							
   115     					   const TDesC8& aContactId = KNullDesC8,  							
   116  						   const TDesC& aSearchVal = KNullDesC,
   116  						   const TDesC& aSearchVal = KNullDesC,
   117     					   CSearchFields* aSearchFields = NULL,
   117     					   CSearchFields* aSearchFields = NULL,
   118     					   TOrder aSortOrder = EAsc,
   118     					   TOrder aSortOrder = EAsc,
   119     					   const TDesC& aStoreUri = VPbkContactStoreUris::DefaultCntDbUri());
   119     					   const TDesC& aStoreUri = VPbkContactStoreUris::DefaultCntDbUri(),
       
   120     					   TCmdType val = EGetList);
   120     
   121     
   121     /*
   122     /*
   122 	Get the list of databases currently open
   123 	Get the list of databases currently open
   123 	*/
   124 	*/
   124 	IMPORT_C void GetListL(CContactIter& aIter);
   125 	IMPORT_C void GetListL(CContactIter& aIter);
   189     IMPORT_C CContactIter* GetListL(Ttype type,
   190     IMPORT_C CContactIter* GetListL(Ttype type,
   190                                     const TDesC8& aContactId = KNullDesC8,                                   
   191                                     const TDesC8& aContactId = KNullDesC8,                                   
   191                                     const TDesC& aSearchVal=KNullDesC,
   192                                     const TDesC& aSearchVal=KNullDesC,
   192                                     CSearchFields* aSearchFields=NULL,
   193                                     CSearchFields* aSearchFields=NULL,
   193                                     TOrder aSortOrder=EAsc,
   194                                     TOrder aSortOrder=EAsc,
   194                                     const TDesC& aStoreUri=VPbkContactStoreUris::
   195                                     const TDesC& aStoreUri=VPbkContactStoreUris::DefaultCntDbUri(),
   195                                     DefaultCntDbUri());
   196                                     TCmdType val=EGetList);
       
   197     
       
   198     /**
       
   199      * Synchronous implementation of GetIds api.
       
   200      * Get the list of ids of contacts/groups in the database satisfying the criteria in the SearchVal
       
   201      *
       
   202      * @return Integer indicating requestion submission.
       
   203      */
       
   204     IMPORT_C
       
   205     RPointerArray<HBufC8>& GetIdsL(Ttype atype,                                       
       
   206                                             const TDesC& aSearchVal=KNullDesC,
       
   207                                             CSearchFields* aSearchFields=NULL,
       
   208                                             TOrder aSortOrder = EAsc,
       
   209                                             const TDesC& aStoreUri=VPbkContactStoreUris::DefaultCntDbUri(),
       
   210                                             TCmdType aval=EGetIds);
   196 
   211 
   197 	/**
   212 	/**
   198 	 * Synchronous implementation of AddL api.
   213 	 * Synchronous implementation of AddL api.
   199      * Called for 1) Adding a new contact/group to the contacts database.
   214      * Called for 1) Adding a new contact/group to the contacts database.
   200      *            2) Editing a contact/group from the contacts database.
   215      *            2) Editing a contact/group from the contacts database.
   201      * @return Integer indicating requestion submission.
   216      * @return Integer indicating requestion submission.
   202      */
   217      */
   203      IMPORT_C void AddL(CSingleContact* aContact,
   218      IMPORT_C HBufC8* AddL(CSingleContact* aContact,
   204 						const TDesC8& aGroupId = KNullDesC8,
   219 						const TDesC8& aGroupId = KNullDesC8,
   205 						const TDesC& aGroupLabel = KNullDesC,
   220 						const TDesC& aGroupLabel = KNullDesC,
   206 						const TDesC& aStoreUri = VPbkContactStoreUris::
   221 						const TDesC& aStoreUri = VPbkContactStoreUris::
   207 						DefaultCntDbUri());
   222 						DefaultCntDbUri());
   208 
   223