- point to main Calamares site in the 'part of' headers instead of to github (this is the "this file is part of Calamares" opening line for most files). - remove boilerplate from all source files, CMake modules and completions, this is the 3-paragraph summary of the GPL-3.0-or-later, which has a meaning entirely covered by the SPDX tag.
45 lines
1008 B
C++
45 lines
1008 B
C++
/* === This file is part of Calamares - <https://calamares.io> ===
|
|
*
|
|
* 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
|