Cockatrice/cockatrice/src/cardlist.h
2009-09-10 18:28:19 +02:00

20 lines
380 B
C++

#ifndef CARDLIST_H
#define CARDLIST_H
#include <QList>
class CardItem;
class CardList : public QList<CardItem *> {
private:
class compareFunctor;
protected:
bool contentsKnown;
public:
CardList(bool _contentsKnown);
CardItem *findCard(const int id, const bool remove, int *position = NULL);
bool getContentsKnown() const { return contentsKnown; }
void sort();
};
#endif