mmfenh/enhancedmediaclient/Client/src/Components/EventObjects/DataBufferProcessedEvent.cpp
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Implementation of the DataBufferProcessedEvent class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "DataBufferProcessedEvent.h"
       
    20 
       
    21 using namespace multimedia;
       
    22 
       
    23 CDataBufferProcessedEvent::CDataBufferProcessedEvent(
       
    24 MDataBuffer* aBuffer,
       
    25 TInt aReason):
       
    26 iDataBuffer(aBuffer),
       
    27 iReason(aReason)
       
    28     {
       
    29     // No impl
       
    30     }
       
    31 
       
    32 CDataBufferProcessedEvent::~CDataBufferProcessedEvent()
       
    33     {
       
    34     }
       
    35 
       
    36 TAny* CDataBufferProcessedEvent::GetInterface()
       
    37     {
       
    38     MBufferProcessedEvent* interface = this;
       
    39     return interface;
       
    40     }
       
    41 
       
    42 MDataBuffer* CDataBufferProcessedEvent::GetDataBuffer()
       
    43     {
       
    44     return iDataBuffer;
       
    45     }
       
    46 
       
    47 TInt CDataBufferProcessedEvent::GetErrorCode()
       
    48     {
       
    49     return iReason;
       
    50     }
       
    51 
       
    52 // End of file