camerauis/cameraxui/cxui/inc/cxuicapturekeyhandler_symbian_p.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     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 
       
    39     void startListeningKeys();
       
    40     void stopListeningKeys();
       
    41 
       
    42     bool isAutofocusKeyPressed();
       
    43     bool isCaptureKeyPressed();
       
    44 
       
    45     bool handleKeyEvent(QEvent *event);
       
    46 
       
    47 private:
       
    48    void listenKey(int key);
       
    49 
       
    50 private: //private implementation pattern
       
    51     CxuiCaptureKeyHandler *const q_ptr;
       
    52     Q_DECLARE_PUBLIC(CxuiCaptureKeyHandler)
       
    53 
       
    54 private:
       
    55     CxeEngine &mEngine;
       
    56 
       
    57     bool mAutofocusKeyPressed;
       
    58     bool mCaptureKeyPressed;
       
    59 
       
    60     QList<int> mCapturedKeyHandles;
       
    61     QList<int> mCapturedKeyUpDownHandles;
       
    62 
       
    63     QList<int> mPrimaryCameraAutofocusKeys;
       
    64     QList<int> mPrimaryCameraCaptureKeys;
       
    65     QList<int> mSecondaryCameraCaptureKeys;
       
    66 
       
    67     RWsSession &mWsSession; // not own
       
    68     RWindowGroup &mWindowGroup; // not own
       
    69 
       
    70 };
       
    71 
       
    72 #endif // CXUICAPTUREKEYHANDLER_SYMBIAN_P_H