|
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 FOTADEVICEDIALOGS_H_ |
|
19 #define FOTADEVICEDIALOGS_H_ |
|
20 |
|
21 #include <devicedialogconsts.h> |
|
22 |
|
23 #include <hbdevicedialoginterface.h> // HbDeviceDialogInterface |
|
24 #include <hbdialog.h> |
|
25 #include <hblabel.h> |
|
26 #include <hbpushbutton.h> |
|
27 #include "syncmlnotifierprivate.h" |
|
28 #include "devicemanagementnotifierwidget_p.h" |
|
29 |
|
30 |
|
31 class fotadevicedialogs:public HbDialog, public HbDeviceDialogInterface { |
|
32 //class fotadevicedialogs:public devicemanagementnotifierwidget { |
|
33 |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 /** |
|
38 * Construction and setting of observer happens here |
|
39 * |
|
40 * @since S60 SF4 |
|
41 * @param aType - tell sthe type of the dialog to be shown |
|
42 * @param aObserver is the parent class which owns the notifier and information is |
|
43 * passed to the parent class from the device dialog. |
|
44 */ |
|
45 |
|
46 fotadevicedialogs(const QVariantMap ¶meters); |
|
47 |
|
48 private: |
|
49 /** |
|
50 * Function to call the appropriate device dialog based on the dialog ID. |
|
51 * |
|
52 * @since S60 SF4 |
|
53 * @param aType - tell sthe type of the dialog to be shown |
|
54 * @param parameters - contains the dialogID + information to be shown in the dialogs |
|
55 */ |
|
56 |
|
57 void launchFotaDialog(const QVariantMap ¶meters); |
|
58 |
|
59 /** |
|
60 * Function to show the informative dialog of FOTA |
|
61 * |
|
62 * @since S60 SF4 |
|
63 * @param aType - tell sthe type of the dialog to be shown |
|
64 * @param parameters - contains the dialogID + information to be shown in the dialogs |
|
65 */ |
|
66 |
|
67 void createfotainformativedialog(TFwUpdNoteTypes aType,const QVariantMap ¶meters); |
|
68 |
|
69 /** |
|
70 * Function to show the error message dialog of FOTA |
|
71 * |
|
72 * @since S60 SF4 |
|
73 * @param aType - tell sthe type of the dialog to be shown |
|
74 * @param parameters - contains the dialogID + information to be shown in the dialogs |
|
75 */ |
|
76 |
|
77 void createfotamessagedialog(TFwUpdNoteTypes aType,const QVariantMap ¶meters); |
|
78 |
|
79 /** |
|
80 * Function to show the confirmative dialog of FOTA |
|
81 * |
|
82 * @since S60 SF4 |
|
83 * @param aType - tell sthe type of the dialog to be shown |
|
84 * @param parameters - contains the dialogID + information to be shown in the dialogs |
|
85 */ |
|
86 void createfotaconfirmationdialog(TFwUpdNoteTypes aType,const QVariantMap ¶meters); |
|
87 |
|
88 public slots: |
|
89 |
|
90 /** |
|
91 * Construction and setting of observer happens here |
|
92 * |
|
93 * @since S60 SF4 |
|
94 * @param aObserver is the parent class which owns the notifier and information is |
|
95 * passed to the parent class from the device dialog. |
|
96 */ |
|
97 |
|
98 void fotaLSK(); |
|
99 /** |
|
100 * Construction and setting of observer happens here |
|
101 * |
|
102 * @since S60 SF4 |
|
103 * @param aObserver is the parent class which owns the notifier and information is |
|
104 * passed to the parent class from the device dialog. |
|
105 */ |
|
106 |
|
107 void fotaRSK(); |
|
108 |
|
109 |
|
110 public: //derived from HbDeviceDialogInterface |
|
111 /** |
|
112 * Ccalled when device dialog is closed. |
|
113 * |
|
114 * @since S60 SF4 |
|
115 * @param byClient - The Name of the client which closed the dialog. |
|
116 */ |
|
117 |
|
118 void closeDeviceDialog(bool byClient); |
|
119 |
|
120 bool setDeviceDialogParameters(const QVariantMap ¶meters); |
|
121 int deviceDialogError() const; |
|
122 // void closeDeviceDialog(bool byClient); |
|
123 HbDialog *deviceDialogWidget() const; |
|
124 |
|
125 signals: |
|
126 void deviceDialogClosed(); |
|
127 void deviceDialogData(QVariantMap data); |
|
128 |
|
129 |
|
130 signals: |
|
131 /** |
|
132 * servertextmessage |
|
133 * |
|
134 * @since S60 SF4 |
|
135 * @param aObserver is the parent class which owns the notifier and information is |
|
136 * passed to the parent class from the device dialog. |
|
137 */ |
|
138 |
|
139 void servertextmessage(const QString &string); |
|
140 }; |
|
141 |
|
142 #endif |