diff options
Diffstat (limited to 'libk9copy/k9process.h')
-rw-r--r-- | libk9copy/k9process.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libk9copy/k9process.h b/libk9copy/k9process.h new file mode 100644 index 0000000..540aafd --- /dev/null +++ b/libk9copy/k9process.h @@ -0,0 +1,38 @@ +// +// C++ Interface: k9process +// +// Description: +// +// +// Author: Jean-Michel PETIT <[email protected]>, (C) 2007 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef K9PROCESS_H +#define K9PROCESS_H + +#include <kprocess.h> +#include <qdatetime.h> +/** + @author Jean-Michel PETIT <[email protected]> +*/ +class k9Process : public KProcess +{ +Q_OBJECT +public: + k9Process(QObject *parent = 0, const char *name = 0); + void sync(); + const QString & debug(); + ~k9Process(); + int getElapsed() const; + virtual bool start (RunMode runmode=NotifyOnExit, Communication comm=NoCommunication); +private: + bool m_waitSync; + QString m_debug; + QTime m_elapsed; +private slots: + void slotProcessExited(KProcess *proc); +}; + +#endif |