12 #ifndef INTERFACE_TREE_CACHE_MODEL_H_
13 #define INTERFACE_TREE_CACHE_MODEL_H_
18 #include <QAbstractItemModel>
19 #include <QIdentityProxyModel>
27 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
28 QVariant data (
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
30 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
31 Qt::ItemFlags flags(
const QModelIndex &index)
const;
33 QVariant getColumnContent(
int idx,
int col,
int role = Qt::DisplayRole);
36 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
42 void deleteDevice(
const QModelIndex &index);
49 QList<interface_t> newDevices;
51 void saveNewDevices();
53 QMap<int, QMap<InterfaceTreeColumns, QVariant> *> * storage;
54 QList<InterfaceTreeColumns> editableColumns;
55 QList<InterfaceTreeColumns> checkableColumns;
58 const interface_t * lookup(
const QModelIndex &index)
const;
61 bool changeIsAllowed(InterfaceTreeColumns col)
const;
62 bool isAvailableField(
const QModelIndex &index)
const;
63 bool isAllowedToBeEdited(
const QModelIndex &index)
const;
Definition: interface_tree_cache_model.h:22
Definition: interface_tree_model.h:57
Definition: androiddump.c:218