libktorrent  2.1.1
Public Member Functions | List of all members
bt::MoveDataFilesJob Class Reference

#include <movedatafilesjob.h>

Inheritance diagram for bt::MoveDataFilesJob:
Inheritance graph
[legend]

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.
 

Detailed Description

Author
Joris Guisson joris.nosp@m..gui.nosp@m.sson@.nosp@m.gmai.nosp@m.l.com KIO::Job to move all the files of a torrent.

Definition at line 52 of file movedatafilesjob.h.

Constructor & Destructor Documentation

◆ MoveDataFilesJob()

bt::MoveDataFilesJob::MoveDataFilesJob ( const QMap< TorrentFileInterface *, QString > &  fmap)

Constructor with a file map.

Parameters
fmapMap of files and their destinations

Member Function Documentation

◆ addMove()

void bt::MoveDataFilesJob::addMove ( const QString &  src,
const QString &  dst 
)

Add a move to the todo list.

Parameters
srcFile to move
dstWhere to move it to

The documentation for this class was generated from the following file: