analyzetool/dynamicmemoryhook/inc/analyzetooleventhandler.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 49 7fdc9a71d314
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
    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;
   108         /* A reference to event handler notifier */
   113         /* A reference to event handler notifier */
   109         MAnalyzeToolEventhandlerNotifier& iNotifier;
   114         MAnalyzeToolEventhandlerNotifier& iNotifier;
   110 
   115 
   111         /* Current used log option */
   116         /* Current used log option */
   112         TUint32 iLogOption;
   117         TUint32 iLogOption;
   113         
       
   114         // TODO comment
       
   115 		/* */
       
   116 		RATFileLog& iLogFile;
       
   117     };
   118     };
   118 
   119 
   119 #endif // ANALYZETOOLEVENTHANDLER_H
   120 #endif // ANALYZETOOLEVENTHANDLER_H
   120 
   121 
   121 // End of File
   122 // End of File