camerauis/cameraxui/cxui/inc/cxuicapturekeyhandler.h
changeset 28 3075d9b614e6
parent 19 d9aefe59d544
child 45 24fd82631616
equal deleted inserted replaced
19:d9aefe59d544 28:3075d9b614e6
    31 public:
    31 public:
    32     CxuiCaptureKeyHandler(CxeEngine &aEngine);
    32     CxuiCaptureKeyHandler(CxeEngine &aEngine);
    33     virtual ~CxuiCaptureKeyHandler();
    33     virtual ~CxuiCaptureKeyHandler();
    34 
    34 
    35 public:
    35 public:
       
    36     void listenKeys(bool listen);
       
    37 
    36     bool isAutofocusKeyPressed();
    38     bool isAutofocusKeyPressed();
    37     bool isCaptureKeyPressed();
    39     bool isCaptureKeyPressed();
    38 
    40 
    39     bool handleKeyEvent(QEvent *event);
    41     bool handleKeyEvent(QEvent *event);
    40 
    42 
    43     // CxuiViewManager will handle all signal connections and disconnections
    45     // CxuiViewManager will handle all signal connections and disconnections
    44     void autofocusKeyPressed();
    46     void autofocusKeyPressed();
    45     void autofocusKeyReleased();
    47     void autofocusKeyReleased();
    46     void captureKeyPressed();
    48     void captureKeyPressed();
    47     void captureKeyReleased();
    49     void captureKeyReleased();
       
    50 
       
    51 private:
       
    52     void listenKey(int key);
    48 
    53 
    49 private:
    54 private:
    50     bool mAutofocusKeyPressed;
    55     bool mAutofocusKeyPressed;
    51     bool mCaptureKeyPressed;
    56     bool mCaptureKeyPressed;
    52 
    57