breakdeps/AknEcs.cpp
author William Roberts <williamr@symbian.org>
Thu, 18 Nov 2010 15:45:28 +0000
changeset 138 6028e81d48fd
parent 63 ae68f05b0b2f
permissions -rw-r--r--
Update stem_rom.oby and rom_content.csv to remove multimedia Also removed spurious Phonebook2_reg.rsc file which causes PhoneBook to appear in the matrix menu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
62
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     1
/*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     2
* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     3
* All rights reserved.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     8
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
     9
* Initial Contributors:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    11
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    12
* Contributors:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    13
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    14
* Description:   Support for Emergency Calls. Class Implementations.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    15
*   Pressed keys are tracked in a buffer and CEmergencyNumberUtils
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    16
*   is used to find out if the buffer matches to emergency number.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    17
*   Observers, if registered are called to notify them.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    18
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    19
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    20
*/
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    21
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    22
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    23
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    24
// INCLUDES
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    25
#include <e32std.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    26
#include "aknenv.h"
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    27
#include "aknappui.h"
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    28
#include "AknEcs.h"
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    29
#include <featmgr.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    30
#include "AknDebug.h"
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    31
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    32
#include <CPhCltEmergencyCall.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    33
#include <MPhCltEmergencyCallObserver.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    34
#include <PhCltTypes.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    35
#include <AvkonInternalCRKeys.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    36
#include <PtiDefs.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    37
#include <e32property.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    38
#include <AiwCommon.hrh>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    39
#include <aiwdialdata.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    40
#include <AiwServiceHandler.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    41
#include <centralrepository.h>
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    42
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    43
#include "akntrace.h"
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    44
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    45
const TInt KAknKeyScanCodeBegin = 33;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    46
const TInt KAknKeyScanCodeEnd   = 126;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    47
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    48
// CLASS DECLARATIONS
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    49
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    50
/** Class for getting emergency call events */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    51
NONSHARABLE_CLASS(CPhCltEmergencyCallObserver) : public CBase,
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    52
                                                 public MPhCltEmergencyCallObserver
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    53
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    54
    public:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    55
        /** Constructor */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    56
        CPhCltEmergencyCallObserver(CAknEcsDetector* aParent);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    57
        
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    58
        /** Destructor */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    59
        ~CPhCltEmergencyCallObserver( );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    60
        
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    61
       /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    62
         * This method is called when client's dial request is completed.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    63
         *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    64
         * @param aStatus error code of the success of the operation.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    65
         */       
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    66
        virtual void HandleEmergencyDialL( const TInt aStatus );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    67
    private:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    68
        /** Pointer to the parent object that really handles the events. */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    69
        CAknEcsDetector* iParent;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    70
    };
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    71
    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    72
    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    73
CPhCltEmergencyCallObserver::CPhCltEmergencyCallObserver(CAknEcsDetector* aParent)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    74
    :iParent(aParent)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    75
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    76
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    77
    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    78
CPhCltEmergencyCallObserver::~CPhCltEmergencyCallObserver()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    79
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    80
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    81
    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    82
void CPhCltEmergencyCallObserver::HandleEmergencyDialL( const TInt /*aStatus*/ )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    83
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    84
#ifdef AVKON_RDEBUG_INFO
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    85
    _LIT(KDebugDialRequestCompleted, "Dial request is completed");
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    86
    RDebug::Print(KDebugDialRequestCompleted);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    87
#endif
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    88
    iParent->CallAttemptedCallback( iParent );    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    89
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    90
       
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    91
/**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    92
* Class to hold the queue of keys (TText characters) provided to the emergency call detector.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    93
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    94
* Performs matching of an emergency number with the current queue.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    95
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    96
* No memory is allocated after its complete construction
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    97
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    98
*/
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
    99
