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
14class BFile;
15
16
17class SubTitlesSRT : public SubTitles {
18public:
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
25private:
26			int32				_IndexFor(bigtime_t startTime) const;
27
28			BString				fName;
29			BList				fSubTitles;
30};
31
32
33#endif //SUB_TITLES_SRT_H
34