memspyui/include/MemSpyViewThreadInfoItemList.h
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     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 
       
    34 
       
    35 class CMemSpyViewThreadInfoItemList : public CMemSpyViewBase, public MMemSpyThreadInfoContainerObserver
       
    36     {
       
    37 public:
       
    38     CMemSpyViewThreadInfoItemList( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyThread& aThread );
       
    39     ~CMemSpyViewThreadInfoItemList();
       
    40     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    41 
       
    42 public: // API
       
    43     const CMemSpyProcess& Process() const;
       
    44     const CMemSpyThread& Thread() const;
       
    45     const CMemSpyThreadInfoItemBase& CurrentInfoItem() const;
       
    46 
       
    47 public: // From CMemSpyViewBase
       
    48     void RefreshL();
       
    49     TMemSpyViewType ViewType() const;
       
    50     CMemSpyViewBase* PrepareParentViewL();
       
    51     CMemSpyViewBase* PrepareChildViewL();
       
    52     TBool HandleCommandL( TInt aCommand );
       
    53 
       
    54 public: // Menu framework
       
    55     TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_THREAD; }
       
    56     TInt MenuCascadeCommandId() const { return EMemSpyCmdThread; }
       
    57     void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    58 
       
    59 private: // Command handlers
       
    60     void OnCmdInfoHandlesL();
       
    61 
       
    62 private: // From MMemSpyThreadInfoContainerObserver
       
    63     void HandleMemSpyEngineInfoContainerEventL( TEvent aEvent, TMemSpyThreadInfoItemType aType );
       
    64 
       
    65 private: // From CMemSpyViewBase
       
    66     void SetListBoxModelL();
       
    67     void HandleListBoxItemActionedL( TInt aCurrentIndex );
       
    68     void HandleListBoxItemSelectedL( TInt aCurrentIndex );
       
    69     static TInt IdleUpdateListBoxModel( TAny* aSelf );
       
    70     void DoIdleUpdateListBoxModelL();
       
    71 
       
    72 private: // Member data
       
    73     CMemSpyThread& iThread;
       
    74     CMemSpyThreadInfoItemBase* iCurrentInfoItem;
       
    75     CPeriodic* iIdleResetListboxTimer;
       
    76     };
       
    77 
       
    78 
       
    79 #endif