kget
torrentfilemodel.h
Go to the documentation of this file.
86 virtual void loadExpandedState(QSortFilterProxyModel* pm,QTreeView* tv,const QByteArray & state);
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
virtual void filePercentageChanged(bt::TorrentFileInterface *file, float percentage)
Definition: torrentfilemodel.cpp:71
virtual ~TorrentFileModel()
Definition: torrentfilemodel.cpp:32
virtual void missingFilesMarkedDND()
Missing files have been marked DND, update the preview and selection information. ...
Definition: torrentfilemodel.cpp:43
virtual void onCodecChange()
Codec has changed, so update the model.
Definition: torrentfilemodel.cpp:51
virtual QString dirPath(const QModelIndex &idx)=0
Get the path of a directory (root directory not included)
virtual void loadExpandedState(QSortFilterProxyModel *pm, QTreeView *tv, const QByteArray &state)
Retore the expanded state of the tree.in a QTreeView.
Definition: torrentfilemodel.cpp:40
virtual void invertCheck()=0
Invert the check of each file of the torrent.
virtual bt::Uint64 bytesToDownload()=0
Calculate the number of bytes to download.
void checkStateChanged()
Emitted whenever one or more items changes check state.
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: torrentfilemodel.cpp:56
virtual void filePreviewChanged(bt::TorrentFileInterface *file, bool preview)
Definition: torrentfilemodel.cpp:77
virtual void changePriority(const QModelIndexList &indexes, bt::Priority newpriority)=0
Change the priority of a bunch of items.
QObject * parent() const
virtual QByteArray saveExpandedState(QSortFilterProxyModel *pm, QTreeView *tv)
Save which items are expanded.
Definition: torrentfilemodel.cpp:35
Definition: torrentfilemodel.h:39
TorrentFileModel(bt::TorrentInterface *tc, DeselectMode mode, QObject *parent)
Definition: torrentfilemodel.cpp:28
virtual bt::TorrentFileInterface * indexToFile(const QModelIndex &idx)=0
Convert a model index to a file.
typedef ItemFlags
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.