27#ifndef _TDEMDILISTITERATOR_H_
28#define _TDEMDILISTITERATOR_H_
30#include <tdemdiiterator.h>
35class TQPtrListIterator;
38class KMdiListIterator :
public KMdiIterator<Item*>
41 KMdiListIterator( TQPtrList<Item>& list )
43 m_iterator =
new TQPtrListIterator<Item>( list );
46 virtual void first() { m_iterator->toFirst(); }
47 virtual void last() { m_iterator->toLast(); }
48 virtual void next() { ++( *m_iterator ); }
49 virtual void prev() { --( *m_iterator ); }
50 virtual bool isDone()
const {
return m_iterator->current() == 0; }
51 virtual Item* currentItem()
const {
return m_iterator->current(); }
53 virtual ~KMdiListIterator() {
delete m_iterator; }
56 TQPtrListIterator<Item> *m_iterator;