|
1 /* |
|
2 * Copyright (c) 2005-2009 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 TWlanUserTxDataCntx class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 8 % |
|
20 */ |
|
21 |
|
22 #ifndef T_WLANUSERTXDATACNTX_H |
|
23 #define T_WLANUSERTXDATACNTX_H |
|
24 |
|
25 #include "802dot11.h" |
|
26 |
|
27 class TDataBuffer; |
|
28 |
|
29 /** |
|
30 * Encapsulates a frame transmit buffer |
|
31 * |
|
32 * @lib wlanumac.lib |
|
33 * @since S60 v3.1 |
|
34 */ |
|
35 class TWlanUserTxDataCntx |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 TWlanUserTxDataCntx () : |
|
41 iStartOfFrame( 0 ), |
|
42 iLengthOfData( 0 ), |
|
43 iEthernetBuffer( NULL ) {} |
|
44 |
|
45 inline TUint8* StartOfFrame(); |
|
46 |
|
47 inline void LengthOfFrame( TUint aFrameLength ); |
|
48 |
|
49 inline TUint LengthOfFrame() const; |
|
50 |
|
51 inline void Dot11FrameReady( TUint8* aStartOfFrame, TUint aLengthOfFrame ); |
|
52 |
|
53 private: // data |
|
54 |
|
55 /** pointer to the beginning of the ready to be sent 802.11 frame */ |
|
56 TUint8* iStartOfFrame; |
|
57 /** |
|
58 * length of the data in the buffer |
|
59 */ |
|
60 TUint iLengthOfData; |
|
61 /** |
|
62 * data buffer that holds the ethernet II critter to send next |
|
63 * its waiting for dot11 encapulation here |
|
64 */ |
|
65 TDataBuffer* iEthernetBuffer; |
|
66 }; |
|
67 |
|
68 #include "umacusertxdatacntx.inl" |
|
69 |
|
70 #endif // T_WLANUSERTXDATACNTX_H |