|
1 /* |
|
2 * Copyright (c) 2002 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: Setting item list class for Network setting list view.* |
|
15 */ |
|
16 |
|
17 |
|
18 // Version : %version: 4 % |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef MPSETTINGSNETWORKSETTINGITEMLIST_H |
|
24 #define MPSETTINGSNETWORKSETTINGITEMLIST_H |
|
25 |
|
26 // INCLUDES |
|
27 #include <aknsettingitemlist.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMPSettingsModelForROP; |
|
31 |
|
32 // CONSTANTS |
|
33 const TInt KMaxApNameLength = 255; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * CMPSettingsNetworkSettingItemList |
|
39 * Setting item list class for Network setting list view. |
|
40 * |
|
41 * @lib MediaSettings.app |
|
42 * @since 2.0 |
|
43 */ |
|
44 class CMPSettingsNetworkSettingItemList : public CAknSettingItemList |
|
45 { |
|
46 public: // Constructors and destructor |
|
47 |
|
48 /** |
|
49 * C++ default constructor. |
|
50 */ |
|
51 CMPSettingsNetworkSettingItemList(CMPSettingsModelForROP* aModel); |
|
52 |
|
53 /** |
|
54 * 2nd-stage construction from resource id, replaces non-virtual base |
|
55 * class function. |
|
56 */ |
|
57 void ConstructFromResourceL(TInt aResourceId); |
|
58 |
|
59 /** |
|
60 * From CCoeControl, 2nd-stage construction from constructed resource reader |
|
61 */ |
|
62 void ConstructFromResourceL(TResourceReader& aReader); |
|
63 |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 virtual ~CMPSettingsNetworkSettingItemList(); |
|
68 |
|
69 public: // Functions from base classes |
|
70 |
|
71 /** |
|
72 * From CAknSettingItemList |
|
73 * @param aIndex Current item's (Visible) index in the list |
|
74 * @param aCalledFromMenu True if function was called from Options menu. |
|
75 */ |
|
76 void EditItemL(TInt aIndex, TBool aCalledFromMenu); |
|
77 |
|
78 protected: // Functions from base classes |
|
79 |
|
80 /** |
|
81 * From CAknSettingItemList |
|
82 * Framework method to create a setting item based upon the user id aSettingId. The |
|
83 * client code decides what type to contruct. new (ELeave) must then be used and the resulting |
|
84 * pointer returned. Ownership is thereafter base class's responsiblity. |
|
85 * |
|
86 * @param aSettingId ID to use to determine the type of the setting item |
|
87 * @return a constructed (not 2nd-stage constructed) setting item. |
|
88 */ |
|
89 CAknSettingItem* CreateSettingItemL(TInt aSettingId); |
|
90 |
|
91 private: //New |
|
92 |
|
93 /** |
|
94 * Loads all setting values. |
|
95 * @since 2.0 |
|
96 */ |
|
97 void LoadAllL(); |
|
98 |
|
99 /** |
|
100 * Loads a specific setting value. |
|
101 * @since 2.0 |
|
102 * @param aSettingId ID of the setting to be loaded. |
|
103 */ |
|
104 void LoadSettingL(TInt aSettingId); |
|
105 |
|
106 /** |
|
107 * Stores a specific setting value. |
|
108 * @since 2.0 |
|
109 * @param aSettingId ID of the setting to be stored. |
|
110 */ |
|
111 void StoreSettingL(TInt aSettingId); |
|
112 |
|
113 /** |
|
114 * Launches the platform dialog for the connection selection. |
|
115 * |
|
116 */ |
|
117 void LaunchConnectionSelectionL(); |
|
118 |
|
119 /** |
|
120 * Updates currently selected connection's name to setting item. |
|
121 */ |
|
122 void UpdateSelectedConnectionNameL(); |
|
123 |
|
124 private: // From MEikListBoxObserver |
|
125 |
|
126 /** |
|
127 * Event handling section |
|
128 */ |
|
129 void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aListBoxEvent ); |
|
130 |
|
131 private: |
|
132 CMPSettingsModelForROP* iModel; |
|
133 |
|
134 TInt iBandwUsage; |
|
135 TInt iConnTimeout; |
|
136 TInt iSrvTimeout; |
|
137 TUint32 iDefaultAP; |
|
138 TInt iMinUDPPort; |
|
139 TInt iMaxUDPPort; |
|
140 |
|
141 TBuf<KMaxApNameLength> iSelectedApName; |
|
142 CAknTextSettingItem* iSettingConnectionItem; |
|
143 }; |
|
144 |
|
145 #endif // MPSETTINGSNETWORKSETTINGITEMLIST_H |
|
146 |
|
147 // End of File |