sl@0
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// e32\kernel\crashdebug_gzip.h
|
sl@0
|
15 |
// Definitions for using Zlib with the crash logger
|
sl@0
|
16 |
//
|
sl@0
|
17 |
//
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef _CRASHLDEBUGZIP_H
|
sl@0
|
20 |
#define _CRASHLDEBUGZIP_H
|
sl@0
|
21 |
|
sl@0
|
22 |
#include "crash_gzip.h"
|
sl@0
|
23 |
|
sl@0
|
24 |
class CrashDebugger;
|
sl@0
|
25 |
|
sl@0
|
26 |
/** Crash debugger wrapper class for Zlib deflate
|
sl@0
|
27 |
@internalComponent
|
sl@0
|
28 |
*/
|
sl@0
|
29 |
class TCrashDebugGzip : public MCrashGzip
|
sl@0
|
30 |
{
|
sl@0
|
31 |
public:
|
sl@0
|
32 |
/** Initialise ready for data output. Sets the deflate algorithm up.
|
sl@0
|
33 |
@param aDebugger - pointer to crash debugger
|
sl@0
|
34 |
*/
|
sl@0
|
35 |
void SetOutput(CrashDebugger* aDebugger);
|
sl@0
|
36 |
|
sl@0
|
37 |
/** Write the passed data to the crash logger flash sector via the
|
sl@0
|
38 |
deflate compressor
|
sl@0
|
39 |
@param aDes The data to be written
|
sl@0
|
40 |
@return KErrNone or general error code
|
sl@0
|
41 |
*/
|
sl@0
|
42 |
virtual TInt Out(const TDesC8& aDes);
|
sl@0
|
43 |
|
sl@0
|
44 |
|
sl@0
|
45 |
/** @return the maximum length of the output file or
|
sl@0
|
46 |
-1 if the length of file is not restricted
|
sl@0
|
47 |
*/
|
sl@0
|
48 |
virtual TInt32 GetMaxLength();
|
sl@0
|
49 |
|
sl@0
|
50 |
|
sl@0
|
51 |
private:
|
sl@0
|
52 |
/** interface to crash debugger */
|
sl@0
|
53 |
CrashDebugger* iDebugger;
|
sl@0
|
54 |
|
sl@0
|
55 |
};
|
sl@0
|
56 |
#endif //_CRASHLDEBUGZIP_H
|