|
1 /* |
|
2 * Copyright (c) 2005 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: The item list of profile setting view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SIP_SETT_LIST_SIP_PROF_SET_ITEM_LIST_H |
|
20 #define SIP_SETT_LIST_SIP_PROF_SET_ITEM_LIST_H |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include <aknsettingitemlist.h> |
|
25 #include "tsipsettingsdata.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 class CSIPSettListSIPProfSetModel; |
|
30 class CAknTitlePane; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CSIPSettListSIPProfSetItemList itemlist class |
|
36 * @since 3.0 |
|
37 * itemlist class for SIP Profile settings view |
|
38 */ |
|
39 class CSIPSettListSIPProfSetItemList : public CAknSettingItemList |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * @param aParent Parent control for the item list |
|
46 * @param aModel Model to store/fetch the profile attributes |
|
47 * @param aPane Title pane to modify it, |
|
48 * when service provider name changes |
|
49 */ |
|
50 static CSIPSettListSIPProfSetItemList* NewL( |
|
51 CCoeControl* aParent, CSIPSettListSIPProfSetModel* aModel, |
|
52 CAknTitlePane* aPane ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CSIPSettListSIPProfSetItemList(); |
|
58 |
|
59 public: // Functions from base classes |
|
60 |
|
61 /** |
|
62 * From CAknSettingItemList |
|
63 * Called upon creation |
|
64 * @param TInt ID of the item |
|
65 * @return Pointer to setting item |
|
66 */ |
|
67 CAknSettingItem* CreateSettingItemL( TInt aSettingId ); |
|
68 |
|
69 /** |
|
70 * From MEikListBoxObserver. |
|
71 * Handles the commands coming from the listbox |
|
72 * @param aListBox List box that initiated the event |
|
73 * @param aEventType Type of the event |
|
74 */ |
|
75 void HandleListBoxEventL( CEikListBox* aListBox, |
|
76 TListBoxEvent aEventType ); |
|
77 |
|
78 /** |
|
79 * From CAknSettingItemList |
|
80 * Launches the setting page for the current item |
|
81 * @param aIndex current item's (Visible) index |
|
82 * @param aCalledFromMenu called from menu |
|
83 */ |
|
84 void EditItemL( TInt aIndex, TBool aCalledFromMenu ); |
|
85 |
|
86 /** |
|
87 * From CAknSettingItemList |
|
88 * Maps the current selected Access point index to its UID |
|
89 * and stores the setting value |
|
90 */ |
|
91 void StoreSettingsL(); |
|
92 |
|
93 private: |
|
94 |
|
95 /** |
|
96 * C++ default constructor. |
|
97 * @param aModel Pointer to the model |
|
98 * @param aPane Title pane to modify it, |
|
99 * when service provider name changes |
|
100 * @param aData Reference to the data structure |
|
101 */ |
|
102 CSIPSettListSIPProfSetItemList( |
|
103 CSIPSettListSIPProfSetModel* aModel, |
|
104 CAknTitlePane* aPane, |
|
105 TSIPSettingsData& aData ); |
|
106 |
|
107 /** |
|
108 * By default Symbian 2nd phase constructor is private. |
|
109 */ |
|
110 void ConstructL( CCoeControl* aParent ); |
|
111 |
|
112 /** |
|
113 * Changes current setting item setting to next one. |
|
114 * @param TInt ID of the item |
|
115 */ |
|
116 void SetNextSettingItemL( TInt aSettingId ); |
|
117 |
|
118 protected: // Data |
|
119 |
|
120 // The setting items, this class owns these |
|
121 CAknSettingItem* iProviderName; |
|
122 CAknSettingItem* iServiceProfile; |
|
123 CAknSettingItem* iDefaultDest; |
|
124 CAknSettingItem* iDefaultAP; |
|
125 CAknSettingItem* iUsername; |
|
126 CAknSettingItem* iCompression; |
|
127 CAknSettingItem* iRegistration; |
|
128 CAknSettingItem* iSecurity; |
|
129 CAknSettingItem* iProxyServer; |
|
130 CAknSettingItem* iRegistrarServer; |
|
131 |
|
132 // Pointer to the data model |
|
133 CSIPSettListSIPProfSetModel* iModel; |
|
134 |
|
135 // Pointer to title pane |
|
136 CAknTitlePane* iPane; |
|
137 |
|
138 // Profile data |
|
139 TSIPSettingsData& iProfileData; |
|
140 |
|
141 // Flag to get the modifications to provider name |
|
142 // for updating the title pane |
|
143 TBool iModifyingProviderName; |
|
144 |
|
145 // An index for the destinations list |
|
146 TInt iDestIndex; |
|
147 |
|
148 // An index for the AP list |
|
149 TInt iAPIndex; |
|
150 }; |
|
151 |
|
152 |
|
153 #endif // SIP_SETT_LIST_SIP_PROF_SET_ITEM_LIST_H |
|
154 |
|
155 // End of File |