equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 * Description: Main server |
14 * Description: Main server |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 49 % |
19 * %version: 52 % |
20 */ |
20 */ |
21 |
21 |
22 #ifndef WLMSERVER_H |
22 #ifndef WLMSERVER_H |
23 #define WLMSERVER_H |
23 #define WLMSERVER_H |
24 |
24 |
37 #include "wlanconversionutil.h" |
37 #include "wlanconversionutil.h" |
38 #include "wlancontrolinterface.h" |
38 #include "wlancontrolinterface.h" |
39 #include "wlaneapolinterface.h" |
39 #include "wlaneapolinterface.h" |
40 #include "wlaneapolclient.h" |
40 #include "wlaneapolclient.h" |
41 #include "wlangenericplugin.h" |
41 #include "wlangenericplugin.h" |
42 #include "wlantimerservices.h" |
|
43 #include "wlancbwaiter.h" |
|
44 |
42 |
45 class CWlmDriverIf; |
43 class CWlmDriverIf; |
46 class CWlanSsidListDb; |
44 class CWlanSsidListDb; |
|
45 class CWlanTimerServices; |
47 |
46 |
48 /** |
47 /** |
49 * Command Ids to be used un the asynchronous core service requests |
48 * Command Ids to be used un the asynchronous core service requests |
50 * External commands coming from clients get request id that is > KWlanExtCmdBase |
49 * External commands coming from clients get request id that is > KWlanExtCmdBase |
51 * Values 0-KWlanExtCmdBase are reserved for internal usage. |
50 * Values 0-KWlanExtCmdBase are reserved for internal usage. |
178 TBool aAvailability, |
177 TBool aAvailability, |
179 TBool aNewNetworksDetected = EFalse, |
178 TBool aNewNetworksDetected = EFalse, |
180 TBool aOldNetworksLost = EFalse ); |
179 TBool aOldNetworksLost = EFalse ); |
181 |
180 |
182 /** |
181 /** |
183 * Callback function to receive notification about closed |
|
184 * Broken Power Save Note dialog. |
|
185 * @param aThisPtr Pointer to the server instance. |
|
186 * @return error code |
|
187 */ |
|
188 static TInt HandleBrokenPowerSaveNoteClosed( |
|
189 TAny *aThisPtr ); |
|
190 |
|
191 /** |
|
192 * Notify changed PSM server mode |
182 * Notify changed PSM server mode |
193 * |
183 * |
194 * @since Series 60 5.2 |
184 * @since Series 60 5.2 |
195 * @param aSessionId ID identifying the session. |
185 * @param aSessionId ID identifying the session. |
196 * @param aMessage containing the service request |
186 * @param aMessage containing the service request |
760 * @since Series 60 3.2 |
750 * @since Series 60 3.2 |
761 * @param aSessionId ID identifying the session. |
751 * @param aSessionId ID identifying the session. |
762 * @param aMessage containing the service request |
752 * @param aMessage containing the service request |
763 */ |
753 */ |
764 void CancelDirectedRoam( |
754 void CancelDirectedRoam( |
|
755 TUint aSessionId, |
|
756 const RMessage2& aMessage ); |
|
757 |
|
758 /** |
|
759 * StartAggressiveBgScan |
|
760 * Sets WLAN background scanning into more aggressive mode for a while. |
|
761 * |
|
762 * @since S60 v5.2 |
|
763 * @param aSessionId ID identifying the session. |
|
764 * @param aMessage Message containing the respective command. |
|
765 */ |
|
766 void StartAggressiveBgScan( |
765 TUint aSessionId, |
767 TUint aSessionId, |
766 const RMessage2& aMessage ); |
768 const RMessage2& aMessage ); |
767 |
769 |
768 /** |
770 /** |
769 * From MWlmPlatformCallback |
771 * From MWlmPlatformCallback |
1148 * filled (i.e. IAP ID field to be filled for the structure). |
1150 * filled (i.e. IAP ID field to be filled for the structure). |
1149 */ |
1151 */ |
1150 TInt GetCurrentIapId( |
1152 TInt GetCurrentIapId( |
1151 const TUint aLanServiceId, |
1153 const TUint aLanServiceId, |
1152 core_iap_data_s& aCoreIapData ); |
1154 core_iap_data_s& aCoreIapData ); |
|
1155 |
|
1156 /** |
|
1157 * Store region and timestamp to CenRep. |
|
1158 * |
|
1159 * @param aRegion Specifies a region to be stored. |
|
1160 * @param aTimestamp Specifies a timestamp to be stored. |
|
1161 */ |
|
1162 void StoreRegionAndTimestamp( const TInt aRegion, const TInt aTimestamp ); |
|
1163 |
|
1164 /** |
|
1165 * Publish WLAN background scan interval. |
|
1166 * |
|
1167 * @see MWlanScanResultProvider |
|
1168 * @param aInterval WLAN BG scan interval in seconds. |
|
1169 */ |
|
1170 void PublishBgScanInterval( TUint32& aInterval ); |
1153 |
1171 |
1154 private: // Data |
1172 private: // Data |
1155 |
1173 |
1156 /** |
1174 /** |
1157 * Pointer to core server |
1175 * Pointer to core server |
1314 * Storage for SSID lists. |
1332 * Storage for SSID lists. |
1315 */ |
1333 */ |
1316 CWlanSsidListDb* iSsidListDb; |
1334 CWlanSsidListDb* iSsidListDb; |
1317 |
1335 |
1318 /** |
1336 /** |
1319 * Whether to show Broken Power Save Note. |
|
1320 */ |
|
1321 TBool iShowBrokenPowerSaveNote; |
|
1322 |
|
1323 /** |
|
1324 * Active object handling the Broken Power Save Notifier. |
|
1325 */ |
|
1326 CWlanCbWaiter* iBrokenPowerSaveNotifierWaiter; |
|
1327 |
|
1328 /** |
|
1329 * Notifier for displaying Broken Power Save Note dialog. |
|
1330 */ |
|
1331 RNotifier iBrokenPowerSaveNotifier; |
|
1332 |
|
1333 /** |
|
1334 * Reply from Broken Power Save Notifier. |
|
1335 */ |
|
1336 TPckgBuf<TBool> iBrokenPowerSaveNotifierReply; |
|
1337 |
|
1338 /** |
|
1339 * Background scan provider. |
1337 * Background scan provider. |
1340 */ |
1338 */ |
1341 MWlanBgScanProvider* iBgScanProvider; |
1339 MWlanBgScanProvider* iBgScanProvider; |
1342 |
1340 |
1343 /** |
1341 /** |
1347 |
1345 |
1348 /** |
1346 /** |
1349 * Timer services. |
1347 * Timer services. |
1350 */ |
1348 */ |
1351 CWlanTimerServices* iTimerServices; |
1349 CWlanTimerServices* iTimerServices; |
1352 |
1350 |
|
1351 /** |
|
1352 * Flag indicating whether aggressive scanning has to be performed |
|
1353 * after link loss. |
|
1354 */ |
|
1355 TBool iAggressiveScanningAfterLinkLoss; |
1353 }; |
1356 }; |
1354 |
1357 |
1355 |
1358 |
1356 #include "wlmserver.inl" |
1359 #include "wlmserver.inl" |
1357 |
1360 |