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

#include <deletedatafilesjob.h>

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

Public Member Functions

 DeleteDataFilesJob (const QString &base)
 
void addEmptyDirectoryCheck (const QString &fpath)
 
void addFile (const QString &file)
 
void kill (bool quietly) override
 Kill the job.
 
void start () override
 Start the job.
 
- 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)
 

Additional Inherited Members

- 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 delete all the files of a torrent.

Definition at line 55 of file deletedatafilesjob.h.

Constructor & Destructor Documentation

◆ DeleteDataFilesJob()

bt::DeleteDataFilesJob::DeleteDataFilesJob ( const QString &  base)
Parameters
baseBase directory, the data files are in

Member Function Documentation

◆ addEmptyDirectoryCheck()

void bt::DeleteDataFilesJob::addEmptyDirectoryCheck ( const QString &  fpath)

Check all directories in fpath and delete them if they are empty. The base path passed in the constructor, will be prepended to fpath.

Parameters
fpathThe file path

◆ addFile()

void bt::DeleteDataFilesJob::addFile ( const QString &  file)

Add a file to delete

Parameters
fileFile

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