1/*
2 Copyright 2009 Esben Mose Hansen <kde@mosehansen.dk>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
18*/
19
20#ifndef CLIPCOMMANDPROCESS_H
21#define CLIPCOMMANDPROCESS_H
22
23#include <KProcess>
24
25class ClipAction;
26class History;
27class ClipCommand;
28class HistoryItem;
29
30class ClipCommandProcess : public KProcess
31{
32 Q_OBJECT
33public:
34 ClipCommandProcess(const ClipAction& action, const ClipCommand& command, const QString& clip, History* history = 0L, const HistoryItem* original_item = 0L);
35public slots:
36 void slotStdOutputAvailable();
37 void slotFinished(int exitCode, QProcess::ExitStatus newState);
38private:
39 History* m_history;
40 const HistoryItem* m_historyItem;
41 QString m_newhistoryItem;
42};
43
44#endif // CLIPCOMMANDPROCESS_H
45