All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
VideoDisplay::SubTitles Class Reference

Subtitles for the videos. More...

#include <VideoDisplay/SubTitles.hpp>

Classes

class  Text
 Subtitle text item. More...
 

Public Member Functions

const Text * current ()
 Returns the current text item to be shown.
 
QString getLongestSubtitle () const
 Returns the longest subtitle string.
 
bool readSrt (const char *filename)
 Read subtitles from an SRT file. More...
 
size_t size () const
 Returns the number of subtitle items.
 
void update (Radiant::TimeStamp time)
 Update the text to be shown to the user.
 

Detailed Description

Subtitles for the videos.

Member Function Documentation

bool VideoDisplay::SubTitles::readSrt ( const char *  filename)

Read subtitles from an SRT file.

Parameters
filenameSRT file name
Returns
Returns true if the SRT file was successfully laoded, false on failure.