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.
kdpkg/kdpkg-install/process.h

39 lines
482 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:
KProcess* _process;
TQString _buffer;
protected slots:
void slotProcessOutput(KProcess* process, char* buffer, int buflen);
};
#endif