servatrice/cockatrice/src/cardlist.h
Max-Wilhelm Bruker 26a77d9e40 new zone view code
2010-03-08 15:55:35 +01:00

21 lines
454 B
C++

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