camerauis/cameraxui/cxui/inc/cxuicapturekeyhandler_desktop_p.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 53 61bc0f252b2b
child 57 2c87b2808fd7
equal deleted inserted replaced
53:61bc0f252b2b 54: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_DESKTOP_P_H
       
    19 #define CXUICAPTUREKEYHANDLER_DESKTOP_P_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 class CxuiCaptureKeyHandler;
       
    24 class CxeEngine;
       
    25 
       
    26 class CxuiCaptureKeyHandlerPrivate : public QObject
       
    27 {
       
    28     Q_OBJECT
       
    29 public:
       
    30     CxuiCaptureKeyHandlerPrivate(CxeEngine &aEngine, CxuiCaptureKeyHandler *parent);
       
    31     virtual ~CxuiCaptureKeyHandlerPrivate();
       
    32 
       
    33 public:
       
    34 
       
    35     void startListeningKeys();
       
    36     void stopListeningKeys();
       
    37 
       
    38     bool isAutofocusKeyPressed();
       
    39     bool isCaptureKeyPressed();
       
    40 
       
    41     bool handleKeyEvent(QEvent *event);
       
    42 
       
    43 private: //private implementation patterns
       
    44     CxuiCaptureKeyHandler *const q_ptr;
       
    45     Q_DECLARE_PUBLIC(CxuiCaptureKeyHandler)
       
    46 
       
    47 private:
       
    48     CxeEngine &mEngine;
       
    49     bool mAutofocusKeyPressed;
       
    50     bool mCaptureKeyPressed;
       
    51 
       
    52 private: // Stub / Dummy members
       
    53     QList<int> mPrimaryCameraAutofocusKeys;
       
    54 
       
    55 };
       
    56 
       
    57 #endif // CXUICAPTUREKEYHANDLER_DESKTOP_P_H