|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * Symbian platform specific implementation of WLAN AP scanning. |
|
16 */ |
|
17 |
|
18 #ifndef WLANQTUTILSSCANAP_SYMBIAN_H |
|
19 #define WLANQTUTILSSCANAP_SYMBIAN_H |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <wlanmgmtclient.h> |
|
24 #include <QString> |
|
25 #include <QSharedPointer> |
|
26 |
|
27 // User includes |
|
28 |
|
29 #include "wlanqtutilsap.h" |
|
30 |
|
31 // Forward declarations |
|
32 |
|
33 class CWlanMgmtClient; |
|
34 class CWlanScanInfo; |
|
35 class WlanQtUtilsScan; |
|
36 |
|
37 // External data types |
|
38 |
|
39 // Constants |
|
40 |
|
41 // Class declaration |
|
42 |
|
43 class WlanQtUtilsScanApPrivate : public CActive |
|
44 { |
|
45 |
|
46 public: |
|
47 |
|
48 // Data types |
|
49 |
|
50 static WlanQtUtilsScanApPrivate *NewL(WlanQtUtilsScan *wrapper); |
|
51 |
|
52 ~WlanQtUtilsScanApPrivate(); |
|
53 |
|
54 void Scan(); |
|
55 |
|
56 void Scan(const QString &ssid); |
|
57 |
|
58 void StopScan(); |
|
59 |
|
60 protected: |
|
61 |
|
62 void RunL(); |
|
63 |
|
64 void DoCancel(); |
|
65 |
|
66 private: |
|
67 |
|
68 explicit WlanQtUtilsScanApPrivate(WlanQtUtilsScan *wrapper); |
|
69 |
|
70 void ConstructL(); |
|
71 |
|
72 void ExtractScanResults( |
|
73 QList< QSharedPointer<WlanQtUtilsAp> > &scanResults); |
|
74 |
|
75 QString ExtractSsid(); |
|
76 |
|
77 QByteArray ExtractBssid(); |
|
78 |
|
79 void StoreSecMode( |
|
80 QSharedPointer<WlanQtUtilsAp> ap, |
|
81 TUint wlanSecMode); |
|
82 |
|
83 private: // data |
|
84 |
|
85 //! Public implementation reference |
|
86 WlanQtUtilsScan *q_ptr; |
|
87 |
|
88 // Owned data |
|
89 |
|
90 //! WLAN Management Client |
|
91 CWlanMgmtClient *mWlanMgmtClient; |
|
92 |
|
93 //! Scanned SSID |
|
94 TWlanSsid mWlanSsid; |
|
95 |
|
96 //! Scan results |
|
97 CWlanScanInfo *mResults; |
|
98 |
|
99 // Not owned data |
|
100 |
|
101 // Friend classes |
|
102 }; |
|
103 |
|
104 #endif // WLANQTUTILSSCANAP_SYMBIAN_H |