|
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 MWlanWhaCommandClient class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 8 % |
|
20 */ |
|
21 |
|
22 #ifndef M_WLANWHACOMMANDCLIENT_H |
|
23 #define M_WLANWHACOMMANDCLIENT_H |
|
24 |
|
25 #ifndef RD_WLAN_DDK |
|
26 #include <wha.h> |
|
27 #else |
|
28 #include <wlanwha.h> |
|
29 #endif |
|
30 |
|
31 class WlanContextImpl; |
|
32 |
|
33 /** |
|
34 * WHA command callback interface. |
|
35 * |
|
36 * @lib wlanumac.lib |
|
37 * @since S60 v3.1 |
|
38 */ |
|
39 class MWlanWhaCommandClient |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Method called by WHA command object after it has received a correponding |
|
46 * commmad response event. |
|
47 * It is guarantedd by the frame work that response matches |
|
48 * to the command send by the WHA command client. So it is not required |
|
49 * to check the aCommandId parameter for programming error |
|
50 * (matches to the command send). |
|
51 * This method is called just prior state object transition is done, |
|
52 * so one must not make a state object transition inside this method |
|
53 * |
|
54 * @since S60 3.1 |
|
55 * @param aCtxImpl the one and only global state machine context |
|
56 * @param aCommandId WHA command identifier |
|
57 * @param aStatus comamnd specific status code |
|
58 * @param aCommandResponseParams command specific response paramaters, if any |
|
59 * @param aAct Asynchronous Completion Token used by the WHA command client, |
|
60 * returned by the caller of this method just as it was supplied |
|
61 */ |
|
62 virtual void OnWhaCommandResponse( |
|
63 WlanContextImpl& aCtxImpl, |
|
64 WHA::TCommandId aCommandId, |
|
65 WHA::TStatus aStatus, |
|
66 const WHA::UCommandResponseParams& aCommandResponseParams, |
|
67 TUint32 aAct ) = 0; |
|
68 |
|
69 }; |
|
70 |
|
71 #endif // M_WLANWHACOMMANDCLIENT_H |