1 /* |
|
2 * Copyright (c) 2004 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 * Declaration of class CWlanSettingsUiDlg. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef WLAN_SETTINGS_UI_DLG_H |
|
22 #define WLAN_SETTINGS_UI_DLG_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <AknDialog.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 class CWlanSettingsUiSettingItemList; |
|
31 class CWlanSettingsUiModel; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * WLAN settings dialog base. |
|
37 */ |
|
38 NONSHARABLE_CLASS( CWlanSettingsUiDlg ): public CAknDialog |
|
39 { |
|
40 |
|
41 protected: // Constructors |
|
42 |
|
43 /** |
|
44 * Constructor. |
|
45 * @param aModel Data model. |
|
46 */ |
|
47 inline CWlanSettingsUiDlg( CWlanSettingsUiModel* aModel ); |
|
48 |
|
49 public: // New methods |
|
50 |
|
51 /** |
|
52 * Construct and execute the dialog. |
|
53 * @return ETrue if dialog was accepted. |
|
54 */ |
|
55 virtual TInt ExecuteLD(); |
|
56 |
|
57 protected: // From CAknDialog & its base classes |
|
58 |
|
59 /** |
|
60 * Create custom control. |
|
61 * @param aControlType Control type. |
|
62 * @return Control info. |
|
63 */ |
|
64 SEikControlInfo CreateCustomControlL( TInt aControlType ); |
|
65 |
|
66 /** |
|
67 * Process command. |
|
68 * @param aCommandId Command id. |
|
69 */ |
|
70 void ProcessCommandL( TInt aCommandId ); |
|
71 |
|
72 /** |
|
73 * From @c CEikDialog. |
|
74 * |
|
75 * Handles a dialog button press for the specified button. |
|
76 * |
|
77 * This function is invoked when the user presses a button in the |
|
78 * button panel. It is not called if the Cancel button is activated |
|
79 * unless the @c EEikDialogFlagNotifyEsc flag has been set. |
|
80 * |
|
81 * |
|
82 * @param aButtonId The ID of the button that was activated. |
|
83 * @return @c ETrue to validate and exit the dialog, |
|
84 * @c EFalse to keep the dialog active. If @c ETrue, the |
|
85 * dialog will be destroyed automatically by @c ExecuteLD(). |
|
86 * The default implementation returns @c ETrue no matter which |
|
87 * button is pressed. |
|
88 */ |
|
89 TBool OkToExitL(TInt aButtonId); |
|
90 |
|
91 protected: // New methods |
|
92 |
|
93 /** |
|
94 * Get the setting item list inside. |
|
95 */ |
|
96 CWlanSettingsUiSettingItemList& SettingItemList() const; |
|
97 |
|
98 /** |
|
99 * Get menu bar resource id. |
|
100 * @return Menu bar resource id. |
|
101 */ |
|
102 virtual TInt MenuBarResourceId() const = 0; |
|
103 |
|
104 /** |
|
105 * Get dialog resource id. |
|
106 * @return Dialog resource id. |
|
107 */ |
|
108 virtual TInt DialogResourceId() const = 0; |
|
109 |
|
110 /** |
|
111 * Check if Help is supported on the phone or not, querying the |
|
112 * KFeatureIdHelp feature flag. |
|
113 * |
|
114 * @return True If Help is supported, |
|
115 * False If Help is not supported. |
|
116 */ |
|
117 static TBool IsHelpSupported(); |
|
118 |
|
119 protected: // Data |
|
120 |
|
121 CWlanSettingsUiModel* iModel; ///< Data model. |
|
122 |
|
123 }; |
|
124 |
|
125 #include "wlansettingsuidlg.inl" |
|
126 |
|
127 #endif |
|