MythTV
master
|
Class to write SubRip files. More...
#include <srtwriter.h>
Public Member Functions | |
SRTWriter (const QString &fileName) | |
~SRTWriter (void) | |
void | AddSubtitle (const OneSubtitle &sub, int number) |
Adds next subtitle. More... | |
bool | IsOpen (void) |
void | Flush (void) |
Static Private Member Functions | |
static QString | FormatTime (std::chrono::milliseconds time_in_msec) |
Formats time to format appropriate to SubRip file. More... | |
Private Attributes | |
QFile | m_outFile |
Output file. More... | |
QTextStream | m_outStream |
Output stream associated with m_outFile. More... | |
Class to write SubRip files.
Definition at line 30 of file srtwriter.h.
|
inlineexplicit |
Definition at line 33 of file srtwriter.h.
|
inline |
Definition at line 52 of file srtwriter.h.
void SRTWriter::AddSubtitle | ( | const OneSubtitle & | sub, |
int | number | ||
) |
Adds next subtitle.
Definition at line 14 of file srtwriter.cpp.
|
inline |
Definition at line 59 of file srtwriter.h.
|
inline |
Definition at line 60 of file srtwriter.h.
|
staticprivate |
Formats time to format appropriate to SubRip file.
Definition at line 32 of file srtwriter.cpp.
Referenced by AddSubtitle().
|
private |
Output file.
Definition at line 66 of file srtwriter.h.
|
private |
Output stream associated with m_outFile.
Definition at line 68 of file srtwriter.h.
Referenced by AddSubtitle().