phonebookui/pbkcommonui/inc/cntkeygrabber.h
changeset 54 47627ab5d7a4
child 66 554fe4dbbb59
equal deleted inserted replaced
53:e6aff7b69165 54:47627ab5d7a4
       
     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 
       
    28 class QTPBK_EXPORT CntKeyGrabber : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31     friend class TestCntKeyGrabber;
       
    32 
       
    33 public:
       
    34     CntKeyGrabber(HbMainWindow *window, QObject *parent = NULL);
       
    35     ~CntKeyGrabber();
       
    36 
       
    37 protected:
       
    38     bool eventFilter(QObject *obj, QEvent *event);
       
    39     
       
    40 private:
       
    41     HbMainWindow    *mMainWindow;
       
    42     XQAiwRequest    *mRequest;
       
    43 
       
    44 };
       
    45 
       
    46 #endif // CNTKEYGRABBER_H