commsfwsupport/commselements/NetMeta/inc/MetaBuffer.h
author Daniel A. Rubio <danielr@symbian.org>
Fri, 18 Jun 2010 14:48:37 +0100
branchGCC_SURGE
changeset 43 d65d023db13c
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Fising some symbol visibility issues by adding as dummy object based on the templated class

// Copyright (c) 2004-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:
//

/**
 @file
 @internalTechnology
*/

#if (!defined METABUFFER_H)
#define METABUFFER_H

#include <elements/metatypevariablelen.h>

namespace Meta
{

class TMetaBuf8 : public TMetaVarLen8<RBuf8>
/**

Implementation of MMetaType for dynamicaly allocated RBuf8

@internalComponent
@released since v9.0
*/
	{
public:
	IMPORT_C static MMetaType* NewL(const TAny* aMem, const TAny* aData);

	IMPORT_C virtual TInt Load(TPtrC8& aBuffer);
	IMPORT_C virtual TInt Store(TDes8& aBuffer) const;
	IMPORT_C virtual void Copy(const TAny* aData);
	IMPORT_C virtual TInt Length() const;

protected:
	TMetaBuf8(const TAny* aData);
	};

class TMetaBuf16 : public TMetaVarLen16<RBuf16>
/**

Implementation of MMetaType for dynamicaly allocated RBuf16

@internalComponent
@released since v9.0
*/
	{
public:
	IMPORT_C static MMetaType* NewL(const TAny* aMem, const TAny* aData);

	IMPORT_C virtual TInt Load(TPtrC8& aBuffer);
	IMPORT_C virtual TInt Store(TDes8& aBuffer) const;
	IMPORT_C virtual void Copy(const TAny* aData);
	IMPORT_C virtual TInt Length() const;

protected:
	TMetaBuf16(const TAny* aData);
	};


#if defined(_UNICODE)
typedef TMetaBuf16 TMetaBuf;
#else
typedef TMetaBuf8 TMetaBuf;
#endif
} //namespace Meta


#endif //METABUFFER_H