camerauis/cameraxui/cxui/inc/cxuicapturekeyhandler.h
changeset 48 42ba2d16bf40
parent 21 fa6d9f75d6a6
child 52 7e18d488ac5f
equal deleted inserted replaced
37:64817133cd1d 48:42ba2d16bf40
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
       
    17 
    17 #ifndef CXUICAPTUREKEYHANDLER_H
    18 #ifndef CXUICAPTUREKEYHANDLER_H
    18 #define CXUICAPTUREKEYHANDLER_H
    19 #define CXUICAPTUREKEYHANDLER_H
    19 
    20 
    20 #include <QObject>
    21 #include <QObject>
    21 
    22 
    22 class RWsSession;
       
    23 class RWindowGroup;
       
    24 class QEvent;
    23 class QEvent;
    25 class CxeEngine;
    24 class CxeEngine;
    26 
    25 class CxuiCaptureKeyHandlerPrivate;
    27 
    26 
    28 class CxuiCaptureKeyHandler : public QObject
    27 class CxuiCaptureKeyHandler : public QObject
    29 {
    28 {
    30 Q_OBJECT
    29     Q_OBJECT
    31 public:
    30 public:
    32     CxuiCaptureKeyHandler(CxeEngine &aEngine);
    31     CxuiCaptureKeyHandler(CxeEngine &aEngine);
    33     virtual ~CxuiCaptureKeyHandler();
    32     virtual ~CxuiCaptureKeyHandler();
    34 
    33 
    35 public:
    34 public:
    47     void autofocusKeyReleased();
    46     void autofocusKeyReleased();
    48     void captureKeyPressed();
    47     void captureKeyPressed();
    49     void captureKeyReleased();
    48     void captureKeyReleased();
    50 
    49 
    51 private:
    50 private:
    52     void listenKey(int key);
    51     CxuiCaptureKeyHandlerPrivate *d_ptr;
    53 
    52     Q_DECLARE_PRIVATE(CxuiCaptureKeyHandler)
    54 private:
       
    55     bool mAutofocusKeyPressed;
       
    56     bool mCaptureKeyPressed;
       
    57 
       
    58     QList<int> mCapturedKeyHandles;
       
    59     QList<int> mCapturedKeyUpDownHandles;
       
    60 
       
    61     QList<int> mPrimaryCameraAutofocusKeys;
       
    62     QList<int> mPrimaryCameraCaptureKeys;
       
    63     QList<int> mSecondaryCameraCaptureKeys;
       
    64 
       
    65     CxeEngine &mEngine;
       
    66 
       
    67     RWsSession &mWsSession; // not own
       
    68     RWindowGroup &mWindowGroup; // not own
       
    69 };
    53 };
    70 
    54 
    71 #endif // CXUICAPTUREKEYHANDLER_H
    55 #endif // CXUICAPTUREKEYHANDLER_H