memspyui/ui/avkon/inc/MemSpyViewThreadInfoItemGeneric.h
branchRCL_3
changeset 20 fad26422216a
parent 19 b3cee849fa46
child 21 f8280f3bfeb7
equal deleted inserted replaced
19:b3cee849fa46 20: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 MEMSPYVIEWTHREADINFOITEMGENERIC_H
       
    19 #define MEMSPYVIEWTHREADINFOITEMGENERIC_H
       
    20 
       
    21 // System includes
       
    22 #include <coecntrl.h>
       
    23 #include <aknlists.h>
       
    24 
       
    25 // Engine includes
       
    26 #include <memspy/engine/memspyengineobjectthreadinfoobjects.h>
       
    27 #include <memspy/api/memspyapithreadinfoitem.h>
       
    28 
       
    29 // User includes
       
    30 #include "MemSpyViewBase.h"
       
    31 
       
    32 // Classes referenced
       
    33 class CAknWaitDialog;
       
    34 class CMemSpyProcess;
       
    35 class CMemSpyThread;
       
    36 class CMemSpyThreadInfoContainer;
       
    37 class CMemSpyThreadInfoItemBase;
       
    38 class RMemSpySession;
       
    39 
       
    40 class CMemSpyViewThreadInfoItemGeneric : public CMemSpyViewBase
       
    41     {
       
    42 public:
       
    43     //CMemSpyViewThreadInfoItemGeneric( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyThreadInfoContainer& aInfoContainer, TMemSpyThreadInfoItemType aType );
       
    44 	CMemSpyViewThreadInfoItemGeneric( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, TProcessId aProcessId, TThreadId aId, TMemSpyThreadInfoItemType aType );
       
    45     ~CMemSpyViewThreadInfoItemGeneric();
       
    46 
       
    47 public: // From CMemSpyViewBase
       
    48     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    49 
       
    50 public: // API
       
    51     CMemSpyProcess& Process() const;
       
    52     CMemSpyThread& Thread() const;
       
    53     CMemSpyThreadInfoContainer& Container() const;
       
    54     CMemSpyThreadInfoItemBase& InfoItem() const;
       
    55     TThreadId ThreadId() { return iThreadId; }
       
    56     
       
    57 public: // From CMemSpyViewBase
       
    58     void RefreshL();
       
    59     TMemSpyViewType ViewType() const;
       
    60     CMemSpyViewBase* PrepareParentViewL();
       
    61     CMemSpyViewBase* PrepareChildViewL();
       
    62     TBool HandleCommandL( TInt aCommand );
       
    63 
       
    64 protected: // From CMemSpyViewBase
       
    65     void SetListBoxModelL();
       
    66     void HandleListBoxItemActionedL( TInt aCurrentIndex );
       
    67     void HandleListBoxItemSelectedL( TInt aCurrentIndex );
       
    68 
       
    69 private: // Internal methods
       
    70     void ShowWaitNoteL();
       
    71     void DestroyWaitNote();
       
    72     static TInt CheckForItemConstructionComplete( TAny* aSelf );
       
    73 
       
    74 protected: // Member data
       
    75     //CMemSpyThreadInfoContainer& iContainer;
       
    76     //CMemSpyThreadInfoItemBase* iInfoItem;
       
    77     
       
    78 private: // Member data
       
    79     CAknWaitDialog* iWaitNote;
       
    80     CPeriodic* iWaitConstructionChecker;
       
    81     
       
    82     RArray<CMemSpyApiThreadInfoItem*> iThreadInfoItems;  //cigasto
       
    83     CDesCArrayFlat* iModel;
       
    84     TThreadId iThreadId;
       
    85     TProcessId iParentProcessId;
       
    86     TMemSpyThreadInfoItemType iType;
       
    87     };
       
    88 
       
    89 
       
    90 #endif