|
1 /* |
|
2 * Copyright (c) 2005-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 WlanWhaConfigureQueue class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 9 % |
|
20 */ |
|
21 |
|
22 #ifndef T_WLANWHACONFIGUREQUEUE_H |
|
23 #define T_WLANWHACONFIGUREQUEUE_H |
|
24 |
|
25 #include "UmacWsaCommand.h" |
|
26 |
|
27 /** |
|
28 * Encapsulates the execution of ConfigureQueue WHA command. |
|
29 * |
|
30 * @lib wlanumac.lib |
|
31 * @since S60 v3.1 |
|
32 */ |
|
33 class WlanWhaConfigureQueue : public WlanWsaCommand |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 WlanWhaConfigureQueue() : |
|
39 iQueueId( static_cast<WHA::TQueueId>(0) ), |
|
40 iMaxLifeTime( 0 ), |
|
41 iPsScheme( static_cast<WHA::TPsScheme>(0) ), |
|
42 iAckPolicy( static_cast<WHA::TAckPolicy>(0) ), |
|
43 iMediumTime( 0 ) {}; |
|
44 |
|
45 virtual ~WlanWhaConfigureQueue() {}; |
|
46 |
|
47 /** |
|
48 * ?description |
|
49 * |
|
50 * @since S60 3.1 |
|
51 * @param aQueueId |
|
52 * @param aMaxLifeTime |
|
53 * @param aPsScheme |
|
54 * @param aAckPolicy |
|
55 * @param aMediumTime |
|
56 */ |
|
57 void Set( |
|
58 WHA::TQueueId aQueueId, |
|
59 TUint32 aMaxLifeTime, |
|
60 WHA::TPsScheme aPsScheme, |
|
61 WHA::TAckPolicy aAckPolicy, |
|
62 TUint16 aMediumTime ); |
|
63 |
|
64 private: |
|
65 |
|
66 virtual void Entry( WlanContextImpl& aCtxImpl ); |
|
67 #ifndef NDEBUG |
|
68 virtual const TInt8* GetStateName( TUint8& aLength ) const; |
|
69 #endif // !NDEBUG |
|
70 |
|
71 virtual void CommandResponse( |
|
72 WlanContextImpl& aCtxImpl, |
|
73 WHA::TCommandId aCommandId, |
|
74 WHA::TStatus aStatus, |
|
75 const WHA::UCommandResponseParams& aCommandResponseParams ); |
|
76 |
|
77 // Prohibit copy constructor. |
|
78 WlanWhaConfigureQueue( const WlanWhaConfigureQueue& ); |
|
79 // Prohibit assigment operator. |
|
80 WlanWhaConfigureQueue& operator= ( const WlanWhaConfigureQueue& ); |
|
81 |
|
82 private: // data |
|
83 |
|
84 #ifndef NDEBUG |
|
85 /** |
|
86 * ?description_of_member |
|
87 */ |
|
88 static const TInt8 iName[]; |
|
89 #endif |
|
90 |
|
91 WHA::TQueueId iQueueId; |
|
92 TUint32 iMaxLifeTime; |
|
93 WHA::TPsScheme iPsScheme; |
|
94 WHA::TAckPolicy iAckPolicy; |
|
95 TUint16 iMediumTime; |
|
96 }; |
|
97 |
|
98 #endif // T_WLANWHACONFIGUREQUEUE_H |