File indexing completed on 2024-04-28 15:40:26
0001 // SPDX-FileCopyrightText: 2012-2022 Jesper K. Pedersen <blackie@kde.org> 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 #ifndef PROCESS_H 0006 #define PROCESS_H 0007 0008 #include <QProcess> 0009 0010 namespace Utilities 0011 { 0012 0013 class Process : public QProcess 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit Process(QObject *parent = nullptr); 0018 QString stdOut() const; 0019 QString stdErr() const; 0020 0021 private Q_SLOTS: 0022 void readStandardError(); 0023 void readStandardOutput(); 0024 0025 private: 0026 QString m_stdout; 0027 QString m_stderr; 0028 }; 0029 0030 } 0031 0032 #endif // PROCESS_H 0033 // vi:expandtab:tabstop=4 shiftwidth=4: