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

Description of one Teletext frame. More...

Public Member Functions

 QtsTeletextFrame (QtsPid pid=0, int page=0, int frameCount=0, quint64 showTimestamp=0, quint64 hideTimestamp=0, const QStringList &lines=QStringList())
 Constructor. More...
 
void addLine (const QString &line)
 Add a line of text to the frame. More...
 
int frameCount () const
 Get the frame number in this page, starting at 1. More...
 
quint64 hideTimestamp () const
 Get the "hide" timestamp in ms from start of stream. More...
 
QStringList lines () const
 Get the text lines. More...
 
int page () const
 Get the Teletext page number. More...
 
QtsPid pid () const
 Get the PID from which the frame originates. More...
 
quint64 showTimestamp () const
 Get the "show" timestamp in ms from start of stream. More...
 

Private Attributes

int _frameCount
 Frame counter in this page, starting at 1. More...
 
quint64 _hideTimestamp
 Hide frame at this timestamp (in ms from start of stream) More...
 
QStringList _lines
 Text lines. May contain embedded HTML tags. More...
 
int _page
 Teletext page number. More...
 
QtsPid _pid
 PID number. More...
 
quint64 _showTimestamp
 Show frame at this timestamp (in ms from start of stream) More...
 

Detailed Description

Description of one Teletext frame.

Constructor & Destructor Documentation

◆ QtsTeletextFrame()

QtsTeletextFrame::QtsTeletextFrame ( QtsPid  pid = 0,
int  page = 0,
int  frameCount = 0,
quint64  showTimestamp = 0,
quint64  hideTimestamp = 0,
const QStringList &  lines = QStringList() 
)

Constructor.

Parameters
[in]pidPID number.
[in]pageTeletext page number.
[in]frameCountFrame counter in this page, starting at 1.
[in]showTimestampShow frame at this timestamp (in ms from start of stream)
[in]hideTimestampHide frame at this timestamp (in ms from start of stream)
[in]linesText lines.

Member Function Documentation

◆ lines()

QStringList QtsTeletextFrame::lines ( ) const
inline

Get the text lines.

May contain embedded HTML tags.

Returns
The text lines.

◆ addLine()

void QtsTeletextFrame::addLine ( const QString &  line)
inline

Add a line of text to the frame.

Parameters
[in]lineText line to add.

◆ pid()

QtsPid QtsTeletextFrame::pid ( ) const
inline

Get the PID from which the frame originates.

Returns
The PID from which the frame originates.

◆ page()

int QtsTeletextFrame::page ( ) const
inline

Get the Teletext page number.

Returns
The Teletext page number.

◆ frameCount()

int QtsTeletextFrame::frameCount ( ) const
inline

Get the frame number in this page, starting at 1.

Returns
The frame number in this page, starting at 1.

◆ showTimestamp()

quint64 QtsTeletextFrame::showTimestamp ( ) const
inline

Get the "show" timestamp in ms from start of stream.

Returns
The "show" timestamp in ms from start of stream.

◆ hideTimestamp()

quint64 QtsTeletextFrame::hideTimestamp ( ) const
inline

Get the "hide" timestamp in ms from start of stream.

Returns
The "hide" timestamp in ms from start of stream.

Member Data Documentation

◆ _pid

QtsPid QtsTeletextFrame::_pid
private

PID number.

◆ _page

int QtsTeletextFrame::_page
private

Teletext page number.

◆ _frameCount

int QtsTeletextFrame::_frameCount
private

Frame counter in this page, starting at 1.

◆ _showTimestamp

quint64 QtsTeletextFrame::_showTimestamp
private

Show frame at this timestamp (in ms from start of stream)

◆ _hideTimestamp

quint64 QtsTeletextFrame::_hideTimestamp
private

Hide frame at this timestamp (in ms from start of stream)

◆ _lines

QStringList QtsTeletextFrame::_lines
private

Text lines. May contain embedded HTML tags.


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