ostinato/common/protocollistiterator.h
Srivats P. c7d90ff1ab - All tabs converted to spaces in all files
- .vimrc added to reflect settings used in the project
2009-12-28 08:31:28 +00:00

30 lines
806 B
C++

#include <QMutableLinkedListIterator>
class AbstractProtocol;
class ProtocolList;
class ProtocolListIterator
{
private:
QMutableLinkedListIterator<AbstractProtocol*> *_iter;
public:
ProtocolListIterator(ProtocolList &list);
~ProtocolListIterator();
bool findNext(const AbstractProtocol* value) const;
bool findPrevious(const AbstractProtocol* value);
bool hasNext() const;
bool hasPrevious() const;
void insert(AbstractProtocol* value);
AbstractProtocol* next();
AbstractProtocol* peekNext() const;
AbstractProtocol* peekPrevious() const;
AbstractProtocol* previous();
void remove();
void setValue(AbstractProtocol* value) const;
void toBack();
void toFront();
const AbstractProtocol* value() const;
AbstractProtocol* value();
};