diff -r 000000000000 -r 71ca22bcf22a mmserv/tms/tmsapi/src/tmsmembuffer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmserv/tms/tmsapi/src/tmsmembuffer.cpp Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Telephony Multimedia Service + * + */ + +#include "tmsmembufferbody.h" +#include "tmsmembuffer.h" + +using namespace TMS; + +EXPORT_C TMSMemBuffer::TMSMemBuffer() : + iBody(NULL) + { + } + +EXPORT_C TMSMemBuffer::~TMSMemBuffer() + { + delete iBody; + } + +EXPORT_C gint TMSMemBuffer::GetType(TMSBufferType& buftype) + { + return iBody->GetType(buftype); + } + +gint TMSMemBuffer::GetTimeStamp(guint& ts) + { + return iBody->GetTimeStamp(ts); + } + +gint TMSMemBuffer::SetTimeStamp(const guint ts) + { + return iBody->SetTimeStamp(ts); + } + +gint TMSMemBuffer::GetDataSize(guint& size) + { + return iBody->GetDataSize(size); + } + +gint TMSMemBuffer::SetDataSize(const guint size) + { + return iBody->SetDataSize(size); + } + +gint TMSMemBuffer::GetDataPtr(guint8*& bufptr) + { + return iBody->GetDataPtr(bufptr); + } + +gint TMSMemBuffer::GetLastBufferFlag(gboolean& flag) + { + return iBody->GetLastBufferFlag(flag); + } + +gint TMSMemBuffer::SetLastBufferFlag(gboolean flag) + { + return iBody->SetLastBufferFlag(flag); + } +