os/mm/mmplugins/mmfwplugins/src/Plugin/Controller/Video/AviPlayController/srtreader.h
First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
28 #include "subtitlesource.h"
30 /** The implementation of SRT subtitle source */
31 NONSHARABLE_CLASS(CSrtReader) : public CBase, public MSubtitleSource
34 /** Allocates and constructs the object */
35 static CSrtReader* NewL(const TDesC& aFilePath);
40 /** Implementation of MSubtitleSource */
41 TInt GetBuffer(TDes8& aBuffer);
42 TInt SetPosition(TInt aPosition);
43 TLanguage SubtitleLanguageL();
44 void GetSupportedSubtitleLanguagesL(RArray<TLanguage>& aLanguages);
45 void SetSubtitleLanguageL(TLanguage aLanguage);
48 /** Default constructor */
51 /** Initialises the srt reader */
52 void ConstructL(const TDesC& aFilePath);
62 #endif //__SRTREADER_H__