equal
deleted
inserted
replaced
|
1 // Copyright (c) 1999-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 // Defines Mixin class for a BufferManager |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __EZBUFFERMANAGER_H__ |
|
19 #define __EZBUFFERMANAGER_H__ |
|
20 |
|
21 class CEZZStream; |
|
22 |
|
23 /** |
|
24 Interface class to manage input and output buffers for compression and de-compression |
|
25 |
|
26 @publishedAll |
|
27 @released |
|
28 */ |
|
29 class MEZBufferManager |
|
30 { |
|
31 public: |
|
32 |
|
33 /** |
|
34 Initialise the stream with input and output buffers and starts reading |
|
35 |
|
36 @param aZStream the stream to initialise |
|
37 */ |
|
38 virtual void InitializeL(CEZZStream &aZStream) = 0; |
|
39 |
|
40 /** |
|
41 Set the stream's input buffer and starts reading |
|
42 |
|
43 @param aZStream the steam whose input buffer to set |
|
44 */ |
|
45 virtual void NeedInputL(CEZZStream &aZStream) = 0; |
|
46 |
|
47 /** |
|
48 Set the stream's output buffer and start writing |
|
49 |
|
50 @param aZStream the steam whose output buffer to set |
|
51 */ |
|
52 virtual void NeedOutputL(CEZZStream &aZStream) = 0; |
|
53 |
|
54 /** |
|
55 Finish writing to the stream |
|
56 |
|
57 @param aZStream the stream to complete writing to |
|
58 */ |
|
59 virtual void FinalizeL(CEZZStream &aZStream) = 0; |
|
60 }; |
|
61 |
|
62 #endif |
|
63 |