|
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 MEMSPYDRIVERLOGICALCHANTHREADANDPROCESS_H |
|
19 #define MEMSPYDRIVERLOGICALCHANTHREADANDPROCESS_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 TMemSpyDriverProcessInfo; |
|
31 class TMemSpyDriverInternalThreadInfoParams; |
|
32 |
|
33 |
|
34 class DMemSpyDriverLogChanThreadAndProcess : public DMemSpyDriverLogChanBase |
|
35 { |
|
36 public: |
|
37 DMemSpyDriverLogChanThreadAndProcess( DMemSpyDriverDevice& aDevice, DThread& aThread ); |
|
38 ~DMemSpyDriverLogChanThreadAndProcess(); |
|
39 TInt Construct(); |
|
40 |
|
41 public: // From DMemSpyDriverLogChanBase |
|
42 TInt Request( TInt aFunction, TAny* a1, TAny* a2 ); |
|
43 TBool IsHandler( TInt aFunction ) const; |
|
44 |
|
45 private: // Channel operation handlers |
|
46 TInt GetInfoThread(TUint aTid, TMemSpyDriverInternalThreadInfoParams* aParams ); |
|
47 TInt GetInfoProcess(TUint aTid, TMemSpyDriverProcessInfo* aParams ); |
|
48 TInt EndThread( TUint aId, TExitType aType ); |
|
49 TInt OpenThread( TUint aId ); |
|
50 TInt OpenProcess( TUint aId ); |
|
51 TInt SuspendAllThreadsInProcess( TUint aPid ); |
|
52 TInt ResumeAllThreadsInProcess( TUint aPid ); |
|
53 TInt GetThreadsForProcess( TUint aPid, TDes8* aBufferSink ); |
|
54 TInt SetPriority( TUint aTid, TThreadPriority aPriority ); |
|
55 |
|
56 private: // Internal methods |
|
57 static TInt MapToMemSpyExitReason( TExitType aType ); |
|
58 |
|
59 private: // Data members |
|
60 }; |
|
61 |
|
62 |
|
63 #endif |