|
1 /* |
|
2 * Copyright (c) 2002-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 the License "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: Declaration of the WlanWsaScan class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 10 % |
|
20 */ |
|
21 |
|
22 #ifndef WLANWSASCAN_H |
|
23 #define WLANWSASCAN_H |
|
24 |
|
25 #include "UmacWsaCommand.h" |
|
26 |
|
27 /** |
|
28 * Encapsulates the execution of Scan WHA command. |
|
29 * |
|
30 * @lib wlanumac.lib |
|
31 * @since S60 v3.1 |
|
32 */ |
|
33 class WlanWsaScan : public WlanWsaCommand |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * C++ default constructor. |
|
40 */ |
|
41 WlanWsaScan() : |
|
42 iMaxTransmitRate( static_cast<WHA::TRate>(0)), |
|
43 iBand( static_cast<WHA::TBand>(0)), |
|
44 iNumOfChannels( 0 ), |
|
45 iChannels( NULL ), |
|
46 iScanType( static_cast<WHA::TScanType>(0)), |
|
47 iNumOfProbeRequests( 0 ), |
|
48 iSplitScan( EFalse ), |
|
49 iNumOfSSID( 0 ), |
|
50 iSsid( NULL ) |
|
51 {}; |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~WlanWsaScan(); |
|
57 |
|
58 void Set( |
|
59 WlanContextImpl& aCtxImpl, |
|
60 TUint32 aMaxTransmitRate, |
|
61 WHA::TBand aBand, |
|
62 TUint8 aNumOfChannels, |
|
63 const WHA::SChannels* aChannels, |
|
64 WHA::TScanType aScanType, |
|
65 TUint8 aNumOfProbeRequests, |
|
66 TBool aSplitScan, |
|
67 TUint8 aNumOfSSID, |
|
68 const WHA::SSSID* aSSID ); |
|
69 |
|
70 private: |
|
71 |
|
72 virtual void Entry( WlanContextImpl& aCtxImpl ); |
|
73 #ifndef NDEBUG |
|
74 virtual const TInt8* GetStateName( TUint8& aLength ) const; |
|
75 #endif // !NDEBUG |
|
76 |
|
77 virtual void CommandResponse( |
|
78 WlanContextImpl& aCtxImpl, |
|
79 WHA::TCommandId aCommandId, |
|
80 WHA::TStatus aStatus, |
|
81 const WHA::UCommandResponseParams& aCommandResponseParams ); |
|
82 |
|
83 // Prohibit copy constructor. |
|
84 WlanWsaScan( const WlanWsaScan& ); |
|
85 // Prohibit assigment operator. |
|
86 WlanWsaScan& operator= ( const WlanWsaScan& ); |
|
87 |
|
88 private: // Data |
|
89 |
|
90 #ifndef NDEBUG |
|
91 static const TInt8 iName[]; |
|
92 #endif |
|
93 |
|
94 WHA::TRate iMaxTransmitRate; |
|
95 WHA::TBand iBand; |
|
96 TUint8 iNumOfChannels; |
|
97 /** |
|
98 * channels to scan |
|
99 * Not own |
|
100 */ |
|
101 const WHA::SChannels* iChannels; |
|
102 WHA::TScanType iScanType; |
|
103 TUint8 iNumOfProbeRequests; |
|
104 TBool iSplitScan; |
|
105 TUint8 iNumOfSSID; |
|
106 /** |
|
107 * SSID to scan |
|
108 * Not own |
|
109 */ |
|
110 const WHA::SSSID* iSsid; |
|
111 }; |
|
112 |
|
113 #endif // WLANWSASCAN_H |