25 #include <qdebug.h> |
25 #include <qdebug.h> |
26 #include <devicedialogsymbian.h> |
26 #include <devicedialogsymbian.h> |
27 #include "pnputillogger.h" |
27 #include "pnputillogger.h" |
28 #include "omacppinquerydialog.h" |
28 #include "omacppinquerydialog.h" |
29 #include "devicemanagementnotifierwidget_p.h" |
29 #include "devicemanagementnotifierwidget_p.h" |
|
30 #include "fotadevicedialogs.h" |
|
31 |
30 enum TSyncmlHbNotifierKeys |
32 enum TSyncmlHbNotifierKeys |
31 { |
33 { |
32 |
34 |
33 EHbSOSNotifierKeyStatus = 11, // status set will complete the client subscribe |
35 EHbSOSNotifierKeyStatus = 11, // status set will complete the client subscribe |
34 EHbSOSNotifierKeyStatusReturn = 12, // Return the content of actual status value accepted from UI |
36 EHbSOSNotifierKeyStatusReturn = 12, // Return the content of actual status value accepted from UI |
44 qDebug("devicemanagementnotifierutils"); |
46 qDebug("devicemanagementnotifierutils"); |
45 LOGSTRING("devicemanagementnotifierutils"); |
47 LOGSTRING("devicemanagementnotifierutils"); |
46 |
48 |
47 QVariantMap::const_iterator i = parameters.constBegin(); |
49 QVariantMap::const_iterator i = parameters.constBegin(); |
48 int notifiertolaunch = 0; |
50 int notifiertolaunch = 0; |
|
51 int dialogtype = 0; |
49 while (i != parameters.constEnd()) |
52 while (i != parameters.constEnd()) |
50 { |
53 { |
51 if (i.key().toAscii() == "syncmlfw") |
54 if (i.key().toAscii() == "syncmlfw") |
52 { |
55 { |
53 |
56 |
54 notifiertolaunch = i.value().toInt(); |
57 notifiertolaunch = i.value().toInt(); |
55 // profileidenabled = true; |
58 // profileidenabled = true; |
|
59 } |
|
60 |
|
61 if (i.key().toAscii() == keydialog) |
|
62 { |
|
63 |
|
64 dialogtype = i.value().toInt(); |
|
65 // profileidenabled = true; |
56 } |
66 } |
|
67 |
57 ++i; |
68 ++i; |
58 } |
69 } |
59 if(notifiertolaunch == 1000001 )// Connecting dialog |
70 if(notifiertolaunch == 1000001 )// Connecting dialog |
60 { |
71 { |
61 connectDialog = new syncmlConnectNotifier(ptr); |
72 connectDialog = new syncmlConnectNotifier(ptr); |
62 connectDialog->launchDialog(parameters); |
73 connectDialog->launchDialog(parameters); |
63 notifier = NULL; |
74 notifier = NULL; |
64 } |
75 fotadialog = NULL; |
65 |
76 } |
|
77 else if (dialogtype >= EFwDLNeedMoreMemory && dialogtype <= EFwUpdResumeUpdate) |
|
78 { |
|
79 fotadialog = new fotadevicedialogs(ptr); |
|
80 fotadialog->launchFotaDialog(parameters); |
|
81 connectDialog = NULL; |
|
82 notifier = NULL; |
|
83 //return fotadialog; |
|
84 } |
66 else |
85 else |
67 { |
86 { |
68 notifier = new syncmlnotifier(ptr); |
87 notifier = new syncmlnotifier(ptr); |
69 notifier->launchDialog(parameters); |
88 notifier->launchDialog(parameters); |
70 connectDialog = NULL; |
89 connectDialog = NULL; |
71 } |
90 fotadialog = NULL; |
72 } |
91 } |
|
92 } |
73 devicemanagementnotifierutils::~devicemanagementnotifierutils() |
93 devicemanagementnotifierutils::~devicemanagementnotifierutils() |
74 { |
94 { |
75 qDebug("devicemanagementnotifierutils::~devicemanagementnotifierutils"); |
95 qDebug("devicemanagementnotifierutils::~devicemanagementnotifierutils"); |
76 if(notifier) |
96 if(notifier) |
77 delete notifier; |
97 delete notifier; |