|
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 MEMSPYVIEWKERNELOBJECTS_H |
|
19 #define MEMSPYVIEWKERNELOBJECTS_H |
|
20 |
|
21 // System includes |
|
22 #include <hal.h> |
|
23 #include <coecntrl.h> |
|
24 #include <aknlists.h> |
|
25 #include <AknTabObserver.h> |
|
26 |
|
27 // User includes |
|
28 #include "MemSpyViewBase.h" |
|
29 #include <memspy/driver/memspydriverenumerationsshared.h> |
|
30 #include <memspy/api/memspyapikernelobjectitem.h> |
|
31 |
|
32 // Classes referenced |
|
33 class CMemSpyEngineGenericKernelObjectContainer; |
|
34 class CMemSpyEngineGenericKernelObjectList; |
|
35 class CAknNavigationDecorator; |
|
36 class CAknNavigationControlContainer; |
|
37 class CAknTabGroup; |
|
38 |
|
39 class RMemSpySession; |
|
40 |
|
41 class CMemSpyViewKernelObjects : public CMemSpyViewBase, public MAknTabObserver |
|
42 { |
|
43 public: |
|
44 //CMemSpyViewKernelObjects( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, TMemSpyDriverContainerType aObjectType ); |
|
45 CMemSpyViewKernelObjects( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, TMemSpyDriverContainerType aObjectType ); |
|
46 ~CMemSpyViewKernelObjects(); |
|
47 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
48 |
|
49 public: // From CMemSpyViewBase |
|
50 CEikListBox* ConstructListBoxL(); |
|
51 void RefreshL(); |
|
52 TMemSpyViewType ViewType() const; |
|
53 CMemSpyViewBase* PrepareParentViewL(); |
|
54 CMemSpyViewBase* PrepareChildViewL(); |
|
55 |
|
56 public: // Menu framework |
|
57 TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_KERNEL_OBJECTS; } |
|
58 TInt MenuCascadeCommandId() const { return EMemSpyCmdKernelObjects; } |
|
59 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
60 |
|
61 private: // From CMemSpyViewBase |
|
62 void SetListBoxModelL(); |
|
63 TBool HandleCommandL( TInt aCommand ); |
|
64 |
|
65 private: // From CCoeControl |
|
66 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
67 |
|
68 private: // From MAknTabObserver |
|
69 void TabChangedL( TInt aIndex ); |
|
70 |
|
71 private: // Command handlers |
|
72 void OnCmdTerminateL(); |
|
73 void OnCmdSwitchToL(); |
|
74 void OnCmdEndL(); |
|
75 void OnCmdPanicL(); |
|
76 |
|
77 private: // Internal methods |
|
78 void CreateTabsL(); |
|
79 void DetailsL(); |
|
80 void AppendFormatString( TPtr& aPtr, TRefByValue<const TDesC> aFmt, ... ); |
|
81 |
|
82 private: // Data members |
|
83 //CMemSpyEngineGenericKernelObjectContainer* iModel; |
|
84 CDesCArrayFlat* iItems; |
|
85 TMemSpyDriverContainerType iObjectType; |
|
86 CMemSpyEngineGenericKernelObjectList* iObjectList; |
|
87 CAknNavigationDecorator* iNavDecorator; |
|
88 CAknNavigationControlContainer* iNaviPane; |
|
89 CAknNavigationControlContainer* iNavContainer; |
|
90 CAknTabGroup* iTabs; |
|
91 TInt iCurrItemIndex; |
|
92 CDesCArrayFlat* iModel; |
|
93 RArray<CMemSpyApiKernelObjectItem*> iKernelObjectItems; |
|
94 }; |
|
95 |
|
96 #endif |