analyzetool/dynamicmemoryhook/inc/analyzetooleventhandler.h
branchRCL_3
changeset 49 7fdc9a71d314
parent 19 da2cedce4920
child 59 8ad140f3dd41
equal deleted inserted replaced
46:e26895079d7c 49:7fdc9a71d314
    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>
    24 #include "codeblock.h"
    25 #include "codeblock.h"
    25 #include <analyzetool/atstorageserverclnt.h>
       
    26 #include <analyzetool/analyzetool.h>
    26 #include <analyzetool/analyzetool.h>
       
    27 #include "analyzetoolfilelog.h"
    27 
    28 
    28 // FORWARD DECLARATIONS
    29 // FORWARD DECLARATIONS
    29 class MAnalyzeToolEventhandlerNotifier;
    30 class MAnalyzeToolEventhandlerNotifier;
    30 
    31 
    31 // CLASS DECLARATION
    32 // CLASS DECLARATION
    41         /**
    42         /**
    42         * C++ default constructor.
    43         * C++ default constructor.
    43         * @param aAnalyzeTool A reference to the <code>RAnalyzeTool</code> 
    44         * @param aAnalyzeTool A reference to the <code>RAnalyzeTool</code> 
    44                  which is used to observe kernel events 
    45                  which is used to observe kernel events 
    45         * @param aCodeblocks A reference to array of code segments
    46         * @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
       
    49         * @param aProcessId A reference to the observed process id
    47         * @param aProcessId A reference to the observed process id
    50         * @param aMutex A reference to mutex to schedule access to the 
    48         * @param aMutex A reference to mutex to schedule access to the 
    51         *                   shared resources
    49         *                   shared resources
    52         * @param aNotifier A reference to notifier object which is used to 
    50         * @param aNotifier A reference to notifier object which is used to 
    53         * 					inform killed threads
    51         * 					inform killed threads
    54         * @param aLogOption Current used log option on allocator.
    52         * @param aLogOption Current used log option on allocator.
    55         */
    53         */
    56         CLibraryEventHandler( RAnalyzeTool& aAnalyzeTool, 
    54         CLibraryEventHandler( RAnalyzeTool& aAnalyzeTool, 
    57                 RArray<TCodeblock>& aCodeblocks, 
    55                 RArray<TCodeblock>& aCodeblocks,
    58                 RATStorageServer& aStorageServer, 
       
    59                 TUint aProcessId,
    56                 TUint aProcessId,
    60                 RMutex& aMutex,
    57                 RMutex& aMutex,
    61                 MAnalyzeToolEventhandlerNotifier& aNotifier,
    58                 MAnalyzeToolEventhandlerNotifier& aNotifier,
    62                 TUint32 aLogOption );
    59                 TUint32 aLogOption,
       
    60                 RATFileLog& iLogFile );
    63 
    61 
    64         /**
    62         /**
    65         * Destructor.
    63         * Destructor.
    66         */
    64         */
    67         ~CLibraryEventHandler();
    65         ~CLibraryEventHandler();
    93         RAnalyzeTool& iAnalyzeTool; 
    91         RAnalyzeTool& iAnalyzeTool; 
    94 
    92 
    95         /* A reference to codeblocks of the observed process */
    93         /* A reference to codeblocks of the observed process */
    96         RArray<TCodeblock>& iCodeblocks;
    94         RArray<TCodeblock>& iCodeblocks;
    97 
    95 
    98         /* Handle to the storage server*/
       
    99         RATStorageServer& iStorageServer;
       
   100 
       
   101         /* The observered process id */ 
    96         /* The observered process id */ 
   102         TUint iProcessId;
    97         TUint iProcessId;
   103 
    98 
   104         /* The library info */
    99         /* The library info */
   105         TLibraryEventInfo iLibraryInfo;
   100         TLibraryEventInfo iLibraryInfo;
   113         /* A reference to event handler notifier */
   108         /* A reference to event handler notifier */
   114         MAnalyzeToolEventhandlerNotifier& iNotifier;
   109         MAnalyzeToolEventhandlerNotifier& iNotifier;
   115 
   110 
   116         /* Current used log option */
   111         /* Current used log option */
   117         TUint32 iLogOption;
   112         TUint32 iLogOption;
       
   113         
       
   114         // TODO comment
       
   115 		/* */
       
   116 		RATFileLog& iLogFile;
   118     };
   117     };
   119 
   118 
   120 #endif // ANALYZETOOLEVENTHANDLER_H
   119 #endif // ANALYZETOOLEVENTHANDLER_H
   121 
   120 
   122 // End of File
   121 // End of File