|
1 /* |
|
2 * Copyright (c) 2001-2009 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 the License "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: Header file of PAP UI setting dialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _PAPUIVIEW_H_ |
|
21 #define _PAPUIVIEW_H_ |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknDialog.h> // AVKON components |
|
25 #include <eikspane.h> // For changing status pane |
|
26 #include <akntitle.h> |
|
27 #include <aknnavi.h> |
|
28 #include <aknsettingitemlist.h> |
|
29 #include <aknlists.h> |
|
30 #include <aknselectionlist.h> |
|
31 #include <eiklbo.h> |
|
32 #include "papui.hrh" |
|
33 #include <EapTlsPeapUiConnection.h> |
|
34 #include <EapTlsPeapUiDataConnection.h> |
|
35 #include <EapTlsPeapUiTlsPeapData.h> |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 class CAknSettingStyleListBox; |
|
39 class CSettingsListBoxItemDrawer; |
|
40 class CPapSettingItemArray; |
|
41 |
|
42 |
|
43 // CLASS DECLARATION |
|
44 |
|
45 /** |
|
46 * Settings dialog class definition |
|
47 */ |
|
48 class CPapUiDialog : public CAknDialog, |
|
49 public MEikListBoxObserver |
|
50 { |
|
51 public: |
|
52 CPapUiDialog( CEapTlsPeapUiConnection* aConnection, |
|
53 TInt& aButtonId ); |
|
54 |
|
55 ~CPapUiDialog(); |
|
56 |
|
57 /** |
|
58 * Create and launch dialog. |
|
59 * @param aResourceId The resource ID of the dialog to load. |
|
60 * @return The ID of the button that closed the dialog |
|
61 */ |
|
62 TInt ConstructAndRunLD( TInt aResourceId ); |
|
63 |
|
64 |
|
65 public: // From MEikListBoxObserver |
|
66 |
|
67 /** |
|
68 * Handles list box events. |
|
69 * @param aListBox The originating list box. |
|
70 * @param aEventType A code for the event. |
|
71 */ |
|
72 void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType ); |
|
73 |
|
74 |
|
75 protected: |
|
76 void PreLayoutDynInitL(); |
|
77 TBool OkToExitL( TInt aButtonId ); |
|
78 void ProcessCommandL( TInt aCommand ); |
|
79 |
|
80 private: |
|
81 void ChangeTitleL( TBool aIsStarted ); |
|
82 void DrawSettingsListL(); |
|
83 void ShowSettingPageL( TInt aCalledFromMenu ); |
|
84 void ShowUsernameSettingPageL(); |
|
85 void ShowPasswordSettingPageL(); |
|
86 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
87 |
|
88 /** |
|
89 * Initialize menu pane. |
|
90 * @param aResourceId Menu pane resource id. |
|
91 * @param CEikMenuPane Menu pane. |
|
92 */ |
|
93 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
94 |
|
95 /** |
|
96 * Copy the setting data to the eapol db data pointer. |
|
97 */ |
|
98 void UpdateEapolData(); |
|
99 |
|
100 |
|
101 private: |
|
102 CEapTlsPeapUiConnection* iConnection; |
|
103 CEapTlsPeapUiDataConnection* iDataConnection; |
|
104 CEapTlsPeapUiTlsPeapData* iUiData; |
|
105 CPapSettingItemArray* iSettingArray; |
|
106 CAknSettingStyleListBox* iSettingListBox; |
|
107 CAknNavigationControlContainer* iNaviPane; |
|
108 CAknNavigationDecorator* iNaviDecorator; |
|
109 HBufC* iPreviousText; |
|
110 TInt* iButtonId; |
|
111 |
|
112 // Temporary UI data as shown on the Settings UI |
|
113 TBuf<KPapUsernameMaxLength> iSettingUsername; |
|
114 TBool iSettingPwPrompt; |
|
115 TBuf<KPapPasswordMaxLength> iSettingPassword; |
|
116 |
|
117 |
|
118 // Tells the status of UI construction. TRUE if UI construction is completed. |
|
119 TBool iIsUIConstructionCompleted; |
|
120 |
|
121 TBool iUsernameCancelled; |
|
122 }; |
|
123 |
|
124 |
|
125 #endif // _PAPUIVIEW_H_ |
|
126 |
|
127 // End of File |