satui/satapp/src/satappgetinkeynote.cpp
changeset 12 ae8abd0db65c
child 15 d7fc66ccd6fb
equal deleted inserted replaced
0:ff3b6d0fd310 12:ae8abd0db65c
       
     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 #include <exception>
       
    19 
       
    20 #include "tflogger.h"
       
    21 #include "satappgetinkeynote.h"
       
    22 
       
    23 // ======== MEMBER FUNCTIONS ==================================================
       
    24 
       
    25 // ----------------------------------------------------------------------------
       
    26 // SatAppGetInkeyNote::SatAppGetInkeyNote
       
    27 // (Constructor).
       
    28 // ----------------------------------------------------------------------------
       
    29 //
       
    30 SatAppGetInkeyNote::SatAppGetInkeyNote(const QString &text,
       
    31         MessageBoxType type, QGraphicsItem *parent):
       
    32         HbMessageBox(text, type, parent)
       
    33 {
       
    34     TFLOGSTRING("SATAPP: SatAppGetInkeyNote::SatAppGetInkeyNote call - exit")
       
    35 }
       
    36 
       
    37 // ----------------------------------------------------------------------------
       
    38 // SatAppGetInkeyNote::~SatAppGetInkeyNote
       
    39 // (Destructor).
       
    40 // ----------------------------------------------------------------------------
       
    41 //
       
    42 SatAppGetInkeyNote::~SatAppGetInkeyNote()
       
    43 {
       
    44     TFLOGSTRING("SATAPP: SatAppGetInkeyNote::~SatAppGetInkeyNote call - exit")
       
    45 }
       
    46 
       
    47 
       
    48 // ----------------------------------------------------------------------------
       
    49 // SatAppGetInkeyNote::keyPressEvent
       
    50 // (keyPressEvent).
       
    51 // ----------------------------------------------------------------------------
       
    52 //
       
    53 void SatAppGetInkeyNote::keyPressEvent(QKeyEvent *event)
       
    54 {
       
    55     TFLOGSTRING("SATAPP: SatAppGetInkeyNote::keyPressEvent")
       
    56     switch (event->key())
       
    57     {
       
    58     case Qt::Key_0:
       
    59     case Qt::Key_1:
       
    60     case Qt::Key_2:
       
    61     case Qt::Key_3:
       
    62     case Qt::Key_4:
       
    63     case Qt::Key_5:
       
    64     case Qt::Key_6:
       
    65     case Qt::Key_7:
       
    66     case Qt::Key_8:
       
    67     case Qt::Key_9:
       
    68     case Qt::Key_Plus:
       
    69     case Qt::Key_Asterisk:
       
    70     case Qt::Key_NumberSign:
       
    71         {
       
    72         TFLOGSTRING("SATAPP: SatAppGetInkeyNote::keyPressEvent digits key")
       
    73         emit digitalKeyPressed(event->key());
       
    74         }
       
    75         break;
       
    76     default :
       
    77         {
       
    78         HbMessageBox::keyPressEvent(event);
       
    79         break;
       
    80         }
       
    81     }
       
    82     TFLOGSTRING2("SATAPP: SatAppGetInkeyNote::keyPressEvent key %d", \
       
    83         event->key())
       
    84     TFLOGSTRING("SATAPP: SatAppGetInkeyNote::keyPressEvent exit")
       
    85 }
       
    86 
       
    87 //End of file