logsui/logsapp/tsrc/ut_logsapp/stubs/xqkeycapture.h
changeset 17 90fe74753f71
equal deleted inserted replaced
15:76d2cf7a585e 17:90fe74753f71
       
     1 /*
       
     2 * Copyright (c) 2009 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 #ifndef XQKEYCAPTURE_H
       
    19 #define XQKEYCAPTURE_H
       
    20 
       
    21 #include <qnamespace.h>
       
    22 #include <QList>
       
    23 #include <QEvent>
       
    24 
       
    25 class XQKeyCapture {
       
    26     
       
    27 public:
       
    28     XQKeyCapture();
       
    29 
       
    30     ~XQKeyCapture();
       
    31 
       
    32     bool captureKey(Qt::Key aKey,
       
    33         Qt::KeyboardModifiers aModifiersMask = Qt::NoModifier,
       
    34         Qt::KeyboardModifiers aModifier = Qt::NoModifier);
       
    35 		
       
    36     bool cancelCaptureKey(Qt::Key aKey,
       
    37         Qt::KeyboardModifiers aModifiersMask = Qt::NoModifier,
       
    38         Qt::KeyboardModifiers aModifier = Qt::NoModifier);
       
    39 
       
    40 public: // Test stuff
       
    41     QList<Qt::Key> mKeys;
       
    42 };
       
    43 
       
    44 #endif /* XQKEYCAPTURE_H */