telutils/dialpad/tsrc/dialpadtest/dialpadtestview.h
changeset 12 ae8abd0db65c
child 13 e32024264ebb
equal deleted inserted replaced
0:ff3b6d0fd310 12:ae8abd0db65c
       
     1 /*!
       
     2 * Copyright (c) 2009 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 DIALPADTESTVIEW_H
       
    19 #define DIALPADTESTVIEW_H
       
    20 
       
    21 #include <hbview.h>
       
    22 
       
    23 class HbMainWindow;
       
    24 class HbListWidget;
       
    25 class Dialpad;
       
    26 
       
    27 class DialpadTestView : public HbView
       
    28 {
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32     DialpadTestView( HbMainWindow& mainWindow );
       
    33     ~DialpadTestView();
       
    34 
       
    35 protected:
       
    36     bool eventFilter(QObject * watched, QEvent * event);
       
    37 
       
    38 private:
       
    39     void createListWidget();
       
    40     void setDialpadPosition();
       
    41     void handleDial();
       
    42 
       
    43 private slots:
       
    44     void openDialpad();
       
    45     void onDialpadClosed();
       
    46     void switchOrientation();
       
    47     void onOrientationChange(Qt::Orientation orientation);
       
    48     void onEditorContentChanged();
       
    49     void handleLongKeyPress();
       
    50 
       
    51 private:
       
    52     HbMainWindow& mMainWindow;
       
    53     HbListWidget* mListWidget;
       
    54     Dialpad* mDialpad;
       
    55     QTimer* mLongPressTimer;
       
    56     QString mPressedKey;
       
    57 };
       
    58 
       
    59 #endif // DIALPADTESTVIEW_H