20 |
20 |
21 #include <hbdialog.h> // HbDialog |
21 #include <hbdialog.h> // HbDialog |
22 #include <hbdevicedialoginterface.h> // HbDeviceDialogInterface |
22 #include <hbdevicedialoginterface.h> // HbDeviceDialogInterface |
23 #include <hbwidget.h> // HbWidget |
23 #include <hbwidget.h> // HbWidget |
24 #include <hblineedit.h> // HbWidget |
24 #include <hblineedit.h> // HbWidget |
25 |
25 #include <hblabel.h> |
26 |
26 |
27 /** |
27 /** |
28 * SW Install notification widget class. |
28 * SW Install notification widget class. |
29 */ |
29 */ |
30 class SecUiNotificationDialog : public HbDialog, public HbDeviceDialogInterface |
30 class SecUiNotificationDialog : public HbDialog, public HbDeviceDialogInterface |
49 void hideEvent(QHideEvent *event); |
49 void hideEvent(QHideEvent *event); |
50 void showEvent(QShowEvent *event); |
50 void showEvent(QShowEvent *event); |
51 |
51 |
52 private: // new functions |
52 private: // new functions |
53 bool constructDialog(const QVariantMap ¶meters); |
53 bool constructDialog(const QVariantMap ¶meters); |
54 void sendResult(bool accepted); |
54 void sendResult(int accepted); |
55 |
55 |
56 private slots: |
56 private slots: |
57 void handleAccepted(); |
57 void handleAccepted(); |
58 void handleCancelled(); |
58 void handleCancelled(); |
59 void handleMemorySelectionChanged(const QString &text); |
59 void handleMemorySelectionChanged(const QString &text); |
60 void handleCodeTopChanged(const QString &text); |
60 void handleCodeTopChanged(const QString &text); |
|
61 void handleCodeBottomChanged(const QString &text); |
61 void saveFocusWidget(QWidget*,QWidget*); |
62 void saveFocusWidget(QWidget*,QWidget*); |
62 void handlebut1Changed(); |
63 void handlebut1Changed(); |
63 void handlebut2Changed(); |
64 void handlebut2Changed(); |
64 void handlebut3Changed(); |
65 void handlebut3Changed(); |
65 |
66 |
68 |
69 |
69 int mLastError; |
70 int mLastError; |
70 bool mShowEventReceived; |
71 bool mShowEventReceived; |
71 QVariantMap mResultMap; |
72 QVariantMap mResultMap; |
72 HbLineEdit *codeTop; |
73 HbLineEdit *codeTop; |
|
74 HbLineEdit *codeBottom; |
73 HbAction *okAction; |
75 HbAction *okAction; |
74 HbAction *cancelAction; |
76 HbAction *cancelAction; |
|
77 HbLabel *title; |
75 int queryType; |
78 int queryType; |
|
79 int lMinLength; |
|
80 int lMaxLength; |
|
81 int queryDual; |
|
82 int lEmergencySupported; |
|
83 int isEmergency; |
76 }; |
84 }; |
77 |
85 |
78 #endif // SECUINOTIFICATIONDIALOG_H |
86 #endif // SECUINOTIFICATIONDIALOG_H |