memspyui/ui/avkon/inc/MemSpyViewThreadInfoItemList.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21: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 MEMSPYVIEWTHREADINFOITEMLIST_H
       
    19 #define MEMSPYVIEWTHREADINFOITEMLIST_H
       
    20 
       
    21 // System includes
       
    22 #include <coecntrl.h>
       
    23 #include <aknlists.h>
       
    24 
       
    25 // User includes
       
    26 #include "MemSpyViewBase.h"
       
    27 #include <memspy/engine/memspyengineobjectthreadinfocontainer.h>
       
    28 
       
    29 // Classes referenced
       
    30 class CMemSpyProcess;
       
    31 class CMemSpyThread;
       
    32 class CMemSpyThreadInfoItemBase;
       
    33 class RMemSpySession;
       
    34 
       
    35 class CMemSpyViewThreadInfoItemList : public CMemSpyViewBase, public MMemSpyThreadInfoContainerObserver
       
    36     {
       
    37 public:
       
    38     //CMemSpyViewThreadInfoItemList( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyThread& aThread );
       
    39 	CMemSpyViewThreadInfoItemList( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, TProcessId aProcess, TThreadId aThread );
       
    40     ~CMemSpyViewThreadInfoItemList();
       
    41     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TMemSpyThreadInfoItemType iType);
       
    42 
       
    43 public: // API
       
    44     const CMemSpyThreadInfoItemBase& CurrentInfoItem() const;
       
    45 
       
    46 public: // From CMemSpyViewBase
       
    47     void RefreshL();
       
    48     TMemSpyViewType ViewType() const;
       
    49     CMemSpyViewBase* PrepareParentViewL();
       
    50     CMemSpyViewBase* PrepareChildViewL();
       
    51     TBool HandleCommandL( TInt aCommand );
       
    52 
       
    53 public: // Menu framework
       
    54     TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_THREAD; }
       
    55     TInt MenuCascadeCommandId() const { return EMemSpyCmdThread; }
       
    56     void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    57 
       
    58 private: // Command handlers
       
    59     void OnCmdInfoHandlesL();
       
    60 
       
    61 private: // From MMemSpyThreadInfoContainerObserver
       
    62     void HandleMemSpyEngineInfoContainerEventL( TEvent aEvent, TMemSpyThreadInfoItemType aType );
       
    63 
       
    64 private: // From CMemSpyViewBase
       
    65     void SetListBoxModelL();
       
    66     void HandleListBoxItemActionedL( TInt aCurrentIndex );
       
    67     void HandleListBoxItemSelectedL( TInt aCurrentIndex );
       
    68     static TInt IdleUpdateListBoxModel( TAny* aSelf );
       
    69     void DoIdleUpdateListBoxModelL();   
       
    70 
       
    71 private: // Member data
       
    72     //CMemSpyThread& iThread;
       
    73     TThreadId iThreadId;
       
    74     TProcessId iParentProcessId;
       
    75     CMemSpyThreadInfoItemBase* iCurrentInfoItem;
       
    76     TInt iCurrentInfoItemId;
       
    77     CPeriodic* iIdleResetListboxTimer;
       
    78     };
       
    79 
       
    80 
       
    81 #endif