1
/***************************************************************************
2
* Copyright (C) 2008 by Rajko Albrecht *
3
* ral@alwins-world.de *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19
***************************************************************************/
22
#ifndef _WATCHEDPROCESS_H
23
#define _WATCHEDPROCESS_H
27
class WatchedProcess:public KProcess
31
WatchedProcess(QObject*parent=0);
32
virtual ~WatchedProcess();
34
void appendTempFile(const QString&);
35
void appendTempDir(const QString&);
36
void setAutoDelete(bool);
37
bool autoDelete()const;
43
void slotError(QProcess::ProcessError);
44
void slotFinished(int, QProcess::ExitStatus);
45
void slotReadyReadStandardError();
46
void slotReadyReadStandardOutput();
48
void slotStateChanged(QProcess::ProcessState);
51
void dataStderrRead(const QByteArray&,WatchedProcess*);
52
void dataStdoutRead(const QByteArray&,WatchedProcess*);
54
void error(QProcess::ProcessError,WatchedProcess*);
55
void finished(int,QProcess::ExitStatus,WatchedProcess*);
56
void started(WatchedProcess*);
57
void stateChanged(QProcess::ProcessState newState,WatchedProcess*);