/* === This file is part of Calamares - === * * SPDX-FileCopyrightText: 2014 Teo Mrnjavac * SPDX-FileCopyrightText: 2017-2019 Adriaan de Groot * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. * */ #ifndef CALAMARES_PROCESSJOB_H #define CALAMARES_PROCESSJOB_H #include "Job.h" #include namespace Calamares { class ProcessJob : public Job { Q_OBJECT public: explicit ProcessJob( const QString& command, const QString& workingPath, bool runInChroot = false, std::chrono::seconds secondsTimeout = std::chrono::seconds( 30 ), QObject* parent = nullptr ); ~ProcessJob() override; QString prettyName() const override; QString prettyStatusMessage() const override; JobResult exec() override; private: QString m_command; QString m_workingPath; bool m_runInChroot; std::chrono::seconds m_timeoutSec; }; } // namespace Calamares #endif // CALAMARES_PROCESSJOB_H