ccservices/cmsservices/cmsengine/Server/inc/cmscontactinterface.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:41:25 +0200
branchRCL_3
changeset 5 81f8547efd4f
parent 0 e686773b3f54
permissions -rw-r--r--
Revision: 201007 Kit: 201008

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*       
*
*/


#ifndef __CMSCONTACTINTERFACE__
#define __CMSCONTACTINTERFACE__

// INCLUDES
#include <e32base.h>
#include "cmsnotificationhandlerapi.h"

class MVPbkContactLink;
class MVPbkStoreContact;

class MCmsContactInterface
    {
    public:
    
      /*  enum TPhonebookEvent
    {
    EContactModified = 0,
    EContactDeleted        
    };*/
        
        virtual void OfferContactEventL( TCmsPhonebookEvent aEventType,
                                          const MVPbkContactLink* aContactLink ) = 0;

        virtual void ContactReadyL( TInt error, MVPbkStoreContact* aContact ) = 0;

        virtual const MVPbkStoreContact& Contact() const = 0;
        
        virtual TBool HandleField( HBufC* aFieldData ) = 0;

        virtual TBool HandleField( HBufC8* aFieldData ) = 0;

        virtual TBool HandleEnabledFields( HBufC* aFieldData ) = 0;
        
        virtual void HandleError( TInt aError ) = 0;
        
        virtual void FetchContactL ( MVPbkContactLink* aContactLinkToFetch ) = 0;
        
    };

#endif  //__CMSCONTACTINTERFACE__


// End of File