diff -r 5db69f4c3d06 -r b048e15729d6 perfapps/memspyui/ui/avkon/inc/MemSpyViewHeapTracking.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perfapps/memspyui/ui/avkon/inc/MemSpyViewHeapTracking.h Fri Sep 03 17:11:21 2010 +0300 @@ -0,0 +1,83 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef MEMSPYVIEWHEAPTRACKING_H +#define MEMSPYVIEWHEAPTRACKING_H + +// System includes +#include +#include +#include + +// Engine includes +#include +#include + +// User includes +#include "MemSpyViewBase.h" + +// Classes referenced +class RMemSpySession; + + +class CMemSpyViewHeapTracking : public CMemSpyViewBase, public MMemSpyEngineHelperSysMemTrackerObserver + { +public: + CMemSpyViewHeapTracking( RMemSpySession& aSession, MMemSpyViewObserver& aObserver ); + ~CMemSpyViewHeapTracking(); + void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL ); + +public: // From CMemSpyViewBase + void RefreshL(); + TMemSpyViewType ViewType() const; + CMemSpyViewBase* PrepareParentViewL(); + CMemSpyViewBase* PrepareChildViewL(); + +public: + static TInt AsyncStopTimerCallback( TAny* aParam ); + +private: // From CMemSpyViewBase + void SetListBoxModelL(); + +private: // From MMemSpyEngineHelperSysMemTrackerObserver + void HandleCyclesResetL(); + void HandleCycleStartedL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); + void HandleCycleFinishedL( const CMemSpyEngineHelperSysMemTrackerCycle& aCycle ); + +private: // Internal methods + TInt IndexByViewType( TMemSpyViewType aType ); + void SetConfigByModeL( TMemSpyEngineHelperSysMemTrackerConfig::TMemSpyEngineSysMemTrackerMode aMode, TMemSpyEngineHelperSysMemTrackerConfig& aConfig ); + TInt AsyncStopTimerCallback(); + void GetSwmtConfig( TMemSpyEngineHelperSysMemTrackerConfig& aConfig ); + void SetSwmtConfig( TMemSpyEngineHelperSysMemTrackerConfig& aConfig ); + +private: // Enum + enum TMemSpyViewHeapTrackingState + { + EMemSpyViewHeapTrackingStateIdle = 0, + EMemSpyViewHeapTrackingStateTimerOn, + EMemSpyViewHeapTrackingStateSingleOn + }; + +private: // Data + TMemSpyEngineHelperSysMemTrackerConfig iOriginalConfig; + TMemSpyViewHeapTrackingState iState; + CAsyncCallBack* iStopTimerCallBack; + }; + + +#endif