memspyui/ui/avkon/src/MemSpyViewThreadInfoItemChunk.cpp
branchRCL_3
changeset 60 6646c35e558c
parent 50 9b2cffad4b5e
equal deleted inserted replaced
50:9b2cffad4b5e 60:6646c35e558c
     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 "MemSpyViewThreadInfoItemChunk.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/memspyenginehelperchunk.h>
       
    29 
       
    30 // User includes
       
    31 #include "MemSpyContainerObserver.h"
       
    32 #include "MemSpyViewChunkList.h"
       
    33 
       
    34 
       
    35 
       
    36 CMemSpyViewThreadInfoItemChunk::CMemSpyViewThreadInfoItemChunk( RMemSpySession& aSession, MMemSpyViewObserver& aObserver, TProcessId aProcId, TThreadId aId, TMemSpyThreadInfoItemType aType )
       
    37 :   CMemSpyViewThreadInfoItemGeneric( aSession, aObserver, aProcId, aId, EMemSpyThreadInfoItemTypeChunk )
       
    38     {
       
    39     }
       
    40 
       
    41 
       
    42 CMemSpyViewBase* CMemSpyViewThreadInfoItemChunk::PrepareChildViewL()
       
    43     {	
       
    44     CMemSpyViewBase* child = NULL;
       
    45     /* TODO
       
    46     // Get the code segment list
       
    47     CMemSpyThreadInfoChunk* chunkInfoItem = static_cast< CMemSpyThreadInfoChunk* >( iInfoItem );
       
    48     CMemSpyEngineChunkList* list = &chunkInfoItem->List();
       
    49     
       
    50     // Get the current code segment that corresponds to our currently focused list item.
       
    51     const TInt index = iListBox->CurrentItemIndex();
       
    52     if  ( index >= 0 && index < list->Count() )
       
    53         {
       
    54         CMemSpyEngineChunkEntry& entry = list->At( index );
       
    55         child = new(ELeave) CMemSpyViewChunkDetails( iEngine, iObserver, *list, entry );
       
    56         
       
    57         // Ownership is transferred to child. Cleanupstack guarantees it will be destroyed now.
       
    58         // This object is about to die in any case.
       
    59         chunkInfoItem->NullifyList();
       
    60 
       
    61         CleanupStack::PushL( child );
       
    62         child->ConstructL( Rect(), *Parent() );
       
    63         CleanupStack::Pop( child );
       
    64         }
       
    65     */
       
    66     return child;    
       
    67     }
       
    68 
       
    69 
       
    70 
       
    71 
       
    72 
       
    73