|
libktorrent
2.1.1
|
#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 |
Public Member Functions inherited from bt::Job | |
| 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) | |
Public Member Functions inherited from bt::Resource | |
| 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 | |
Public Types inherited from bt::Resource | |
| typedef QList< Resource * > | List |
| typedef QSet< Resource * > | Set |
Static Public Member Functions inherited from bt::Job | |
| static void | setJobTracker (KJobTrackerInterface *trk) |
| Set the job tracker. | |
Protected Member Functions inherited from bt::Job | |
| void | registerWithTracker () |
| Register the job with the tracker. | |
Definition at line 52 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 |
1.8.18