serviceWindowGenerationFromText.h
933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#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 */