memspy/MemSpyClient/src/memspyapithreadinfoitem.cpp
branchRCL_3
changeset 59 8ad140f3dd41
parent 49 7fdc9a71d314
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
     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 <memspy/api/memspyapithreadinfoitem.h>
       
    19 #include <memspy/engine/memspyengine.h>
       
    20 #include <memspy/engine/memspythreadinfoitemdata.h>
       
    21 
       
    22 EXPORT_C CMemSpyApiThreadInfoItem::~CMemSpyApiThreadInfoItem()
       
    23 	{
       
    24 	delete iInfoItem;
       
    25 	}
       
    26 
       
    27 EXPORT_C const TDesC& CMemSpyApiThreadInfoItem::Caption() const
       
    28 	{
       
    29 	return iInfoItem->iCaption;
       
    30 	}
       
    31 
       
    32 EXPORT_C const TDesC& CMemSpyApiThreadInfoItem::Value() const
       
    33 	{
       
    34 	return iInfoItem->iValue;
       
    35 	}
       
    36 
       
    37 CMemSpyApiThreadInfoItem::CMemSpyApiThreadInfoItem() : iInfoItem(0)
       
    38 	{
       
    39 	}
       
    40 
       
    41 void CMemSpyApiThreadInfoItem::ConstructL(const TMemSpyThreadInfoItemData& aData)
       
    42 	{
       
    43 	iInfoItem = new (ELeave) TMemSpyThreadInfoItemData(aData);
       
    44 	}
       
    45 
       
    46 CMemSpyApiThreadInfoItem* CMemSpyApiThreadInfoItem::NewL(const TMemSpyThreadInfoItemData& aData)
       
    47 	{
       
    48 	CMemSpyApiThreadInfoItem* self = CMemSpyApiThreadInfoItem::NewLC(aData);
       
    49 	CleanupStack::Pop(self);
       
    50 	return (self);
       
    51 	}
       
    52 
       
    53 CMemSpyApiThreadInfoItem* CMemSpyApiThreadInfoItem::NewLC(const TMemSpyThreadInfoItemData& aData)
       
    54 	{
       
    55 	CMemSpyApiThreadInfoItem* self = new (ELeave) CMemSpyApiThreadInfoItem;
       
    56 	CleanupStack::PushL(self);
       
    57 	self->ConstructL(aData);
       
    58 	return (self);
       
    59 	}
       
    60