repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / mediaplayer / supplier / SubTitlesSRT.h
blob95d90eaa0c610790ded3badf5cf26d693ce418c2
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
9 #include <List.h>
11 #include "SubTitles.h"
14 class BFile;
17 class SubTitlesSRT : public SubTitles {
18 public:
19 SubTitlesSRT(BFile* file, const char* name);
20 virtual ~SubTitlesSRT();
22 virtual const char* Name() const;
23 virtual const SubTitle* SubTitleAt(bigtime_t time) const;
25 private:
26 int32 _IndexFor(bigtime_t startTime) const;
28 BString fName;
29 BList fSubTitles;
33 #endif //SUB_TITLES_SRT_H