serviceWindowGenerationFromText.h 933 Bytes
#ifndef _SERVICEWINDOWGENERATIONFROMTEXT_H
#define _SERVICEWINDOWGENERATIONFROMTEXT_H

#include "serviceWindowGeneration.h"
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <jthread.h>
#include <limits.h>
#include <string>

/*FIXME: está restrito a 2K bytes de texto */
#define MAX_TEXT_SIZE 2048

using namespace std;
using namespace jthread;

class ServiceWindowGenerationFromText : public ServiceWindowGeneration, public Thread {

private:
	/* atributes */ 
	char* path_file;
	unsigned char* text_buff;
	bool alive;
	char* client_type;
	
	/* methods */
	int readTextFile();

public:
	ServiceWindowGenerationFromText (char* _path_file, 
				int _transp, int _serviceType, char* _client_type);
	~ServiceWindowGenerationFromText ();
	void notificaTradutor(unsigned char *legenda);
	void initialize();
	bool isAlive();
	void Run();
	void transcodeVideoToWebm();

};

#endif /* _SERVICEWINDOWGENERATIONFROMTEXT_H */