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 |
|
18 #ifndef WPSWIZARDSTEPFOUR_H_ |
|
19 #define WPSWIZARDSTEPFOUR_H_ |
|
20 |
|
21 |
|
22 // System includes |
|
23 #include <QObject> |
|
24 #include <HbDocumentLoader> |
|
25 |
|
26 // User includes |
|
27 #include "wpswizardpage.h" |
|
28 #include "mwpsactiverunnercallback.h" |
|
29 #include "cwpsactiverunner.h" |
|
30 |
|
31 // Forward declarations |
|
32 class HbWidget; |
|
33 class WpsWizardPrivate; |
|
34 class WpsPageStepFourPrivate; |
|
35 |
|
36 // External data types |
|
37 // Constants |
|
38 |
|
39 /*! |
|
40 * @addtogroup group_wps_wizard_plugin |
|
41 * @{ |
|
42 */ |
|
43 |
|
44 // Class declaration |
|
45 class WpsPageStepFour : public WpsWizardPage |
|
46 { |
|
47 Q_OBJECT |
|
48 |
|
49 public: |
|
50 |
|
51 explicit WpsPageStepFour(WpsWizardPrivate* parent); |
|
52 ~WpsPageStepFour(); |
|
53 |
|
54 public: |
|
55 |
|
56 HbWidget* initializePage(); |
|
57 |
|
58 int nextId(bool &removeFromStack) const; |
|
59 |
|
60 int previousTriggered(); |
|
61 |
|
62 void cancelTriggered(); |
|
63 |
|
64 void startOperation(); |
|
65 |
|
66 bool requiresStartOperation(); |
|
67 |
|
68 void setCredentials( |
|
69 QList<TWlanProtectedSetupCredentialAttribute>& credentials, |
|
70 int credentialscount); |
|
71 |
|
72 void handleError( int aErrorCode ); |
|
73 |
|
74 bool showPage(); |
|
75 |
|
76 signals: |
|
77 |
|
78 public slots: |
|
79 |
|
80 void loadDocmlSection(Qt::Orientation orientation); |
|
81 |
|
82 protected: |
|
83 |
|
84 protected slots: |
|
85 |
|
86 private: |
|
87 |
|
88 void startWpsRunner(); |
|
89 |
|
90 Q_DISABLE_COPY(WpsPageStepFour) |
|
91 |
|
92 private slots: |
|
93 |
|
94 private: |
|
95 |
|
96 //data |
|
97 |
|
98 //! HbWidget object displayed on the page |
|
99 HbWidget *mWidget; |
|
100 //! Member variable to hold the result of of the WPS operation |
|
101 int mWpsErrorCode; |
|
102 //! Member variable containing the count of received settings. |
|
103 int mCountCredentials; |
|
104 //! variable to determine whether to enable the next button or not. |
|
105 bool mValid; |
|
106 //! Document loader object. |
|
107 HbDocumentLoader *mLoader; |
|
108 //! Pointer to Private Implementation |
|
109 QScopedPointer<WpsPageStepFourPrivate> d_ptr; |
|
110 |
|
111 friend class TestWlanWizardContext; |
|
112 }; |
|
113 |
|
114 #endif /* WPSWIZARDSTEPFOUR_H_ */ |
|