1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MEMSPYDRIVERLOGICALCHANUSEREVENTMONITOR_H |
|
19 #define MEMSPYDRIVERLOGICALCHANUSEREVENTMONITOR_H |
|
20 |
|
21 // System includes |
|
22 #include <e32cmn.h> |
|
23 #include <kern_priv.h> |
|
24 |
|
25 // User includes |
|
26 #include "MemSpyDriverLogChanBase.h" |
|
27 |
|
28 // Classes referenced |
|
29 class DMemSpyDriverDevice; |
|
30 class DMemSpyDriverClientEMManager; |
|
31 class TMemSpyDriverInternalEventMonitorParams; |
|
32 |
|
33 |
|
34 class DMemSpyDriverLogChanUserEventMonitor : public DMemSpyDriverLogChanBase |
|
35 { |
|
36 public: |
|
37 DMemSpyDriverLogChanUserEventMonitor( DMemSpyDriverDevice& aDevice, DThread& aThread ); |
|
38 ~DMemSpyDriverLogChanUserEventMonitor(); |
|
39 |
|
40 public: // From DMemSpyDriverLogChanBase |
|
41 TInt Construct(); |
|
42 TInt Request( TInt aFunction, TAny* a1, TAny* a2 ); |
|
43 TBool IsHandler( TInt aFunction ) const; |
|
44 |
|
45 private: // Channel operation handlers |
|
46 TInt EventMonitorOpen( TAny* aHandle ); |
|
47 TInt EventMonitorClose( TUint aHandle ); |
|
48 TInt EventMonitorNotify( TMemSpyDriverInternalEventMonitorParams* aParams ); |
|
49 TInt EventMonitorNotifyCancel( TUint aHandle ); |
|
50 |
|
51 private: // Data members |
|
52 DMemSpyDriverClientEMManager* iEventMonitorManager; |
|
53 }; |
|
54 |
|
55 |
|
56 #endif |
|