/* SPDX-FileCopyrightText: 2009 Esben Mose Hansen SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include #include class ClipAction; struct ClipCommand; class HistoryItem; class HistoryModel; class ClipCommandProcess : public KProcess { Q_OBJECT public: ClipCommandProcess(const ClipAction &action, const ClipCommand &command, const QString &clip, std::shared_ptr original_item = nullptr); public Q_SLOTS: void slotStdOutputAvailable(); void slotFinished(int exitCode, QProcess::ExitStatus newState); private: std::shared_ptr m_model; std::shared_ptr m_historyItem; QString m_newhistoryItem; };