diff -r 000000000000 -r a03f92240627 memspy/Console/Include/ConsoleMenu.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memspy/Console/Include/ConsoleMenu.h Tue Feb 02 01:57:15 2010 +0200 @@ -0,0 +1,88 @@ +/* +* 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 CONSOLEMENU_H +#define CONSOLEMENU_H + +// System includes +#include +#include +#include + +// Engine includes +#include +#include + +// User includes +#include "ConsoleConstants.h" + +// Classes referenced +class CConsoleBase; + + +class CMemSpyConsoleMenu : public CActive, public MMemSpyEngineObserver + { +public: + static CMemSpyConsoleMenu* NewLC( CMemSpyEngine& aEngine, CConsoleBase& aConsole ); + ~CMemSpyConsoleMenu(); + +private: + CMemSpyConsoleMenu( CMemSpyEngine& aEngine, CConsoleBase& aConsole ); + void ConstructL(); + +public: // API + void DrawMenuL(); + void WaitForInput(); + +private: // From CActive + void RunL(); + void DoCancel(); + +private: // From MMemSpyEngineObserver + void HandleMemSpyEngineEventL( MMemSpyEngineObserver::TEvent aEvent, TAny* aContext ); + +private: // Command handlers + void OnCmdSinkTypeToggleL(); + void OnCmdKernelObjectListingL(); + void OnCmdHeapDataKernelL(); + void OnCmdHeapDataUserL(); + void OnCmdCSVListingHeapL(); + void OnCmdCSVListingStackL(); + void OnCmdHeapCellListUserL(); + +private: // Internal methods + void ClearCommandBuffer(); + void ProcessCommandBufferL(); + void RedrawInputPrompt(); + void RedrawStatusMessage(); + void RedrawStatusMessage( const TDesC& aMessage ); + void GetProcessName(); + void InitiateMemSpyClientServerOperationL( TInt aOpCode ); + +private: // Data members + CMemSpyEngine& iEngine; + CConsoleBase& iConsole; + // + TBuf iCommandBuffer; + TPoint iCommandPromptPos; + TPoint iStatusMessagePos; + TBool iRunningDeviceWideOperation; + }; + + + +#endif