kget
#include <transfertreemodel.h>
Public Types | |
enum | Columns { Name, Status, Size, Progress, Speed, RemainingTime } |
Signals | |
void | groupAddedEvent (TransferGroupHandler *) |
void | groupRemovedEvent (TransferGroupHandler *) |
void | groupsChangedEvent (QMap< TransferGroupHandler *, TransferGroup::ChangesFlags >) |
void | transferMovedEvent (TransferHandler *, TransferGroupHandler *) |
void | transfersAboutToBeRemovedEvent (const QList< TransferHandler * > &transfers) |
void | transfersAddedEvent (QList< TransferHandler * > transfers) |
void | transfersChangedEvent (QMap< TransferHandler *, Transfer::ChangesFlags >) |
void | transfersRemovedEvent (const QList< TransferHandler * > &transfers) |
Public Member Functions | |
TransferTreeModel (Scheduler *scheduler) | |
~TransferTreeModel () | |
void | addGroup (TransferGroup *group) |
void | addTransfers (const QList< Transfer * > &transfers, TransferGroup *group) |
void | delGroup (TransferGroup *group) |
void | delTransfers (const QList< Transfer * > &transfers) |
bool | dropMimeData (const QMimeData *mdata, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
TransferGroup * | findGroup (const QString &groupName) |
Transfer * | findTransfer (const KUrl &src) |
Transfer * | findTransferByDBusObjectPath (const QString &dbusObjectPath) |
Transfer * | findTransferByDestination (const KUrl &dest) |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
ModelItem * | itemFromHandler (Handler *handler) |
ModelItem * | itemFromIndex (const QModelIndex &index) const |
GroupModelItem * | itemFromTransferGroupHandler (TransferGroupHandler *handler) |
TransferModelItem * | itemFromTransferHandler (TransferHandler *handler) |
QMimeData * | mimeData (const QModelIndexList &indexes) const |
QStringList | mimeTypes () const |
void | moveTransfer (Transfer *transfer, TransferGroup *destGroup, Transfer *after=0) |
void | moveTransfer (TransferHandler *transfer, TransferGroupHandler *destGroup, TransferHandler *after=0) |
void | postDataChangedEvent (TransferHandler *transfer) |
void | postDataChangedEvent (TransferGroupHandler *group) |
Qt::DropActions | supportedDropActions () const |
QList< TransferGroup * > | transferGroups () |
Static Public Member Functions | |
static int | column (Transfer::TransferChange flag) |
static int | column (TransferGroup::GroupChange flag) |
static QString | columnName (int column) |
Detailed Description
Definition at line 108 of file transfertreemodel.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Name | |
Status | |
Size | |
Progress | |
Speed | |
RemainingTime |
Definition at line 118 of file transfertreemodel.h.
Constructor & Destructor Documentation
TransferTreeModel::TransferTreeModel | ( | Scheduler * | scheduler | ) |
Definition at line 190 of file transfertreemodel.cpp.
TransferTreeModel::~TransferTreeModel | ( | ) |
Definition at line 199 of file transfertreemodel.cpp.
Member Function Documentation
void TransferTreeModel::addGroup | ( | TransferGroup * | group | ) |
Definition at line 204 of file transfertreemodel.cpp.
void TransferTreeModel::addTransfers | ( | const QList< Transfer * > & | transfers, |
TransferGroup * | group | ||
) |
Definition at line 246 of file transfertreemodel.cpp.
|
static |
Definition at line 660 of file transfertreemodel.cpp.
|
static |
Definition at line 681 of file transfertreemodel.cpp.
|
static |
Definition at line 641 of file transfertreemodel.cpp.
void TransferTreeModel::delGroup | ( | TransferGroup * | group | ) |
Definition at line 219 of file transfertreemodel.cpp.
void TransferTreeModel::delTransfers | ( | const QList< Transfer * > & | transfers | ) |
Definition at line 284 of file transfertreemodel.cpp.
bool TransferTreeModel::dropMimeData | ( | const QMimeData * | mdata, |
Qt::DropAction | action, | ||
int | row, | ||
int | column, | ||
const QModelIndex & | parent | ||
) |
Definition at line 592 of file transfertreemodel.cpp.
TransferGroup * TransferTreeModel::findGroup | ( | const QString & | groupName | ) |
Definition at line 457 of file transfertreemodel.cpp.
Transfer * TransferTreeModel::findTransfer | ( | const KUrl & | src | ) |
Definition at line 467 of file transfertreemodel.cpp.
Transfer * TransferTreeModel::findTransferByDBusObjectPath | ( | const QString & | dbusObjectPath | ) |
Definition at line 499 of file transfertreemodel.cpp.
Transfer * TransferTreeModel::findTransferByDestination | ( | const KUrl & | dest | ) |
Definition at line 483 of file transfertreemodel.cpp.
Qt::ItemFlags TransferTreeModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 525 of file transfertreemodel.cpp.
|
signal |
|
signal |
|
signal |
QVariant TransferTreeModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 551 of file transfertreemodel.cpp.
Definition at line 382 of file transfertreemodel.cpp.
ModelItem * TransferTreeModel::itemFromIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 391 of file transfertreemodel.cpp.
GroupModelItem * TransferTreeModel::itemFromTransferGroupHandler | ( | TransferGroupHandler * | handler | ) |
Definition at line 372 of file transfertreemodel.cpp.
TransferModelItem * TransferTreeModel::itemFromTransferHandler | ( | TransferHandler * | handler | ) |
Definition at line 362 of file transfertreemodel.cpp.
QMimeData * TransferTreeModel::mimeData | ( | const QModelIndexList & | indexes | ) | const |
Definition at line 573 of file transfertreemodel.cpp.
QStringList TransferTreeModel::mimeTypes | ( | ) | const |
Definition at line 566 of file transfertreemodel.cpp.
void TransferTreeModel::moveTransfer | ( | Transfer * | transfer, |
TransferGroup * | destGroup, | ||
Transfer * | after = 0 |
||
) |
Definition at line 399 of file transfertreemodel.cpp.
void TransferTreeModel::moveTransfer | ( | TransferHandler * | transfer, |
TransferGroupHandler * | destGroup, | ||
TransferHandler * | after = 0 |
||
) |
Definition at line 438 of file transfertreemodel.cpp.
void TransferTreeModel::postDataChangedEvent | ( | TransferHandler * | transfer | ) |
Definition at line 509 of file transfertreemodel.cpp.
void TransferTreeModel::postDataChangedEvent | ( | TransferGroupHandler * | group | ) |
Definition at line 517 of file transfertreemodel.cpp.
Qt::DropActions TransferTreeModel::supportedDropActions | ( | ) | const |
Definition at line 561 of file transfertreemodel.cpp.
QList< TransferGroup * > TransferTreeModel::transferGroups | ( | ) |
Definition at line 447 of file transfertreemodel.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.