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 Page: Outer type selection |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef EAPWIZARDPAGEOUTERTYPE_H |
|
20 #define EAPWIZARDPAGEOUTERTYPE_H |
|
21 |
|
22 // System includes |
|
23 #include <QObject> |
|
24 |
|
25 // User includes |
|
26 #include "eapwizardpage.h" |
|
27 |
|
28 // Forward declarations |
|
29 class HbRadioButtonList; |
|
30 class HbWidget; |
|
31 class HbDocumentLoader; |
|
32 class HbLabel; |
|
33 class EapWizardPrivate; |
|
34 |
|
35 // External data types |
|
36 |
|
37 // Constants |
|
38 |
|
39 /*! |
|
40 @addtogroup group_eap_wizard |
|
41 @{ |
|
42 */ |
|
43 |
|
44 // Class declaration |
|
45 |
|
46 class EapWizardPageOuterType : public EapWizardPage |
|
47 { |
|
48 Q_OBJECT |
|
49 public: |
|
50 explicit EapWizardPageOuterType(EapWizardPrivate* parent); |
|
51 ~EapWizardPageOuterType(); |
|
52 |
|
53 public: // From WizardPage |
|
54 HbWidget* initializePage(); |
|
55 int nextId() const; |
|
56 bool showPage(); |
|
57 |
|
58 signals: |
|
59 |
|
60 public slots: |
|
61 |
|
62 protected: |
|
63 |
|
64 protected slots: |
|
65 |
|
66 private: |
|
67 Q_DISABLE_COPY(EapWizardPageOuterType) |
|
68 void appendToList( |
|
69 QStringList &items, |
|
70 int pluginHandle ); |
|
71 |
|
72 int nextIdForEapFast() const; |
|
73 |
|
74 private slots: |
|
75 void itemSelected(int index); |
|
76 void loadDocmlSection(Qt::Orientation orientation); |
|
77 |
|
78 private: // data |
|
79 // NOT OWNED |
|
80 //! Visualization of the page |
|
81 HbWidget *mWidget; |
|
82 //! List of outer types |
|
83 HbRadioButtonList *mRadio; |
|
84 //! Title for radio button list |
|
85 HbLabel *mTitle; |
|
86 |
|
87 // OWNED |
|
88 //! Document loader for docml |
|
89 QScopedPointer<HbDocumentLoader> mDocumentLoader; |
|
90 //! Is page content valid? |
|
91 bool mValid; |
|
92 //! Mapped from index (0..n) in radiobuttonlist to eap types |
|
93 QList<int> mEapTypes; |
|
94 }; |
|
95 |
|
96 /*! @} */ |
|
97 |
|
98 #endif |
|