equal
deleted
inserted
replaced
|
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 __PPPCOMP_H__ |
|
22 #define __PPPCOMP_H__ |
|
23 |
|
24 #include <es_mbuf.h> |
|
25 |
|
26 // Return value from call to compress module |
|
27 enum TPppCompressReturnValue |
|
28 { EPppCompressedOK, EPppCompressedNotOK, EPppCompressedFrameExpanded }; |
|
29 |
|
30 class CNifFactory; |
|
31 class CPppCompressor : public CObject |
|
32 { |
|
33 public: |
|
34 CPppCompressor(){}; |
|
35 virtual ~CPppCompressor(){}; |
|
36 |
|
37 virtual TPppCompressReturnValue Compress(RMBufChain& aPacket, TUint16 aPppId)=0; |
|
38 virtual TBool ResetCompressor(TInt aLength, RMBufChain& aPacket)=0; |
|
39 protected: |
|
40 CNifFactory* iFactory; |
|
41 }; |
|
42 |
|
43 class CPppDeCompressor : public CObject |
|
44 { |
|
45 public: |
|
46 virtual TBool Decompress(RMBufQ& aBufferQ)=0; |
|
47 virtual void ResetDecompressor(TInt aLength, RMBufChain& aPacket)=0; |
|
48 |
|
49 CPppDeCompressor(){}; |
|
50 virtual ~CPppDeCompressor(){}; |
|
51 protected: |
|
52 CNifFactory* iFactory; |
|
53 }; |
|
54 |
|
55 #endif //__PPPCOMP_H__ |