2009-08-02 09:52:34 -05:00
|
|
|
#include <QMutableLinkedListIterator>
|
|
|
|
|
|
|
|
class AbstractProtocol;
|
|
|
|
class ProtocolList;
|
|
|
|
|
|
|
|
class ProtocolListIterator
|
|
|
|
{
|
|
|
|
private:
|
2009-12-28 02:31:28 -06:00
|
|
|
QMutableLinkedListIterator<AbstractProtocol*> *_iter;
|
2009-08-02 09:52:34 -05:00
|
|
|
|
|
|
|
public:
|
2009-12-28 02:31:28 -06:00
|
|
|
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();
|
2009-08-02 09:52:34 -05:00
|
|
|
};
|