|
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 // |
|
15 |
|
16 #include <e32base.h> |
|
17 #include "coredumptestplugin.h" |
|
18 |
|
19 #include <e32debug.h> |
|
20 #include <debuglogging.h> |
|
21 |
|
22 // Two phase construction of implementation |
|
23 CTestFormatter* CTestFormatter::NewL() |
|
24 { |
|
25 LOG_MSG( "CTestFormatter::NewL()\n" ); |
|
26 CTestFormatter* self = CTestFormatter::NewLC(); |
|
27 LOG_MSG( "CTestFormatter::NewL() <- CTestFormatter::NewLC()\n" ); |
|
28 |
|
29 LOG_MSG( " NewL() -> Pop()\n" ); |
|
30 CleanupStack::Pop(); |
|
31 LOG_MSG( " NewL() <- Pop()\n" ); |
|
32 return self; |
|
33 } |
|
34 |
|
35 |
|
36 CTestFormatter* CTestFormatter::NewLC() |
|
37 { |
|
38 LOG_MSG( "CTestFormatter::NewLC() -> new(ELeave)CTestFormatter\n" ); |
|
39 CTestFormatter* self = new(ELeave)CTestFormatter(); |
|
40 CleanupStack::PushL(self); |
|
41 |
|
42 self->ConstructL(); |
|
43 LOG_MSG( "CTestFormatter::NewL() <- self->ConstructL()\n" ); |
|
44 |
|
45 return self; |
|
46 } |
|
47 |
|
48 |
|
49 CTestFormatter::CTestFormatter() |
|
50 { |
|
51 } |
|
52 |
|
53 void CTestFormatter::ConstructL() |
|
54 { |
|
55 } |
|
56 |
|
57 CTestFormatter::~CTestFormatter() |
|
58 { |
|
59 LOG_MSG( "CTestFormatter::~CTestFormatter()\n" ); |
|
60 |
|
61 } |
|
62 |
|
63 // Interface methods |
|
64 void CTestFormatter::ConfigureDataSaveL( CCrashDataSave * aDataSave ) |
|
65 { |
|
66 LOG_MSG( "CTestFormatter::ConfigureDataSaveL()\n" ); |
|
67 User::LeaveIfNull( aDataSave ); |
|
68 } |
|
69 |
|
70 |
|
71 void CTestFormatter::ConfigureDataSourceL( CCrashDataSource * aDataSource ) |
|
72 { |
|
73 LOG_MSG( "CTestFormatter::ConfigureDataSource()\n" ); |
|
74 User::LeaveIfNull( aDataSource ); |
|
75 } |
|
76 |
|
77 |
|
78 TInt CTestFormatter::GetNumberConfigParametersL( ) |
|
79 { |
|
80 return ( 0 ); |
|
81 } |
|
82 |
|
83 |
|
84 COptionConfig * CTestFormatter::GetConfigParameterL( const TInt aIndex ) |
|
85 { |
|
86 // return the config identified by aIndex |
|
87 return ( (COptionConfig *) NULL ); |
|
88 } |
|
89 |
|
90 |
|
91 void CTestFormatter::SetConfigParameterL( const TInt aIndex, |
|
92 const TInt32 & aValue, |
|
93 const TDesC & aDescValue ) |
|
94 { |
|
95 LOG_MSG( "CTestFormatter::SetConfigParameterL()\n" ); |
|
96 |
|
97 TInt remIntWarn = aIndex; |
|
98 TInt32 remInt32Warn = aValue; |
|
99 remIntWarn = remInt32Warn; |
|
100 remInt32Warn = remIntWarn; |
|
101 TInt remInt2Warn = aDescValue.Length(); |
|
102 } |
|
103 |
|
104 |
|
105 void CTestFormatter::GetDescription( TDes & aPluginDescription ) |
|
106 { |
|
107 LOG_MSG( "CTestFormatter::GetDescription()\n" ); |
|
108 |
|
109 _LIT( KPluginDescription, "CTestFormatter::GetDescription" ); |
|
110 aPluginDescription = *(KPluginDescription().AllocL()); |
|
111 } |
|
112 |
|
113 |
|
114 void CTestFormatter::CrashEventL( TCrashInfo* aCrashInfo) |
|
115 { |
|
116 LOG_MSG( " CTestFormatter::CrashEvent()\n" ); |
|
117 |
|
118 User::LeaveIfNull( aCrashInfo ); |
|
119 } |
|
120 |
|
121 TInt CTestFormatter::SetToUseFlashDataSource() |
|
122 { |
|
123 return KErrNone; |
|
124 } |
|
125 |
|
126 |
|
127 |