serviceWindowGenerationFromText.h 776 Bytes
#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;	
	bool alive;
	
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();
};

#endif /* _SERVICEWINDOWGENERATIONFROMTEXT_H */