mmfenh/enhancedmediaclient/Plugins/CacheSource/src/SinkQueueItem.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 Cache Source Reader active object.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <MultimediaDataSource.h>
       
    22 #include "SinkQueueItem.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CSinkQueueItem::CSinkQueueItem
       
    28 // C++ default constructor can NOT contain any code, that
       
    29 // might leave.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 CSinkQueueItem::CSinkQueueItem(
       
    33                                CMMFBuffer* aBuffer )
       
    34                                :iBuffer(aBuffer)
       
    35     {
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CSinkQueueItem::ConstructL
       
    40 // Symbian 2nd phase constructor can leave.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 void CSinkQueueItem::ConstructL()
       
    44     {
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // CSinkQueueItem::NewL
       
    49 // Two-phased constructor.
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 CSinkQueueItem* CSinkQueueItem::NewL(
       
    53                                      CMMFBuffer* aBuffer )
       
    54     {
       
    55     CSinkQueueItem* self = new(ELeave) CSinkQueueItem( aBuffer );
       
    56     CleanupStack::PushL(self);
       
    57     self->ConstructL();
       
    58     CleanupStack::Pop(self);
       
    59     return self;
       
    60     }
       
    61 
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CSinkQueueItem::~CSinkQueueItem
       
    65 // Destructor
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 CSinkQueueItem::~CSinkQueueItem()
       
    69     {
       
    70     }
       
    71 
       
    72 CMMFDataBuffer* CSinkQueueItem::Buffer()
       
    73     {    
       
    74     return static_cast<CMMFDataBuffer*>(iBuffer);
       
    75     }
       
    76 
       
    77 // End of file