Nepomuk
Go to the documentation of this file.
22 #ifndef _NEPOMUK_RESOUCE_MODEL_H_
23 #define _NEPOMUK_RESOUCE_MODEL_H_
25 #include <QtCore/QAbstractItemModel>
81 ResourceTypeColumn = 1,
84 ResourceModelColumnCount = 2
94 ResourceRole = 7766897,
100 ResourceTypeRole = 687585,
105 ResourceCreationDateRole = 7766898
114 virtual Resource resourceForIndex(
const QModelIndex& index )
const = 0;
122 virtual QModelIndex indexForResource(
const Resource& res )
const = 0;
128 virtual QModelIndex parent(
const QModelIndex& child )
const;
134 virtual int columnCount(
const QModelIndex& parent )
const;
141 virtual QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole )
const;
146 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
151 virtual Qt::ItemFlags flags(
const QModelIndex& index )
const;
158 virtual QMimeData* mimeData(
const QModelIndexList& indexes )
const;
163 virtual QStringList mimeTypes()
const;
168 virtual bool setData(
const QModelIndex& index,
const QVariant& value,
int role );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:48:31 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.