0
|
1 |
// Copyright (c) 2006-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 |
// Class holds all user configuration data
|
|
15 |
//
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
@internalTechnology
|
|
22 |
@released
|
|
23 |
*/
|
|
24 |
|
|
25 |
#ifndef __ELFOPTIONS_H__
|
|
26 |
#define __ELFOPTIONS_H__
|
|
27 |
|
|
28 |
#include <e32def.h>
|
|
29 |
#include <optionconfig.h>
|
|
30 |
|
|
31 |
/**
|
|
32 |
@internalTechnology
|
|
33 |
@released
|
|
34 |
|
|
35 |
It is used by symbian ELF formatter to manage its configuration parameters.
|
|
36 |
*/
|
|
37 |
class CElfOptions : public CBase
|
|
38 |
{
|
|
39 |
|
|
40 |
public:
|
|
41 |
static CElfOptions* NewL( TUint32 aUID = 0 );
|
|
42 |
static CElfOptions* NewLC( TUint32 aUID = 0 );
|
|
43 |
~CElfOptions();
|
|
44 |
|
|
45 |
TBool CreateProcessData() const;
|
|
46 |
|
|
47 |
TBool CreateDataSegments() const;
|
|
48 |
TBool CreateCodeSegments() const;
|
|
49 |
TBool CreateThreadSegments() const;
|
|
50 |
TBool CreateRegisterSegments() const;
|
|
51 |
TBool CreateExecSegments() const;
|
|
52 |
TBool CreateProcessSegments() const;
|
|
53 |
TBool CreateSystemCrashInfo() const;
|
|
54 |
TBool CreateSystemWideOnly() const;
|
|
55 |
TInt TraceDataToCapture() const;
|
|
56 |
TBool CreateLockDataSegments() const;
|
|
57 |
TBool CreateRomBuildInfo() const;
|
|
58 |
|
|
59 |
|
|
60 |
TInt GetNumberConfigParametersL( );
|
|
61 |
COptionConfig * GetConfigParameterL( const TInt aIndex );
|
|
62 |
TInt SetConfigParameterL( const TInt aIndex, const TInt32 & aValue, const TDesC & aDescValue );
|
|
63 |
|
|
64 |
private:
|
|
65 |
CElfOptions();
|
|
66 |
void ConstructL( TUint32 aUID = 0 );
|
|
67 |
|
|
68 |
private:
|
|
69 |
|
|
70 |
/** Available values of symbian ELF parameter index */
|
|
71 |
enum TElfOptions
|
|
72 |
{
|
|
73 |
/** dump system wide info */
|
|
74 |
ECreateSystemCrashInfo,
|
|
75 |
/** dump whole crashed process info */
|
|
76 |
ECreateProcessData,
|
|
77 |
/** dump data segments */
|
|
78 |
ECreateDataSegments,
|
|
79 |
/** dump code segments */
|
|
80 |
ECreateCodeSegments,
|
|
81 |
/** dump thread info segments */
|
|
82 |
ECreateThreadSegments,
|
|
83 |
/** dump register data segments */
|
|
84 |
ECreateRegisterSegments,
|
|
85 |
/** dump executable info segments */
|
|
86 |
ECreateExecSegments,
|
|
87 |
/** dump process info segments */
|
|
88 |
ECreateProcessSegments,
|
|
89 |
/** dump trace data */
|
|
90 |
ECreateTraceData,
|
|
91 |
/** dump lock data */
|
|
92 |
ECreateLockSegments,
|
|
93 |
/** dump ROM build info */
|
|
94 |
ECreateRomInfo,
|
|
95 |
/** guard */
|
|
96 |
EElfOptionsLast
|
|
97 |
};
|
|
98 |
|
|
99 |
/** Symbian ELF formatter configuration parameter list */
|
|
100 |
RConfigParameterList iConfigList;
|
|
101 |
|
|
102 |
/** Available values of system crash parameter */
|
|
103 |
enum TSystemCrashOption
|
|
104 |
{
|
|
105 |
/**
|
|
106 |
Generate crash data for system, not for crashed process
|
|
107 |
*/
|
|
108 |
ESystemWideOnly = 0,
|
|
109 |
/**
|
|
110 |
Generate crash data for crashed process only
|
|
111 |
*/
|
|
112 |
ECrashedProcessOnly = 1,
|
|
113 |
/**
|
|
114 |
Generate crash data for crashed process and system wide
|
|
115 |
*/
|
|
116 |
ESystemWideAndCrashedProc = 2
|
|
117 |
};
|
|
118 |
};
|
|
119 |
|
|
120 |
|
|
121 |
#endif // __ELFOPTIONS_H__
|