memspyui/include/MemSpyViewThreadInfoItemGeneric.h
branchRCL_3
changeset 50 9b2cffad4b5e
parent 49 f8280f3bfeb7
child 60 6646c35e558c
equal deleted inserted replaced
49:f8280f3bfeb7 50:9b2cffad4b5e
     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 
       
    28 // User includes
       
    29 #include "MemSpyViewBase.h"
       
    30 
       
    31 // Classes referenced
       
    32 class CAknWaitDialog;
       
    33 class CMemSpyProcess;
       
    34 class CMemSpyThread;
       
    35 class CMemSpyThreadInfoContainer;
       
    36 class CMemSpyThreadInfoItemBase;
       
    37 
       
    38 
       
    39 class CMemSpyViewThreadInfoItemGeneric : public CMemSpyViewBase
       
    40     {
       
    41 public:
       
    42     CMemSpyViewThreadInfoItemGeneric( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyThreadInfoContainer& aInfoContainer, TMemSpyThreadInfoItemType aType );
       
    43     ~CMemSpyViewThreadInfoItemGeneric();
       
    44 
       
    45 public: // From CMemSpyViewBase
       
    46     void ConstructL( const TRect& aRect, CCoeControl& aContainer, TAny* aSelectionRune = NULL );
       
    47 
       
    48 public: // API
       
    49     CMemSpyProcess& Process() const;
       
    50     CMemSpyThread& Thread() const;
       
    51     CMemSpyThreadInfoContainer& Container() const;
       
    52     CMemSpyThreadInfoItemBase& InfoItem() const;
       
    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 protected: // From CMemSpyViewBase
       
    62     void SetListBoxModelL();
       
    63     void HandleListBoxItemActionedL( TInt aCurrentIndex );
       
    64     void HandleListBoxItemSelectedL( TInt aCurrentIndex );
       
    65 
       
    66 private: // Internal methods
       
    67     void ShowWaitNoteL();
       
    68     void DestroyWaitNote();
       
    69     static TInt CheckForItemConstructionComplete( TAny* aSelf );
       
    70 
       
    71 protected: // Member data
       
    72     CMemSpyThreadInfoContainer& iContainer;
       
    73     CMemSpyThreadInfoItemBase* iInfoItem;
       
    74 
       
    75 private: // Member data
       
    76     CAknWaitDialog* iWaitNote;
       
    77     CPeriodic* iWaitConstructionChecker;
       
    78     };
       
    79 
       
    80 
       
    81 #endif