commsfwutils/commsbufs/mbufmgr/inc/mbufq.h
author Fionntina Carville <fionntinac@symbian.org>
Wed, 17 Nov 2010 16:18:58 +0000
branchRCL_3
changeset 88 077156ad1d4e
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Bug 2675. Take default commdb from ipconnmgmt instead.

// 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:
//

/**
 @file

*/

#if !defined(__MBufQ_h__)
#define __MBufQ_h__

#include <comms-infras/commsbufq.h>
class RMBuf;

class RMBufQ : public RCommsBufQ
/**
MBUF QUEUE
@publishedPartner
@released
*/
	{
friend class CMBufPoolManager;
friend class CMBufPoolChain;
	__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();
//
private:
	IMPORT_C TInt Transfer(RMBufQ& aQueue, TInt aSize, TInt aBufSize);
	IMPORT_C RMBuf* RemoveLast();
	};

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

#endif