|
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 wizard pages |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef WPSWIZARDPAGE_H_ |
|
19 #define WPSWIZARDPAGE_H_ |
|
20 |
|
21 |
|
22 // System includes |
|
23 |
|
24 // User includes |
|
25 #include "wlanwizardpage.h" |
|
26 |
|
27 // Forward declarations |
|
28 class WpsWizardPrivate; |
|
29 class HbWidget; |
|
30 |
|
31 |
|
32 // External data types |
|
33 // Constants |
|
34 |
|
35 // Class declaration |
|
36 class WpsWizardPage : public QObject, public WlanWizardPage |
|
37 { |
|
38 public: |
|
39 enum WpsPageIds |
|
40 { |
|
41 PageWpsWizardStep2 = WlanWizardPage::PageWpsStart, |
|
42 PageWpsWizardStep3_Button, |
|
43 PageWpsWizardStep3_Number, |
|
44 PageWpsWizardStep4, |
|
45 PageWpsWizardStep5, |
|
46 PageWpsWizardStep6 |
|
47 }; |
|
48 public: |
|
49 WpsWizardPage(WpsWizardPrivate* parent); |
|
50 virtual ~WpsWizardPage(); |
|
51 |
|
52 /*! |
|
53 * Creates a visualization of the page. |
|
54 */ |
|
55 virtual HbWidget* initializePage() = 0; |
|
56 /*! |
|
57 * Returns id of next page. updates settings EapWizard. |
|
58 */ |
|
59 virtual int nextId(bool &removeFromStack) const = 0; |
|
60 /*! |
|
61 * Returns how many steps should be gone backwars. |
|
62 */ |
|
63 virtual int stepsBackwards(); |
|
64 /*! |
|
65 * This method is called when a visualization is displayed to detect |
|
66 * whether next button should be enabled or not. |
|
67 */ |
|
68 virtual bool validate() const; |
|
69 /*! |
|
70 * This method is called when Previous button has been pressed. |
|
71 */ |
|
72 virtual void previousTriggered() = 0; |
|
73 /*! |
|
74 * This method is called when Cancel button has been pressed. |
|
75 */ |
|
76 virtual void cancelTriggered() = 0; |
|
77 WpsWizardPrivate* mWizard; |
|
78 private: |
|
79 Q_DISABLE_COPY(WpsWizardPage) |
|
80 }; |
|
81 |
|
82 /*! @} */ |
|
83 |
|
84 #endif /* WPSWIZARDPAGE_H_ */ |