|
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 WlanWsaSetPsMode class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 8 % |
|
20 */ |
|
21 |
|
22 #ifndef WLANWSASETPSMODE_H |
|
23 #define WLANWSASETPSMODE_H |
|
24 |
|
25 #include "UmacWsaCommand.h" |
|
26 |
|
27 /** |
|
28 * Encapsulates the execution of SetBssParameters WHA command. |
|
29 * |
|
30 * @lib wlanumac.lib |
|
31 * @since S60 v3.1 |
|
32 */ |
|
33 class WlanWsaSetPsMode : public WlanWsaCommand |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * C++ default constructor. |
|
40 */ |
|
41 WlanWsaSetPsMode() : |
|
42 iPsMode( static_cast<WHA::TPsMode>(0) ) {}; |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~WlanWsaSetPsMode() {}; |
|
48 |
|
49 inline void Set( |
|
50 WlanContextImpl& aCtxImpl, |
|
51 WHA::TPsMode aPsMode ); |
|
52 |
|
53 private: |
|
54 |
|
55 virtual void Entry( WlanContextImpl& aCtxImpl ); |
|
56 #ifndef NDEBUG |
|
57 virtual const TInt8* GetStateName( TUint8& aLength ) const; |
|
58 #endif // !NDEBUG |
|
59 |
|
60 virtual void CommandResponse( |
|
61 WlanContextImpl& aCtxImpl, |
|
62 WHA::TCommandId aCommandId, |
|
63 WHA::TStatus aStatus, |
|
64 const WHA::UCommandResponseParams& aCommandResponseParams ); |
|
65 |
|
66 // Prohibit copy constructor. |
|
67 WlanWsaSetPsMode( const WlanWsaSetPsMode& ); |
|
68 // Prohibit assigment operator. |
|
69 WlanWsaSetPsMode& operator= ( const WlanWsaSetPsMode& ); |
|
70 |
|
71 private: // Data |
|
72 |
|
73 #ifndef NDEBUG |
|
74 static const TInt8 iName[]; |
|
75 #endif |
|
76 |
|
77 WHA::TPsMode iPsMode; |
|
78 }; |
|
79 |
|
80 #include "UmacWsaSetPsMode.inl" |
|
81 |
|
82 #endif // WLANWSASETPSMODE_H |