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 MEMSPYVIEWHEAPTRACKINGSETTINGS_H |
|
19 #define MEMSPYVIEWHEAPTRACKINGSETTINGS_H |
|
20 |
|
21 // System includes |
|
22 #include <hal.h> |
|
23 #include <coecntrl.h> |
|
24 #include <aknlists.h> |
|
25 #include <aknsettingitemlist.h> |
|
26 #include <akncheckboxsettingpage.h> |
|
27 #include <AknQueryDialog.h> |
|
28 |
|
29 |
|
30 // User includes |
|
31 #include "MemSpyViewBase.h" |
|
32 |
|
33 // Classes referenced |
|
34 |
|
35 |
|
36 class CMemSpyViewHeapTrackingSettings : public CMemSpyViewBase |
|
37 { |
|
38 public: |
|
39 CMemSpyViewHeapTrackingSettings( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver ); |
|
40 ~CMemSpyViewHeapTrackingSettings(); |
|
41 void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); |
|
42 |
|
43 public: // From CMemSpyViewBase |
|
44 void RefreshL(); |
|
45 TMemSpyViewType ViewType() const; |
|
46 CMemSpyViewBase* PrepareParentViewL(); |
|
47 CMemSpyViewBase* PrepareChildViewL(); |
|
48 |
|
49 private: // From CMemSpyViewBase |
|
50 void SetListBoxModelL(); |
|
51 |
|
52 private: // Internal methods |
|
53 static void PrepareItemBufL( TDes& aBuf, const TDesC& aCaption, TBool aStatus, TBool aHeapCategorySelected ); |
|
54 }; |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 class CSWMTCategorySelectionCheckBoxSettingItem : public CAknSettingItem |
|
60 { |
|
61 public: |
|
62 CSWMTCategorySelectionCheckBoxSettingItem( TInt aIdentifier, TInt& aCategories ); |
|
63 virtual ~CSWMTCategorySelectionCheckBoxSettingItem(); |
|
64 |
|
65 public: |
|
66 CSelectionItemList* ItemArray() const; |
|
67 |
|
68 protected: |
|
69 void CompleteConstructionL(); |
|
70 void StoreL(); |
|
71 void LoadL(); |
|
72 void HandleSettingPageEventL( CAknSettingPage* aSettingPage, TAknSettingPageEvent aEventType ); |
|
73 |
|
74 private: |
|
75 void AddNewItemToArrayL(const TDesC& aLabel); |
|
76 |
|
77 private: |
|
78 CSelectionItemList* iItemArray; |
|
79 HBufC* iSettingText; |
|
80 TInt& iExtCategories; |
|
81 }; |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 class CMemSpySWMTCategorySelectionCheckBoxSettingPage : public CAknCheckBoxSettingPage |
|
89 { |
|
90 public: |
|
91 CMemSpySWMTCategorySelectionCheckBoxSettingPage( TInt aResourceID, CSelectionItemList* aItemArray ); |
|
92 public: // New functions |
|
93 void UpdateCba(); |
|
94 }; |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 class CMemSpyAllowEmptyDataDialog : public CAknTextQueryDialog |
|
102 { |
|
103 public: |
|
104 CMemSpyAllowEmptyDataDialog( TDes& aText, const TTone& aTone = ENoTone ); |
|
105 protected: // from CAknTextQueryDialog |
|
106 void UpdateLeftSoftKeyL(); |
|
107 }; |
|
108 |
|
109 #endif |
|