|
1 // Copyright (c) 2007-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 |
|
17 |
|
18 /** |
|
19 @file te_ostv2integsuite_basewrapper.h |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 #if (!defined TE_ULOGGER_MCL_STEP_BASE) |
|
24 #define TE_ULOGGER_MCL_STEP_BASE |
|
25 #include <datawrapper.h> |
|
26 #include <hal.h> |
|
27 #include <opensystemtrace.h> |
|
28 #include "te_tracerecord.h" |
|
29 #include "te_dataparameters.h" |
|
30 #include "te_parser.h" |
|
31 #include "te_instrumentation_enum.h" |
|
32 |
|
33 |
|
34 class CTe_MCLSuiteBaseWrapper : public CDataWrapper |
|
35 { |
|
36 public: |
|
37 virtual ~CTe_MCLSuiteBaseWrapper(); |
|
38 static CTe_MCLSuiteBaseWrapper* NewL(); |
|
39 static CTe_MCLSuiteBaseWrapper* NewLC(); |
|
40 TAny* GetObject(); |
|
41 TBool DoCommandL( const TTEFFunction& aCommand, |
|
42 const TTEFSectionName& aSection, |
|
43 const TInt aAsyncErrorIndex); |
|
44 |
|
45 protected: |
|
46 CTe_MCLSuiteBaseWrapper(); |
|
47 void ConstructL(); |
|
48 |
|
49 TInt CompareTraces(); |
|
50 TInt CompareTraceHeaders(); |
|
51 TInt StoreTraceInfo(TBool aEnumBased,TUPTApiUsed anApi,TComponentId aComponentId, TGroupId aGroupId,THasThreadIdentification aHasContext, THasProgramCounter aHasPc); |
|
52 TInt StoreTraceHeaderInfo(TComponentId aComponentId, TGroupId aGroupId,THasThreadIdentification aHasContext, THasProgramCounter aHasPc); |
|
53 TInt ReadFromLogFile(const TDesC& aFileName); |
|
54 TInt ReadHeaderFromLogFile(const TDesC& aFileName); |
|
55 TBool CreateTraceObject(TUPTApiUsed aApi, THasThreadIdentification aHasContext, THasProgramCounter aHasPc,RPointerArray<TTraceConfigs> & aTraceObjects); |
|
56 TBool CreateTraceObject(TComponentId aComponentId, TGroupId aGroupId,THasThreadIdentification aHasContext, THasProgramCounter aHasPc,RPointerArray<TTraceConfigs> & aTraceObjects); |
|
57 void CreateTraceHeaderObject(TComponentId aModuleUid, TGroupId aGroupId,THasThreadIdentification aHasContext, THasProgramCounter aHasPc,TTraceHeaderInfo*& aHeaderInfo); |
|
58 TTraceParser iParser; |
|
59 TTraceHeaderParser iHeaderParser; |
|
60 TInt GetDataL(TUint8*& aData, TUint& aSize,const TDesC& aFileName); |
|
61 TInt GetDataL(TUint8*& aData, TUint& aBytesRead, TUint aPosition, const TDesC& aFileName); |
|
62 TInt EmptyFile(const TDesC& aFileName); |
|
63 |
|
64 protected: |
|
65 TInt iAlignPosition; |
|
66 TInt iNumMatchingTraces; |
|
67 TInt iPosition; |
|
68 TTraceConfigs iTraceData; |
|
69 RPointerArray<TTraceConfigs> iLoggedTraces; |
|
70 RPointerArray<TTraceConfigs> iSentTraces; |
|
71 CArrayPtrSeg<TTraceHeaderInfo> *iSentTraceHeaders; |
|
72 CArrayPtrSeg<TTraceHeaderInfo> *iLoggedTraceHeaders; |
|
73 |
|
74 |
|
75 protected: |
|
76 HBufC8* iReadData; |
|
77 HBufC8* iWriteData; |
|
78 }; |
|
79 |
|
80 #endif |