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: |
|
15 * EAP Wizard: API for EAP specific wizard pages. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef EAPWIZARD_PAGE_H |
|
20 #define EAPWIZARD_PAGE_H |
|
21 |
|
22 // System includes |
|
23 #include <QObject> |
|
24 |
|
25 // User includes |
|
26 #include "wlanwizardpage.h" |
|
27 |
|
28 // Forward declarations |
|
29 class EapWizardPrivate; |
|
30 class HbDocumentLoader; |
|
31 |
|
32 // External data types |
|
33 |
|
34 // Constants |
|
35 |
|
36 /*! |
|
37 @addtogroup group_eap_wizard |
|
38 @{ |
|
39 |
|
40 Interface for EAP specific wizard pages. |
|
41 */ |
|
42 |
|
43 // Class declaration |
|
44 |
|
45 class EapWizardPage : public QObject, public WlanWizardPage |
|
46 { |
|
47 Q_OBJECT |
|
48 |
|
49 public: |
|
50 /*! |
|
51 Page IDs for EAP Wizard. |
|
52 */ |
|
53 enum EapPageIds { |
|
54 //! Outer Type selection |
|
55 PageOuterType = WlanWizardPage::PageEapStart, |
|
56 /*! Certificate Authority certificate selection for EAP-TTLS, EAP-TLS |
|
57 and PEAP. |
|
58 */ |
|
59 PageCertificateCa, |
|
60 //! User Authority certificate selection for EAP-TLS |
|
61 PageCertificateUser, |
|
62 //! EAP Identity for TLS methods, EAP-TTLS, EAP-TLS, PEAP |
|
63 PageIdentity, |
|
64 //! EAP Inner type selection for PEAP |
|
65 PageInnerTypePeap, |
|
66 //! EAP Inner type selection for EAP-TTLS |
|
67 PageInnerTypeEapTtls, |
|
68 //! New PAC Store password for EAP-FAST |
|
69 PageNewPacStorePassword, |
|
70 //! PAC store confirmation for EAP-FAST |
|
71 PagePromptPacStorePassword, |
|
72 //! Username and password page |
|
73 PageUsernamePassword, |
|
74 }; |
|
75 public: |
|
76 explicit EapWizardPage(EapWizardPrivate* parent); |
|
77 virtual ~EapWizardPage(); |
|
78 |
|
79 public: // From WlanWizardPage |
|
80 virtual HbWidget* initializePage() = 0; |
|
81 virtual int nextId(bool &removeFromStack) const; |
|
82 virtual int nextId() const = 0; |
|
83 |
|
84 signals: |
|
85 |
|
86 public slots: |
|
87 |
|
88 protected: |
|
89 void loadDocmlSection( |
|
90 HbDocumentLoader *loader, |
|
91 Qt::Orientation orientation, |
|
92 const QString &filename, |
|
93 const QString &portraitSection, |
|
94 const QString &landscapeSection) const; |
|
95 |
|
96 protected slots: |
|
97 |
|
98 protected: // data |
|
99 //! Pointer to Eap Wizard private implementation |
|
100 EapWizardPrivate* mWizard; |
|
101 |
|
102 private: |
|
103 Q_DISABLE_COPY(EapWizardPage) |
|
104 |
|
105 private slots: |
|
106 |
|
107 private: // data |
|
108 |
|
109 }; |
|
110 |
|
111 /*! @} */ |
|
112 |
|
113 #endif |
|