diff -r 76d2cf7a585e -r 90fe74753f71 logsui/logsapp/tsrc/ut_logsapp/stubs/xqkeycapture.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/logsui/logsapp/tsrc/ut_logsapp/stubs/xqkeycapture.h Fri Sep 03 14:26:05 2010 +0300 @@ -0,0 +1,44 @@ +/* +* 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: +* +*/ + +#ifndef XQKEYCAPTURE_H +#define XQKEYCAPTURE_H + +#include +#include +#include + +class XQKeyCapture { + +public: + XQKeyCapture(); + + ~XQKeyCapture(); + + bool captureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier); + + bool cancelCaptureKey(Qt::Key aKey, + Qt::KeyboardModifiers aModifiersMask = Qt::NoModifier, + Qt::KeyboardModifiers aModifier = Qt::NoModifier); + +public: // Test stuff + QList mKeys; +}; + +#endif /* XQKEYCAPTURE_H */