|
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 MEMSPYVIEWECOM_H |
|
19 #define MEMSPYVIEWECOM_H |
|
20 |
|
21 // System includes |
|
22 #include <coecntrl.h> |
|
23 #include <aknlists.h> |
|
24 #include <eikimage.h> |
|
25 #include <AknDialog.h> |
|
26 |
|
27 // User includes |
|
28 #include "MemSpyViewBase.h" |
|
29 |
|
30 // Engine includes |
|
31 #include <memspy/engine/memspyenginehelperecom.h> |
|
32 |
|
33 |
|
34 class CMemSpyViewECom : public CMemSpyViewBase |
|
35 { |
|
36 public: |
|
37 CMemSpyViewECom( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver ); |
|
38 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
39 |
|
40 public: // From CMemSpyViewBase |
|
41 void RefreshL(); |
|
42 TMemSpyViewType ViewType() const; |
|
43 CMemSpyViewBase* PrepareParentViewL(); |
|
44 CMemSpyViewBase* PrepareChildViewL(); |
|
45 |
|
46 private: // From CMemSpyViewBase |
|
47 void SetListBoxModelL(); |
|
48 void HandleListBoxItemActionedL( TInt aIndex ); |
|
49 void HandleListBoxItemSelectedL( TInt aIndex ); |
|
50 |
|
51 private: // Data members |
|
52 CMemSpyEngineEComCategory* iCurrent; |
|
53 }; |
|
54 |
|
55 |
|
56 |
|
57 class CMemSpyViewEComCategory : public CMemSpyViewBase |
|
58 { |
|
59 public: |
|
60 CMemSpyViewEComCategory( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyEngineEComCategory& aCategory ); |
|
61 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
62 |
|
63 public: // From CMemSpyViewBase |
|
64 void RefreshL(); |
|
65 TMemSpyViewType ViewType() const; |
|
66 CMemSpyViewBase* PrepareParentViewL(); |
|
67 CMemSpyViewBase* PrepareChildViewL(); |
|
68 |
|
69 private: // From CMemSpyViewBase |
|
70 void SetListBoxModelL(); |
|
71 void HandleListBoxItemActionedL( TInt aIndex ); |
|
72 void HandleListBoxItemSelectedL( TInt aIndex ); |
|
73 |
|
74 private: // Data members |
|
75 CMemSpyEngineEComCategory& iCategory; |
|
76 CMemSpyEngineEComInterface* iCurrent; |
|
77 }; |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 class CMemSpyViewEComInterface : public CMemSpyViewBase |
|
83 { |
|
84 public: |
|
85 CMemSpyViewEComInterface( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyEngineEComInterface& aInterface ); |
|
86 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
87 |
|
88 public: // From CMemSpyViewBase |
|
89 void RefreshL(); |
|
90 TMemSpyViewType ViewType() const; |
|
91 CMemSpyViewBase* PrepareParentViewL(); |
|
92 CMemSpyViewBase* PrepareChildViewL(); |
|
93 |
|
94 private: // From CMemSpyViewBase |
|
95 void SetListBoxModelL(); |
|
96 void HandleListBoxItemActionedL( TInt aIndex ); |
|
97 void HandleListBoxItemSelectedL( TInt aIndex ); |
|
98 |
|
99 private: // Data members |
|
100 CMemSpyEngineEComInterface& iInterface; |
|
101 CMemSpyEngineEComImplementation* iCurrent; |
|
102 }; |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 class CMemSpyViewEComImplementation : public CMemSpyViewBase |
|
110 { |
|
111 public: |
|
112 CMemSpyViewEComImplementation( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyEngineEComImplementation& aImplementation ); |
|
113 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
114 |
|
115 public: // From CMemSpyViewBase |
|
116 void RefreshL(); |
|
117 TMemSpyViewType ViewType() const; |
|
118 CMemSpyViewBase* PrepareParentViewL(); |
|
119 |
|
120 private: // From CMemSpyViewBase |
|
121 void SetListBoxModelL(); |
|
122 |
|
123 private: // Data members |
|
124 CMemSpyEngineEComImplementation& iImplementation; |
|
125 }; |
|
126 |
|
127 |
|
128 |
|
129 |
|
130 |
|
131 #endif |