equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2003-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 * Name : SigCompCompressionContext.h |
|
16 * Part of : SigComp / compressor |
|
17 * Interface : |
|
18 * compression context |
|
19 * Version : 1.0 |
|
20 * |
|
21 */ |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 /** |
|
27 @internalComponent |
|
28 */ |
|
29 |
|
30 |
|
31 #ifndef SIGCOMPCOMPRESSIONCONTEXT_H |
|
32 #define SIGCOMPCOMPRESSIONCONTEXT_H |
|
33 |
|
34 #include <e32base.h> |
|
35 |
|
36 /** |
|
37 * Abstract class for holding compressor specific data in compartment. |
|
38 */ |
|
39 |
|
40 class CSigCompCompressionContext: public CBase |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Sets compressor context. Ownership is transferred. |
|
46 * |
|
47 * @param aContext private context to be saved |
|
48 */ |
|
49 IMPORT_C void SetContext(CBufBase* aContext); |
|
50 |
|
51 /** |
|
52 * Gets saved context |
|
53 * |
|
54 * @return saved context |
|
55 */ |
|
56 IMPORT_C const CBufBase* Context() const; |
|
57 |
|
58 IMPORT_C virtual ~CSigCompCompressionContext(); |
|
59 |
|
60 protected: |
|
61 IMPORT_C CSigCompCompressionContext(); |
|
62 |
|
63 private: |
|
64 /** compressor private data saved in this context */ |
|
65 CBufBase* iContext; |
|
66 }; |
|
67 |
|
68 #endif |
|
69 |