blob: d577cfa29c20a1afdda2a113388cacc6a73a0f58 (
plain)
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
|
#ifndef PROCESS_H
#define PROCESS_H
#include <tdeprocess.h>
#include <iostream>
#include <fstream>
class Process;
class Process : public TQObject {
TQ_OBJECT
public:
Process();
~Process();
TQString getBuffer();
int exitStatus();
bool normalExit();
void setCommand(TQString command);
void start(bool block=true);
protected:
TDEProcess* _process;
TQString _buffer;
protected slots:
void slotProcessOutput(TDEProcess* process, char* buffer, int buflen);
};
#endif
|