22 #include <hbapplication.h> |
22 #include <hbapplication.h> |
23 #include <hbwidget.h> |
23 #include <hbwidget.h> |
24 #include <QGraphicsLinearLayout> |
24 #include <QGraphicsLinearLayout> |
25 #include <hbgroupbox.h> |
25 #include <hbgroupbox.h> |
26 #include <hbview.h> |
26 #include <hbview.h> |
|
27 #include <SysUtil.h> |
27 #include <hblabel.h> |
28 #include <hblabel.h> |
28 #include <hbdocumentloader.h> |
29 #include <hbdocumentloader.h> |
29 #include <hbmenu.h> |
30 #include <hbmenu.h> |
30 #include <SyncMLClient.h> |
31 #include <SyncMLClient.h> |
31 #include <SyncMLClientDM.h> |
32 #include <SyncMLClientDM.h> |
32 #include <QStandardItemModel> |
33 #include <QStandardItemModel> |
33 #include <QLocale> |
34 #include <QLocale> |
34 #include <centralrepository.h> |
35 #include <centralrepository.h> |
35 #include <QTranslator> |
36 #include <QTranslator> |
36 #include <nsmldmdef.h> |
37 #include <nsmldmdef.h> |
|
38 #include "dminforetrieval.h" |
|
39 #include <fotaengine.h> |
|
40 #include "deviceupdatemoniterobserver.h" |
37 //_LIT( KSmlEOL, "\n" ); |
41 //_LIT( KSmlEOL, "\n" ); |
38 |
42 |
39 |
43 |
40 class HbDialog; |
44 class HbDialog; |
|
45 class HbPushButton; |
41 class DmAdvancedView; |
46 class DmAdvancedView; |
42 class DMFotaView : public HbView |
47 class CDeviceUpdateMoniter; |
|
48 |
|
49 class DMFotaView : public HbView, public MDeviceMoniterObserver |
43 { |
50 { |
44 Q_OBJECT |
51 Q_OBJECT |
45 public: |
52 public: |
46 DMFotaView(HbMainWindow *mainWindow); |
53 DMFotaView(HbMainWindow *mainWindow); |
47 virtual ~DMFotaView(); |
54 virtual ~DMFotaView(); |
48 bool addFotaView(); |
55 bool addFotaView(); |
49 //HbDialog* createDialog() const; |
56 //HbDialog* createDialog() const; |
|
57 void displayNoteAndDisableButtons(); |
|
58 void enableButtons(); |
50 private: |
59 private: |
51 void FormatList(QString val, QString str); |
60 void FormatList(QString val, QString str); |
|
61 RFotaEngineSession& FotaEngineL(); |
|
62 void fotaSupportEnabled(); |
52 public slots : |
63 public slots : |
53 void OnHelp(); |
64 void OnHelp(); |
54 void OnExit(); |
65 void OnExit(); |
55 void CheckforUpdate(); |
66 void CheckforUpdate(); |
56 void AdvancedDeviceManager(); |
67 void AdvancedDeviceManager(bool launchadvanceview = true); |
57 void backtoMainWindow(); |
68 void backtoMainWindow(); |
58 void readSection( Qt::Orientation orientation ); |
69 void readSection( Qt::Orientation orientation ); |
|
70 void ResumeUpdate(); |
|
71 public: |
|
72 void UpdateDMUI(TBool aVal); |
59 private: |
73 private: |
60 HbMainWindow* mMainWindow; |
74 HbMainWindow* mMainWindow; |
61 HbView* fotaPortraitView; |
75 HbView* fotaPortraitView; |
62 HbView* fotaLandscapeView; |
76 HbView* fotaLandscapeView; |
63 DmAdvancedView* profilesView; |
77 DmAdvancedView* profilesView; |
66 RSyncMLDevManProfile profile; |
80 RSyncMLDevManProfile profile; |
67 RSyncMLDevManJob iSyncJob; |
81 RSyncMLDevManJob iSyncJob; |
68 QTranslator* mTranslator; |
82 QTranslator* mTranslator; |
69 HbLabel *label,*label2,*label3,*label4; |
83 HbLabel *label,*label2,*label3,*label4; |
70 QStringList list1,list2; |
84 QStringList list1,list2; |
71 TInt i; |
85 TInt i; |
|
86 DmInfo* mainDmInfo; |
72 HbDocumentLoader loader,loader2; |
87 HbDocumentLoader loader,loader2; |
|
88 HbPushButton *updateButton; |
|
89 TInt fotaValue; |
|
90 HbPushButton *advancedButton; |
|
91 HbPushButton *updateButtonLandscape; |
|
92 HbPushButton *advancedButtonLandscape; |
|
93 |
|
94 RFotaEngineSession iFotaEngine; |
|
95 RFotaEngineSession::TState iFotaState; |
|
96 |
|
97 CDeviceUpdateMoniter * iMoniter; |
|
98 TBool Connected; |
73 }; |
99 }; |
74 |
100 |
75 |
101 |
76 #endif |
102 #endif |