File indexing completed on 2024-04-28 05:35:26
0001 /* 0002 SPDX-FileCopyrightText: 2009 Esben Mose Hansen <kde@mosehansen.dk> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <KProcess> 0010 #include <memory> 0011 0012 class ClipAction; 0013 class History; 0014 struct ClipCommand; 0015 class HistoryItem; 0016 0017 class ClipCommandProcess : public KProcess 0018 { 0019 Q_OBJECT 0020 public: 0021 ClipCommandProcess(const ClipAction &action, 0022 const ClipCommand &command, 0023 const QString &clip, 0024 History *history = nullptr, 0025 std::shared_ptr<const HistoryItem> original_item = nullptr); 0026 public Q_SLOTS: 0027 void slotStdOutputAvailable(); 0028 void slotFinished(int exitCode, QProcess::ExitStatus newState); 0029 0030 private: 0031 History *m_history; 0032 std::shared_ptr<const HistoryItem> m_historyItem; 0033 QString m_newhistoryItem; 0034 };