|
1 /* |
|
2 * Copyright (c) 2001-2010 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: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 5 % |
|
20 */ |
|
21 |
|
22 #ifndef EAPMESSAGEQUEU_H_ |
|
23 #define EAPMESSAGEQUEU_H_ |
|
24 |
|
25 #include "EapServerClientDef.h" |
|
26 #include "abs_eap_am_tools.h" |
|
27 #include "eap_am_export.h" |
|
28 |
|
29 class EAP_EXPORT EapMessageBuffer |
|
30 { |
|
31 public: |
|
32 |
|
33 EAP_FUNC_IMPORT EapMessageBuffer(abs_eap_am_tools_c * const tools); |
|
34 |
|
35 EAP_FUNC_IMPORT virtual ~EapMessageBuffer(); |
|
36 |
|
37 EAP_FUNC_IMPORT TInt CopyData(TEapRequests type, const void * const data, const TUint length); |
|
38 |
|
39 EAP_FUNC_IMPORT HBufC8 * GetData() const; |
|
40 |
|
41 EAP_FUNC_IMPORT TEapRequests GetRequestType() const; |
|
42 |
|
43 private: |
|
44 |
|
45 abs_eap_am_tools_c * const iTools; |
|
46 |
|
47 TEapRequests iRequestType; |
|
48 |
|
49 HBufC8 * iData; |
|
50 |
|
51 }; |
|
52 |
|
53 |
|
54 class EAP_EXPORT EapMessageQueue |
|
55 { |
|
56 public: |
|
57 |
|
58 EAP_FUNC_IMPORT EapMessageQueue(abs_eap_am_tools_c * const tools); |
|
59 |
|
60 EAP_FUNC_IMPORT virtual ~EapMessageQueue(); |
|
61 |
|
62 EAP_FUNC_IMPORT TInt AddMessage(TEapRequests type, const void * const data, const TUint length); |
|
63 |
|
64 EAP_FUNC_IMPORT EapMessageBuffer * GetFirstMessage(); |
|
65 |
|
66 EAP_FUNC_IMPORT TInt DeleteFirstMessage(); |
|
67 |
|
68 private: |
|
69 |
|
70 abs_eap_am_tools_c * const iTools; |
|
71 |
|
72 RArray<EapMessageBuffer *> iEapMessageQueue; |
|
73 |
|
74 }; |
|
75 |
|
76 #endif /* EAPMESSAGEQUEU_H_ */ |