|
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 EAP MsChapv2 UI setting dialog |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 16 % |
|
20 */ |
|
21 |
|
22 #ifndef _EAPMSCHAPV2UIVIEW_H_ |
|
23 #define _EAPMSCHAPV2UIVIEW_H_ |
|
24 |
|
25 // INCLUDES |
|
26 #include <AknDialog.h> |
|
27 #include <eikspane.h> |
|
28 #include <akntitle.h> |
|
29 #include <aknsettingitemlist.h> |
|
30 #include <aknnavi.h> |
|
31 #include <eiklbo.h> |
|
32 #include "EapMschapv2Ui.hrh" |
|
33 |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CAknSettingStyleListBox; |
|
37 class CSettingsListBoxItemDrawer; |
|
38 class CEapMsChapV2SettingItemArray; |
|
39 class CEapMsChapV2UiConnection; |
|
40 class CEapMsChapV2UiMsChapV2Data; |
|
41 class CEapMsChapV2UiDataConnection; |
|
42 |
|
43 |
|
44 // CLASS DECLARATION |
|
45 |
|
46 /** |
|
47 * Settings dialog class definition |
|
48 */ |
|
49 class CEapMsChapV2UiDialog : public CAknDialog, |
|
50 public MEikListBoxObserver |
|
51 { |
|
52 public: |
|
53 CEapMsChapV2UiDialog( CEapMsChapV2UiConnection* aConnection, |
|
54 TInt& aButtonId ); |
|
55 |
|
56 ~CEapMsChapV2UiDialog(); |
|
57 |
|
58 /** |
|
59 * Create and launch dialog. |
|
60 * @param aResourceId The resource ID of the dialog to load. |
|
61 * @return The ID of the button that closed the dialog |
|
62 */ |
|
63 TInt ConstructAndRunLD( TInt aResourceId ); |
|
64 |
|
65 |
|
66 public: // From MEikListBoxObserver |
|
67 |
|
68 /** |
|
69 * Handles list box events. |
|
70 * @param aListBox The originating list box. |
|
71 * @param aEventType A code for the event. |
|
72 */ |
|
73 void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType ); |
|
74 |
|
75 |
|
76 protected: |
|
77 void PreLayoutDynInitL(); |
|
78 TBool OkToExitL( TInt aButtonId ); |
|
79 |
|
80 private: |
|
81 void InitializeSettingsL(); |
|
82 void DrawSettingsListL(); |
|
83 void ChangeTitleL( TBool aIsStarted ); |
|
84 void ShowSettingPageL( TInt aCalledFromMenu ); |
|
85 void ProcessCommandL( TInt aCommand ); |
|
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 private: |
|
97 CEapMsChapV2UiConnection* iConnection; |
|
98 CEapMsChapV2UiMsChapV2Data* iUiData; |
|
99 CEapMsChapV2UiDataConnection* iDataConnection; |
|
100 CEapMsChapV2SettingItemArray* iSettingArray; |
|
101 CAknSettingStyleListBox* iSettingListBox; |
|
102 CSettingsListBoxItemDrawer* iSettingListItemDrawer; |
|
103 TBool iPassPrompt; |
|
104 CAknNavigationControlContainer* iNaviPane; |
|
105 CAknNavigationDecorator* iNaviDecorator; |
|
106 HBufC* iPreviousText; |
|
107 TInt* iButtonId; |
|
108 |
|
109 // Tells the status of UI construction. TRUE if UI construction is completed. |
|
110 TBool iIsUIConstructionCompleted; |
|
111 }; |
|
112 |
|
113 |
|
114 #endif //_EAPMSCHAPV2UIVIEW_H_ |
|
115 |
|
116 // End of File |