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