kget
transfertreemodel.cpp
Go to the documentation of this file.
250 beginInsertRows(parentItem->index(), parentItem->rowCount(), parentItem->rowCount() + transfers.count() - 1);
372 GroupModelItem * TransferTreeModel::itemFromTransferGroupHandler(TransferGroupHandler * handler)
399 void TransferTreeModel::moveTransfer(Transfer * transfer, TransferGroup * destGroup, Transfer * after)
438 void TransferTreeModel::moveTransfer(TransferHandler *transfer, TransferGroupHandler *destGroup, TransferHandler *after)
551 QVariant TransferTreeModel::headerData(int section, Qt::Orientation orientation, int role) const
592 bool TransferTreeModel::dropMimeData(const QMimeData * mdata, Qt::DropAction action, int row, int column, const QModelIndex &parent)
733 static_cast<ModelItem*>(item->child(row, column(Transfer::Tc_DownloadSpeed)))->emitDataChanged();
735 static_cast<ModelItem*>(item->child(row, column(Transfer::Tc_RemainingTime)))->emitDataChanged();
void groupRemovedEvent(TransferGroupHandler *)
void groupAddedEvent(TransferGroupHandler *)
Transfer * findTransfer(const KUrl &src)
Definition: transfertreemodel.cpp:467
void groupChangedEvent(TransferGroupHandler *transfer, TransferGroupHandler::ChangesFlags flags)
void move(Transfer *transfer, Transfer *after)
Moves a transfer in the list.
Definition: transfergroup.cpp:153
Definition: transfer.h:52
ChangesFlags changesFlags()
Definition: transfergrouphandler.cpp:119
Definition: transfergrouphandler.h:30
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: transfertreemodel.cpp:525
void groupsChangedEvent(QMap< TransferGroupHandler *, TransferGroup::ChangesFlags >)
Transfer * findTransferByDBusObjectPath(const QString &dbusObjectPath)
Definition: transfertreemodel.cpp:499
Definition: transfergroup.h:56
GroupModelItem(TransferGroupHandler *handler)
Definition: transfertreemodel.cpp:144
QMimeData * mimeData(const QModelIndexList &indexes) const
Definition: transfertreemodel.cpp:573
Definition: transfertreemodel.h:36
void transfersAboutToBeRemovedEvent(const QList< TransferHandler * > &transfers)
void remove(Transfer *transfer)
Removes the given transfer from the list of the transfers.
Definition: transfergroup.cpp:135
Definition: transfer.h:57
TransferGroup * findGroup(const QString &groupName)
Definition: transfertreemodel.cpp:457
void transfersRemovedEvent(const QList< TransferHandler * > &transfers)
TransferTreeModel(Scheduler *scheduler)
Definition: transfertreemodel.cpp:190
void postDataChangedEvent(TransferHandler *transfer)
Definition: transfertreemodel.cpp:509
QList< TransferGroup * > transferGroups()
Definition: transfertreemodel.cpp:447
void append(Transfer *transfer)
Appends a new transfer to the list of the transfers.
Definition: transfergroup.cpp:102
void transferMovedEvent(TransferHandler *, TransferGroupHandler *)
int indexOf(TransferHandler *transfer)
Definition: transfergrouphandler.cpp:129
Definition: transfer.h:53
ModelItem * itemFromIndex(const QModelIndex &index) const
Definition: transfertreemodel.cpp:391
Qt::DropActions supportedDropActions() const
Definition: transfertreemodel.cpp:561
void appendTransfer(const QWeakPointer< TransferHandler > &transfer)
Appends a transfer to the list of transfers.
Definition: transfertreemodel.cpp:39
TransferChange
Here we define the flags that should be shared by all the transfers.
Definition: transfer.h:47
void prepend(Transfer *transfer)
Prepends a new transfer to the list of the transfers.
Definition: transfergroup.cpp:121
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: transfertreemodel.cpp:551
Definition: dbustransferwrapper.h:20
void addTransfers(const QList< Transfer * > &transfers, TransferGroup *group)
Definition: transfertreemodel.cpp:246
virtual QVariant data(int role=Qt::UserRole+1) const
Definition: transfertreemodel.cpp:95
void delTransfers(const QList< Transfer * > &transfers)
Definition: transfertreemodel.cpp:284
void transfersChangedEvent(QMap< TransferHandler *, Transfer::ChangesFlags >)
static QString columnName(int column)
Definition: transfertreemodel.cpp:641
TransferGroupHandler * groupHandler()
Definition: transfertreemodel.cpp:178
Definition: handler.h:17
Definition: transfergroup.h:57
virtual ~TransferModelItem()
Definition: transfertreemodel.cpp:91
Definition: transfer.h:56
Definition: transfertreemodel.h:59
TransferModelItem * itemFromTransferHandler(TransferHandler *handler)
Definition: transfertreemodel.cpp:362
static int column(Transfer::TransferChange flag)
Definition: transfertreemodel.cpp:660
virtual QVariant data(int role=Qt::UserRole+1) const
Definition: transfertreemodel.cpp:154
Transfer * findTransferByDestination(const KUrl &dest)
Definition: transfertreemodel.cpp:483
void moveTransfer(Transfer *transfer, TransferGroup *destGroup, Transfer *after=0)
Definition: transfertreemodel.cpp:399
Definition: transfertreemodel.h:77
void insert(Transfer *transfer, Transfer *after)
inserts a transfer to the current group after the given transfer
Definition: transfergroup.cpp:128
Definition: transfergroup.h:55
Definition: transfer.h:54
ModelItem * itemFromHandler(Handler *handler)
Definition: transfertreemodel.cpp:382
Definition: transfer.h:55
QList< QWeakPointer< TransferHandler > > transfers() const
Returns all appended transfers The weakpointer is there to check later on, that the transfer still ex...
Definition: transfertreemodel.cpp:44
TransferModelItem(TransferHandler *handler)
Definition: transfertreemodel.cpp:85
void transfersAddedEvent(QList< TransferHandler * > transfers)
Definition: transfertreemodel.h:92
TransferHandler * transferHandler()
Definition: transfertreemodel.cpp:138
Definition: transfergroup.h:54
bool dropMimeData(const QMimeData *mdata, Qt::DropAction action, int row, int column, const QModelIndex &parent)
Definition: transfertreemodel.cpp:592
GroupModelItem * itemFromTransferGroupHandler(TransferGroupHandler *handler)
Definition: transfertreemodel.cpp:372
Definition: transfer.h:36
This file is part of the KDE documentation.
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
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.