/*****************************************************************************
 ** Class Import::Srt
 **
 **   Created : 
 **        by : Varol Okan using kate editor
 ** Copyright : (c) Varol Okan
 **   License : GPL v 2.0
 **
 ** This class handles the import filter for sub (subtitle) files as
 ** generated by dv2sub ( http://dv2sub.sf.net )
 **
 ** {0}{23}2005-06-24|15:48:29
 ** {24}{53}2005-06-24|15:48:30
 ** {54}{83}2005-06-24|15:48:31
 ** {84}{113}2005-06-24|15:48:32
 **
 *****************************************************************************/

#ifndef __IMPORT_SUB_H__
#define __IMPORT_SUB_H__

#include "sourcefileentry.h"

namespace Import
{

class Sub
{
public:

public:
   Sub ( );
  ~Sub ( );

  bool    import    ( float );
  bool    readFile  ( QString &, float );
  
  QValueList<Subtitles::entry *> m_listOfEntries;
private:
  QString formatTimestamp   ( QString & );
  long    getTimeFromString ( QString & );

  float m_fFPS;
};

}

#endif // __IMPORT_SUB_H__
