kget
chunkdownloadmodel.cpp
Go to the documentation of this file.
34 ChunkDownloadModel::Item::Item(ChunkDownloadInterface* cd,const QString & files) : cd(cd),files(files)
bool hasIndex(int row, int column, const QModelIndex &parent) const
bool insertRow(int row, const QModelIndex &parent)
void clear()
void layoutChanged()
bool removeRow(int row, const QModelIndex &parent)
iterator erase(iterator pos)
virtual int rowCount(const QModelIndex &parent) const
Definition: chunkdownloadmodel.cpp:185
void layoutAboutToBeChanged()
void reset()
bool isValid() const
virtual bool removeRows(int row, int count, const QModelIndex &parent)
Definition: chunkdownloadmodel.cpp:253
int count(const T &value) const
virtual int columnCount(const QModelIndex &parent) const
Definition: chunkdownloadmodel.cpp:193
void append(const T &value)
void changeTC(bt::TorrentInterface *tc)
change the current torrent
Definition: chunkdownloadmodel.cpp:151
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void endInsertRows()
void downloadAdded(bt::ChunkDownloadInterface *cd)
A peer has been added.
Definition: chunkdownloadmodel.cpp:101
void beginRemoveRows(const QModelIndex &parent, int first, int last)
int row() const
virtual ~ChunkDownloadModel()
Definition: chunkdownloadmodel.cpp:96
bool changed(int col, bool &modified) const
Definition: chunkdownloadmodel.cpp:39
QModelIndex createIndex(int row, int column, void *ptr) const
void downloadRemoved(bt::ChunkDownloadInterface *cd)
A download has been removed.
Definition: chunkdownloadmodel.cpp:134
iterator end()
virtual QVariant data(const QModelIndex &index, int role) const
Definition: chunkdownloadmodel.cpp:242
ChunkDownloadModel(QObject *parent)
Definition: chunkdownloadmodel.cpp:88
void beginInsertRows(const QModelIndex &parent, int first, int last)
bool lessThan(int col, const Item *other) const
Definition: chunkdownloadmodel.cpp:73
QVariant data(int col) const
Definition: chunkdownloadmodel.cpp:60
int column() const
virtual bool insertRows(int row, int count, const QModelIndex &parent)
Definition: chunkdownloadmodel.cpp:260
void sort(int col, Qt::SortOrder order)
Definition: chunkdownloadmodel.cpp:285
void endRemoveRows()
QObject * parent() const
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: chunkdownloadmodel.cpp:234
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
iterator begin()
bt::ChunkDownloadInterface::Stats stats
Definition: chunkdownloadmodel.h:76
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: chunkdownloadmodel.cpp:201
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.