-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilezillausermodel.h
More file actions
34 lines (25 loc) · 1010 Bytes
/
filezillausermodel.h
File metadata and controls
34 lines (25 loc) · 1010 Bytes
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 FILEZILLAUSERMODEL_H
#define FILEZILLAUSERMODEL_H
#include <QAbstractItemModel>
#include <vector>
#include "filezillaaccounts.h"
class FilezillaUserModel : public QAbstractItemModel
{
Q_OBJECT
std::vector<FilezillaUser> *pUsers;
public:
explicit FilezillaUserModel(std::vector<FilezillaUser>* users, QObject *parent = 0);
virtual int rowCount(const QModelIndex &parent) const;
virtual int columnCount(const QModelIndex &parent) const;
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const;
virtual QModelIndex parent(const QModelIndex &child) const;
virtual QVariant data(const QModelIndex &index, int role) const;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
virtual Qt::ItemFlags flags(const QModelIndex &index) const;
void pushBack(const FilezillaUser &toAdd);
void clear();
void removeAt(int index);
signals:
public slots:
};
#endif // FILEZILLAUSERMODEL_H