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 |
|
19 #ifndef __CELLULARPROMPTDIALOG_H__ |
|
20 #define __CELLULARPROMPTDIALOG_H__ |
|
21 |
|
22 #include <QObject> |
|
23 #include <HbDialog> |
|
24 #include <hbdevicedialoginterface.h> |
|
25 #include <QSharedPointer> |
|
26 |
|
27 // Forward declarations |
|
28 class HbTranslator; |
|
29 |
|
30 class CellularPromptDialog: public HbDialog, public HbDeviceDialogInterface |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 /* Constructor */ |
|
36 CellularPromptDialog(const QVariantMap ¶meters); |
|
37 /* Destructor */ |
|
38 ~CellularPromptDialog(); |
|
39 |
|
40 /* Function creates the actual dialog widget */ |
|
41 void createDialog(const QVariantMap ¶meters); |
|
42 |
|
43 /* Device dialog parameters to be set while dialog is displayed. |
|
44 * Not supported. |
|
45 */ |
|
46 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
|
47 |
|
48 /* Not supported */ |
|
49 int deviceDialogError() const; |
|
50 |
|
51 /* Closes the device dialog */ |
|
52 void closeDeviceDialog(bool byClient); |
|
53 |
|
54 /* Returns a pointer to this dialog widget */ |
|
55 HbPopup *deviceDialogWidget() const; |
|
56 |
|
57 signals: |
|
58 /* Signal is emitted when the dialog is closed */ |
|
59 void deviceDialogClosed(); |
|
60 |
|
61 /* Data is emitted in QVariantMap when one of the buttons is selected */ |
|
62 void deviceDialogData(QVariantMap data); |
|
63 |
|
64 private slots: |
|
65 /* Slot that is mapped to the first button's Clicked signal */ |
|
66 void firstButtonPressed(); |
|
67 |
|
68 /* Slot that is mapped to the second button's Clicked signal */ |
|
69 void middleButtonPressed(); |
|
70 |
|
71 /* Slot that is mapped to the cancel button's Clicked signal */ |
|
72 void cancelPressed(); |
|
73 |
|
74 /* Slot that is mapped to the signal that indicates to closing of the dialog */ |
|
75 void closingDialog(); |
|
76 |
|
77 private: |
|
78 Q_DISABLE_COPY(CellularPromptDialog) |
|
79 |
|
80 private: |
|
81 /* Pointer to the confml dialog object */ |
|
82 HbDialog *mDialog; |
|
83 |
|
84 /* Tells whether close has already been called for the dialog */ |
|
85 bool mClose; |
|
86 |
|
87 /* Translator for the localisation Text Id's */ |
|
88 QSharedPointer<HbTranslator> mTranslator; |
|
89 }; |
|
90 |
|
91 |
|
92 #endif // __CELLULARPROMPTDIALOG_H__ |
|