serviceproviders/sapi_contacts_vpbk/inc/contactinterface.h
changeset 27 02682e02e51f
parent 23 50974a8b132e
equal deleted inserted replaced
26:5d0ec8b709be 27:02682e02e51f
    18 #ifndef C_CCONTACTINTERFACE_H
    18 #ifndef C_CCONTACTINTERFACE_H
    19 #define C_CCONTACTINTERFACE_H
    19 #define C_CCONTACTINTERFACE_H
    20 
    20 
    21 //System includes
    21 //System includes
    22 #include <liwvariant.h>
    22 #include <liwvariant.h>
       
    23 #include <centralrepository.h>
    23 
    24 
    24 // User Includes
    25 // User Includes
    25 #include "contactinterface.hrh"
    26 #include "contactinterface.hrh"
    26 #include "singlecontact.h"
    27 #include "singlecontact.h"
    27 #include "contactcallbackmap.h"
    28 #include "contactcallbackmap.h"
       
    29 const TInt KInitialStoreUriSize = 1;
       
    30 const TUint32 KPhonebookDefaultSavingStoreUri               = 0x00000001;
       
    31 const TUint32 KCRUidPhonebook = 0x101f8794;
       
    32 const TUint32 KCRUidPhonebookStoreConfiguration             = 0x1020727f;
       
    33 
       
    34 
    28 // Forward Declarations
    35 // Forward Declarations
    29 class CContactService;
    36 class CContactService;
    30 class CContactInterfaceCallback;
    37 class CContactInterfaceCallback;
    31 
    38 class CRepository;
    32 /**
    39 /**
    33  * CContactInterface - Provides interface between the AIW FrameWork
    40  * CContactInterface - Provides interface between the AIW FrameWork
    34  * and Service Provider.
    41  * and Service Provider.
    35  */
    42  */
    36 class CContactInterface : public CBase, public MLiwInterface
    43 class CContactInterface : public CBase, public MLiwInterface
   239                             MLiwNotifyCallback* aCallback,
   246                             MLiwNotifyCallback* aCallback,
   240                             TUint aCmdOptions,
   247                             TUint aCmdOptions,
   241                             TInt aTransId);                                                               
   248                             TInt aTransId);                                                               
   242                                                                                                                                   
   249                                                                                                                                   
   243 		MLiwNotifyCallback* Callback( TInt32 aTransactionId );                                 
   250 		MLiwNotifyCallback* Callback( TInt32 aTransactionId );                                 
   244     private:
   251 	private:
       
   252 	    TPtrC GetDefaultDBUri();
       
   253 	private:
   245         // POINTER MEMBER
   254         // POINTER MEMBER
   246         /**
   255         /**
   247          * contact service implementation object.
   256          * contact service implementation object.
   248          * OWN.
   257          * OWN.
   249          */
   258          */
   256         RPointerArray<CContactCallbackMap> iCallbackMap;      
   265         RPointerArray<CContactCallbackMap> iCallbackMap;      
   257 
   266 
   258         HBufC* iErrorMess;
   267         HBufC* iErrorMess;
   259         //this is used only for add api due to reset problem with TLiwVariant
   268         //this is used only for add api due to reset problem with TLiwVariant
   260         HBufC* iDburi;
   269         HBufC* iDburi;
       
   270         
       
   271         CRepository *iRepository;
   261   
   272   
   262     };
   273     };
   263 
   274 
   264 #endif // C_CCONTACTINTERFACE_H
   275 #endif // C_CCONTACTINTERFACE_H