KIO
Go to the documentation of this file.
22#include <QtCore/QAbstractItemModel>
27class KDirModelPrivate;
73 KFileItem itemForIndex(
const QModelIndex& index )
const;
79#ifndef KDE_NO_DEPRECATED
80 KDE_DEPRECATED QModelIndex indexForItem(
const KFileItem* )
const;
86 QModelIndex indexForItem(
const KFileItem& )
const;
91 QModelIndex indexForUrl(
const KUrl& url)
const;
106 void expandToUrl(
const KUrl& url);
114 void itemChanged(
const QModelIndex& index );
132 enum { ChildCountUnknown = -1 };
137 FileItemRole = 0x07A263FF,
138 ChildCountRole = 0x2C4D0A40,
139 HasJobRole = 0x01E555A5
146 DropOnLocalExecutable = 4
148 Q_DECLARE_FLAGS(DropsAllowed, DropsAllowedFlag)
152 void setDropsAllowed(DropsAllowed dropsAllowed);
155 virtual bool canFetchMore (
const QModelIndex & parent )
const;
157 virtual int columnCount (
const QModelIndex & parent = QModelIndex() )
const;
159 virtual QVariant data (
const QModelIndex & index,
int role = Qt::DisplayRole )
const;
161 virtual bool dropMimeData (
const QMimeData * data, Qt::DropAction action,
int row,
int column,
const QModelIndex & parent );
163 virtual void fetchMore (
const QModelIndex & parent );
165 virtual Qt::ItemFlags flags (
const QModelIndex & index )
const;
167 virtual bool hasChildren (
const QModelIndex & parent = QModelIndex() )
const;
169 virtual QVariant headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
171 virtual QModelIndex index (
int row,
int column,
const QModelIndex & parent = QModelIndex() )
const;
173 virtual QMimeData * mimeData (
const QModelIndexList & indexes )
const;
175 virtual QStringList mimeTypes ()
const;
177 virtual QModelIndex parent (
const QModelIndex & index )
const;
179 virtual int rowCount (
const QModelIndex & parent = QModelIndex() )
const;
182 virtual bool setData (
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole );
184 virtual void sort (
int column, Qt::SortOrder order = Qt::AscendingOrder );
210 void requestSequenceIcon(
const QModelIndex& index,
int sequenceIndex);
228 void setJobTransfersVisible(
bool value);
234 bool jobTransfersVisible()
const;
257 virtual bool insertRows(
int ,
int,
const QModelIndex & = QModelIndex());
258 virtual bool insertColumns(
int,
int,
const QModelIndex & = QModelIndex());
259 virtual bool removeRows(
int,
int,
const QModelIndex & = QModelIndex());
260 virtual bool removeColumns(
int,
int,
const QModelIndex & = QModelIndex());
263 friend class KDirModelPrivate;
264 KDirModelPrivate *
const d;
267 Q_PRIVATE_SLOT( d,
void _k_slotDeleteItems(
const KFileItemList&) )
269 Q_PRIVATE_SLOT( d,
void _k_slotClear() )
270 Q_PRIVATE_SLOT( d,
void _k_slotRedirection(const
KUrl&, const
KUrl&) )
271 Q_PRIVATE_SLOT( d,
void _k_slotJobUrlsChanged(const QStringList&))
274Q_DECLARE_OPERATORS_FOR_FLAGS(
KDirModel::DropsAllowed)
Helper class for the kiojob used to list and update a directory.
A model for a KIO-based directory tree.
void expand(const QModelIndex &index)
Emitted for each subdirectory that is a parent of a url passed to expandToUrl This allows to asynchro...
void needSequenceIcon(const QModelIndex &index, int sequenceIndex)
Emitted when another icon sequence index is requested.
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
A KFileItem is a generic class to handle a file, local or remote.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by
doxygen 1.9.8 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.