summaryrefslogtreecommitdiffstats
path: root/kdpkg-install/process.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-04-03 02:35:45 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-04-03 02:35:45 +0000
commit7f4a6a18c55be5b74ab3782f63509157a9a25afc (patch)
treeca86feaa6b8f013654038663b113e106debdca00 /kdpkg-install/process.h
downloadkdpkg-7f4a6a18c55be5b74ab3782f63509157a9a25afc.tar.gz
kdpkg-7f4a6a18c55be5b74ab3782f63509157a9a25afc.zip
Initial import of kdpkg Debian package installer
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdpkg@1110433 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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