2021-07-28 13:11:06 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
|
|
|
*
|
|
|
|
* SPDX-FileCopyrightText: 2021 Adriaan de Groot <groot@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*
|
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Runner.h"
|
|
|
|
|
|
|
|
namespace
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Calamares
|
|
|
|
{
|
|
|
|
namespace Utils
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Runner::Private
|
|
|
|
{
|
|
|
|
QStringList m_command;
|
2021-10-01 13:16:37 +02:00
|
|
|
RunLocation m_location = RunLocation::RunInHost;
|
2021-07-28 13:11:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
Runner::Runner() {}
|
|
|
|
Runner::Runner( const QStringList& command )
|
|
|
|
: d( std::make_unique< Private >() )
|
|
|
|
{
|
|
|
|
d->m_command = command;
|
|
|
|
}
|
|
|
|
|
|
|
|
Runner::~Runner() {}
|
|
|
|
|
2021-10-01 13:16:37 +02:00
|
|
|
Runner&
|
|
|
|
Runner::setCommand( const QStringList& command )
|
|
|
|
{
|
|
|
|
d->m_command = command;
|
|
|
|
return *this;
|
|
|
|
}
|
2021-07-28 13:11:06 +02:00
|
|
|
|
|
|
|
} // namespace Utils
|
|
|
|
} // namespace Calamares
|