#ifndef _SERVICEWINDOWGENERATIONFROMTEXT_H #define _SERVICEWINDOWGENERATIONFROMTEXT_H #include "serviceWindowGeneration.h" #include "extratorTXT.h" #include "listenerTXT.h" /*FIXME: está restrito a 2K bytes de texto */ #define MAX_TEXT_SIZE 2048 class ServiceWindowGenerationFromText : public ServiceWindowGeneration, public ListenerTXT, public Thread { private: ExtratorTXT * extratorTXT; char* path_file; bool alive; char* client_type; public: ServiceWindowGenerationFromText (char* _path_file, char* _video_path_file, int _transp, int _serviceType, char* _client_type); ~ServiceWindowGenerationFromText (); void notificaTradutor(unsigned char* legenda); void notifyEnd(int line_size); void initialize(); bool isAlive(); void Run(); void transcodeVideoToWebm(); }; #endif /* _SERVICEWINDOWGENERATIONFROMTEXT_H */