phonesrv_plat/dialpad_api/inc/dialpadvtkeyhandler.h
branchRCL_3
changeset 19 7d48bed6ce0c
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
       
     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: Dialpad key handler.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DIALPADVTKEYHANDLER_H
       
    19 #define DIALPADVTKEYHANDLER_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 class Dialpad;
       
    24 class DialpadKeySequenceEventFilter;
       
    25 class DialpadEmergencyCallEventFilter;
       
    26 class HbMainWindow;
       
    27 
       
    28 #ifdef BUILD_DIALPADKEYHANDLER
       
    29 #define DIALPADKEYHANDLER_EXPORT Q_DECL_EXPORT
       
    30 #else
       
    31 #define DIALPADKEYHANDLER_EXPORT Q_DECL_IMPORT
       
    32 #endif
       
    33 /*!
       
    34     DialpadVtKeyHandler
       
    35     Class provides key handling for dialpad component.
       
    36 
       
    37     @code
       
    38     Dialpad *dialpad = new Dialpad();
       
    39     DialpadVtKeyHandler *keyhandler = new DialpadVtKeyHandler(dialpad, this);
       
    40     @endcode
       
    41     
       
    42 */
       
    43 class DIALPADKEYHANDLER_EXPORT DialpadVtKeyHandler : public QObject
       
    44 {
       
    45     Q_OBJECT
       
    46 
       
    47 public:
       
    48     explicit DialpadVtKeyHandler(Dialpad *dialPad, HbMainWindow& mainWindow, QObject *parent = 0);
       
    49     virtual ~DialpadVtKeyHandler();
       
    50 
       
    51 private:
       
    52     HbMainWindow& mMainWindow;
       
    53     DialpadEmergencyCallEventFilter *mEmergencyCallFilter;
       
    54     DialpadKeySequenceEventFilter *mKeySequenceFilter;
       
    55 };
       
    56 
       
    57 #endif // DIALPADVTKEYHANDLER_H