calamares/src/modules/shellprocess/ShellProcessJob.h

45 lines
1008 B
C
Raw Normal View History

/* === This file is part of Calamares - <https://calamares.io> ===
*
2020-08-22 01:19:58 +02:00
* SPDX-FileCopyrightText: 2018 Adriaan de Groot <groot@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#ifndef SHELLPROCESSJOB_H
#define SHELLPROCESSJOB_H
#include "CppJob.h"
#include "DllMacro.h"
#include "utils/CommandList.h"
#include "utils/PluginFactory.h"
#include <QObject>
#include <QVariantMap>
#include <memory>
class PLUGINDLLEXPORT ShellProcessJob : public Calamares::CppJob
{
Q_OBJECT
public:
explicit ShellProcessJob( QObject* parent = nullptr );
virtual ~ShellProcessJob() override;
QString prettyName() const override;
Calamares::JobResult exec() override;
void setConfigurationMap( const QVariantMap& configurationMap ) override;
private:
std::unique_ptr< CalamaresUtils::CommandList > m_commands;
};
CALAMARES_PLUGIN_FACTORY_DECLARATION( ShellProcessJobFactory )
#endif // SHELLPROCESSJOB_H