libktorrent
2.2.0
|
#include <movedatafilesjob.h>
Public Member Functions | |
MoveDataFilesJob (const QMap< TorrentFileInterface *, QString > &fmap) | |
void | addMove (const QString &src, const QString &dst) |
const QMap< TorrentFileInterface *, QString > & | fileMap () const |
Get the file map (could be empty) | |
void | kill (bool quietly=true) override |
void | start () override |
![]() | |
Job (bool stop_torrent, TorrentControl *tc) | |
void | setTorrent (TorrentControl *t) |
Set the torrent associated with this job. | |
void | start () override |
bool | stopTorrent () const |
Do we need to stop the torrent when the job is running. | |
TorrentControl * | torrent () |
Get the torrent associated with this job. | |
virtual TorrentStatus | torrentStatus () const |
Return the status of the torrent during the job (default implementation returns INVALID_STATUS) | |
![]() | |
Resource (ResourceManager *rman, const QString &group) | |
QString | groupName () const |
Get the name of the group the resource is part of. | |
void | release () |
Release the Resource. | |
Additional Inherited Members | |
![]() | |
typedef QList< Resource * > | List |
typedef QSet< Resource * > | Set |
![]() | |
static void | setJobTracker (KJobTrackerInterface *trk) |
Set the job tracker. | |
![]() | |
void | registerWithTracker () |
Register the job with the tracker. | |
Definition at line 34 of file movedatafilesjob.h.
bt::MoveDataFilesJob::MoveDataFilesJob | ( | const QMap< TorrentFileInterface *, QString > & | fmap | ) |
Constructor with a file map.
fmap | Map of files and their destinations |
void bt::MoveDataFilesJob::addMove | ( | const QString & | src, |
const QString & | dst | ||
) |
Add a move to the todo list.
src | File to move |
dst | Where to move it to |