kget
Go to the documentation of this file.
28 #include <QAbstractItemModel>
32 #include <kio/global.h>
55 int childCount()
const;
60 int columnCount()
const;
61 QVariant data(
int column,
int role)
const;
62 bool setData(
int column,
const QVariant &value,
FileModel *model,
int role = Qt::EditRole);
70 void addSize(KIO::fileoffset_t size,
FileModel *model);
76 void checkParents(Qt::CheckState state,
FileModel *model);
81 void checkChildren(Qt::CheckState state,
FileModel *model);
84 QList<FileItem*> m_childItems;
85 mutable KIcon m_mimeType;
87 Qt::CheckState m_state;
89 KIO::fileoffset_t m_totalSize;
90 int m_checkusmVerified;
91 int m_signatureVerified;
111 QVariant
data(
const QModelIndex &index,
int role)
const;
112 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
113 Qt::ItemFlags flags(
const QModelIndex &index)
const;
114 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
115 QModelIndex index(
int row,
int column,
const QModelIndex &
parent = QModelIndex())
const;
116 QModelIndex index(
const KUrl &file,
int column);
117 QModelIndex
parent(
const QModelIndex &index)
const;
118 int rowCount(
const QModelIndex &
parent = QModelIndex())
const;
121 void rename(
const QModelIndex &file,
const QString &newName);
128 QModelIndexList fileIndexes(
int column)
const;
134 KUrl getUrl(
const QModelIndex &index);
141 void setDirectory(
const KUrl &newDirectory);
147 void setCustomStatusText(
Job::Status status,
const QString &text);
153 void setCustomStatusIcon(
Job::Status status,
const KIcon &icon);
158 bool downloadFinished(
const KUrl &file);
163 bool isFile(
const QModelIndex &index)
const;
170 void watchCheckState();
175 void stopWatchCheckState();
178 void rename(
const KUrl &oldUrl,
const KUrl &newUrl);
179 void checkStateChanged();
180 void fileFinished(
const KUrl &file);
183 void setupModelData(
const QList<KUrl> &files);
202 FileItem *getItem(
const KUrl &file);
204 void changeData(
int row,
int column,
FileItem *item,
bool fileFinished =
false);
207 void renameFailed(
const KUrl &beforeRename,
const KUrl &afterRename);
211 KUrl m_destDirectory;
212 QList<QVariant> m_header;
213 bool m_checkStateChanged;
215 QHash<KUrl, FileItem*> m_itemCache;
220 QList<FileItem*> m_files;
222 QHash<Job::Status, QString> m_customStatusTexts;
223 QHash<Job::Status, KIcon> m_customStatusIcons;
Status
The status property describes the current job status.
bool setData(int column, const QVariant &value, FileModel *model, int role=Qt::EditRole)
This model represents the files that are being downloaded.
QVariant data(int column, int role) const
bool isFile() const
Returns true if the index represents a file.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.