memspyui/ui/avkon/inc/MemSpyViewKernelHeap.h
branchRCL_3
changeset 19 b3cee849fa46
equal deleted inserted replaced
18:48060abbbeaf 19:b3cee849fa46
       
     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 MEMSPYVIEWKERNELHEAP_H
       
    19 #define MEMSPYVIEWKERNELHEAP_H
       
    20 
       
    21 // System includes
       
    22 #include <hal.h>
       
    23 #include <coecntrl.h>
       
    24 #include <aknlists.h>
       
    25 
       
    26 // User includes
       
    27 #include "MemSpyViewBase.h"
       
    28 #include <memspy/api/memspyapiheap.h>
       
    29 
       
    30 // Classes referenced
       
    31 class CMemSpyEngineGenericKernelObjectContainer;
       
    32 
       
    33 class RMemSpySession;
       
    34 
       
    35 class CMemSpyViewKernelHeap : public CMemSpyViewBase
       
    36     {
       
    37 public:    
       
    38 	CMemSpyViewKernelHeap( RMemSpySession& aSession, MMemSpyViewObserver& aObserver );	
       
    39     ~CMemSpyViewKernelHeap();
       
    40     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    41 
       
    42 public: // From CMemSpyViewBase
       
    43     void RefreshL();
       
    44     TMemSpyViewType ViewType() const;
       
    45     CMemSpyViewBase* PrepareParentViewL();
       
    46     CMemSpyViewBase* PrepareChildViewL();
       
    47 
       
    48 public: // Menu framework
       
    49     TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_KERNEL_HEAP; }
       
    50     TInt MenuCascadeCommandId() const { return EMemSpyCmdKernelHeap; }
       
    51 
       
    52 private: // From CMemSpyViewBase
       
    53     void SetListBoxModelL();
       
    54     TBool HandleCommandL( TInt aCommand );    
       
    55 
       
    56 private: // Command handlers
       
    57     void OnCmdDumpKernelHeapL();
       
    58 
       
    59 private: // Internal methods
       
    60     //CDesCArrayFlat* FormatModel( RArray<CMemSpyApiHeap*> &aHeap );
       
    61     CDesCArrayFlat* FormatModel( CMemSpyApiHeap* aHeap );
       
    62     HBufC* FormatItem( const TDesC& aCaption, const TDesC& aValue );
       
    63     HBufC* FormatItem( const TDesC& aCaption, TInt aValue );
       
    64     HBufC* FormatItem( const TDesC& aCaption, TUint aValue );
       
    65     HBufC* FormatItem( const TDesC& aCaption, const TInt64& aValue );
       
    66     HBufC* FormatItem( const TDesC& aCaption, TAny* aValue );
       
    67     HBufC* FormatItem( const TDesC& aCaption, TUint* aValue );
       
    68     HBufC* FormatItem( const TDesC& aCaption, TUint8* aValue );
       
    69     HBufC* FormatPercentageItem( const TDesC& aCaption, TReal aOneHundredPercentValue, TReal aValue );
       
    70 
       
    71 private: // Data members
       
    72     };
       
    73 
       
    74 
       
    75 #endif