phoneengine/contacthandling/inc/mpecontacthandling.h
author William Roberts <williamr@symbian.org>
Sun, 14 Mar 2010 13:09:36 +0000
branchCompilerCompatibility
changeset 13 2411cd0e2ad6
parent 0 5f000ab63145
permissions -rw-r--r--
Automatic merge from PDK_3.0.h

/*
* Copyright (c) 2006 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:  This file contains the header file of the MPEContactHandling class.
*
*/


#ifndef MPECONTACTHANDLING_H
#define MPECONTACTHANDLING_H

//  INCLUDES
#include <e32base.h>
#include <pevirtualengine.h>

// CLASS DECLARATION

/**
*  Interface class provides for the access to contact information services.
*
*  @lib ContactHandling.lib
*  @since Series60_4.0
*/
class MPEContactHandling
    {
    public:
        /**
        * Destructor.
        */
        virtual ~MPEContactHandling(){};

        /**
        * Synchronous method for searching contact information.
        * @param aCallId        call id from phone engine
        *        aFindKey       defines the key to search the contact data with
        *        aSearchFrom    search from key
        * @return possible Symbian OS error code
        */
        virtual TInt FindContactInfoSync( 
            const TInt aCallId,
            const TPEFindContactKey aFindKey ) = 0;

        /**
        * Fetch number from speed dial location
        * @param aLocationIndex Index to look for
        * @param aNumber Filled with speed dial location phone number
        * @param aContactItemId Contact item id. KErrNotFound if given location
        *                                        was not set.
        * @return possible Symbian OS error code
        */
        virtual TInt GetSpeedDialLocation( 
            TInt aLocationIndex, 
            TPEPhoneNumber& aNumber ) = 0;
    };

#endif      // MPECONTACTHANDLING_H
            
// End of File