uiservicetab/vimpststorage/inc/mvimpststoragevpbkcontactstore.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  contact store class implementaion to virtual phonebook store type
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MVIMPSTSTORAGECONTACTSTORE_H_
       
    20 #define MVIMPSTSTORAGECONTACTSTORE_H_
       
    21 
       
    22 class MVPbkContactLink;
       
    23 class MVPbkStoreContact;
       
    24 class MVIMPSTStorageContact;
       
    25 
       
    26 /*
       
    27 * structure to hold the fetch contact information
       
    28 */
       
    29 struct TVIMPSTContactInfo
       
    30 	{
       
    31 	///Own: user Id
       
    32 	HBufC* iUserId;
       
    33 	///Own: display name
       
    34 	HBufC* iDisplayName;	
       
    35 	};
       
    36 	
       
    37 class MVIMPSTStorageVPbkContactStore
       
    38                                   
       
    39       {
       
    40     public:
       
    41       
       
    42       enum TVIMPSTFetchingSteps
       
    43 			{
       
    44 			EFetchingUnknown = -1,
       
    45 			EContactReadComplete,
       
    46 			EFetchingCalled,
       
    47 			EFetchingOn,
       
    48 			EFetchStart
       
    49 			};  
       
    50         /**
       
    51 	     * 
       
    52 	     * return ETrue if local store
       
    53 	     **/
       
    54 		virtual TBool  LocalStore() const = 0 ;
       
    55 		
       
    56 		virtual TInt CreateVPbkContactL( const TDesC& aUserId, 
       
    57         							    const TDesC& aDisplayName,
       
    58         							     TBool aInvitationAutoAccept = EFalse)=0 ;
       
    59 		
       
    60 		virtual TInt CreateRetriveVPbkContactL( TInt aIndezToUse ) = 0;
       
    61 		
       
    62 		virtual TInt deleteRetriveVPbkContactL( TInt aIndezToUse ) = 0;
       
    63 		
       
    64 		virtual TInt RemoveVPbkContactL(const MVPbkContactLink& aContactLink) = 0 ;
       
    65 		
       
    66 		virtual TInt RetrieveVPbkXSPIdL(const TDesC8& aPackedLinks )  = 0 ;
       
    67 		
       
    68 		virtual TInt UpdateAvatarFieldDataL(const MVPbkContactLink& aContactLink,
       
    69 								    const TDesC8& aAvatartData ) = 0 ;
       
    70 		
       
    71 		virtual TInt RemoveAvatarFieldL(MVPbkStoreContact& aStoreContact) = 0 ;
       
    72 		
       
    73 		virtual void AddVPbkFetchContactsL( RArray <TPtrC> &aFirstNameList, 
       
    74 		                            		RArray <TPtrC> &aServiceField ) = 0 ;
       
    75 		
       
    76 		virtual TInt RemoveAllVPbkContactsL() = 0 ;	
       
    77 		
       
    78 		virtual const TDesC& GetRetrieveVPbkXSPIdL(TInt aIndex )  = 0 ;
       
    79 			
       
    80 		virtual void DeleteDatabaseL() = 0 ;	
       
    81 		/*
       
    82 		* virtual destructor
       
    83 		*/
       
    84 	   	virtual ~MVIMPSTStorageVPbkContactStore()
       
    85 		   	{
       
    86 		   		
       
    87 		   	}
       
    88       };
       
    89 
       
    90 #endif /*MVIMPSTSTORAGECONTACTSTORE_H_*/