|
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 #include "MemSpyViewThreadInfoItemGeneralInfo.h" |
|
19 |
|
20 // Engine includes |
|
21 #include <memspy/engine/memspyengine.h> |
|
22 #include <memspy/engine/memspyengineobjectprocess.h> |
|
23 #include <memspy/engine/memspyengineobjectthread.h> |
|
24 #include <memspy/engine/memspyengineobjectcontainer.h> |
|
25 #include <memspy/engine/memspyengineobjectthreadinfoobjects.h> |
|
26 #include <memspy/engine/memspyengineobjectthreadinfocontainer.h> |
|
27 #include <memspy/engine/memspyenginehelperprocess.h> |
|
28 #include <memspy/engine/memspyenginehelperheap.h> |
|
29 #include <memspysession.h> |
|
30 |
|
31 // User includes |
|
32 #include "MemSpyContainerObserver.h" |
|
33 #include "MemSpyViewThreads.h" |
|
34 #include "MemSpyViewThreadInfoItemHeap.h" |
|
35 |
|
36 |
|
37 /* |
|
38 CMemSpyViewThreadInfoItemGeneralInfo::CMemSpyViewThreadInfoItemGeneralInfo( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyThreadInfoContainer& aContainer ) |
|
39 : CMemSpyViewThreadInfoItemGeneric( aEngine, aObserver, aContainer, EMemSpyThreadInfoItemTypeGeneralInfo ) |
|
40 { |
|
41 } |
|
42 */ |
|
43 CMemSpyViewThreadInfoItemGeneralInfo::CMemSpyViewThreadInfoItemGeneralInfo( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, TProcessId aProcId, TThreadId aId, TMemSpyThreadInfoItemType aType ) |
|
44 : CMemSpyViewThreadInfoItemGeneric( aSession, aObserver, aProcId, aId, EMemSpyThreadInfoItemTypeGeneralInfo ) |
|
45 { |
|
46 } |
|
47 |
|
48 |
|
49 TBool CMemSpyViewThreadInfoItemGeneralInfo::HandleCommandL( TInt aCommand ) |
|
50 { |
|
51 TBool handled = ETrue; |
|
52 // |
|
53 switch ( aCommand ) |
|
54 { |
|
55 default: |
|
56 handled = CMemSpyViewBase::HandleCommandL( aCommand ); |
|
57 break; |
|
58 } |
|
59 // |
|
60 return handled; |
|
61 } |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 void CMemSpyViewThreadInfoItemGeneralInfo::HandleListBoxItemActionedL( TInt /*aIndex*/ ) |
|
67 { |
|
68 // Notify observer about item selection |
|
69 ReportEventL( MMemSpyViewObserver::EEventItemActioned ); |
|
70 } |