19 #ifndef ANALYZETOOLEVENTHANDLER_H |
19 #ifndef ANALYZETOOLEVENTHANDLER_H |
20 #define ANALYZETOOLEVENTHANDLER_H |
20 #define ANALYZETOOLEVENTHANDLER_H |
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <e32cmn.h> |
23 #include <e32cmn.h> |
24 #include <e32base.h> |
|
25 #include "codeblock.h" |
24 #include "codeblock.h" |
|
25 #include <analyzetool/atstorageserverclnt.h> |
26 #include <analyzetool/analyzetool.h> |
26 #include <analyzetool/analyzetool.h> |
27 #include "analyzetoolfilelog.h" |
|
28 |
27 |
29 // FORWARD DECLARATIONS |
28 // FORWARD DECLARATIONS |
30 class MAnalyzeToolEventhandlerNotifier; |
29 class MAnalyzeToolEventhandlerNotifier; |
31 |
30 |
32 // CLASS DECLARATION |
31 // CLASS DECLARATION |
42 /** |
41 /** |
43 * C++ default constructor. |
42 * C++ default constructor. |
44 * @param aAnalyzeTool A reference to the <code>RAnalyzeTool</code> |
43 * @param aAnalyzeTool A reference to the <code>RAnalyzeTool</code> |
45 which is used to observe kernel events |
44 which is used to observe kernel events |
46 * @param aCodeblocks A reference to array of code segments |
45 * @param aCodeblocks A reference to array of code segments |
|
46 * @param aStorageServer A reference to the |
|
47 * <code>RATStorageServer</code> which is |
|
48 * used to store kernel events |
47 * @param aProcessId A reference to the observed process id |
49 * @param aProcessId A reference to the observed process id |
48 * @param aMutex A reference to mutex to schedule access to the |
50 * @param aMutex A reference to mutex to schedule access to the |
49 * shared resources |
51 * shared resources |
50 * @param aNotifier A reference to notifier object which is used to |
52 * @param aNotifier A reference to notifier object which is used to |
51 * inform killed threads |
53 * inform killed threads |
52 * @param aLogOption Current used log option on allocator. |
54 * @param aLogOption Current used log option on allocator. |
53 */ |
55 */ |
54 CLibraryEventHandler( RAnalyzeTool& aAnalyzeTool, |
56 CLibraryEventHandler( RAnalyzeTool& aAnalyzeTool, |
55 RArray<TCodeblock>& aCodeblocks, |
57 RArray<TCodeblock>& aCodeblocks, |
|
58 RATStorageServer& aStorageServer, |
56 TUint aProcessId, |
59 TUint aProcessId, |
57 RMutex& aMutex, |
60 RMutex& aMutex, |
58 MAnalyzeToolEventhandlerNotifier& aNotifier, |
61 MAnalyzeToolEventhandlerNotifier& aNotifier, |
59 TUint32 aLogOption, |
62 TUint32 aLogOption ); |
60 RATFileLog& iLogFile ); |
|
61 |
63 |
62 /** |
64 /** |
63 * Destructor. |
65 * Destructor. |
64 */ |
66 */ |
65 ~CLibraryEventHandler(); |
67 ~CLibraryEventHandler(); |
91 RAnalyzeTool& iAnalyzeTool; |
93 RAnalyzeTool& iAnalyzeTool; |
92 |
94 |
93 /* A reference to codeblocks of the observed process */ |
95 /* A reference to codeblocks of the observed process */ |
94 RArray<TCodeblock>& iCodeblocks; |
96 RArray<TCodeblock>& iCodeblocks; |
95 |
97 |
|
98 /* Handle to the storage server*/ |
|
99 RATStorageServer& iStorageServer; |
|
100 |
96 /* The observered process id */ |
101 /* The observered process id */ |
97 TUint iProcessId; |
102 TUint iProcessId; |
98 |
103 |
99 /* The library info */ |
104 /* The library info */ |
100 TLibraryEventInfo iLibraryInfo; |
105 TLibraryEventInfo iLibraryInfo; |