11 #ifndef INTERFACE_TREE_CACHE_MODEL_H_ 12 #define INTERFACE_TREE_CACHE_MODEL_H_ 14 #include <ui/qt/models/interface_tree_model.h> 17 #include <QAbstractItemModel> 18 #include <QIdentityProxyModel> 28 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
29 QVariant data (
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
31 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
32 Qt::ItemFlags flags(
const QModelIndex &index)
const;
34 QVariant getColumnContent(
int idx,
int col,
int role = Qt::DisplayRole);
37 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
43 void deleteDevice(
const QModelIndex &index);
50 QList<interface_t> newDevices;
52 void saveNewDevices();
54 QMap<int, QMap<InterfaceTreeColumns, QVariant> *> * storage;
55 QList<InterfaceTreeColumns> editableColumns;
56 QList<InterfaceTreeColumns> checkableColumns;
59 const interface_t * lookup(
const QModelIndex &index)
const;
62 bool changeIsAllowed(InterfaceTreeColumns col)
const;
63 bool isAvailableField(
const QModelIndex &index)
const;
64 bool isAllowedToBeEdited(
const QModelIndex &index)
const;
Definition: interface_tree_model.h:54
Definition: interface_tree_cache_model.h:20
Definition: androiddump.c:211