|
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: API for wps wizard pages |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef WPSWIZARDPAGE_H_ |
|
19 #define WPSWIZARDPAGE_H_ |
|
20 |
|
21 |
|
22 // System includes |
|
23 #include <QObject> |
|
24 |
|
25 // User includes |
|
26 #include "wlanwizardpage.h" |
|
27 |
|
28 // Forward declarations |
|
29 class WpsWizardPrivate; |
|
30 class HbWidget; |
|
31 |
|
32 |
|
33 // External data types |
|
34 // Constants |
|
35 |
|
36 /*! |
|
37 * @addtogroup group_wps_wizard_plugin |
|
38 * @{ |
|
39 */ |
|
40 |
|
41 // Class declaration |
|
42 class WpsWizardPage : public QObject, public WlanWizardPage |
|
43 { |
|
44 Q_OBJECT |
|
45 |
|
46 public: |
|
47 enum WpsPageIds { |
|
48 PageWpsWizardStep2 = WlanWizardPage::PageWpsStart, |
|
49 PageWpsWizardStep3_Button, |
|
50 PageWpsWizardStep3_Number, |
|
51 PageWpsWizardStep4, |
|
52 PageWpsWizardStep5, |
|
53 PageWpsWizardStep6 |
|
54 }; |
|
55 |
|
56 enum WpsMode { |
|
57 WpsPushButtonMode = 0, |
|
58 WpsPinCodeMode, |
|
59 WpsManualMode |
|
60 }; |
|
61 |
|
62 public: |
|
63 explicit WpsWizardPage(WpsWizardPrivate* parent); |
|
64 virtual ~WpsWizardPage(); |
|
65 |
|
66 /*! |
|
67 * Creates a visualization of the page. |
|
68 */ |
|
69 virtual HbWidget* initializePage() = 0; |
|
70 /*! |
|
71 * Returns id of next page. updates settings EapWizard. |
|
72 */ |
|
73 virtual int nextId(bool &removeFromStack) const = 0; |
|
74 /*! |
|
75 * This method is called when "previous" button has been pressed. |
|
76 */ |
|
77 virtual int previousTriggered() { return OneStepBackwards;}; |
|
78 /*! |
|
79 * This method is called when Cancel button has been pressed. |
|
80 */ |
|
81 virtual void cancelTriggered() {}; |
|
82 |
|
83 signals: |
|
84 |
|
85 public slots: |
|
86 |
|
87 protected: |
|
88 |
|
89 //data |
|
90 //! Pointer to private implementation |
|
91 WpsWizardPrivate* mWizard; |
|
92 |
|
93 protected slots: |
|
94 |
|
95 private: |
|
96 Q_DISABLE_COPY(WpsWizardPage) |
|
97 |
|
98 private slots: |
|
99 |
|
100 private: |
|
101 |
|
102 }; |
|
103 |
|
104 #endif /* WPSWIZARDPAGE_H_ */ |