phoneengine/contacthandling/src/cpecontacthandlingdummy.cpp
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 module contains the implementation of CPEContactHandlingDummy class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 //  INCLUDE FILES
       
    21 #include "cpecontacthandlingdummy.h"
       
    22 #include "cpecontactmatch.h"
       
    23 #include <mpedatastore.h>
       
    24 #include <e32std.h>
       
    25 #include <mpephonemodelinternal.h>
       
    26 #include <pepanic.pan>
       
    27 #include <barsc.h> 
       
    28 #include <barsread.h>
       
    29 #include <talogger.h>
       
    30 #include <bldvariant.hrh>
       
    31 #include <featmgr.h>
       
    32 
       
    33 // ================= MEMBER FUNCTIONS =======================================
       
    34 // -----------------------------------------------------------------------------
       
    35 // CPEContactHandlingDummy::CPEContactHandlingDummy
       
    36 // C++ default constructor can NOT contain any code, that
       
    37 // might leave.
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 CPEContactHandlingDummy::CPEContactHandlingDummy()
       
    41     {
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CPEContactHandlingDummy::NewL
       
    46 // Two-phased constructor.
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CPEContactHandlingDummy* CPEContactHandlingDummy::NewL()
       
    50     {
       
    51     TEFLOGSTRING(KTAOBJECT, "CNT CPEContactHandlingDummy::NewL start.");
       
    52     CPEContactHandlingDummy* self = new ( ELeave ) CPEContactHandlingDummy();
       
    53     TEFLOGSTRING(KTAOBJECT, "CNT CPEContactHandlingDummy::NewL Complete.");
       
    54     return self;
       
    55     }
       
    56 
       
    57 // Destructor
       
    58 CPEContactHandlingDummy::~CPEContactHandlingDummy()
       
    59     {
       
    60     TEFLOGSTRING( KTAOBJECT, "CNT CPEContactHandlingDummy::~CPEContactHandlingDummy()" );
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CPEContactHandlingDummy::FindContactInfoSync
       
    65 // Calls method FindContactInfoSyncL which can leave. This leave is trapped in 
       
    66 // this function.
       
    67 // (other items were commented in a header).
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 EXPORT_C TInt CPEContactHandlingDummy::FindContactInfoSync( 
       
    71     const TInt /*aCallId*/, const TPEFindContactKey /*aFindKey*/ )     
       
    72     {
       
    73     TEFLOGSTRING( KTAOBJECT, "CNT CPEContactHandlingDummy::FindContactInfoSync()" );
       
    74     return KErrNone;
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // CPEContactHandlingDummy::GetSpeedDialLocation
       
    79 // Get's phone number and contact id from given location.
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 EXPORT_C TInt CPEContactHandlingDummy::GetSpeedDialLocation( 
       
    83     TInt /*aLocationIndex*/, 
       
    84     TPEPhoneNumber& /*aNumber*/ )
       
    85     {
       
    86     TEFLOGSTRING( KTAOBJECT, "CNT CPEContactHandlingDummy::GetSpeedDialLocation()" );
       
    87     return KErrNone;
       
    88     }
       
    89 
       
    90 // ================= OTHER EXPORTED FUNCTIONS ===============================
       
    91 
       
    92 //  End of File