QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlMovieDeleteAction Class Reference

An action which deletes one or more files or directories. More...

Inheritance diagram for QtlMovieDeleteAction:
QtlMovieAction QtlLogger

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...
 
- Public Member Functions inherited from QtlMovieAction
 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 QtlMovieSettingssettings () 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

- Signals inherited from QtlMovieAction
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...
 
- Protected Member Functions inherited from QtlMovieAction
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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QtlMovieDeleteAction() [1/2]

QtlMovieDeleteAction::QtlMovieDeleteAction ( const QStringList &  files,
const QtlMovieSettings settings,
QtlLogger log,
QObject *  parent = 0 
)

Constructor.

Parameters
[in]filesFiles or directories to delete.
[in]settingsApplication settings.
[in]logMessage logger.
[in]parentOptional parent object.

◆ QtlMovieDeleteAction() [2/2]

QtlMovieDeleteAction::QtlMovieDeleteAction ( )
private

Member Function Documentation

◆ addFile()

void QtlMovieDeleteAction::addFile ( const QString &  file)
inline

Add a file or directory to delete.

Parameters
[in]fileFile or directory to delete.

◆ start()

bool QtlMovieDeleteAction::start ( )
virtual

Start the action.

All the processing is done within this method. If also signals completed().

Returns
False if already started. True otherwise.

Reimplemented from QtlMovieAction.

Member Data Documentation

◆ _files

QStringList QtlMovieDeleteAction::_files
private

Files to delete.


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