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. | |
| bool | IsOpen (void) |
| void | Flush (void) |
Static Private Member Functions | |
| static QString | FormatTime (uint64_t time_in_msec) |
| Formats time to format appropriate to SubRip file. | |
Private Attributes | |
| QFile | m_outFile |
| Output file. | |
| QTextStream | m_outStream |
| Output stream associated with m_outFile. | |
| int | m_srtCounter |
| Count of subtitles we already have written. | |
Class to write SubRip files.
Definition at line 26 of file srtwriter.h.
| SRTWriter::SRTWriter | ( | const QString & | fileName | ) | [inline] |
Definition at line 29 of file srtwriter.h.
| SRTWriter::~SRTWriter | ( | void | ) | [inline] |
Definition at line 43 of file srtwriter.h.
| void SRTWriter::AddSubtitle | ( | const OneSubtitle & | sub, | |
| int | number | |||
| ) |
Adds next subtitle.
Definition at line 8 of file srtwriter.cpp.
| bool SRTWriter::IsOpen | ( | void | ) | [inline] |
Definition at line 50 of file srtwriter.h.
| void SRTWriter::Flush | ( | void | ) | [inline] |
Definition at line 51 of file srtwriter.h.
| QString SRTWriter::FormatTime | ( | uint64_t | time_in_msec | ) | [static, private] |
Formats time to format appropriate to SubRip file.
Definition at line 27 of file srtwriter.cpp.
Referenced by AddSubtitle().
QFile SRTWriter::m_outFile [private] |
Output file.
Definition at line 57 of file srtwriter.h.
QTextStream SRTWriter::m_outStream [private] |
Output stream associated with m_outFile.
Definition at line 59 of file srtwriter.h.
Referenced by AddSubtitle().
int SRTWriter::m_srtCounter [private] |
Count of subtitles we already have written.
Definition at line 61 of file srtwriter.h.
1.6.3