|
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 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 WlanWsaJoin class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 10 % |
|
20 */ |
|
21 |
|
22 #ifndef WLANWSAJOIN_H |
|
23 #define WLANWSAJOIN_H |
|
24 |
|
25 #include "UmacWsaCommand.h" |
|
26 |
|
27 class WlanContextImpl; |
|
28 |
|
29 /** |
|
30 * Encapsulates the execution of Join WHA command. |
|
31 * |
|
32 * @lib wlanumac.lib |
|
33 * @since S60 v3.1 |
|
34 */ |
|
35 class WlanWsaJoin : public WlanWsaCommand |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * C++ default constructor. |
|
42 */ |
|
43 WlanWsaJoin(); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~WlanWsaJoin() {}; |
|
49 |
|
50 public: |
|
51 |
|
52 void Set( |
|
53 WlanContextImpl& aCtxImpl, |
|
54 WHA::TOperationMode aMode, |
|
55 WHA::TMacAddress& aBSSID, |
|
56 WHA::TBand aBand, |
|
57 WHA::SSSID& aSSID, |
|
58 WHA::TChannelNumber aChannel, |
|
59 TUint32 aBeaconInterval, |
|
60 WHA::TRate aBasicRateSet, |
|
61 TUint16 aAtimWindow, |
|
62 WHA::TPreamble aPreambleType, |
|
63 TBool aProbeForJoin ); |
|
64 |
|
65 private: |
|
66 |
|
67 virtual void Entry( WlanContextImpl& aCtxImpl ); |
|
68 #ifndef NDEBUG |
|
69 virtual const TInt8* GetStateName( TUint8& aLength ) const; |
|
70 #endif // !NDEBUG |
|
71 |
|
72 virtual void CommandResponse( |
|
73 WlanContextImpl& aCtxImpl, |
|
74 WHA::TCommandId aCommandId, |
|
75 WHA::TStatus aStatus, |
|
76 const WHA::UCommandResponseParams& aCommandResponseParams ); |
|
77 |
|
78 // Prohibit copy constructor. |
|
79 WlanWsaJoin( const WlanWsaJoin& ); |
|
80 // Prohibit assigment operator. |
|
81 WlanWsaJoin& operator= ( const WlanWsaJoin& ); |
|
82 |
|
83 private: // Data |
|
84 |
|
85 #ifndef NDEBUG |
|
86 static const TInt8 iName[]; |
|
87 #endif |
|
88 |
|
89 WHA::TOperationMode iMode; |
|
90 WHA::TMacAddress iBSSID; |
|
91 WHA::SSSID iSSID; |
|
92 WHA::TBand iBand; |
|
93 WHA::TChannelNumber iChannel; |
|
94 TUint32 iBeaconInterval; |
|
95 WHA::TRate iBasicRateSet; |
|
96 TUint16 iAtimWindow; |
|
97 WHA::TPreamble iPreambleType; |
|
98 TBool iProbeForJoin; |
|
99 }; |
|
100 |
|
101 #endif // WLANWSAJOIN_H |