From 7f4a6a18c55be5b74ab3782f63509157a9a25afc Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 3 Apr 2010 02:35:45 +0000 Subject: 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 --- kdpkg-install/process.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 kdpkg-install/process.h (limited to 'kdpkg-install/process.h') 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 +#include +#include + + + +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 -- cgit v1.2.1