1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * WLAN Wizard: Private implementation. |
15 * WLAN Wizard: Private implementation. |
16 * |
16 */ |
17 */ |
|
18 |
17 |
19 #ifndef WLANWIZARD_P_H |
18 #ifndef WLANWIZARD_P_H |
20 #define WLANWIZARD_P_H |
19 #define WLANWIZARD_P_H |
21 |
20 |
22 // System includes |
21 // System includes |
89 |
88 |
90 public: |
89 public: |
91 // from WlanWizardHelper, for all wizards |
90 // from WlanWizardHelper, for all wizards |
92 virtual QVariant configuration(ConfigurationId confId) const; |
91 virtual QVariant configuration(ConfigurationId confId) const; |
93 virtual void setConfiguration(ConfigurationId confId, const QVariant &value); |
92 virtual void setConfiguration(ConfigurationId confId, const QVariant &value); |
|
93 virtual void clearConfiguration(ConfigurationId confId); |
|
94 virtual bool configurationExists(ConfigurationId confId); |
94 virtual void enableNextButton(bool enable); |
95 virtual void enableNextButton(bool enable); |
95 virtual void enablePrevButton(bool enable); |
|
96 virtual void addPage(int pageId, WlanWizardPage *page); |
96 virtual void addPage(int pageId, WlanWizardPage *page); |
97 virtual void nextPage(); |
97 virtual void nextPage(); |
98 virtual HbMainWindow* mainWindow() const; |
98 virtual HbMainWindow* mainWindow() const; |
99 virtual bool isCurrentPage(const HbWidget *page) const; |
99 virtual bool isCurrentPage(const HbWidget *page) const; |
100 virtual int nextPageId(bool useWps); |
100 virtual int nextPageId(bool useWps); |
101 |
101 |
102 signals: |
102 signals: |
103 |
103 |
104 public slots: |
104 public slots: |
|
105 |
|
106 void cancelTriggered(); |
105 |
107 |
106 protected: |
108 protected: |
107 |
109 |
108 protected slots: |
110 protected slots: |
109 |
111 |
110 private: |
112 private: |
111 Q_DISABLE_COPY(WlanWizardPrivate) |
113 Q_DISABLE_COPY(WlanWizardPrivate) |
112 static const int PageTimeout = 1500; |
114 static const int PageTimeout = 1500; |
113 |
115 |
114 private slots: |
116 private slots: |
115 void cancelTriggered(); |
|
116 void previousTriggered(); |
117 void previousTriggered(); |
117 void nextTriggered(); |
118 void nextTriggered(); |
118 void finishTriggered(); |
119 void finishTriggered(); |
119 void onTimeOut(); |
120 void onTimeOut(); |
120 void startPageOperation(); |
121 void startPageOperation(); |
163 QScopedPointer<WlanQtUtils> mWlanQtUtils; |
164 QScopedPointer<WlanQtUtils> mWlanQtUtils; |
164 //! Document loader for docml |
165 //! Document loader for docml |
165 QScopedPointer<HbDocumentLoader> mDocLoader; |
166 QScopedPointer<HbDocumentLoader> mDocLoader; |
166 //! Extensible Authentication Protocol (EAP) Wizard plugin, instantiated |
167 //! Extensible Authentication Protocol (EAP) Wizard plugin, instantiated |
167 //! when required |
168 //! when required |
168 EapWizard* mEapWizard; |
169 QScopedPointer<EapWizard> mEapWizard; |
169 //! Wifi Protected Setup (WPS) Wizard plugin, instantiated when required |
170 //! Wifi Protected Setup (WPS) Wizard plugin, instantiated when required |
170 WpsWizard* mWpsWizard; |
171 QScopedPointer<WpsWizard> mWpsWizard; |
171 //! Maps UI object of page into a control object |
172 //! Maps UI object of page into a control object |
172 QHash<HbWidget* , WlanWizardPage *> mPageMapper; |
173 QHash<HbWidget* , WlanWizardPage *> mPageMapper; |
173 //! Maps page id to control object of page. |
174 //! Maps page id to control object of page. |
174 QHash<int, WlanWizardPage *> mPages; |
175 QHash<int, WlanWizardPage *> mPages; |
175 |
176 |