perfapps/memspyui/ui/avkon/inc/MemSpyViewHeapTrackingSettings.h
changeset 48 da3ec8478e66
equal deleted inserted replaced
47:11fa016241a4 48:da3ec8478e66
       
     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 class RMemSpySession;
       
    35 
       
    36 
       
    37 class CMemSpyViewHeapTrackingSettings : public CMemSpyViewBase
       
    38     {
       
    39 public:
       
    40     //CMemSpyViewHeapTrackingSettings( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver );
       
    41 	CMemSpyViewHeapTrackingSettings( RMemSpySession& aSession, MMemSpyViewObserver& aObserver );
       
    42     ~CMemSpyViewHeapTrackingSettings();
       
    43     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    44 
       
    45 public: // From CMemSpyViewBase
       
    46     void RefreshL();
       
    47     TMemSpyViewType ViewType() const;
       
    48     CMemSpyViewBase* PrepareParentViewL();
       
    49     CMemSpyViewBase* PrepareChildViewL();
       
    50     void GetSwmtConfig( TMemSpyEngineHelperSysMemTrackerConfig& aConfig );
       
    51     void SetSwmtConfig( TMemSpyEngineHelperSysMemTrackerConfig& aConfig );
       
    52 
       
    53 private: // From CMemSpyViewBase
       
    54     void SetListBoxModelL();
       
    55 
       
    56 private: // Internal methods
       
    57     static void PrepareItemBufL( TDes& aBuf, const TDesC& aCaption, TBool aStatus, TBool aHeapCategorySelected );
       
    58     };
       
    59 
       
    60 
       
    61 
       
    62 
       
    63 class CSWMTCategorySelectionCheckBoxSettingItem : public CAknSettingItem
       
    64     {
       
    65 public:
       
    66     CSWMTCategorySelectionCheckBoxSettingItem( TInt aIdentifier, TInt& aCategories );
       
    67     virtual ~CSWMTCategorySelectionCheckBoxSettingItem();
       
    68 
       
    69 public:
       
    70     CSelectionItemList* ItemArray() const;
       
    71     
       
    72 protected:
       
    73     void CompleteConstructionL();
       
    74     void StoreL();
       
    75     void LoadL();
       
    76     void HandleSettingPageEventL( CAknSettingPage* aSettingPage, TAknSettingPageEvent aEventType );
       
    77 
       
    78 private:
       
    79     void AddNewItemToArrayL(const TDesC& aLabel); 
       
    80     
       
    81 private:
       
    82     CSelectionItemList*     iItemArray;
       
    83     HBufC*                  iSettingText;
       
    84     TInt&                   iExtCategories;
       
    85     };
       
    86 
       
    87 
       
    88 
       
    89 
       
    90 
       
    91 
       
    92 class CMemSpySWMTCategorySelectionCheckBoxSettingPage : public CAknCheckBoxSettingPage
       
    93     {
       
    94     public:
       
    95         CMemSpySWMTCategorySelectionCheckBoxSettingPage( TInt aResourceID, CSelectionItemList* aItemArray );
       
    96     public:     // New functions
       
    97         void UpdateCba();
       
    98     };
       
    99     
       
   100 
       
   101 
       
   102 
       
   103 
       
   104 
       
   105 class CMemSpyAllowEmptyDataDialog : public CAknTextQueryDialog
       
   106     {
       
   107     public:
       
   108         CMemSpyAllowEmptyDataDialog( TDes& aText, const TTone& aTone = ENoTone );
       
   109     protected: // from CAknTextQueryDialog
       
   110         void UpdateLeftSoftKeyL();
       
   111     };
       
   112 
       
   113 #endif