memspyui/include/MemSpyViewThreads.h
branchRCL_3
changeset 21 b3cee849fa46
parent 20 48060abbbeaf
child 22 fad26422216a
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 MEMSPYVIEWTHREADS_H
       
    19 #define MEMSPYVIEWTHREADS_H
       
    20 
       
    21 // System includes
       
    22 #include <coecntrl.h>
       
    23 #include <aknlists.h>
       
    24 
       
    25 // User includes
       
    26 #include "MemSpyViewBase.h"
       
    27 
       
    28 // Classes referenced
       
    29 class CMemSpyProcess;
       
    30 class CMemSpyThread;
       
    31 
       
    32 
       
    33 class CMemSpyViewThreads : public CMemSpyViewBase
       
    34     {
       
    35 public:
       
    36     CMemSpyViewThreads( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyProcess& aProcess );
       
    37     ~CMemSpyViewThreads();
       
    38     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    39 
       
    40 public: // API
       
    41     const CMemSpyProcess& Process() const;
       
    42     CMemSpyThread& CurrentThread();
       
    43 
       
    44 public: // Menu framework
       
    45     TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_THREAD; }
       
    46     TInt MenuCascadeCommandId() const { return EMemSpyCmdThread; }
       
    47     void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    48 
       
    49 public: // From CMemSpyViewBase
       
    50     void RefreshL();
       
    51     TMemSpyViewType ViewType() const;
       
    52     CMemSpyViewBase* PrepareParentViewL();
       
    53     CMemSpyViewBase* PrepareChildViewL();
       
    54     TBool HandleCommandL( TInt aCommand );
       
    55 
       
    56 private: // Command handlers
       
    57     void OnCmdEndKillL();
       
    58     void OnCmdEndTerminateL();
       
    59     void OnCmdEndPanicL();
       
    60     void OnCmdSetPriorityL( TInt aCommand );
       
    61     void OnCmdInfoHandlesL();
       
    62 
       
    63 private: // From CMemSpyViewBase
       
    64     void SetListBoxModelL();
       
    65     void HandleListBoxItemActionedL( TInt aCurrentIndex );
       
    66     void HandleListBoxItemSelectedL( TInt aCurrentIndex );
       
    67 
       
    68 private: // Member data
       
    69     CMemSpyProcess& iParentProcess;
       
    70     CMemSpyThread* iCurrentThread;
       
    71     };
       
    72 
       
    73 
       
    74 #endif