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_SRT_H 6 #define SUB_TITLES_SRT_H 7 8 9 #include <List.h> 10 11 #include "SubTitles.h" 12 13 14 class BFile; 15 16 17 class SubTitlesSRT : public SubTitles { 18 public: 19 SubTitlesSRT(BFile* file, const char* name); 20 virtual ~SubTitlesSRT(); 21 22 virtual const char* Name() const; 23 virtual const SubTitle* SubTitleAt(bigtime_t time) const; 24 25 private: 26 int32 _IndexFor(bigtime_t startTime) const; 27 28 BString fName; 29 BList fSubTitles; 30 }; 31 32 33 #endif //SUB_TITLES_SRT_H 34