#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