|
1 /* |
|
2 * Copyright (c) 2006-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: Contains common data structures used by HotSpot management service. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef HSSMGMTCOMMON_H |
|
21 #define HSSMGMTCOMMON_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // LOCAL CONSTANTS |
|
27 // The maximum SSID length. |
|
28 const TUint KHssMaxSsidLength = 32; |
|
29 |
|
30 // The maximum BSSID length. |
|
31 const TUint KHssMaxBssidLength = 6; |
|
32 |
|
33 // DATA TYPES |
|
34 // Data structure for storing the SSID of a HSS network. |
|
35 typedef TBuf8<KHssMaxSsidLength> THssSsid; |
|
36 |
|
37 // Data structure for storing the BSSID of a BSS. |
|
38 typedef TBuf8<KHssMaxBssidLength> THssBssid; |
|
39 |
|
40 // Values for possible HSS connection security modes. |
|
41 enum THssConnectionSecurityMode |
|
42 { |
|
43 // Security mode open, i.e. no security |
|
44 EHssConnectionSecurityOpen, |
|
45 // Security mode WEP |
|
46 EHssConnectionSecurityWep, |
|
47 // Security mode 802d1x |
|
48 EHssConnectionSecurity802d1x, |
|
49 // Security mode WPA |
|
50 EHssConnectionSecurityWpa, |
|
51 // Security mode WPA PSK |
|
52 EHssConnectionSecurityWpaPsk |
|
53 }; |
|
54 |
|
55 // CLASS DECLARATION |
|
56 /** |
|
57 * @brief Callback interface for HotSpot management notifications. |
|
58 * |
|
59 * These virtual methods should be inherited and implemented by the |
|
60 * client wanting to observe HotSpot management events. |
|
61 * |
|
62 * The client has to enable notifications by calling the appropriate |
|
63 * method from the management interface. |
|
64 * @see MHssInterface::ActivateNotificationsL. |
|
65 */ |
|
66 class MHssMgmtNotifications |
|
67 { |
|
68 public: |
|
69 |
|
70 /** |
|
71 * New networks have been detected during scan. |
|
72 * |
|
73 * @param aIapId ID of the IAP. |
|
74 */ |
|
75 virtual void NewNetworksDetected( TUint /*aIapId*/) {}; |
|
76 |
|
77 /** |
|
78 * One or more networks have been lost since the last scan. |
|
79 * |
|
80 * @param aIapId ID of the IAP. |
|
81 */ |
|
82 virtual void OldNetworksLost( TUint /*aIapId*/ ) {}; |
|
83 |
|
84 }; |
|
85 |
|
86 #endif // HSSMGMTCOMMON_H |
|
87 |
|
88 // End of File |