|
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: WPS wizard page step 4 |
|
15 * |
|
16 */ |
|
17 #ifndef WPSWIZARDSTEPFOUR_H_ |
|
18 #define WPSWIZARDSTEPFOUR_H_ |
|
19 |
|
20 |
|
21 // System includes |
|
22 #include <QObject> |
|
23 #include<e32base.h> |
|
24 |
|
25 // User includes |
|
26 #include "wpswizardpage.h" |
|
27 #include "mwpsactiverunnercallback.h" |
|
28 #include "cwpsactiverunner.h" |
|
29 |
|
30 // Forward declarations |
|
31 class HbRadioButtonList; |
|
32 class HbWidget; |
|
33 class HbLabel; |
|
34 class HbProgressBar; |
|
35 class WpsWizardPrivate; |
|
36 |
|
37 // External data types |
|
38 // Constants |
|
39 |
|
40 // Class declaration |
|
41 class WpsPageStepFour : public WpsWizardPage, public MWpsActiveRunnerCallback |
|
42 { |
|
43 Q_OBJECT |
|
44 public: |
|
45 WpsPageStepFour(WpsWizardPrivate* parent); |
|
46 ~WpsPageStepFour(); |
|
47 |
|
48 public: |
|
49 /*! |
|
50 * Creates a visualization of the page. |
|
51 */ |
|
52 HbWidget* initializePage(); |
|
53 /*! |
|
54 * Returns id of next page. updates settings EapWizard. |
|
55 */ |
|
56 int nextId(bool &removeFromStack) const; |
|
57 /*! |
|
58 * Returns how many steps should be gone backwards. |
|
59 */ |
|
60 int stepsBackwards(); |
|
61 /*! |
|
62 * This method is called when Previous button has been pressed. |
|
63 */ |
|
64 void previousTriggered(); |
|
65 /*! |
|
66 * This method is called when Cancel button has been pressed. |
|
67 */ |
|
68 void cancelTriggered(); |
|
69 /*! |
|
70 * This method is called when a visualization is displayed to detect |
|
71 * whether next button should be enabled or not. |
|
72 */ |
|
73 bool validate() const; |
|
74 /*! |
|
75 * From mwpsactiverunnercallback.h |
|
76 * This method is called from the active runner class to notify the end |
|
77 * of operation |
|
78 */ |
|
79 void WpsActiveRunnerStopped( |
|
80 QList<TWlanProtectedSetupCredentialAttribute>& aCredentials, |
|
81 TInt aError); |
|
82 |
|
83 public slots: |
|
84 |
|
85 private: |
|
86 Q_DISABLE_COPY(WpsPageStepFour) |
|
87 void StartWpsRunner(); |
|
88 |
|
89 HbWidget *mWidget; |
|
90 HbRadioButtonList *mRadio; |
|
91 HbLabel *mTitle; |
|
92 HbLabel *mHeading; |
|
93 HbProgressBar *mProgressBar; |
|
94 CWpsActiveRunner *mWpsActiveRunner; |
|
95 int mWpsErrorCode; |
|
96 int countCredentials; |
|
97 bool mValid; |
|
98 |
|
99 }; |
|
100 |
|
101 /*! @} */ |
|
102 |
|
103 #endif /* WPSWIZARDSTEPFOUR_H_ */ |