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 MEMSPYVIEWSERVERLIST_H |
|
19 #define MEMSPYVIEWSERVERLIST_H |
|
20 |
|
21 // System includes |
|
22 #include <coecntrl.h> |
|
23 #include <aknlists.h> |
|
24 |
|
25 // User includes |
|
26 #include "MemSpyViewBase.h" |
|
27 |
|
28 #include <memspy/api/memspyapiserver.h> |
|
29 #include <memspysession.h> |
|
30 |
|
31 // Classes referenced |
|
32 class CMemSpyEngineServerList; |
|
33 class CMemSpyEngineServerEntry; |
|
34 class RMemSpySession; |
|
35 |
|
36 class CMemSpyViewServerList : public CMemSpyViewBase |
|
37 { |
|
38 public: |
|
39 //CMemSpyViewServerList( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver ); |
|
40 CMemSpyViewServerList( RMemSpySession& aSession, MMemSpyViewObserver& aObserver ); |
|
41 ~CMemSpyViewServerList(); |
|
42 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
43 |
|
44 public: // From CMemSpyViewBase |
|
45 TBool HandleCommandL( TInt aCommand ); |
|
46 void RefreshL(); |
|
47 TMemSpyViewType ViewType() const; |
|
48 CMemSpyViewBase* PrepareParentViewL(); |
|
49 CMemSpyViewBase* PrepareChildViewL(); |
|
50 |
|
51 public: // Menu framework |
|
52 TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_SERVER_LIST; } |
|
53 TInt MenuCascadeCommandId() const { return EMemSpyCmdServerList; } |
|
54 |
|
55 private: // Command handlers |
|
56 void OnCmdServerListSortByNameL(); |
|
57 void OnCmdServerListSortBySessionCountL(); |
|
58 void OnCmdServerListOutputSummaryL(); |
|
59 void OnCmdServerListOutputDetailedL(); |
|
60 void OnCmdServerListOutputGenericL( TBool aDetailed ); |
|
61 |
|
62 private: // From CMemSpyViewBase |
|
63 void SetListBoxModelL(); |
|
64 void HandleListBoxItemActionedL( TInt aCurrentIndex ); |
|
65 |
|
66 private: // Data members |
|
67 CMemSpyEngineServerList* iList; |
|
68 const CMemSpyEngineServerEntry* iActionedItem; |
|
69 TInt iActionedItemIndex; |
|
70 RArray<CMemSpyApiServer*> iServers; |
|
71 CDesCArrayFlat* iModel; |
|
72 TSortType iSort; |
|
73 }; |
|
74 |
|
75 |
|
76 #endif |
|