equal
deleted
inserted
replaced
1 /*! |
|
2 * Copyright (c) 2009 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: Dialpad popup |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef DIALPAD_H |
|
19 #define DIALPAD_H |
|
20 |
|
21 #include <hbwidget.h> |
|
22 |
|
23 #include <QTime> |
|
24 #include <QTimeLine> |
|
25 |
|
26 class HbLineEdit; |
|
27 |
|
28 const int DialpadButtonCount = 13; |
|
29 |
|
30 class Dialpad : public HbWidget |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 explicit Dialpad(); |
|
36 explicit Dialpad(const HbMainWindow& mainWindow); |
|
37 |
|
38 virtual ~Dialpad(); |
|
39 |
|
40 HbLineEdit& editor() const; |
|
41 |
|
42 bool isOpen() const {return mIsOpen;} |
|
43 |
|
44 public slots: |
|
45 |
|
46 void setTapOutsideDismiss( bool enable ); |
|
47 |
|
48 void openDialpad() { mIsOpen = true; } |
|
49 |
|
50 void closeDialpad() { mIsOpen = false; } |
|
51 |
|
52 void setCallButtonEnabled(bool enabled); |
|
53 |
|
54 signals: |
|
55 void aboutToClose(); |
|
56 |
|
57 public: |
|
58 HbLineEdit* mLineEdit; |
|
59 bool mIsCallButtonEnabled; |
|
60 bool mIsOpen; |
|
61 bool mIsTabOutsideDismissEnabled; |
|
62 }; |
|
63 |
|
64 #endif // DIALPAD_H |
|