diff -r 2313cb430f28 -r d841fb1cc818 telutils/dialpad/inc/dialpadinternaleventfilter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/telutils/dialpad/inc/dialpadinternaleventfilter.h Mon Oct 04 00:54:29 2010 +0300 @@ -0,0 +1,49 @@ +/*! +* Copyright (c) 2009 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: Dialpad keypad +* +*/ + +#ifndef DIALPADINTERNALEVENTFILTER_H +#define DIALPADINTERNALEVENTFILTER_H + +#include +#include + +/** +* Event filter for internal development purposes. +* PhoneUi.exe can be shut down with long press 9 and +* restarted with long press 8 in Dialpad +*/ +class DialpadInternalEventFilter : public QObject +{ + Q_OBJECT + +public: + DialpadInternalEventFilter(); + ~DialpadInternalEventFilter(); +protected: + bool eventFilter(QObject *watched, QEvent *event); +private slots: + void togglePhoneUi(); +private: + void shutdown(); + void start(); + +private: + QTimer *mLongPressTimer; + int mKey; +}; + +#endif // DIALPADINTERNALEVENTFILTER_H