kget
#include <torrentfiletreemodel.h>
Public Member Functions | |
Node (Node *parent, bt::TorrentFileInterface *file, const QString &name, bt::Uint32 total_chunks) | |
Node (Node *parent, const QString &name, bt::Uint32 total_chunks) | |
~Node () | |
bt::Uint64 | bytesToDownload (const bt::TorrentInterface *tc) |
Qt::CheckState | checkState (const bt::TorrentInterface *tc) const |
bt::Uint64 | fileSize (const bt::TorrentInterface *tc) |
void | fillChunks () |
void | initPercentage (const bt::TorrentInterface *tc, const bt::BitSet &havechunks) |
void | insert (const QString &path, bt::TorrentFileInterface *file, bt::Uint32 num_chunks) |
void | loadExpandedState (const QModelIndex &index, QSortFilterProxyModel *pm, QTreeView *tv, bt::BNode *node) |
QString | path () |
int | row () |
void | saveExpandedState (const QModelIndex &index, QSortFilterProxyModel *pm, QTreeView *tv, bt::BEncoder *enc) |
void | updatePercentage (const bt::BitSet &havechunks) |
Public Attributes | |
QList< Node * > | children |
bt::BitSet | chunks |
bool | chunks_set |
bt::TorrentFileInterface * | file |
QString | name |
Node * | parent |
float | percentage |
bt::Uint64 | size |
Detailed Description
Definition at line 46 of file torrentfiletreemodel.h.
Constructor & Destructor Documentation
kt::TorrentFileTreeModel::Node::Node | ( | Node * | parent, |
bt::TorrentFileInterface * | file, | ||
const QString & | name, | ||
bt::Uint32 | total_chunks | ||
) |
Definition at line 41 of file torrentfiletreemodel.cpp.
kt::TorrentFileTreeModel::Node::Node | ( | Node * | parent, |
const QString & | name, | ||
bt::Uint32 | total_chunks | ||
) |
Definition at line 48 of file torrentfiletreemodel.cpp.
kt::TorrentFileTreeModel::Node::~Node | ( | ) |
Definition at line 54 of file torrentfiletreemodel.cpp.
Member Function Documentation
bt::Uint64 kt::TorrentFileTreeModel::Node::bytesToDownload | ( | const bt::TorrentInterface * | tc | ) |
Definition at line 206 of file torrentfiletreemodel.cpp.
Qt::CheckState kt::TorrentFileTreeModel::Node::checkState | ( | const bt::TorrentInterface * | tc | ) | const |
Definition at line 224 of file torrentfiletreemodel.cpp.
bt::Uint64 kt::TorrentFileTreeModel::Node::fileSize | ( | const bt::TorrentInterface * | tc | ) |
Definition at line 93 of file torrentfiletreemodel.cpp.
void kt::TorrentFileTreeModel::Node::fillChunks | ( | ) |
Definition at line 111 of file torrentfiletreemodel.cpp.
void kt::TorrentFileTreeModel::Node::initPercentage | ( | const bt::TorrentInterface * | tc, |
const bt::BitSet & | havechunks | ||
) |
Definition at line 166 of file torrentfiletreemodel.cpp.
void kt::TorrentFileTreeModel::Node::insert | ( | const QString & | path, |
bt::TorrentFileInterface * | file, | ||
bt::Uint32 | num_chunks | ||
) |
Definition at line 59 of file torrentfiletreemodel.cpp.
void kt::TorrentFileTreeModel::Node::loadExpandedState | ( | const QModelIndex & | index, |
QSortFilterProxyModel * | pm, | ||
QTreeView * | tv, | ||
bt::BNode * | node | ||
) |
Definition at line 275 of file torrentfiletreemodel.cpp.
QString kt::TorrentFileTreeModel::Node::path | ( | ) |
Definition at line 301 of file torrentfiletreemodel.cpp.
int kt::TorrentFileTreeModel::Node::row | ( | ) |
Definition at line 85 of file torrentfiletreemodel.cpp.
void kt::TorrentFileTreeModel::Node::saveExpandedState | ( | const QModelIndex & | index, |
QSortFilterProxyModel * | pm, | ||
QTreeView * | tv, | ||
bt::BEncoder * | enc | ||
) |
Definition at line 253 of file torrentfiletreemodel.cpp.
void kt::TorrentFileTreeModel::Node::updatePercentage | ( | const bt::BitSet & | havechunks | ) |
Definition at line 132 of file torrentfiletreemodel.cpp.
Member Data Documentation
Definition at line 51 of file torrentfiletreemodel.h.
bt::BitSet kt::TorrentFileTreeModel::Node::chunks |
Definition at line 53 of file torrentfiletreemodel.h.
bool kt::TorrentFileTreeModel::Node::chunks_set |
Definition at line 54 of file torrentfiletreemodel.h.
bt::TorrentFileInterface* kt::TorrentFileTreeModel::Node::file |
Definition at line 49 of file torrentfiletreemodel.h.
QString kt::TorrentFileTreeModel::Node::name |
Definition at line 50 of file torrentfiletreemodel.h.
Node* kt::TorrentFileTreeModel::Node::parent |
Definition at line 48 of file torrentfiletreemodel.h.
float kt::TorrentFileTreeModel::Node::percentage |
Definition at line 55 of file torrentfiletreemodel.h.
bt::Uint64 kt::TorrentFileTreeModel::Node::size |
Definition at line 52 of file torrentfiletreemodel.h.
The documentation for this struct was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.