|
1 /* |
|
2 * Copyright (c) 2007 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: Access point item declearation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CIPSSETUIITEMACCESSPOINT_H |
|
20 #define CIPSSETUIITEMACCESSPOINT_H |
|
21 |
|
22 #include <cdbcols.h> //TCommDbDialogPref |
|
23 #include <iapprefs.h> //TImIAPChoice |
|
24 #include <cmmanager.h> //RCmManager |
|
25 #include <ConnectionUiUtilities.h> //TCuuAlwaysAskResults |
|
26 #include <cmapplicationsettingsui.h> |
|
27 |
|
28 #include "ipssetuiitemlink.h" //CIpsSetUiItemLink |
|
29 #include "ipssetutilsconsts.h" //TIpsSetUiSettingsType |
|
30 |
|
31 /** |
|
32 * |
|
33 * @lib IpsSosSettings.lib |
|
34 * @since FS v1.0 |
|
35 */ |
|
36 class CIpsSetUiItemAccessPoint : public CIpsSetUiItemLink |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Creates object from CIpsSetUiItem and leaves it to cleanup stack |
|
42 * @return, Constructed object |
|
43 */ |
|
44 static CIpsSetUiItemAccessPoint* NewLC(); |
|
45 |
|
46 /** |
|
47 * Create object from CIpsSetUiItem |
|
48 * @return, Constructed object |
|
49 */ |
|
50 static CIpsSetUiItemAccessPoint* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 virtual ~CIpsSetUiItemAccessPoint(); |
|
56 |
|
57 public: // Operators |
|
58 |
|
59 /** |
|
60 * @param aApItem Copies the contents of the item. |
|
61 */ |
|
62 CIpsSetUiItemAccessPoint& operator=( const CIpsSetUiItemAccessPoint& aApItem ); |
|
63 |
|
64 /** |
|
65 * Mother of all access point handling. |
|
66 * |
|
67 * @return result of the editing the access point. |
|
68 */ |
|
69 TInt LaunchL(); |
|
70 |
|
71 /** |
|
72 * @param aIapChoice Iap settings used for initialization. |
|
73 */ |
|
74 void InitL( const TImIAPChoice& aIapChoice ); |
|
75 |
|
76 /** |
|
77 * Updates the setting item text |
|
78 */ |
|
79 void UpdateL(); |
|
80 |
|
81 /** |
|
82 * Get the access point ID |
|
83 */ |
|
84 TUint32 GetIapIdL(); |
|
85 |
|
86 /** |
|
87 * Returns the name of the specified access point |
|
88 * |
|
89 * @return HBufC* Access point name |
|
90 */ |
|
91 HBufC* AccessPointNameLC( TInt aIndex ); |
|
92 |
|
93 protected: // Constructors |
|
94 |
|
95 /** |
|
96 * Default constructor for classCIpsSetUiItem |
|
97 * |
|
98 * @return Constructed object |
|
99 */ |
|
100 CIpsSetUiItemAccessPoint(); |
|
101 |
|
102 /** |
|
103 * Symbian 2-phase constructor |
|
104 */ |
|
105 void ConstructL(); |
|
106 |
|
107 private: // New Functions |
|
108 |
|
109 /** |
|
110 * Launches the access point page using networking services. |
|
111 * |
|
112 * @param aWapId Output parameter to selected Wap ID. |
|
113 * @param aBeaerFilter Filter for supported bearers. |
|
114 * @return KErrNone for no errors. |
|
115 */ |
|
116 TInt LaunchIapPageL( TUint32& aIapId ); |
|
117 |
|
118 /** |
|
119 * Launches always ask page using networking services. |
|
120 * |
|
121 * @param aAlwaysAsk Always ask selection. |
|
122 * @return KErrNone for no errors. |
|
123 */ |
|
124 TInt LaunchAlwaysAskPageL( TCuuAlwaysAskResults& aAlwaysAsk ); |
|
125 |
|
126 /** |
|
127 * Initializes Comms Database. |
|
128 * |
|
129 * @param aBearerFilter Filter for supported bearers. |
|
130 */ |
|
131 void InitializeL( const TInt aBearerFilter ); |
|
132 |
|
133 /** |
|
134 * Returns Wap index based on its Id. |
|
135 * |
|
136 * @return Index of the wap. |
|
137 */ |
|
138 void InitializeSelectionL(); |
|
139 |
|
140 /** |
|
141 * Returns Wap index based on its Id. |
|
142 * |
|
143 * @return Index of the wap. |
|
144 */ |
|
145 HBufC* AccessPointNameLC(); |
|
146 |
|
147 public: // Data |
|
148 |
|
149 /** |
|
150 * Type of current access point |
|
151 */ |
|
152 TCuuAlwaysAskResults iIapType; |
|
153 |
|
154 /** |
|
155 * Connection method manager |
|
156 */ |
|
157 RCmManager iCommMethodManager; |
|
158 |
|
159 /** |
|
160 * Slot to store the preferences |
|
161 */ |
|
162 TCommDbDialogPref iIapPref; |
|
163 |
|
164 /** |
|
165 * Slot to store the IAP Id |
|
166 */ |
|
167 TUint32 iIapId; |
|
168 |
|
169 /** |
|
170 * Another list. |
|
171 * Owned. |
|
172 */ |
|
173 RArray<TUint32> iIapList; |
|
174 }; |
|
175 |
|
176 #endif /* CIPSSETUIITEMACCESSPOINT_H */ |
|
177 |
|
178 // End of File |