NONSHARABLE_CLASS(CAknMatchingCharacterQueue) : public CBase
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   100
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   101
    public:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   102
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   103
        * These statuses are returned by MatchText
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   104
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   105
        enum TStatus
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   106
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   107
            ENoMatch,
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   108
            ECompleteMatch,
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   109
            EServiceNumMatch
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   110
            };
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   111
    public:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   112
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   113
        * C++ constructor
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   114
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   115
        * @param aPhCltEmergencyCall  Emergency call client
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   116
        * @param aServiceCallEnabled  Is service call feature enabled during device or key lock.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   117
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   118
        CAknMatchingCharacterQueue( CPhCltEmergencyCall* aPhCltEmergencyCall, TBool aServiceCallEnabled );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   119
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   120
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   121
        * C++ destructor
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   122
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   123
        ~CAknMatchingCharacterQueue( );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   124
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   125
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   126
        * 2nd phase constructor
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   127
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   128
        void ConstructL();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   129
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   130
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   131
        * Method to reset the buffer by resetting the pointers.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   132
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   133
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   134
        void Reset();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   135
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   136
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   137
        * Adds the passed character code to the queue. All codes append to the queue;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   138
        * none are ignored.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   139
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   140
        * @param aNewChar New char to the queue.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   141
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   142
        void AddChar( TText aNewChar );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   143
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   144
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   145
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   146
        * Set the entire contents of the queue. If the new buffer is longer than
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   147
        * the queue, rest are stripped.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   148
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   149
        * @param aNewBuffer New content to the queue.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   150
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   151
        void SetBuffer( const TDesC& aNewBuffer );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   152
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   153
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   154
        * The number of characters in the queue.  Resets to 0. Increases as characters are added
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   155
        * up to and equal to KAknEcsMaxMatchingLength
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   156
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   157
        * @return   the number of characters queued and available for match.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   158
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   159
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   160
        TInt Count() const;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   161
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   162
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   163
        * Returns the status of the queue (which is automatically updated when AddChar and other non-const
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   164
        * API is called)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   165
        * @return The status of the match. Nothing matching returns ENoMatch; 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   166
        *         The whole sequence matching returns ECompleteMatch.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   167
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   168
        TStatus Status() const;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   169
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   170
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   171
        * Returns a pointer to the current matching number. 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   172
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   173
        * @return A ptr descriptor into the currently matching text
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   174
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   175
        TPtrC CurrentMatch() const;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   176
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   177
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   178
        * Returns an index to the current character buffer where the emergency number
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   179
        * match begins.  This value is between 0 and KAknEcsMaxMatchingLength, even if
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   180
        * there have been a large number characters input to the FIFO. Thus, it does not
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   181
        * take account of characters that have fallen out of the FIFO.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   182
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   183
        * @return the index in the current buffer where the match starts
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   184
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   185
        TInt IndexOfCurrentMatch() const;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   186
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   187
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   188
        * Validates the service number.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   189
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   190
        * @param aNumber Service number to be validated from CenRep.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   191
        *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   192
        * @return Returns ETrue if aNumber is a service number, EFalse if not.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   193
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   194
        TBool ValidateServiceNumberL( const TDesC& aNumber );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   195
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   196
    private:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   197
        /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   198
        * Update the status of the queue
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   199
        */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   200
        void UpdateStatus( TBool aBufferMode );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   201
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   202
    private:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   203
        // Emergency number buffer is as long as maximum sequence
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   204
        TBuf<KAknEcsMaxMatchingLength> iCharBuffer;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   205
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   206
        /** Pointer to phone client interface of emergency call. Not owned */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   207
        CPhCltEmergencyCall* iPhCltEmergencyCall; 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   208
        TStatus iStatus;      // Holds the status;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   209
        TInt iMatchPosition;  // Position in iCharBuffer from where the match starts.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   210
        TBool iServiceCallFeature;  // True if service call feature is enabled.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   211
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   212
        TAny* iSpare;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   213
    };
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   214
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   215
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   216
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   217
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   218
// CLASS IMPLEMENTATIONS
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   219
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   220
/**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   221
 * Local Panic Function and Panic Codes
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   222
 */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   223
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   224
enum TAknEcsPanicCodes
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   225
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   226
    EAknEcsPanicDialLLeft = 1,
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   227
    EAknEcsPanicBadState
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   228
    };
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   229
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   230
GLDEF_C void Panic(TAknEcsPanicCodes aPanic)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   231
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   232
    _LIT(KPanicCat,"AknEcs");
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   233
    User::Panic(KPanicCat, aPanic);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   234
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   235
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   236
//
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   237
// Queue used for storing and matching the keys used in emergency number detection
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   238
//
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   239
//
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   240
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   241
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   242
CAknMatchingCharacterQueue::CAknMatchingCharacterQueue( CPhCltEmergencyCall* aPhCltEmergencyCall, TBool aServiceCallEnabled )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   243
        : iPhCltEmergencyCall( aPhCltEmergencyCall ), iServiceCallFeature( aServiceCallEnabled )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   244
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   245
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   246
    Reset();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   247
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   248
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   249
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   250
CAknMatchingCharacterQueue::~CAknMatchingCharacterQueue( )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   251
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   252
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   253
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   254
void CAknMatchingCharacterQueue::ConstructL()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   255
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   256
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   257
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   258
void CAknMatchingCharacterQueue::Reset()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   259
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   260
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   261
    iMatchPosition = 0;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   262
    iCharBuffer.Zero();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   263
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   264
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   265
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   266
void CAknMatchingCharacterQueue::AddChar( TText aNewChar )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   267
    {    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   268
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   269
    _AKNTRACE( "[%s][%s] aNewChar: %s", "CAknMatchingCharacterQueue", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   270
        		__FUNCTION__,&aNewChar);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   271
    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   272
    TInt length = iCharBuffer.Length();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   273
    TInt maxLenght = iCharBuffer.MaxLength();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   274
    if (length >= maxLenght)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   275
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   276
        iCharBuffer = iCharBuffer.Right(length - 1);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   277
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   278
    iCharBuffer.Append( aNewChar );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   279
    UpdateStatus( EFalse );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   280
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   281
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   282
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   283
void CAknMatchingCharacterQueue::SetBuffer( const TDesC& aNewBuffer )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   284
    {    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   285
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   286
    _AKNTRACE( "[%s][%s] aNewBuffer: %s", "CAknMatchingCharacterQueue", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   287
            		__FUNCTION__,&aNewBuffer);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   288
    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   289
    TInt maxLenght = iCharBuffer.MaxLength();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   290
    TInt length = aNewBuffer.Length();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   291
    if ( length > maxLenght )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   292
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   293
        length = maxLenght;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   294
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   295
    iCharBuffer = aNewBuffer.Left( length );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   296
    UpdateStatus( ETrue );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   297
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   298
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   299
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   300
TInt CAknMatchingCharacterQueue::Count() const
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   301
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   302
    return iCharBuffer.Length();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   303
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   304
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   305
CAknMatchingCharacterQueue::TStatus CAknMatchingCharacterQueue::Status() const
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   306
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   307
    return iStatus;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   308
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   309
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   310
TPtrC CAknMatchingCharacterQueue::CurrentMatch() const
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   311
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   312
    return TPtrC(iCharBuffer.Right(iCharBuffer.Length() - iMatchPosition));
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   313
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   314
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   315
TInt CAknMatchingCharacterQueue::IndexOfCurrentMatch() const
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   316
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   317
    return iMatchPosition;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   318
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   319
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   320
void CAknMatchingCharacterQueue::UpdateStatus( TBool aBufferMode )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   321
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   322
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   323
    TBool isEmergency = EFalse;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   324
    TInt err = KErrNone;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   325
    TPhCltTelephoneNumber buffer = iCharBuffer;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   326
    if (iPhCltEmergencyCall)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   327
        {
63
ae68f05b0b2f Create stem_avkon.dll, to break dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents: 62
diff changeset
   328
        //err = iPhCltEmergencyCall->FindEmergencyPhoneNumber(buffer, isEmergency);        
62
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   329
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   330
    if ( err != KErrNone )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   331
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   332
        isEmergency = EFalse;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   333
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   334
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   335
    TInt cbLength = iCharBuffer.Length();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   336
    TInt bLength = buffer.Length();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   337
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   338
    if ( aBufferMode && isEmergency && ( cbLength != bLength ) )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   339
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   340
        isEmergency = EFalse;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   341
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   342
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   343
    if ( isEmergency )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   344
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   345
        iMatchPosition = cbLength - bLength;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   346
        iStatus = ECompleteMatch;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   347
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   348
    else if ( iServiceCallFeature && cbLength >= KAknServiceCallMinLength )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   349
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   350
        // Check if this is a service call
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   351
        TBool isServiceNum = EFalse;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   352
        TRAP_IGNORE( isServiceNum = ValidateServiceNumberL( iCharBuffer ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   353
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   354
        if ( isServiceNum )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   355
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   356
            iMatchPosition = 0;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   357
            iStatus = EServiceNumMatch;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   358
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   359
        else
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   360
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   361
            iMatchPosition = cbLength;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   362
            iStatus = ENoMatch;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   363
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   364
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   365
    else
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   366
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   367
        iMatchPosition = cbLength;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   368
        iStatus = ENoMatch;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   369
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   370
    _AKNTRACE( "[%s][%s] iStatus: %d", "CAknMatchingCharacterQueue", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   371
                		__FUNCTION__,iStatus );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   372
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   373
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   374
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   375
// -----------------------------------------------------------------------------
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   376
// CAknMatchingCharacterQueue::ValidateServiceNumber
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   377
// 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   378
// Validates the service phone number.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   379
// -----------------------------------------------------------------------------
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   380
//
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   381
TBool CAknMatchingCharacterQueue::ValidateServiceNumberL( const TDesC& aNumber )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   382
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   383
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   384
	TBool isServiceNum = EFalse;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   385
    HBufC* serviceNum = HBufC::NewLC( KAknEcsMaxMatchingLength );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   386
    CRepository* cenRep = CRepository::NewLC( KCRUidAvkon );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   387
    TPtr bufPtr = serviceNum->Des();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   388
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   389
    if( cenRep->Get( KAknServiceCallNumber, bufPtr ) != KErrNone )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   390
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   391
        CleanupStack::PopAndDestroy( cenRep );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   392
        CleanupStack::PopAndDestroy( serviceNum );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   393
        return EFalse;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   394
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   395
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   396
    // Check if aNumber matches serviceNum
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   397
    if ( aNumber.Compare( *serviceNum ) == 0 )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   398
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   399
        isServiceNum = ETrue;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   400
		}
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   401
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   402
    CleanupStack::PopAndDestroy( cenRep );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   403
    CleanupStack::PopAndDestroy( serviceNum );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   404
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   405
    return isServiceNum;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   406
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   407
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   408
//
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   409
//
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   410
// Implementation of CAknEcsDetector
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   411
//  (Emergency Call Support Detector)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   412
//
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   413
//
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   414
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   415
EXPORT_C CAknEcsDetector::CAknEcsDetector()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   416
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   417
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   418
    iCoeEnv = CCoeEnv::Static();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   419
    iState = ENotFullyConstructed;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   420
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   421
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   422
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   423
EXPORT_C CAknEcsDetector::~CAknEcsDetector()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   424
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   425
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   426
    // Must close this in order to remove any observers from the AppUi's monitor
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   427
    CloseEventSource();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   428
    delete iPhCltEmergencyCall;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   429
    delete iEmergencyCallObserver;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   430
    delete iQueue;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   431
    delete iIdler;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   432
    delete iKeyTimeoutTimer;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   433
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   434
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   435
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   436
EXPORT_C void CAknEcsDetector::ConstructL()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   437
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   438
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   439
    iEmergencyCallObserver = new (ELeave) CPhCltEmergencyCallObserver( this );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   440
    // Phone client interface
63
ae68f05b0b2f Create stem_avkon.dll, to break dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents: 62
diff changeset
   441
    //iPhCltEmergencyCall = CPhCltEmergencyCall::NewL( iEmergencyCallObserver );
62
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   442
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   443
    // Check if service call is allowed during device and key lock
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   444
    iServiceCallEnabled = 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   445
        FeatureManager::FeatureSupported( KFeatureIdFfServiceCallWhilePhoneLocked );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   446
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   447
    iQueue = new (ELeave) CAknMatchingCharacterQueue( iPhCltEmergencyCall, iServiceCallEnabled );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   448
    iQueue->ConstructL();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   449
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   450
    DetermineState();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   451
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   452
    // Idler for delaying the change of state to Call Attempted
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   453
    iIdler = CIdle::NewL( CActive::EPriorityLow );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   454
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   455
    // Timer for timing the timeout between keys
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   456
    iKeyTimeoutTimer = CPeriodic::NewL( CActive::EPriorityLow);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   457
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   458
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   459
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   460
EXPORT_C CAknEcsDetector* CAknEcsDetector::NewL()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   461
    { // static
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   462
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   463
    CAknEcsDetector* self = new (ELeave) CAknEcsDetector();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   464
    CleanupStack::PushL( self );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   465
    self->ConstructL();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   466
    CleanupStack::Pop(); //self
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   467
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   468
    return self;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   469
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   470
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   471
EXPORT_C TBool CAknEcsDetector::ConnectToEventSource()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   472
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   473
    if ( iFlags.IsClear( EEventSourceConnected ) )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   474
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   475
        TRAPD( err, iAvkonAppUi->EventMonitor()->AddObserverL(this) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   476
        iFlags.Assign( EEventSourceConnected, ( err == KErrNone ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   477
        return ( err == KErrNone );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   478
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   479
    else
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   480
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   481
        return ETrue;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   482
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   483
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   484
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   485
EXPORT_C void CAknEcsDetector::CloseEventSource()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   486
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   487
    if (iFlags.IsSet( EEventSourceConnected ) )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   488
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   489
        CAknWsEventMonitor* eventMonitor = iAvkonAppUi->EventMonitor();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   490
        eventMonitor->RemoveObserver(this);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   491
        iFlags.Clear( EEventSourceConnected );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   492
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   493
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   494
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   495
EXPORT_C void CAknEcsDetector::HandleWsEventL(const TWsEvent& aEvent, CCoeControl* /* aDestination  */)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   496
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   497
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   498
    _AKNTRACE( "[%s][%s] aEvent.type(): %d, aEvent.Key()->iScanCode :%d", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   499
                            		__FUNCTION__,aEvent.Type(),aEvent.Key()->iScanCode );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   500
    if ( aEvent.Type() == EEventKeyDown || 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   501
        // EKeyPhoneEnd/EKeyNo doesn't send EEVentKeyDown events, so EEventKey is used instead
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   502
       ( ( aEvent.Key()->iScanCode == EStdKeyNo ) && ( aEvent.Type() == EEventKey ) ) )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   503
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   504
        AddChar( (TText)(aEvent.Key()->iScanCode ) ); // top 16 ( in Unicode build) bits removed
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   505
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   506
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   507
    if ( iServiceCallEnabled )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   508
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   509
        // When Cancel is pressed we need to clear the queue
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   510
        if ( iState == EServiceNumMatch && aEvent.Type() == EEventPointer && 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   511
        	   aEvent.Pointer()->iType == TPointerEvent::EButton1Down )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   512
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   513
            // Clear the queue, set state to EEmpty, and cancel any pending timeout
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   514
            Reset();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   515
            iKeyTimeoutTimer->Cancel();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   516
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   517
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   518
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   519
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   520
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   521
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   522
EXPORT_C void CAknEcsDetector::AddChar( TText aNewChar )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   523
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   524
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   525
    _AKNTRACE( "[%s][%s] aNewChar: %s", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   526
                                		__FUNCTION__, &aNewChar );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   527
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   528
    if (aNewChar == EKeyQwertyOn || aNewChar == EKeyQwertyOff)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   529
        { 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   530
        _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   531
        return;   // return directly if the aNewChar is slide open/closed.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   532
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   533
	
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   534
    iKeyTimeoutTimer->Cancel(); // there might be pending timeout; clear it
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   535
    if ( aNewChar == EStdKeyYes || aNewChar == EKeyPhoneSend )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   536
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   537
        if ( iServiceCallEnabled )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   538
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   539
            if ( iState == ECompleteMatch || iState == EServiceNumMatch )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   540
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   541
                _AKNTRACE( "[%s][%s] SetState( ECompleteMatchThenSendKey )", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   542
                                            		    __FUNCTION__ );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   543
                SetState( ECompleteMatchThenSendKey );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   544
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   545
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   546
        else
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   547
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   548
            if ( iState == ECompleteMatch )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   549
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   550
                _AKNTRACE( "[%s][%s] SetState( ECompleteMatchThenSendKey )", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   551
                                                        __FUNCTION__ );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   552
                SetState( ECompleteMatchThenSendKey );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   553
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   554
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   555
        // else do nothing with it...
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   556
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   557
    else
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   558
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   559
        TText scanCode = aNewChar;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   560
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   561
        if ( scanCode < KAknKeyScanCodeBegin || scanCode > KAknKeyScanCodeEnd )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   562
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   563
            // Just return since it is an invalid character
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   564
            return;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   565
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   566
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   567
#ifdef RD_INTELLIGENT_TEXT_INPUT 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   568
        // Convert scan code to number value here 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   569
        // for 4*10, 3*11, half-qwerty key pad
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   570
        // The convert value is referenced from KeymapBuilder.pl in ptienginev2
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   571
        // Note: if the product change the scancode defintion,pls change the following 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   572
        // map rules.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   573
        TInt keyboardLayout = EPtiKeyboardNone;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   574
        TInt errCode = RProperty::Get( KCRUidAvkon, KAknKeyBoardLayout, keyboardLayout );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   575
        if ( errCode == KErrNone &&  ( keyboardLayout == EPtiKeyboardQwerty4x10 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   576
            || keyboardLayout == EPtiKeyboardQwerty3x11 ) )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   577
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   578
            // using same conventor rule for 3x11 & 4x10
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   579
            if ( scanCode == EPtiKeyQwertyQ )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   580
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   581
                scanCode = EPtiKeyQwerty1;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   582
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   583
            else if ( scanCode == EPtiKeyQwertyW )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   584
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   585
                scanCode = EPtiKeyQwerty2;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   586
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   587
            else if ( scanCode == EPtiKeyQwertyE )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   588
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   589
                scanCode = EPtiKeyQwerty3;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   590
                }        
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   591
            else if ( scanCode == EPtiKeyQwertyR )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   592
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   593
                scanCode = EPtiKeyQwerty4;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   594
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   595
            else if ( scanCode == EPtiKeyQwertyT )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   596
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   597
                scanCode = EPtiKeyQwerty5;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   598
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   599
            else if ( scanCode == EPtiKeyQwertyY )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   600
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   601
                scanCode = EPtiKeyQwerty6;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   602
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   603
            else if ( scanCode == EPtiKeyQwertyU )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   604
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   605
                scanCode = EPtiKeyQwerty7;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   606
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   607
            else if ( scanCode == EPtiKeyQwertyI )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   608
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   609
                scanCode = EPtiKeyQwerty8;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   610
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   611
            else if ( scanCode == EPtiKeyQwertyO )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   612
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   613
                scanCode = EPtiKeyQwerty9;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   614
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   615
            else if ( scanCode == EPtiKeyQwertyP )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   616
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   617
                scanCode = EPtiKeyQwerty0;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   618
                }    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   619
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   620
        else if ( errCode == KErrNone && keyboardLayout == EPtiKeyboardHalfQwerty )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   621
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   622
            if ( scanCode == EPtiKeyQwertyE )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   623
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   624
                scanCode = EPtiKeyQwerty1;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   625
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   626
            else if ( scanCode == EPtiKeyQwertyT )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   627
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   628
                scanCode = EPtiKeyQwerty2;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   629
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   630
            else if ( scanCode == EPtiKeyQwertyU )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   631
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   632
                scanCode = EPtiKeyQwerty3;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   633
                }        
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   634
            else if ( scanCode == EPtiKeyQwertyD )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   635
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   636
                scanCode = EPtiKeyQwerty4;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   637
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   638
            else if ( scanCode == EPtiKeyQwertyG )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   639
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   640
                scanCode = EPtiKeyQwerty5;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   641
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   642
            else if ( scanCode == EPtiKeyQwertyJ )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   643
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   644
                scanCode = EPtiKeyQwerty6;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   645
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   646
            else if ( scanCode == EPtiKeyQwertyU )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   647
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   648
                scanCode = EPtiKeyQwertyC;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   649
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   650
            else if ( scanCode == EPtiKeyQwertyB )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   651
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   652
                scanCode = EPtiKeyQwerty8;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   653
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   654
            else if ( scanCode == EPtiKeyQwertyM )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   655
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   656
                scanCode = EPtiKeyQwerty9;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   657
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   658
            else if ( scanCode == EPtiKeyQwertySpace )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   659
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   660
                scanCode = EPtiKeyQwerty0;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   661
                }    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   662
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   663
#endif   //RD_INTELLIGENT_TEXT_INPUT    
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   664
        
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   665
        iQueue->AddChar( scanCode );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   666
        DetermineState();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   667
        iKeyTimeoutTimer->Start( KEcsInterKeyTimeout, KEcsInterKeyTimeout, TCallBack( CancelMatch, this ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   668
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   669
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   670
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   671
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   672
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   673
void CAknEcsDetector::DetermineState()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   674
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   675
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   676
    TState bestState = ENoMatch;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   677
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   678
    if ( iQueue->Count() == 0 )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   679
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   680
        bestState = EEmpty;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   681
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   682
    else
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   683
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   684
        CAknMatchingCharacterQueue::TStatus matchStatus = iQueue->Status();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   685
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   686
        switch ( matchStatus )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   687
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   688
            case CAknMatchingCharacterQueue::ENoMatch:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   689
                bestState = ENoMatch;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   690
                break;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   691
            case CAknMatchingCharacterQueue::ECompleteMatch:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   692
                bestState = ECompleteMatch;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   693
                break;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   694
            case CAknMatchingCharacterQueue::EServiceNumMatch:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   695
                if ( iServiceCallEnabled )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   696
                    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   697
                    bestState = EServiceNumMatch;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   698
                    break;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   699
                    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   700
                // Fall through to default case if service call feature is off
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   701
            default:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   702
                __ASSERT_DEBUG( 0, Panic(EAknEcsPanicBadState) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   703
                break;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   704
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   705
        SetState(bestState);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   706
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   707
    _AKNTRACE( "[%s][%s] bestState: %d", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   708
                                    		__FUNCTION__, bestState );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   709
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   710
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   711
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   712
EXPORT_C void CAknEcsDetector::ReportEvent(TState aNewState )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   713
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   714
    if (iObserver)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   715
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   716
        iObserver->HandleEcsEvent( this, aNewState );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   717
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   718
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   719
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   720
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   721
EXPORT_C TPtrC CAknEcsDetector::CurrentMatch() const
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   722
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   723
    return iQueue->CurrentMatch();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   724
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   725
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   726
TInt CAknEcsDetector::IndexOfCurrentMatch() const
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   727
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   728
    return iQueue->IndexOfCurrentMatch();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   729
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   730
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   731
EXPORT_C CAknEcsDetector::TState CAknEcsDetector::State()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   732
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   733
    return iState;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   734
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   735
EXPORT_C void CAknEcsDetector::SetBuffer( const TDesC& aNewBuffer )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   736
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   737
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   738
    _AKNTRACE( "[%s][%s] aNewBuffer: %s", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   739
                                        		__FUNCTION__, &aNewBuffer );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   740
        
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   741
    iKeyTimeoutTimer->Cancel(); // there might be pending timeout; clear it
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   742
    iQueue->Reset();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   743
    iQueue->SetBuffer(aNewBuffer);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   744
    DetermineState();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   745
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   746
    if ( iServiceCallEnabled )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   747
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   748
        if ( iState == ECompleteMatch || iState == EServiceNumMatch )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   749
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   750
            iKeyTimeoutTimer->Start( KEcsInterKeyTimeout,
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   751
                KEcsInterKeyTimeout, TCallBack( CancelMatch, this ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   752
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   753
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   754
    else
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   755
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   756
        if ( iState == ECompleteMatch )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   757
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   758
            _AKNTRACE( "[%s][%s] State() == ECompleteMatch ", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   759
                                                		    __FUNCTION__ );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   760
            iKeyTimeoutTimer->Start( KEcsInterKeyTimeout,
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   761
                KEcsInterKeyTimeout, TCallBack( CancelMatch, this ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   762
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   763
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   764
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   765
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   766
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   767
EXPORT_C void CAknEcsDetector::SetState( TState aNewState )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   768
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   769
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   770
    _AKNTRACE( "[%s][%s] aNewState: %d", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   771
                                            		__FUNCTION__, aNewState );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   772
    ReportEvent( aNewState );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   773
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   774
    TInt oldState = iState;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   775
    iState = aNewState;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   776
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   777
    switch ( oldState )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   778
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   779
        // All these are OK to go to the next state without transition action:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   780
        case ENotFullyConstructed:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   781
        case EEmpty:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   782
        case ECallAttempted:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   783
        case ENoMatch:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   784
        case ECompleteMatchThenSendKey:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   785
            break;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   786
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   787
        case ECompleteMatch:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   788
            if ( aNewState == ECompleteMatchThenSendKey )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   789
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   790
                RelinquishCapturedKeys();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   791
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   792
                TBool proceedWithCall = ETrue;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   793
                proceedWithCall = OfferEmergencyCall();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   794
                if ( proceedWithCall )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   795
                    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   796
                    _AKNTRACE( "[%s][%s] Attempt Emergency Call", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   797
                                                                		__FUNCTION__);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   798
                    AttemptEmergencyCall();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   799
                    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   800
                else
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   801
                    {  // Pass through this state immediately
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   802
                    _AKNTRACE( "[%s][%s] Reset", "CAknEcsDetector", __FUNCTION__);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   803
                    iQueue->Reset();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   804
                    SetState( EEmpty );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   805
                    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   806
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   807
            break;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   808
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   809
        case EServiceNumMatch:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   810
            if ( iServiceCallEnabled )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   811
                {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   812
                if ( aNewState == ECompleteMatchThenSendKey )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   813
                    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   814
                    RelinquishCapturedKeys();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   815
                    _AKNTRACE( "[%s][%s] Make Service Call", "CAknEcsDetector", 
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   816
                                                                		__FUNCTION__);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   817
                    TRAP_IGNORE( MakeServiceCallL() );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   818
                    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   819
                }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   820
            break;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   821
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   822
        default:
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   823
            break;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   824
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   825
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   826
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   827
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   828
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   829
EXPORT_C void CAknEcsDetector::Reset()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   830
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   831
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   832
    iQueue->Reset();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   833
    SetState( EEmpty );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   834
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   835
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   836
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   837
/**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   838
* This may be re-implemented to add a confirm query. Re-implementation must not leave
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   839
*
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   840
*/
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   841
EXPORT_C TBool CAknEcsDetector::OfferEmergencyCall()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   842
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   843
    return ETrue;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   844
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   845
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   846
void CAknEcsDetector::CaptureKeys()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   847
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   848
    // Capture Send Key
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   849
    RWindowGroup& groupWin=iCoeEnv->RootWin();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   850
    iCapturedKey=groupWin.CaptureKey( EStdKeyYes, 0, 0);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   851
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   852
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   853
void CAknEcsDetector::RelinquishCapturedKeys()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   854
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   855
    RWindowGroup& groupWin=iCoeEnv->RootWin();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   856
    groupWin.CancelCaptureKey( iCapturedKey );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   857
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   858
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   859
void CAknEcsDetector::AttemptEmergencyCall()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   860
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   861
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   862
#ifdef AVKON_RDEBUG_INFO
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   863
    _LIT(KDebugAttemptEmergencyCall, "Attempt Emergency Call From Detector");
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   864
    RDebug::Print(KDebugAttemptEmergencyCall);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   865
#endif
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   866
63
ae68f05b0b2f Create stem_avkon.dll, to break dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents: 62
diff changeset
   867
#if 0
62
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   868
    TRAPD( err, iPhCltEmergencyCall->DialEmergencyCallL( CurrentMatch() ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   869
    __ASSERT_DEBUG( err==KErrNone, Panic( EAknEcsPanicDialLLeft ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   870
    if(err != KErrNone)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   871
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   872
        err = KErrNone;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   873
        }
63
ae68f05b0b2f Create stem_avkon.dll, to break dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents: 62
diff changeset
   874
#endif
62
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   875
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   876
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   877
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   878
void CAknEcsDetector::MakeServiceCallL()
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   879
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   880
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   881
    if ( iServiceCallEnabled )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   882
        {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   883
        CAiwServiceHandler* aiwServiceHandler = CAiwServiceHandler::NewLC();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   884
        RCriteriaArray interest;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   885
        CleanupClosePushL( interest );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   886
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   887
        CAiwCriteriaItem* criteria = CAiwCriteriaItem::NewLC( KAiwCmdCall,
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   888
                                         KAiwCmdCall, _L8( "*" ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   889
        TUid base;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   890
        base.iUid = KAiwClassBase;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   891
        criteria->SetServiceClass( base );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   892
        User::LeaveIfError( interest.Append( criteria ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   893
        aiwServiceHandler->AttachL( interest );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   894
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   895
        CAiwDialData* dialData = CAiwDialData::NewLC();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   896
        dialData->SetCallType( CAiwDialData::EAIWForcedCS );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   897
        dialData->SetPhoneNumberL( CurrentMatch() );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   898
        dialData->SetWindowGroup( AIWDialData::KAiwGoToIdle );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   899
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   900
        CAiwGenericParamList& paramList = aiwServiceHandler->InParamListL();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   901
        dialData->FillInParamListL( paramList );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   902
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   903
        TRAPD( err, aiwServiceHandler->ExecuteServiceCmdL( KAiwCmdCall, paramList,
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   904
                    aiwServiceHandler->OutParamListL(), 0, NULL ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   905
        __ASSERT_DEBUG( err == KErrNone, Panic( EAknEcsPanicDialLLeft ) );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   906
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   907
        //reset the queue
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   908
        iQueue->Reset();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   909
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   910
        CleanupStack::PopAndDestroy( dialData );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   911
        CleanupStack::PopAndDestroy( criteria );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   912
        CleanupStack::PopAndDestroy( &interest );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   913
        CleanupStack::PopAndDestroy( aiwServiceHandler );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   914
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   915
        if( err != KErrNone )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   916
            {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   917
            User::Leave( err );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   918
            }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   919
        }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   920
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   921
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   922
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   923
EXPORT_C void CAknEcsDetector::SetObserver( MAknEcsObserver* aObserver )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   924
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   925
    iObserver = aObserver;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   926
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   927
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   928
    /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   929
     * It is called whenever status is retrieved (by the client).
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   930
     *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   931
     * @param aStatus It is the status of the phone.
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   932
     */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   933
void CAknEcsDetector::HandlePhoneStatusL( const TInt /* aStatus */ )
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   934
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   935
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   936
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   937
    /**
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   938
    * This is meant to be called asynchronously in order for the Observer to destroy itself
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   939
    *
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   940
    */
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   941
TInt CAknEcsDetector::CallAttemptedCallback(TAny* aSelf)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   942
    { // static
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   943
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   944
    REINTERPRET_CAST(CAknEcsDetector*,aSelf)->SetState( ECallAttempted );
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   945
#ifdef AVKON_RDEBUG_INFO
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   946
    _LIT(KDebugCallAttemptedCallback, "CallAttemptedCallback");
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   947
    RDebug::Print(KDebugCallAttemptedCallback);
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   948
#endif
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   949
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   950
    return 0;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   951
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   952
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   953
TInt CAknEcsDetector::CancelMatch(TAny* aThis)
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   954
    {
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   955
    _AKNTRACE_FUNC_ENTER;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   956
    static_cast<CAknEcsDetector*>(aThis)->Reset();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   957
    static_cast<CAknEcsDetector*>(aThis)->iKeyTimeoutTimer->Cancel();
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   958
    _AKNTRACE_FUNC_EXIT;
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   959
    return 0; // Do not repeat the operation
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   960
    }
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   961
d951a20326d6 Original files from sf/mw/classicui/uifw/AvKon which will be modified to break avkon.dll dependency on phoneclient.dll
William Roberts <williamr@symbian.org>
parents:
diff changeset
   962
// End of File