28 #include "wlanloginapplication.h" |
28 #include "wlanloginapplication.h" |
29 #include "wlanloginwebpage.h" |
29 #include "wlanloginwebpage.h" |
30 #include "ictsqtwrapper.h" |
30 #include "ictsqtwrapper.h" |
31 |
31 |
32 // Forward declarations |
32 // Forward declarations |
|
33 class HbDocumentLoader; |
33 class HbProgressBar; |
34 class HbProgressBar; |
34 class WlanLoginWebView; |
35 class WlanLoginWebView; |
35 class QNetworkAccessManager; |
36 class QNetworkAccessManager; |
36 class HbWidget; |
37 class HbWidget; |
37 |
38 |
43 class WlanLoginView : public HbView |
44 class WlanLoginView : public HbView |
44 { |
45 { |
45 Q_OBJECT |
46 Q_OBJECT |
46 |
47 |
47 public: |
48 public: |
48 WlanLoginView(WlanLoginApplication* appref); |
49 WlanLoginView(WlanLoginMainWindow* mainWindow); |
49 virtual ~WlanLoginView(); |
50 virtual ~WlanLoginView(); |
50 |
51 |
51 /*! |
52 /*! |
52 Enumeration type for current toolbar action in use |
53 Enumeration type for current toolbar action in use |
53 */ |
54 */ |
54 enum ActionType { |
55 enum ActionType { |
55 Cancel, //!< "Cancel" button |
56 Cancel, //!< "Cancel" button |
56 Next, //!< "Next" button |
57 Next //!< "Next" button |
57 Continue //!< "Continue" button |
|
58 }; |
58 }; |
59 void setActiveToolBarAction(ActionType newAction); |
59 |
|
60 private: |
|
61 void loadDocml(); |
60 |
62 |
61 private slots: |
63 private slots: |
62 |
64 |
63 void handleConnectionReady(QUrl url); |
65 void handleConnectionReady(QUrl url); |
64 void handleOrientationChanged(Qt::Orientation orientation); |
66 void handleOrientationChanged(Qt::Orientation orientation); |
66 |
68 |
67 void handleUrlChanged(const QUrl& newUrl); |
69 void handleUrlChanged(const QUrl& newUrl); |
68 void handleLoadStarted(); |
70 void handleLoadStarted(); |
69 void handleLoadProgress(int progressValue); |
71 void handleLoadProgress(int progressValue); |
70 void handleLoadFinished(bool status ); |
72 void handleLoadFinished(bool status ); |
71 |
|
72 void handleFormSubmitted(); |
73 void handleFormSubmitted(); |
73 void handleCancelAction(); |
74 void handleCancelAction(); |
74 void handleNextAction(); |
75 void handleNextAction(); |
75 void handleContinueAction(); |
|
76 |
|
77 void handleIctsOk(); |
76 void handleIctsOk(); |
78 |
77 |
79 signals: |
78 signals: |
80 void cancelTriggered(); |
79 void cancelTriggered(); |
81 void nextTriggered(); |
80 void nextTriggered(); |
82 void continueTriggered(); |
81 |
83 void startIcts(); |
82 void startIcts(); |
84 |
83 |
85 private: // Data |
84 private: // Data |
86 |
85 |
87 // Not owned data |
86 // Not owned data |
88 WlanLoginApplication* mAppRef; //!< pointer to application instance |
87 WlanLoginMainWindow* mMainWindow; //!< pointer to main window instance |
89 |
88 |
90 // Owned data |
89 // Owned data |
91 |
90 |
92 QGraphicsLinearLayout* mMainLayout; //!< pointer to main layout |
91 QScopedPointer<HbDocumentLoader> mDocLoader; //! Document loader for list view |
93 QGraphicsLinearLayout* mContentLayout; //!< pointer to scroall area content layout |
|
94 |
92 |
95 HbProgressBar* mProgressBar; //!< pointer to HB progressbar |
93 HbProgressBar* mProgressBar; //!< pointer to HB progressbar |
96 HbScrollArea* mScrollArea; //!< pointer to HB scroll area |
94 HbWidget* mScrollAreaContent; //!< pointer to scroll are content |
97 HbWidget* mScrollAreaContent; |
|
98 WlanLoginWebView* mWebView; //!< pointer to web view |
95 WlanLoginWebView* mWebView; //!< pointer to web view |
99 HbToolBar* mToolBar; //!< pointer to HB toolbar |
|
100 HbAction* mCancelAction; //!< pointer to "cancel" action |
96 HbAction* mCancelAction; //!< pointer to "cancel" action |
101 HbAction* mNextAction; //!< pointer to "next" action |
97 HbAction* mNextAction; //!< pointer to "next" action |
102 HbAction* mContinueAction; //!< pointer to "continue" action |
98 bool mFirstIctsOkResult; //!< Variable for controlling automatic background sending |
103 |
99 |
104 }; |
100 }; |
105 |
101 |
106 #endif // WLANLOGINWEBVIEW_H |
102 #endif // WLANLOGINWEBVIEW_H |