19 #ifndef MELTEDCLIPSMODEL_H 20 #define MELTEDCLIPSMODEL_H 23 #include "mvcpthread.h" 25 class MeltedClipsModel :
public QAbstractItemModel
29 explicit MeltedClipsModel(MvcpThread*
mvcp, QObject *parent = 0);
32 QStringList mimeTypes()
const;
33 QMimeData* mimeData(
const QModelIndexList &indexes)
const;
34 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
35 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
36 QVariant data(
const QModelIndex &index,
int role)
const;
37 Qt::ItemFlags flags(
const QModelIndex &index)
const;
38 QVariant headerData(
int section, Qt::Orientation orientation,
39 int role = Qt::DisplayRole)
const;
40 QModelIndex index(
int row,
int column,
41 const QModelIndex &parent = QModelIndex())
const;
42 QModelIndex parent(
const QModelIndex &index)
const;
43 bool hasChildren(
const QModelIndex &parent)
const;
47 QModelIndex m_rootIndex;
50 QList<QModelIndex> m_pending;
52 void fetch(QObject* parent,
const QModelIndex& index)
const;
55 void onClsResult(QObject* parent, QObjectList* results);
58 #endif // MELTEDCLIPSMODEL_H