-
Notifications
You must be signed in to change notification settings - Fork 2
/
bots.h
34 lines (28 loc) · 819 Bytes
/
bots.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef BOTS_H
#define BOTS_H
#include <QAbstractTableModel>
#include <QList>
#include "gameapp.h"
class bots : public QAbstractTableModel
{
Q_OBJECT
public:
explicit bots(QObject *parent = 0);
int columnCount(const QModelIndex &parent=QModelIndex()) const;
int rowCount(const QModelIndex &parent=QModelIndex()) const;
int size() const;
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const;
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const;
GameApp* & operator[](const QString & key);
int find(const QString & key);
void erase(const QString & key);
void erase(int index);
signals:
public slots:
private:
int columnNb;
int rowNb;
QList<GameApp*> botList;
GameApp * end;
};
#endif // BOTS_H