phonebookui/cntcommonui/common/cntkeygrabber.h
changeset 72 6abfb1094884
parent 66 554fe4dbbb59
child 73 7ab51e5db10a
equal deleted inserted replaced
67:59984e68247d 72:6abfb1094884
       
     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 CNTKEYGRABBER_H
       
    19 #define CNTKEYGRABBER_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #include "cntglobal.h"
       
    24 
       
    25 class HbMainWindow;
       
    26 class XQAiwRequest;
       
    27 class XqKeyCapture;
       
    28 
       
    29 class QTPBK_EXPORT CntKeyGrabber : public QObject
       
    30 {
       
    31     Q_OBJECT
       
    32     friend class TestCntKeyGrabber;
       
    33 
       
    34 public:
       
    35     CntKeyGrabber(HbMainWindow *window, QObject *parent = NULL);
       
    36     ~CntKeyGrabber();
       
    37 
       
    38 protected:
       
    39     bool eventFilter(QObject *obj, QEvent *event);
       
    40     
       
    41 private:
       
    42     HbMainWindow    *mMainWindow;
       
    43     XQAiwRequest    *mRequest;
       
    44     XqKeyCapture    *mKeyCapture;
       
    45 
       
    46 };
       
    47 
       
    48 #endif // CNTKEYGRABBER_H