|
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 MEMSPYDRIVERDEVICE_H |
|
19 #define MEMSPYDRIVERDEVICE_H |
|
20 |
|
21 // System includes |
|
22 #include <kernel.h> |
|
23 |
|
24 // Classes referenced |
|
25 class DMemSpyEventMonitor; |
|
26 class DMemSpyDriverOSAdaption; |
|
27 class DMemSpySuspensionManager; |
|
28 class DMemSpyInspectedProcessManager; |
|
29 |
|
30 class DMemSpyDriverDevice : public DLogicalDevice |
|
31 { |
|
32 public: |
|
33 DMemSpyDriverDevice(); |
|
34 ~DMemSpyDriverDevice(); |
|
35 |
|
36 public: // from DLogicalDevice |
|
37 TInt Install(); |
|
38 void GetCaps( TDes8& aDes ) const; |
|
39 TInt Create( DLogicalChannelBase*& aChannel ); |
|
40 |
|
41 public: // API |
|
42 void Cleanup(); |
|
43 // |
|
44 inline TUint32 RHeapVTable() const { return iRHeapVTable; } |
|
45 inline void SetRHeapVTable( TUint32 aVTable ) { iRHeapVTable = aVTable; } |
|
46 // |
|
47 inline DMemSpyEventMonitor& EventMonitor() { return *iEventMonitor; } |
|
48 inline DMemSpyDriverOSAdaption& OSAdaption() { return *iOSAdaption; } |
|
49 inline DMemSpySuspensionManager& SuspensionManager() const { return *iSuspensionManager; } |
|
50 inline DMemSpyInspectedProcessManager& ProcessInspectionManager() { return *iProcessManager; } |
|
51 |
|
52 private: // Data members |
|
53 TUint32 iRHeapVTable; |
|
54 DMemSpyEventMonitor* iEventMonitor; |
|
55 DMemSpyDriverOSAdaption* iOSAdaption; |
|
56 DMemSpySuspensionManager* iSuspensionManager; |
|
57 DMemSpyInspectedProcessManager* iProcessManager; |
|
58 }; |
|
59 |
|
60 |
|
61 |
|
62 #endif |