|
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 DIALPADVIDEOMAILBOXEVENTFILTER_H |
|
19 #define DIALPADVIDEOMAILBOXEVENTFILTER_H |
|
20 |
|
21 #include "dialpadmailboxeventfilterbase.h" |
|
22 |
|
23 class QTimer; |
|
24 class Dialpad; |
|
25 class DialpadSymbianWrapper; |
|
26 |
|
27 /*! |
|
28 DialpadVideoMailboxEventFilter |
|
29 Class provides video mailbox key handling. |
|
30 */ |
|
31 class DialpadVideoMailboxEventFilter : public DialpadMailboxEventFilterBase |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 explicit DialpadVideoMailboxEventFilter(Dialpad* dialpad, QObject* parent = 0); |
|
37 virtual ~DialpadVideoMailboxEventFilter(); |
|
38 |
|
39 protected: |
|
40 bool eventFilter(QObject *watched, QEvent *event); |
|
41 |
|
42 /*! |
|
43 \fn bool handleCallButtonPress() |
|
44 |
|
45 Check if editor has number string and if it does then createVideoCall |
|
46 is called and funtion returns true, if there is no number then |
|
47 funtion return false. |
|
48 */ |
|
49 bool handleCallButtonPress(); |
|
50 |
|
51 /*! |
|
52 \fn handleMailboxOperation |
|
53 |
|
54 Start vmbx call or number definition procedures. |
|
55 */ |
|
56 void handleMailboxOperation(); |
|
57 |
|
58 protected slots: |
|
59 |
|
60 /*! |
|
61 \fn void handleLongKeyPress() |
|
62 |
|
63 Handles long key presses. |
|
64 */ |
|
65 void handleLongKeyPress(); |
|
66 |
|
67 private: |
|
68 bool isVideoMbxSupported(); |
|
69 }; |
|
70 |
|
71 #endif // DIALPADVIDEOMAILBOXEVENTFILTER_H |