You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
486 B
39 lines
486 B
#ifndef PROCESS_H
|
|
#define PROCESS_H
|
|
|
|
#include <kprocess.h>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
|
|
|
|
class Process;
|
|
|
|
|
|
|
|
class Process : public TQObject {
|
|
Q_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
|