summaryrefslogtreecommitdiffstats
path: root/kdpkg-install/process.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdpkg-install/process.h')
-rw-r--r--kdpkg-install/process.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/kdpkg-install/process.h b/kdpkg-install/process.h
new file mode 100644
index 0000000..c2cbe8b
--- /dev/null
+++ b/kdpkg-install/process.h
@@ -0,0 +1,37 @@
+#ifndef PROCESS_H
+#define PROCESS_H
+
+#include <kprocess.h>
+#include <iostream>
+#include <fstream>
+
+
+
+class Process;
+
+
+
+class Process : public QObject {
+ Q_OBJECT
+
+public:
+ Process();
+ ~Process();
+
+ QString getBuffer();
+ int exitStatus();
+ bool normalExit();
+ void setCommand(QString command);
+ void start(bool block=true);
+
+protected:
+ KProcess* _process;
+ QString _buffer;
+
+protected slots:
+ void slotProcessOutput(KProcess* process, char* buffer, int buflen);
+};
+
+
+
+#endif