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