memspyui/source/MemSpyViewThreadInfoItemGeneralInfo.cpp
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 #include "MemSpyViewThreadInfoItemGeneralInfo.h"
       
    19 
       
    20 // Engine includes
       
    21 #include <memspy/engine/memspyengine.h>
       
    22 #include <memspy/engine/memspyengineobjectprocess.h>
       
    23 #include <memspy/engine/memspyengineobjectthread.h>
       
    24 #include <memspy/engine/memspyengineobjectcontainer.h>
       
    25 #include <memspy/engine/memspyengineobjectthreadinfoobjects.h>
       
    26 #include <memspy/engine/memspyengineobjectthreadinfocontainer.h>
       
    27 #include <memspy/engine/memspyenginehelperprocess.h>
       
    28 #include <memspy/engine/memspyenginehelperheap.h>
       
    29 
       
    30 // User includes
       
    31 #include "MemSpyContainerObserver.h"
       
    32 #include "MemSpyViewThreads.h"
       
    33 #include "MemSpyViewThreadInfoItemHeap.h"
       
    34 
       
    35 
       
    36 
       
    37 CMemSpyViewThreadInfoItemGeneralInfo::CMemSpyViewThreadInfoItemGeneralInfo( CMemSpyEngine& aEngine, MMemSpyViewObserver& aObserver, CMemSpyThreadInfoContainer& aContainer )
       
    38 :   CMemSpyViewThreadInfoItemGeneric( aEngine, aObserver, aContainer, EMemSpyThreadInfoItemTypeGeneralInfo )
       
    39     {
       
    40     }
       
    41 
       
    42 
       
    43 TBool CMemSpyViewThreadInfoItemGeneralInfo::HandleCommandL( TInt aCommand )
       
    44     {
       
    45     TBool handled = ETrue;
       
    46     //
       
    47     switch ( aCommand )
       
    48         {
       
    49     default:
       
    50         handled = CMemSpyViewBase::HandleCommandL( aCommand );
       
    51         break;
       
    52         }
       
    53     //
       
    54     return handled;
       
    55     }
       
    56 
       
    57 
       
    58 
       
    59 
       
    60 void CMemSpyViewThreadInfoItemGeneralInfo::HandleListBoxItemActionedL( TInt /*aIndex*/ )
       
    61     {
       
    62     // Notify observer about item selection
       
    63     ReportEventL( MMemSpyViewObserver::EEventItemActioned );
       
    64     }