devsoundextensions/effects/Loudness/LoudnessMessageHandler/src/EffectDataQueItem.cpp
changeset 0 b8ed18f6c07b
equal deleted inserted replaced
-1:000000000000 0:b8ed18f6c07b
       
     1 /*
       
     2 * Copyright (c) 2004 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:   This file contains the implementation of Effect Data Queue Item.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include "EffectDataQueItem.h"
       
    23 
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CEffectDataQueItem::CEffectDataQueItem
       
    29 // C++ default constructor can NOT contain any code, that
       
    30 // might leave.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CEffectDataQueItem::CEffectDataQueItem()
       
    34 	:	iData(NULL)
       
    35 	{
       
    36 	}
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CEffectDataQueItem::~CEffectDataQueItem
       
    40 // Destructor
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 CEffectDataQueItem::~CEffectDataQueItem()
       
    44 	{
       
    45 	delete iData;
       
    46 	}
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CEffectDataQueItem::ConstructL
       
    50 // Symbian 2nd phase constructor can leave.
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 void CEffectDataQueItem::ConstructL(
       
    54 	TDesC8* aDataBuffer )
       
    55 	{
       
    56 	iData = (HBufC8*)aDataBuffer;
       
    57 	}
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // CEffectDataQueItem::NewL
       
    61 // Two-phased constructor.
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 CEffectDataQueItem* CEffectDataQueItem::NewL(
       
    65 	TDesC8* aDataBuffer )
       
    66 	{
       
    67 	CEffectDataQueItem* self = new (ELeave) CEffectDataQueItem();
       
    68 	CleanupStack::PushL(self);
       
    69 	self->ConstructL(aDataBuffer);
       
    70 	CleanupStack::Pop(self);
       
    71 	return self;
       
    72 	}
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CEffectDataQueItem::EffectData
       
    76 // Symbian 2nd phase constructor can leave.
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 TDesC8& CEffectDataQueItem::EffectData()
       
    80 	{
       
    81 	return *iData;
       
    82 	}