|
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 MEMSPYVIEWTHREADINFOITEMACTIVEOBJECT_H |
|
19 #define MEMSPYVIEWTHREADINFOITEMACTIVEOBJECT_H |
|
20 |
|
21 // System includes |
|
22 #include <coecntrl.h> |
|
23 #include <aknlists.h> |
|
24 |
|
25 // User includes |
|
26 #include "MemSpyViewThreadInfoItemGeneric.h" |
|
27 |
|
28 // Classes referenced |
|
29 class CMemSpyEngineActiveObjectArray; |
|
30 class RMemSpySession; |
|
31 |
|
32 |
|
33 class CMemSpyViewThreadInfoItemActiveObjectBase : public CMemSpyViewThreadInfoItemGeneric |
|
34 { |
|
35 public: |
|
36 CMemSpyViewThreadInfoItemActiveObjectBase( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, TProcessId aProcId, TThreadId aId, TMemSpyThreadInfoItemType aType ); |
|
37 |
|
38 public: // From CMemSpyViewBase |
|
39 TBool HandleCommandL( TInt aCommand ); |
|
40 |
|
41 public: // Menu framework |
|
42 TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_ACTIVE_OBJECTS; } |
|
43 TInt MenuCascadeCommandId() const { return EMemSpyCmdActiveObject; } |
|
44 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
45 |
|
46 protected: |
|
47 CMemSpyEngineActiveObjectArray& ActiveObjectArray() const; |
|
48 |
|
49 private: // Command handlers |
|
50 void OnCmdWriteAOListingL(); |
|
51 }; |
|
52 |
|
53 |
|
54 |
|
55 class CMemSpyViewThreadInfoItemActiveObject : public CMemSpyViewThreadInfoItemActiveObjectBase |
|
56 { |
|
57 public: |
|
58 CMemSpyViewThreadInfoItemActiveObject( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, TProcessId aProcId, TThreadId aId, TMemSpyThreadInfoItemType aType ); |
|
59 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
60 |
|
61 public: // From CMemSpyViewBase |
|
62 TMemSpyViewType ViewType() const; |
|
63 CMemSpyViewBase* PrepareChildViewL(); |
|
64 }; |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 class CMemSpyViewThreadInfoItemActiveObjectDetails : public CMemSpyViewThreadInfoItemActiveObjectBase |
|
70 { |
|
71 public: |
|
72 CMemSpyViewThreadInfoItemActiveObjectDetails( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyThreadInfoContainer& aContainer, TAny* aObjectAddress ); |
|
73 |
|
74 public: // From CMemSpyViewBase |
|
75 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
76 |
|
77 public: // From CMemSpyViewBase |
|
78 TMemSpyViewType ViewType() const; |
|
79 CMemSpyViewBase* PrepareParentViewL(); |
|
80 |
|
81 private: // From CMemSpyViewBase |
|
82 void SetListBoxModelL(); |
|
83 |
|
84 private: // Data members |
|
85 TAny* iObjectAddress; |
|
86 }; |
|
87 |
|
88 |
|
89 #endif |