This file scans a multimedia file and searches Closed Captions streams. More...
Signals | |
void | foundClosedCaptions (QtlMediaStreamInfoPtr stream) |
Emitted when a Closed Captions stream is found. More... | |
![]() | |
void | readyReadOutputData () |
Emitted when some binary data are available from standard output. More... | |
![]() | |
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... | |
Static Public Member Functions | |
static QtlMovieClosedCaptionsSearch * | newInstance (const QString &fileName, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0) |
Create a new instance. More... | |
Protected Member Functions | |
virtual void | emitCompleted (bool success, const QString &message=QString()) Q_DECL_OVERRIDE |
Emit the completed() signal. More... | |
virtual void | processOutputLine (QProcess::ProcessChannel channel, const QString &textLine) Q_DECL_OVERRIDE |
Process one text line from standard error or standard output. More... | |
![]() | |
QStringList | getJobVariable (const QString &name) const |
Get the value of a variable in the job. More... | |
void | setJobVariable (const QString &name, const QStringList &value) |
Store a variable in the parent job. More... | |
virtual void | updateEnvironment (QProcessEnvironment &env) |
Update the QProcessEnvironment for the target process before it starts. More... | |
![]() | |
virtual void | emitProgress (int current, int maximum, int remainingSeconds=-1) |
Emit the progress() signal. More... | |
Private Member Functions | |
QtlMovieClosedCaptionsSearch (const QString &fileName, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0) | |
Private constructor. More... | |
QtlMovieClosedCaptionsSearch () Q_DECL_EQ_DELETE | |
void | emitFoundClosedCaptions (int ccNumber) |
Emit the foundClosedCaptions() signal. More... | |
Private Attributes | |
QString | _fileName |
Input file name. More... | |
Additional Inherited Members | |
![]() | |
QtlMovieProcess (const QtlMovieExecFile *execFile, const QStringList &arguments, bool hasBinaryOutput, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0, QtlDataPull *dataPull=0) | |
Constructor. More... | |
virtual void | abort () Q_DECL_OVERRIDE |
Abort process execution. More... | |
QStringList | arguments () const |
Get the command line arguments. More... | |
const QtlMovieExecFile * | execFile () const |
Get the command executable file. More... | |
QIODevice * | outputDevice () const |
Return the device from which standard output can be read. More... | |
void | setArguments (const QStringList &arguments) |
Set the command line arguments. More... | |
void | setPriority (Qtl::ProcessPriority priority) |
Set the process priority. More... | |
virtual bool | start () Q_DECL_OVERRIDE |
Start the process. More... | |
bool | useDataPullProgressReport (bool on) |
Use the progress report from the QtlDataPull when possible. More... | |
bool | useDataPullProgressReport () const |
Check if progress report from the QtlDataPull is active. More... | |
![]() | |
QtlMovieAction (const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0) | |
Constructor. More... | |
virtual | ~QtlMovieAction () |
Virtual destructor. 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... | |
This file scans a multimedia file and searches Closed Captions streams.
|
private |
Private constructor.
[in] | fileName | Input file name. |
[in] | settings | Application settings. |
[in] | log | Where to log errors. |
[in] | parent | Optional parent widget. |
|
private |
|
static |
Create a new instance.
Enforce object creation on the heap.
[in] | fileName | Input file name. |
[in] | settings | Application settings. |
[in] | log | Where to log errors. |
[in] | parent | Optional parent widget. |
|
signal |
Emitted when a Closed Captions stream is found.
[in] | stream | A smart pointer to the stream info data. |
|
protectedvirtual |
Process one text line from standard error or standard output.
Reimplemented from QtlMovieProcess.
[in] | channel | Origin of the line (QProcess::StandardOutput or QProcess::StandardError). |
[in] | textLine | Text line. |
Reimplemented from QtlMovieProcess.
|
protectedvirtual |
Emit the completed() signal.
Reimplemented from QtlMovieProcess.
[in] | success | True when the action completed successfully, false otherwise. |
[in] | message | Optional error message to log. |
Reimplemented from QtlMovieAction.
|
private |
Emit the foundClosedCaptions() signal.
ccNumber | CC number (see QtlMediaStreamInfo::ccNumber()). |
|
private |
Input file name.