1 /* 2 * Copyright 2010, Stephan Aßmus <superstippi@gmx.de>. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef SUB_TITLES_H 6 #define SUB_TITLES_H 7 8 9 #include <Point.h> 10 #include <String.h> 11 12 13 struct SubTitle { 14 BString text; 15 BPoint placement; 16 bigtime_t startTime; 17 bigtime_t duration; 18 }; 19 20 21 class SubTitles { 22 public: 23 SubTitles(); 24 virtual ~SubTitles(); 25 26 virtual const char* Name() const = 0; 27 virtual const SubTitle* SubTitleAt(bigtime_t time) const = 0; 28 }; 29 30 31 #endif //SUB_TITLES_H 32