satui/satapp/src/satappgetinkeynote.cpp
changeset 12 ae8abd0db65c
child 15 d7fc66ccd6fb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/satui/satapp/src/satappgetinkeynote.cpp	Fri Mar 19 09:40:14 2010 +0200
@@ -0,0 +1,87 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*
+*/
+#include <exception>
+
+#include "tflogger.h"
+#include "satappgetinkeynote.h"
+
+// ======== MEMBER FUNCTIONS ==================================================
+
+// ----------------------------------------------------------------------------
+// SatAppGetInkeyNote::SatAppGetInkeyNote
+// (Constructor).
+// ----------------------------------------------------------------------------
+//
+SatAppGetInkeyNote::SatAppGetInkeyNote(const QString &text,
+        MessageBoxType type, QGraphicsItem *parent):
+        HbMessageBox(text, type, parent)
+{
+    TFLOGSTRING("SATAPP: SatAppGetInkeyNote::SatAppGetInkeyNote call - exit")
+}
+
+// ----------------------------------------------------------------------------
+// SatAppGetInkeyNote::~SatAppGetInkeyNote
+// (Destructor).
+// ----------------------------------------------------------------------------
+//
+SatAppGetInkeyNote::~SatAppGetInkeyNote()
+{
+    TFLOGSTRING("SATAPP: SatAppGetInkeyNote::~SatAppGetInkeyNote call - exit")
+}
+
+
+// ----------------------------------------------------------------------------
+// SatAppGetInkeyNote::keyPressEvent
+// (keyPressEvent).
+// ----------------------------------------------------------------------------
+//
+void SatAppGetInkeyNote::keyPressEvent(QKeyEvent *event)
+{
+    TFLOGSTRING("SATAPP: SatAppGetInkeyNote::keyPressEvent")
+    switch (event->key())
+    {
+    case Qt::Key_0:
+    case Qt::Key_1:
+    case Qt::Key_2:
+    case Qt::Key_3:
+    case Qt::Key_4:
+    case Qt::Key_5:
+    case Qt::Key_6:
+    case Qt::Key_7:
+    case Qt::Key_8:
+    case Qt::Key_9:
+    case Qt::Key_Plus:
+    case Qt::Key_Asterisk:
+    case Qt::Key_NumberSign:
+        {
+        TFLOGSTRING("SATAPP: SatAppGetInkeyNote::keyPressEvent digits key")
+        emit digitalKeyPressed(event->key());
+        }
+        break;
+    default :
+        {
+        HbMessageBox::keyPressEvent(event);
+        break;
+        }
+    }
+    TFLOGSTRING2("SATAPP: SatAppGetInkeyNote::keyPressEvent key %d", \
+        event->key())
+    TFLOGSTRING("SATAPP: SatAppGetInkeyNote::keyPressEvent exit")
+}
+
+//End of file