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