phoneengine/contacthandling/inc/mpecontacthandling.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2006 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:  This file contains the header file of the MPEContactHandling class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPECONTACTHANDLING_H
       
    20 #define MPECONTACTHANDLING_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <pevirtualengine.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Interface class provides for the access to contact information services.
       
    30 *
       
    31 *  @lib ContactHandling.lib
       
    32 *  @since Series60_4.0
       
    33 */
       
    34 class MPEContactHandling
       
    35     {
       
    36     public:
       
    37         /**
       
    38         * Destructor.
       
    39         */
       
    40         virtual ~MPEContactHandling(){};
       
    41 
       
    42         /**
       
    43         * Synchronous method for searching contact information.
       
    44         * @param aCallId        call id from phone engine
       
    45         *        aFindKey       defines the key to search the contact data with
       
    46         *        aSearchFrom    search from key
       
    47         * @return possible Symbian OS error code
       
    48         */
       
    49         virtual TInt FindContactInfoSync( 
       
    50             const TInt aCallId,
       
    51             const TPEFindContactKey aFindKey ) = 0;
       
    52 
       
    53         /**
       
    54         * Fetch number from speed dial location
       
    55         * @param aLocationIndex Index to look for
       
    56         * @param aNumber Filled with speed dial location phone number
       
    57         * @param aContactItemId Contact item id. KErrNotFound if given location
       
    58         *                                        was not set.
       
    59         * @return possible Symbian OS error code
       
    60         */
       
    61         virtual TInt GetSpeedDialLocation( 
       
    62             TInt aLocationIndex, 
       
    63             TPEPhoneNumber& aNumber ) = 0;
       
    64     };
       
    65 
       
    66 #endif      // MPECONTACTHANDLING_H
       
    67             
       
    68 // End of File