|
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 * WLAN Wizard Page: Key Query page for WEP and WPA (2). |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef WLANWIZARDPAGEKEYQUERY_H |
|
20 #define WLANWIZARDPAGEKEYQUERY_H |
|
21 |
|
22 // System includes |
|
23 |
|
24 // User includes |
|
25 #include "wlanwizardpageinternal.h" |
|
26 #include "wlanwizardutils.h" |
|
27 |
|
28 // Forward declarations |
|
29 class QChar; |
|
30 class HbLabel; |
|
31 class HbLineEdit; |
|
32 class HbDocumentLoader; |
|
33 class WlanWizardPrivate; |
|
34 |
|
35 // External data types |
|
36 |
|
37 // Constants |
|
38 |
|
39 /*! |
|
40 @addtogroup group_wlan_wizard |
|
41 @{ |
|
42 */ |
|
43 |
|
44 class WlanWizardPageKeyQuery: public WlanWizardPageInternal |
|
45 { |
|
46 Q_OBJECT |
|
47 public: |
|
48 explicit WlanWizardPageKeyQuery(WlanWizardPrivate* parent); |
|
49 virtual ~WlanWizardPageKeyQuery(); |
|
50 |
|
51 public: // From WlanWizardPageInternal |
|
52 HbWidget* initializePage(); |
|
53 int nextId(bool &removeFromStack) const; |
|
54 bool showPage(); |
|
55 |
|
56 signals: |
|
57 |
|
58 public slots: |
|
59 void loadDocmlSection(Qt::Orientation orientation); |
|
60 |
|
61 protected: |
|
62 bool eventFilter(QObject *obj, QEvent *event); |
|
63 |
|
64 protected slots: |
|
65 |
|
66 private: |
|
67 Q_DISABLE_COPY(WlanWizardPageKeyQuery) |
|
68 QString keyStatusToErrorString(WlanWizardUtils::KeyStatus status) const; |
|
69 |
|
70 private slots: |
|
71 |
|
72 private: |
|
73 // NOT OWNED |
|
74 //! Visualization of the page |
|
75 HbWidget *mWidget; |
|
76 //! Title text for line editor |
|
77 HbLabel *mLabelTitle; |
|
78 //! Line editor for WLAN WEP / WPA PSK key |
|
79 HbLineEdit *mLineEdit; |
|
80 //! Label for key specific error texts |
|
81 HbLabel *mLabelError; |
|
82 |
|
83 // OWNED |
|
84 //! docml document loader |
|
85 HbDocumentLoader *mDocLoader; |
|
86 }; |
|
87 |
|
88 /*! @} */ |
|
89 |
|
90 #endif // WLANWIZARDPAGEKEYQUERY_H |