perfapps/memspyui/ui/avkon/inc/MemSpyViewHeapTrackingResults.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 MEMSPYVIEWHEAPTRACKINGRESULTS_H
       
    19 #define MEMSPYVIEWHEAPTRACKINGRESULTS_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/memspyenginehelpersysmemtrackerobserver.h>
       
    28 #include <memspy/api/memspyapimemorytrackingcycle.h>
       
    29 
       
    30 // Driver includes
       
    31 #include <memspy/driver/memspydriverobjectsshared.h>
       
    32 
       
    33 // User includes
       
    34 #include "MemSpyViewBase.h"
       
    35 
       
    36 // Classes referenced
       
    37 class CMemSpyEngineHelperSysMemTrackerCycle;
       
    38 class CMemSpyEngineHelperSysMemTrackerCycleChange;
       
    39 class RMemSpySession;
       
    40 
       
    41 class CMemSpyViewHeapTrackingResults : public CMemSpyViewBase, public MMemSpyEngineHelperSysMemTrackerObserver
       
    42     {
       
    43 public:
       
    44     //CMemSpyViewHeapTrackingResults( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver );
       
    45 	CMemSpyViewHeapTrackingResults( RMemSpySession& aSession, MMemSpyViewObserver& aObserver );
       
    46     ~CMemSpyViewHeapTrackingResults();
       
    47     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    48 
       
    49 public: // From CMemSpyViewBase
       
    50     void RefreshL();
       
    51     TMemSpyViewType ViewType() const;
       
    52     CMemSpyViewBase* PrepareParentViewL();
       
    53     CMemSpyViewBase* PrepareChildViewL();
       
    54 
       
    55 private: // From CMemSpyViewBase
       
    56     void SetListBoxModelL();
       
    57 
       
    58 private: // From MMemSpyEngineHelperSysMemTrackerObserver
       
    59     void HandleCyclesResetL();
       
    60     void HandleCycleStartedL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle );
       
    61     void HandleCycleFinishedL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle );
       
    62 private:
       
    63     RArray<CMemSpyApiMemoryTrackingCycle*> iCycles;
       
    64     };
       
    65 
       
    66 
       
    67 
       
    68 
       
    69 
       
    70 
       
    71 
       
    72 class CMemSpyViewHeapTrackingResultsCycleInfo : public CMemSpyViewBase, public MMemSpyEngineHelperSysMemTrackerObserver
       
    73     {
       
    74 public:
       
    75    // CMemSpyViewHeapTrackingResultsCycleInfo( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, const CMemSpyEngineHelperSysMemTrackerCycle& aCycle );
       
    76 	CMemSpyViewHeapTrackingResultsCycleInfo( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, const CMemSpyApiMemoryTrackingCycle& aCycle );
       
    77     ~CMemSpyViewHeapTrackingResultsCycleInfo();
       
    78     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    79 
       
    80 public: // From CMemSpyViewBase
       
    81     void RefreshL();
       
    82     TMemSpyViewType ViewType() const;
       
    83     CMemSpyViewBase* PrepareParentViewL();
       
    84 
       
    85 private: // From CMemSpyViewBase
       
    86     void SetListBoxModelL();
       
    87 
       
    88 private: // From MMemSpyEngineHelperSysMemTrackerObserver
       
    89     void HandleCyclesResetL();
       
    90     void HandleCycleStartedL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle );
       
    91     void HandleCycleFinishedL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle );
       
    92 
       
    93 private: // Data members
       
    94     //const CMemSpyEngineHelperSysMemTrackerCycle& iCycle;
       
    95     const CMemSpyApiMemoryTrackingCycle& iCycle;    
       
    96     };
       
    97 
       
    98 
       
    99 
       
   100 
       
   101 
       
   102 /*
       
   103 class CMemSpyViewHeapTrackingResultsChangeDescriptor : public CMemSpyViewBase, public MMemSpyEngineHelperSysMemTrackerObserver
       
   104     {
       
   105 public:
       
   106     CMemSpyViewHeapTrackingResultsChangeDescriptor( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, const CMemSpyEngineHelperSysMemTrackerCycle& aCycle, const CMemSpyEngineHelperSysMemTrackerCycleChange& aChangeDescriptor, TInt aIndex );
       
   107     ~CMemSpyViewHeapTrackingResultsChangeDescriptor();
       
   108     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
   109 
       
   110 public: // From CMemSpyViewBase
       
   111     void RefreshL();
       
   112     TMemSpyViewType ViewType() const;
       
   113     CMemSpyViewBase* PrepareParentViewL();
       
   114 
       
   115 private: // From CMemSpyViewBase
       
   116     void SetListBoxModelL();
       
   117 
       
   118 private: // From MMemSpyEngineHelperSysMemTrackerObserver
       
   119     void HandleCyclesResetL();
       
   120     void HandleCycleStartedL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle );
       
   121     void HandleCycleFinishedL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle );
       
   122 
       
   123 private: // Data members
       
   124     const CMemSpyEngineHelperSysMemTrackerCycle& iCycle;
       
   125     const CMemSpyEngineHelperSysMemTrackerCycleChange& iChangeDescriptor;
       
   126     TInt iIndex; // For selection rune when moving to parent view
       
   127     };
       
   128 */
       
   129 
       
   130 
       
   131 
       
   132 
       
   133 #endif