phoneengine/contacthandling2/inc/cpecontacthandlingdummy.h
branchRCL_3
changeset 61 41a7f70b3818
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
       
     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
       
    15 *              : CPEContactHandlingDummy class.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPECONTACTHANDLINGDUMMY_H
       
    21 #define CPECONTACTHANDLINGDUMMY_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "mpecontacthandling.h"
       
    25 #include <e32base.h>
       
    26 #include <mpephonemodelinternal.h>
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Dummy interface to substitute real contact handling subject when neccessary
       
    32 *
       
    33 *  @lib ContactHandling.lib
       
    34 *  @since Series60_4.0
       
    35 */
       
    36 class CPEContactHandlingDummy
       
    37         : public CBase,
       
    38           public MPEContactHandling
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41       
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         IMPORT_C static CPEContactHandlingDummy* NewL();
       
    46         
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CPEContactHandlingDummy();
       
    51 
       
    52     public: // New functions
       
    53         
       
    54         /**
       
    55         * Synchronous method for searching contact information. This function call's FindContactInfoSyncL()
       
    56         * which can leave. This function call is Trapped so API funktion dosn't leave.
       
    57         * @param aCallId        call id from phone engine
       
    58         *        aFindKey       defines the key to search the contact data with
       
    59         *        aSearchFrom    search from key
       
    60         * @return Error code indicating the success of the search
       
    61         */
       
    62         TInt FindContactInfoSync( 
       
    63                     TInt aCallId,
       
    64                     TPEFindContactKey aFindKey );
       
    65 
       
    66         /**
       
    67         * Reroutes errorCodes to the Phone Model
       
    68         * @param aErrorCode is the errorCode
       
    69         * @return None.
       
    70         */
       
    71         void SendErrorMessage( TInt aErrorCode );
       
    72 
       
    73         /**
       
    74         * Reroutes messages to the Phone Model
       
    75         * @param aMessage is the message id
       
    76         * @return None.
       
    77         */
       
    78         void SendMessage( MEngineMonitor::TPEMessagesFromPhoneEngine aMessage );
       
    79         
       
    80    protected:  // New functions
       
    81         /**
       
    82         * C++ default constructor.
       
    83         */
       
    84         CPEContactHandlingDummy();
       
    85 
       
    86     };
       
    87 
       
    88 #endif      // CPECONTACTHANDLINGDUMMY_H
       
    89             
       
    90 // End of File