Update contrib.
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 const TInt TMMFFifoItemBase::iOffset = _FOFF(TMMFFifoItemBase, iSlink);
26 CMMFFifoBase::CMMFFifoBase() : iFifo(TMMFFifoItemBase::iOffset), iFifoIter(iFifo)
36 CMMFFifoBase::~CMMFFifoBase()
38 TMMFFifoItemBase* item;
39 iFifoIter.SetToFirst();
40 while((item = iFifoIter++)!=NULL)
50 * To remove the first stream data from queue
53 void CMMFFifoBase::RemoveFirstItemBase()
57 iFifo.Remove(*iFifo.First());
63 * To get the first stream data from queue
65 * @return "CMMFFifoItem*"
66 * a pointer point to the stream data
69 TMMFFifoItemBase* CMMFFifoBase::GetBase()
71 TMMFFifoItemBase* firstItem;
74 firstItem = iFifo.First();
80 * To add a stream data to the queue, the data will be added at end of queue
82 * @param "TMMFFifoItemBase& aItem"
86 void CMMFFifoBase::AddToFifo(TMMFFifoItemBase& aItem)
93 * To check stream data queue empty or not
96 * a boolean value to indicate the queue is empty or not (ETrue is empty)
99 TBool CMMFFifoBase::IsEmpty()
101 return iFifo.IsEmpty();