MythTV  master
Public Member Functions | Private Attributes | List of all members
SubtitleReader Class Reference

#include <subtitlereader.h>

Collaboration diagram for SubtitleReader:
Collaboration graph
[legend]

Public Member Functions

 SubtitleReader ()=default
 
 ~SubtitleReader ()
 
void EnableAVSubtitles (bool enable)
 
void EnableTextSubtitles (bool enable)
 
void EnableRawTextSubtitles (bool enable)
 
AVSubtitlesGetAVSubtitles (void)
 
bool AddAVSubtitle (const AVSubtitle &subtitle, bool fix_position, bool allow_forced)
 
void ClearAVSubtitles (void)
 
void FreeAVSubtitle (const AVSubtitle &sub)
 
TextSubtitlesGetTextSubtitles (void)
 
bool HasTextSubtitles (void)
 
void LoadExternalSubtitles (const QString &subtitleFileName, bool isInProgress)
 
QStringList GetRawTextSubtitles (uint64_t &duration)
 
void AddRawTextSubtitle (const QStringList &list, uint64_t duration)
 
void ClearRawTextSubtitles (void)
 

Private Attributes

AVSubtitles m_AVSubtitles
 
bool m_AVSubtitlesEnabled {false}
 
TextSubtitles m_TextSubtitles
 
bool m_TextSubtitlesEnabled {false}
 
RawTextSubs m_RawTextSubtitles
 
bool m_RawTextSubtitlesEnabled {false}
 

Detailed Description

Definition at line 32 of file subtitlereader.h.

Constructor & Destructor Documentation

◆ SubtitleReader()

SubtitleReader::SubtitleReader ( )
default

◆ ~SubtitleReader()

SubtitleReader::~SubtitleReader ( )

Definition at line 4 of file subtitlereader.cpp.

Member Function Documentation

◆ EnableAVSubtitles()

void SubtitleReader::EnableAVSubtitles ( bool  enable)

Definition at line 11 of file subtitlereader.cpp.

Referenced by SubtitleScreen::EnableSubtitles().

◆ EnableTextSubtitles()

void SubtitleReader::EnableTextSubtitles ( bool  enable)

Definition at line 16 of file subtitlereader.cpp.

Referenced by SubtitleScreen::EnableSubtitles().

◆ EnableRawTextSubtitles()

void SubtitleReader::EnableRawTextSubtitles ( bool  enable)

Definition at line 21 of file subtitlereader.cpp.

Referenced by SubtitleScreen::EnableSubtitles().

◆ GetAVSubtitles()

AVSubtitles* SubtitleReader::GetAVSubtitles ( void  )
inline

Definition at line 42 of file subtitlereader.h.

Referenced by SubtitleScreen::DisplayAVSubtitles().

◆ AddAVSubtitle()

bool SubtitleReader::AddAVSubtitle ( const AVSubtitle &  subtitle,
bool  fix_position,
bool  allow_forced 
)

Definition at line 26 of file subtitlereader.cpp.

Referenced by AvFormatDecoder::ProcessSubtitlePacket().

◆ ClearAVSubtitles()

void SubtitleReader::ClearAVSubtitles ( void  )

◆ FreeAVSubtitle()

void SubtitleReader::FreeAVSubtitle ( const AVSubtitle &  sub)

◆ GetTextSubtitles()

TextSubtitles* SubtitleReader::GetTextSubtitles ( void  )
inline

Definition at line 48 of file subtitlereader.h.

Referenced by SubtitleScreen::DisplayTextSubtitles().

◆ HasTextSubtitles()

bool SubtitleReader::HasTextSubtitles ( void  )

Definition at line 96 of file subtitlereader.cpp.

◆ LoadExternalSubtitles()

void SubtitleReader::LoadExternalSubtitles ( const QString &  subtitleFileName,
bool  isInProgress 
)

Definition at line 87 of file subtitlereader.cpp.

Referenced by PlayerContext::CreatePlayer(), and MythPlayer::JumpToProgram().

◆ GetRawTextSubtitles()

QStringList SubtitleReader::GetRawTextSubtitles ( uint64_t &  duration)

Definition at line 101 of file subtitlereader.cpp.

Referenced by SubtitleScreen::DisplayRawTextSubtitles().

◆ AddRawTextSubtitle()

void SubtitleReader::AddRawTextSubtitle ( const QStringList &  list,
uint64_t  duration 
)

Definition at line 113 of file subtitlereader.cpp.

◆ ClearRawTextSubtitles()

void SubtitleReader::ClearRawTextSubtitles ( void  )

Member Data Documentation

◆ m_AVSubtitles

AVSubtitles SubtitleReader::m_AVSubtitles
private

Definition at line 57 of file subtitlereader.h.

Referenced by AddAVSubtitle(), ClearAVSubtitles(), and GetAVSubtitles().

◆ m_AVSubtitlesEnabled

bool SubtitleReader::m_AVSubtitlesEnabled {false}
private

Definition at line 58 of file subtitlereader.h.

Referenced by AddAVSubtitle(), and EnableAVSubtitles().

◆ m_TextSubtitles

TextSubtitles SubtitleReader::m_TextSubtitles
private

◆ m_TextSubtitlesEnabled

bool SubtitleReader::m_TextSubtitlesEnabled {false}
private

Definition at line 60 of file subtitlereader.h.

Referenced by EnableTextSubtitles().

◆ m_RawTextSubtitles

RawTextSubs SubtitleReader::m_RawTextSubtitles
private

Definition at line 61 of file subtitlereader.h.

Referenced by AddRawTextSubtitle(), ClearRawTextSubtitles(), and GetRawTextSubtitles().

◆ m_RawTextSubtitlesEnabled

bool SubtitleReader::m_RawTextSubtitlesEnabled {false}
private

Definition at line 62 of file subtitlereader.h.

Referenced by AddRawTextSubtitle(), and EnableRawTextSubtitles().


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