64
|
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 |
* @param aIapPrefs full Iap data used for initialization.
|
|
78 |
*/
|
|
79 |
void InitL( const CImIAPPreferences* aIapPrefs );
|
|
80 |
|
|
81 |
/**
|
|
82 |
* Updates the setting item text
|
|
83 |
*/
|
|
84 |
void UpdateL();
|
|
85 |
|
|
86 |
/**
|
|
87 |
* Get the access point ID
|
|
88 |
*/
|
|
89 |
TUint32 GetIapIdL();
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Get the access point choice (ID & preference)
|
|
93 |
*/
|
|
94 |
TImIAPChoice GetIapChoice();
|
|
95 |
|
|
96 |
/**
|
|
97 |
* Creates/updates and returns extended Iap preferences
|
|
98 |
*/
|
|
99 |
CImIAPPreferences& GetExtendedIapPreferencesL();
|
|
100 |
|
|
101 |
/**
|
|
102 |
* Get the selection setting i.e. EDestination
|
|
103 |
*/
|
|
104 |
TCmSettingSelection GetIapSelection();
|
|
105 |
|
|
106 |
/**
|
|
107 |
* Returns the name of the specified access point
|
|
108 |
*
|
|
109 |
* @return HBufC* Access point name
|
|
110 |
*/
|
|
111 |
HBufC* AccessPointNameLC( TInt aIndex );
|
|
112 |
|
|
113 |
/**
|
|
114 |
* Returns Wap index based on its Id.
|
|
115 |
*
|
|
116 |
* @return Index of the wap.
|
|
117 |
*/
|
|
118 |
void InitializeSelectionL();
|
|
119 |
|
|
120 |
protected: // Constructors
|
|
121 |
|
|
122 |
/**
|
|
123 |
* Default constructor for classCIpsSetUiItem
|
|
124 |
*
|
|
125 |
* @return Constructed object
|
|
126 |
*/
|
|
127 |
CIpsSetUiItemAccessPoint();
|
|
128 |
|
|
129 |
/**
|
|
130 |
* Symbian 2-phase constructor
|
|
131 |
*/
|
|
132 |
void ConstructL();
|
|
133 |
|
|
134 |
private: // New Functions
|
|
135 |
|
|
136 |
/**
|
|
137 |
* Launches the access point page using networking services.
|
|
138 |
*
|
|
139 |
* @param aWapId Output parameter to selected Wap ID.
|
|
140 |
* @param aBeaerFilter Filter for supported bearers.
|
|
141 |
* @return KErrNone for no errors.
|
|
142 |
*/
|
|
143 |
TInt LaunchIapPageL( TUint32& aIapId );
|
|
144 |
|
|
145 |
/**
|
|
146 |
* Launches always ask page using networking services.
|
|
147 |
*
|
|
148 |
* @param aAlwaysAsk Always ask selection.
|
|
149 |
* @return KErrNone for no errors.
|
|
150 |
*/
|
|
151 |
TInt LaunchAlwaysAskPageL( TCuuAlwaysAskResults& aAlwaysAsk );
|
|
152 |
|
|
153 |
/**
|
|
154 |
* Initializes Comms Database.
|
|
155 |
*
|
|
156 |
* @param aBearerFilter Filter for supported bearers.
|
|
157 |
*/
|
|
158 |
void InitializeL( const TInt aBearerFilter );
|
|
159 |
|
|
160 |
/**
|
|
161 |
* Returns Wap index based on its Id.
|
|
162 |
*
|
|
163 |
* @return Index of the wap.
|
|
164 |
*/
|
|
165 |
HBufC* AccessPointNameLC();
|
|
166 |
|
|
167 |
public: // Data
|
|
168 |
|
|
169 |
/**
|
|
170 |
* Type of current access point
|
|
171 |
*/
|
|
172 |
TCuuAlwaysAskResults iIapType;
|
|
173 |
|
|
174 |
/**
|
|
175 |
* Connection method manager
|
|
176 |
*/
|
|
177 |
RCmManager iCommMethodManager;
|
|
178 |
|
|
179 |
/**
|
|
180 |
* Slot to store the preferences
|
|
181 |
*/
|
|
182 |
TCommDbDialogPref iIapPref;
|
|
183 |
|
|
184 |
/**
|
|
185 |
* Slot to store the IAP Id
|
|
186 |
*/
|
|
187 |
TUint32 iIapId;
|
|
188 |
|
|
189 |
/**
|
|
190 |
* Another list.
|
|
191 |
* Owned.
|
|
192 |
*/
|
|
193 |
RArray<TUint32> iIapList;
|
|
194 |
|
|
195 |
private:
|
|
196 |
/**
|
|
197 |
* Method or Destination
|
|
198 |
*/
|
|
199 |
TCmSettingSelection iIapSel;
|
|
200 |
|
|
201 |
/**
|
|
202 |
* Added for exporting iap data as CImIAPPreferences object
|
|
203 |
*/
|
|
204 |
CImIAPPreferences* iFullIapPrefs;
|
|
205 |
|
|
206 |
};
|
|
207 |
|
|
208 |
#endif /* CIPSSETUIITEMACCESSPOINT_H */
|
|
209 |
|
|
210 |
// End of File
|