summaryrefslogtreecommitdiffstats
path: root/src/model.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/model.h')
-rw-r--r--src/model.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/model.h b/src/model.h
index d5a529a..a03f015 100644
--- a/src/model.h
+++ b/src/model.h
@@ -3,30 +3,26 @@
#include <QAbstractListModel>
#include <QFileIconProvider>
-#include <QVector>
-#include "DataEntry.h"
-#include <vector>
+#include <QList>
+#include "session.h"
class Model : public QAbstractListModel
{
Q_OBJECT
public:
- Model(std::vector<DataEntry>, QObject *parent = 0);
+ Model(QList<Session*>, QObject *parent = 0);
~Model();
int rowCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
-// QVariant headerData(int section, Qt::Orientation orientation, int role) const;
private:
- int rc;
- std::vector<DataEntry> entries;
- //QVector<QString> *list;
- QFileIconProvider iconProvider;
+ int rowCount_;
+ QList<Session*> entries_;
+ QFileIconProvider iconProvider; //TODO
};
#endif // MODEL_H
-