commsfwutils/commsbufs/version1/mbufmgr/INC/MBufQ.h
author srilekhas <srilekhas@symbian.org>
Tue, 20 Jul 2010 12:16:15 +0100
branchRCL_3
changeset 49 005e04322765
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Changes related to enabling networking using Winsock.

// Copyright (c) 1997-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
*/

#if !defined(__MBufQ_h__)
#define __MBufQ_h__

class RMBuf;

class RMBufQ
/**
MBUF QUEUE
@publishedPartner
@released
*/
	{
friend class RMBufPoolChain;
	__DECLARE_CLEANUP
public:
	inline RMBufQ();
	IMPORT_C RMBufQ(RMBuf* aChain);

	inline RMBufQ(RMBuf* aFirst, RMBuf* aLast);

	inline TBool IsEmpty();

	inline RMBuf* First();

	inline RMBuf* Last();
	IMPORT_C void Init();
	IMPORT_C void Assign(RMBufQ& aQueue);
	IMPORT_C void Assign(RMBufChain& aChain);
	IMPORT_C void Append(RMBuf* aBuf);
	IMPORT_C void Append(RMBufQ& aQueue);
	IMPORT_C void Append(RMBufChain& aChain);
	IMPORT_C void Prepend(RMBuf* aBuf);
	IMPORT_C void Prepend(RMBufQ& aQueue);
	IMPORT_C void Prepend(RMBufChain& aChain);
	IMPORT_C RMBuf* Remove();
	IMPORT_C void Free();
//
protected:
	RMBuf* iNext;
	RMBuf* iLast;

private:
	TInt Transfer(RMBufQ& aQueue, TInt aSize);
	};

#if !defined(__MBufQ_Ignore_Inlines__)
#include <comms-infras/mbufq.inl>
#endif // __MBufQ_Ignore_Inlines__

#endif