|
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 "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: |
|
15 * CDatalinkPacketise |
|
16 * CDMA has no datalink protocol in the MT -- however -- since the incoming data |
|
17 * is from a stream and I'd like to at least have the ability to force whole frames |
|
18 * to be lost -- I'm making a packetisation handler so that the outgoing UDP |
|
19 * packets can contain exactly one PPP frame. Incoming data is not altered. |
|
20 * |
|
21 */ |
|
22 |
|
23 |
|
24 |
|
25 #ifndef __CDATALINKPACKETISE_H__ |
|
26 #define __CDATALINKPACKETISE_H__ |
|
27 |
|
28 |
|
29 /******************************************************************************* |
|
30 * |
|
31 * Local Includes |
|
32 * |
|
33 ******************************************************************************/ |
|
34 #include "MTInterfaces.h" |
|
35 #include "CPppFrame.h" |
|
36 #include "CLog.h" |
|
37 |
|
38 |
|
39 /******************************************************************************* |
|
40 * |
|
41 * Definitions |
|
42 * |
|
43 ******************************************************************************/ |
|
44 |
|
45 |
|
46 /******************************************************************************* |
|
47 * |
|
48 * Class Definition |
|
49 * |
|
50 ******************************************************************************/ |
|
51 class CDatalinkPacketise : public IProcessData |
|
52 { |
|
53 public: |
|
54 // Construction and Access |
|
55 CDatalinkPacketise( TPhoneData *aPhoneData, CLog *aLog ); |
|
56 virtual ~CDatalinkPacketise(); |
|
57 |
|
58 // IProcessData |
|
59 virtual TDataPathError ProcessTEData( char *data, int len, int *aErrCode ); |
|
60 virtual TDataPathError ProcessUUData( char *data, int len, int *aErrCode ); |
|
61 virtual void SetAirInterface( IAirInterface *aAirInterface ); |
|
62 virtual void SetTEChannel( ITEChannel *aTEChannel ); |
|
63 |
|
64 private: |
|
65 IAirInterface *iAirInterface; |
|
66 ITEChannel *iTEChannel; |
|
67 TPhoneData *iPhoneData; |
|
68 CLog *iLog; |
|
69 |
|
70 CPppFrame iIncomingFrame; |
|
71 CPppFrame iOutgoingFrame; |
|
72 }; |
|
73 |
|
74 #endif //__CDATALINKPACKETISE_H__ |