|
1 /* |
|
2 * Copyright (c) 2002-2006 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: Implementation of iap |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef HssScanHandler_H |
|
20 #define HssScanHandler_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "hssmgmtcommon.h" |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class CWlanMgmtClient; |
|
28 class CWlanScanInfo; |
|
29 class HssScanList; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * @brief IAP settings handler |
|
34 */ |
|
35 class CHssScanHandler : public CBase |
|
36 { |
|
37 public: // Methods |
|
38 |
|
39 // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Static constructor. |
|
43 * @return Pointer to the constructed object. |
|
44 */ |
|
45 static CHssScanHandler* NewL( ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CHssScanHandler(); |
|
51 |
|
52 /** |
|
53 * Issues a GetScanResults to wlan engine |
|
54 * @param aResults, HSS scan list |
|
55 * @return KErrNone if successful, |
|
56 * otherwise one of system wide errorcodes. |
|
57 */ |
|
58 TInt ScanRequest( HssScanList& aResults ); |
|
59 |
|
60 /** |
|
61 * Get the BSSID of the currently connected AP. |
|
62 * @param aBssId, MAC address of a connection |
|
63 * @return KErrNone if successful, |
|
64 * otherwise one of system wide error codes. |
|
65 */ |
|
66 TInt GetConnectionBssid( THssBssid& aBssId ); |
|
67 |
|
68 /** |
|
69 * Add an SSID list to the given IAP. |
|
70 * @param aIapId, IAP ID given. |
|
71 * @param aSsidList, SSID list to add to the IAP. |
|
72 * @return KErrNone if successful, |
|
73 * otherwise one of the other system-wide error codes. |
|
74 */ |
|
75 TInt AddIapSsidList( |
|
76 TUint aIapId, |
|
77 const CArrayFixFlat<THssSsid>& aSsidList ); |
|
78 |
|
79 protected: |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 */ |
|
84 CHssScanHandler(); |
|
85 |
|
86 /** |
|
87 * By default Symbian 2nd phase constructor is private. |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 private: |
|
92 |
|
93 |
|
94 private: // Data |
|
95 |
|
96 /** |
|
97 * wlan management client instance |
|
98 * Own |
|
99 */ |
|
100 CWlanMgmtClient* iMgmtClient; |
|
101 |
|
102 /** |
|
103 * pointer to scaninfo. |
|
104 * own |
|
105 */ |
|
106 CWlanScanInfo* iScanInfo; |
|
107 |
|
108 |
|
109 }; |
|
110 |
|
111 |
|
112 #endif |