memspyui/ui/avkon/inc/MemSpyViewThreads.h
branchRCL_3
changeset 22 fad26422216a
parent 21 b3cee849fa46
child 23 f8280f3bfeb7
equal deleted inserted replaced
21:b3cee849fa46 22:fad26422216a
     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 #include <memspy/api/memspyapithread.h>
       
    29 
       
    30 // Classes referenced
       
    31 class CMemSpyProcess;
       
    32 class CMemSpyThread;
       
    33 class RMemSpySession;
       
    34 
       
    35 class CMemSpyViewThreads : public CMemSpyViewBase
       
    36     {
       
    37 public:
       
    38     //CMemSpyViewThreads( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyProcess& aProcess );
       
    39 	CMemSpyViewThreads( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, TProcessId aId, TThreadId aThreadId );
       
    40     ~CMemSpyViewThreads();
       
    41     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    42 
       
    43 public: // API
       
    44     //const CMemSpyProcess& Process() const;
       
    45     //CMemSpyThread& CurrentThread();
       
    46     TProcessId Process() const;
       
    47     TThreadId CurrentThread();
       
    48 
       
    49 public: // Menu framework
       
    50     TUint MenuCascadeResourceId() const { return R_MEMSPY_MENUPANE_THREAD; }
       
    51     TInt MenuCascadeCommandId() const { return EMemSpyCmdThread; }
       
    52     void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    53 
       
    54 public: // From CMemSpyViewBase
       
    55     void RefreshL();
       
    56     TMemSpyViewType ViewType() const;
       
    57     CMemSpyViewBase* PrepareParentViewL();
       
    58     CMemSpyViewBase* PrepareChildViewL();
       
    59     TBool HandleCommandL( TInt aCommand );
       
    60 
       
    61 private: // Command handlers
       
    62     void OnCmdEndKillL();
       
    63     void OnCmdEndTerminateL();
       
    64     void OnCmdEndPanicL();
       
    65     void OnCmdSetPriorityL( TInt aCommand );
       
    66     void OnCmdInfoHandlesL();
       
    67 
       
    68 private: // From CMemSpyViewBase
       
    69     void SetListBoxModelL();
       
    70     void HandleListBoxItemActionedL( TInt aCurrentIndex );
       
    71     void HandleListBoxItemSelectedL( TInt aCurrentIndex );
       
    72 
       
    73 private: // Member data
       
    74     //CMemSpyProcess& iParentProcess;
       
    75     //CMemSpyThread* iCurrentThread;
       
    76     TThreadId iCurrentThreadId;
       
    77     TProcessId iParentProcessId;
       
    78     
       
    79     RArray<CMemSpyApiThread*> iThreads;
       
    80     CDesCArrayFlat* iModel;
       
    81     };
       
    82 
       
    83 
       
    84 #endif