|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef __VJIF_H__ |
|
22 #define __VJIF_H__ |
|
23 |
|
24 #include <nifman.h> |
|
25 |
|
26 class CVJCompressorIf : public CObject |
|
27 /** |
|
28 Van Jacobson TCP/IP header compressor base class |
|
29 @internalTechnology |
|
30 */ |
|
31 { |
|
32 public: |
|
33 CVJCompressorIf(){}; |
|
34 virtual ~CVJCompressorIf(){}; |
|
35 virtual TInt VJCompressFrame(RMBufChain& aPacket)=0; |
|
36 protected: |
|
37 /** Factory that created this object */ |
|
38 CNifFactory* iFactory; |
|
39 }; |
|
40 |
|
41 class CVJDeCompressorIf : public CObject |
|
42 /** |
|
43 Van Jacobson TCP/IP header decompressor base class |
|
44 @internalTechnology |
|
45 */ |
|
46 { |
|
47 public: |
|
48 CVJDeCompressorIf(){}; |
|
49 virtual ~CVJDeCompressorIf(){}; |
|
50 virtual TBool DecompVJUncomp(RMBufChain& aPacket)=0; |
|
51 virtual TBool DecompVJComp(RMBufChain& aPacket)=0; |
|
52 virtual void CRCError()=0; |
|
53 protected: |
|
54 /** Factory that created this object */ |
|
55 CNifFactory* iFactory; |
|
56 }; |
|
57 |
|
58 class CVJCompFactory : public CNifFactory |
|
59 /** |
|
60 Factory base for creating a concrete instance of a CVJCompressor |
|
61 or CVJDeCompressor |
|
62 @internalTechnology |
|
63 */ |
|
64 { |
|
65 public: |
|
66 virtual void InstallL()=0; |
|
67 virtual CVJCompressorIf* NewVJCompressorL( TInt aMaxVJSlots, TInt aCompressConnId)=0; |
|
68 virtual CVJDeCompressorIf* NewVJDeCompressorL(TInt aMaxVJSlots)=0; |
|
69 }; |
|
70 |
|
71 #endif //__VJIF_H__ |