diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-03 02:35:45 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-03 02:35:45 +0000 |
commit | 7f4a6a18c55be5b74ab3782f63509157a9a25afc (patch) | |
tree | ca86feaa6b8f013654038663b113e106debdca00 /kdpkg-install/process.h | |
download | kdpkg-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.h | 37 |
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 |