|
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 MEMSPYVIEWWINDOWGROUPS_H |
|
19 #define MEMSPYVIEWWINDOWGROUPS_H |
|
20 |
|
21 // System includes |
|
22 #include <hal.h> |
|
23 #include <coecntrl.h> |
|
24 #include <aknlists.h> |
|
25 |
|
26 // Engine includes |
|
27 #include <memspy/engine/memspyenginehelperwindowserver.h> |
|
28 |
|
29 // User includes |
|
30 #include "MemSpyViewBase.h" |
|
31 |
|
32 // Classes referenced |
|
33 |
|
34 |
|
35 class CMemSpyViewWindowGroups : public CMemSpyViewBase |
|
36 { |
|
37 public: |
|
38 CMemSpyViewWindowGroups( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver ); |
|
39 ~CMemSpyViewWindowGroups(); |
|
40 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
41 |
|
42 public: // From CMemSpyViewBase |
|
43 CEikListBox* ConstructListBoxL(); |
|
44 void RefreshL(); |
|
45 TMemSpyViewType ViewType() const; |
|
46 CMemSpyViewBase* PrepareParentViewL(); |
|
47 CMemSpyViewBase* PrepareChildViewL(); |
|
48 |
|
49 public: // Menu framework |
|
50 TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_WINDOW_GROUPS; } |
|
51 TInt MenuCascadeCommandId() const { return EMemSpyCmdWindowGroups; } |
|
52 |
|
53 private: // From CMemSpyViewBase |
|
54 void SetListBoxModelL(); |
|
55 TBool HandleCommandL( TInt aCommand ); |
|
56 |
|
57 private: // Command handlers |
|
58 void OnCmdSwitchToL(); |
|
59 void OnCmdEndL( TInt aCommand ); |
|
60 |
|
61 private: // Internal methods |
|
62 void DetailsL(); |
|
63 void AppendFormatString( TPtr& aPtr, TRefByValue<const TDesC> aFmt, ... ); |
|
64 |
|
65 private: // Data members |
|
66 MMemSpyEngineWindowGroupList* iWindowGroupList; |
|
67 }; |
|
68 |
|
69 |
|
70 #endif |