mmserv/tms/tmsapi/src/tmsmembuffer.cpp
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     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: Telephony Multimedia Service
       
    15  *
       
    16  */
       
    17 
       
    18 #include "tmsmembufferbody.h"
       
    19 #include "tmsmembuffer.h"
       
    20 
       
    21 using namespace TMS;
       
    22 
       
    23 EXPORT_C TMSMemBuffer::TMSMemBuffer() :
       
    24     iBody(NULL)
       
    25     {
       
    26     }
       
    27 
       
    28 EXPORT_C TMSMemBuffer::~TMSMemBuffer()
       
    29     {
       
    30     delete iBody;
       
    31     }
       
    32 
       
    33 EXPORT_C gint TMSMemBuffer::GetType(TMSBufferType& buftype)
       
    34     {
       
    35     return iBody->GetType(buftype);
       
    36     }
       
    37 
       
    38 gint TMSMemBuffer::GetTimeStamp(guint& ts)
       
    39     {
       
    40     return iBody->GetTimeStamp(ts);
       
    41     }
       
    42 
       
    43 gint TMSMemBuffer::SetTimeStamp(const guint ts)
       
    44     {
       
    45     return iBody->SetTimeStamp(ts);
       
    46     }
       
    47 
       
    48 gint TMSMemBuffer::GetDataSize(guint& size)
       
    49     {
       
    50     return iBody->GetDataSize(size);
       
    51     }
       
    52 
       
    53 gint TMSMemBuffer::SetDataSize(const guint size)
       
    54     {
       
    55     return iBody->SetDataSize(size);
       
    56     }
       
    57 
       
    58 gint TMSMemBuffer::GetDataPtr(guint8*& bufptr)
       
    59     {
       
    60     return iBody->GetDataPtr(bufptr);
       
    61     }
       
    62 
       
    63 gint TMSMemBuffer::GetLastBufferFlag(gboolean& flag)
       
    64     {
       
    65     return iBody->GetLastBufferFlag(flag);
       
    66     }
       
    67 
       
    68 gint TMSMemBuffer::SetLastBufferFlag(gboolean flag)
       
    69     {
       
    70     return iBody->SetLastBufferFlag(flag);
       
    71     }
       
    72