summaryrefslogtreecommitdiffstats
path: root/kdpkg-install/process.h
blob: 6a236397b2f7d248c55453997a128934a7535739 (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 <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