equal
deleted
inserted
replaced
|
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 void listenKeys(bool listen); |
|
35 |
|
36 bool isAutofocusKeyPressed(); |
|
37 bool isCaptureKeyPressed(); |
|
38 |
|
39 bool handleKeyEvent(QEvent *event); |
|
40 |
|
41 private: //private implementation patterns |
|
42 CxuiCaptureKeyHandler *const q_ptr; |
|
43 Q_DECLARE_PUBLIC(CxuiCaptureKeyHandler) |
|
44 |
|
45 private: |
|
46 CxeEngine &mEngine; |
|
47 bool mAutofocusKeyPressed; |
|
48 bool mCaptureKeyPressed; |
|
49 |
|
50 private: // Stub / Dummy members |
|
51 QList<int> mPrimaryCameraAutofocusKeys; |
|
52 |
|
53 }; |
|
54 |
|
55 #endif // CXUICAPTUREKEYHANDLER_DESKTOP_P_H |