telutils/dialpad/inc/dialpadhasheventfilter.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     1 /*!
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DIALPADHASHEVENTFILTER_H
       
    19 #define DIALPADHASHEVENTFILTER_H
       
    20 
       
    21 #include "dialpadmailboxeventfilterbase.h"
       
    22 
       
    23 class QTimer;
       
    24 class Dialpad;
       
    25 class DialpadSymbianWrapper;
       
    26 
       
    27 /*!
       
    28     DialpadHashEventFilter
       
    29     Class provides hash key handling.
       
    30 */
       
    31 class DialpadHashEventFilter : public DialpadMailboxEventFilterBase
       
    32 {
       
    33     Q_OBJECT
       
    34     
       
    35     friend class UT_DialpadHashEventFilter;
       
    36 
       
    37 public:
       
    38     explicit DialpadHashEventFilter(Dialpad* dialpad, QObject* parent = 0);
       
    39     virtual ~DialpadHashEventFilter();
       
    40 
       
    41 protected:
       
    42     bool eventFilter(QObject *watched, QEvent *event);
       
    43 
       
    44     /*!
       
    45        \fn bool handleCallButtonPress()
       
    46 
       
    47        Check if editor has number string and if it does then createCall
       
    48        is called and funtion returns true, if there is no number then
       
    49        funtion return false.
       
    50    */
       
    51     bool handleCallButtonPress();
       
    52 
       
    53     /*!
       
    54        \fn handleMailboxOperation
       
    55 
       
    56        Start vmbx call or number definition procedures.
       
    57     */
       
    58     void handleMailboxOperation();
       
    59     
       
    60 protected slots:
       
    61 
       
    62     /*!
       
    63        \fn void handleLongKeyPress()
       
    64     
       
    65        Handles long key presses.
       
    66     */
       
    67     void handleLongKeyPress();
       
    68 };
       
    69 
       
    70 #endif // DIALPADHASHEVENTFILTER_H