-
Notifications
You must be signed in to change notification settings - Fork 0
/
xtaffilesystemmodel.h
40 lines (30 loc) · 1.23 KB
/
xtaffilesystemmodel.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
35
36
37
38
39
40
#ifndef XTAFFILESYSTEMMODEL_H
#define XTAFFILESYSTEMMODEL_H
#include <QFileSystemModel>
#include "xtaffsys.h"
class XtafFileSystemModel : public QAbstractItemModel
{
Q_OBJECT
public:
explicit XtafFileSystemModel(QObject *parent = 0);
void setReadOnly(bool enable);
bool isReadOnly() const;
QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
QModelIndex index(const QModelIndex & parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex & index) const;
int rowCount(const QModelIndex & parent = QModelIndex()) const;
int columnCount(const QModelIndex & parent = QModelIndex()) const;
QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
bool hasChildren(const QModelIndex & parent = QModelIndex()) const;
Qt::ItemFlags flags(const QModelIndex & index) const;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
int setXtafFilesystem(XtafFsys *fsys);
int setPartitionNumber(int partNum);
int reloadPartition();
private:
XtafFsys *fsys;
QModelIndex rootIndex;
signals:
public slots:
};
#endif // XTAFFILESYSTEMMODEL_H