An action which deletes one or more files or directories. More...
Public Member Functions | |
QtlMovieDeleteAction (const QStringList &files, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0) | |
Constructor. More... | |
void | addFile (const QString &file) |
Add a file or directory to delete. More... | |
virtual bool | start () Q_DECL_OVERRIDE |
Start the action. More... | |
![]() | |
QtlMovieAction (const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0) | |
Constructor. More... | |
virtual | ~QtlMovieAction () |
Virtual destructor. More... | |
virtual void | abort () |
Abort action execution. More... | |
virtual void | debug (const QString &line, const QColor &color=QColor()) Q_DECL_OVERRIDE |
Log a line of debug text. More... | |
QString | description () const |
Get the description of the action. More... | |
int | elapsedSeconds () const |
Get the number of seconds since the action started. More... | |
bool | isCompleted () const |
Check if the action is completed. More... | |
bool | isSilent () const |
Check if unimportant messages are skipped. More... | |
bool | isStarted () const |
Check if the action was started (and possibly completed in the meantime). More... | |
virtual void | line (const QString &line, const QColor &color=QColor()) Q_DECL_OVERRIDE |
Log a line of text. More... | |
void | setDescription (const QString &description) |
Set the description of the action. More... | |
void | setSilent (bool silent) |
Set if unimportant messages are skipped. More... | |
const QtlMovieSettings * | settings () const |
Get the application settings. More... | |
virtual void | text (const QString &text) Q_DECL_OVERRIDE |
Log text. More... | |
Private Member Functions | |
QtlMovieDeleteAction () Q_DECL_EQ_DELETE | |
Private Attributes | |
QStringList | _files |
Files to delete. More... | |
Additional Inherited Members | |
![]() | |
void | completed (bool success) |
Emitted when the action completes. More... | |
void | progress (const QString &description, int current, int maximum, int elapsedSeconds, int remainingSeconds) |
Emitted when some progress in the reporting is available. More... | |
void | started () |
Emitted when the action starts. More... | |
![]() | |
virtual void | emitCompleted (bool success, const QString &message=QString()) |
Emit the completed() signal. More... | |
virtual void | emitProgress (int current, int maximum, int remainingSeconds=-1) |
Emit the progress() signal. More... | |
An action which deletes one or more files or directories.
Useful to cleanup intermediate files as soon as they are no longer needed. Otherwise, all intermediate files will be automatically cleaned up after completion but the accumulated storage can be too large in case of multiple processing.
QtlMovieDeleteAction::QtlMovieDeleteAction | ( | const QStringList & | files, |
const QtlMovieSettings * | settings, | ||
QtlLogger * | log, | ||
QObject * | parent = 0 |
||
) |
Constructor.
[in] | files | Files or directories to delete. |
[in] | settings | Application settings. |
[in] | log | Message logger. |
[in] | parent | Optional parent object. |
|
private |
|
inline |
Add a file or directory to delete.
[in] | file | File or directory to delete. |
|
virtual |
Start the action.
All the processing is done within this method. If also signals completed().
Reimplemented from QtlMovieAction.
|
private |
Files to delete.