camerauis/cameraxui/cxui/inc/cxuicapturekeyhandler_symbian_p.h
changeset 46 c826656d6714
child 52 7e18d488ac5f
equal deleted inserted replaced
42:feebad15db8c 46:c826656d6714
       
     1 /*
       
     2 * Copyright (c) 2010 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 CXUICAPTUREKEYHANDLER_SYMBIAN_P_H
       
    19 #define CXUICAPTUREKEYHANDLER_SYMBIAN_P_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 class QEvent;
       
    24 class CxeEngine;
       
    25 class CxuiCaptureKeyHandler;
       
    26 
       
    27 class RWsSession;
       
    28 class RWindowGroup;
       
    29 
       
    30 class CxuiCaptureKeyHandlerPrivate : public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33 public:
       
    34     CxuiCaptureKeyHandlerPrivate(CxeEngine &aEngine, CxuiCaptureKeyHandler *parent);
       
    35     virtual ~CxuiCaptureKeyHandlerPrivate();
       
    36 
       
    37 public:
       
    38     void listenKeys(bool listen);
       
    39 
       
    40     bool isAutofocusKeyPressed();
       
    41     bool isCaptureKeyPressed();
       
    42 
       
    43     bool handleKeyEvent(QEvent *event);
       
    44 
       
    45 private:
       
    46    void listenKey(int key);
       
    47 
       
    48 private: //private implementation pattern
       
    49     CxuiCaptureKeyHandler *const q_ptr;
       
    50     Q_DECLARE_PUBLIC(CxuiCaptureKeyHandler)
       
    51 
       
    52 private:
       
    53     CxeEngine &mEngine;
       
    54 
       
    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     RWsSession &mWsSession; // not own
       
    66     RWindowGroup &mWindowGroup; // not own
       
    67 
       
    68 };
       
    69 
       
    70 #endif // CXUICAPTUREKEYHANDLER_SYMBIAN_P_H