2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2014-07-22 17:32:26 +02:00
|
|
|
*
|
2020-08-22 01:19:58 +02:00
|
|
|
* SPDX-FileCopyrightText: 2014 Aurélien Gâteau <agateau@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2015 Teo Mrnjavac <teo@kde.org>
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2014-07-22 17:32:26 +02:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2014-07-22 17:32:26 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FILLGLOBALSTORAGEJOB_H
|
|
|
|
#define FILLGLOBALSTORAGEJOB_H
|
|
|
|
|
2019-06-14 23:14:11 +02:00
|
|
|
#include "Job.h"
|
2014-07-22 17:32:26 +02:00
|
|
|
|
|
|
|
#include <QList>
|
2020-02-27 13:49:02 +01:00
|
|
|
#include <QVariantList>
|
2014-07-22 17:32:26 +02:00
|
|
|
|
2020-10-02 12:08:42 +02:00
|
|
|
class Config;
|
2014-07-22 17:32:26 +02:00
|
|
|
class Device;
|
|
|
|
class Partition;
|
|
|
|
|
|
|
|
/**
|
2014-08-08 11:46:43 +02:00
|
|
|
* This job does not touch devices. It inserts in GlobalStorage the
|
|
|
|
* partition-related keys (see hacking/GlobalStorage.md)
|
|
|
|
*
|
|
|
|
* Inserting the keys after partitioning makes it possible to access
|
|
|
|
* information such as the partition path or the UUID.
|
2014-07-22 17:32:26 +02:00
|
|
|
*/
|
|
|
|
class FillGlobalStorageJob : public Calamares::Job
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-10-02 12:08:42 +02:00
|
|
|
FillGlobalStorageJob( const Config* config, QList< Device* > devices, const QString& bootLoaderPath );
|
|
|
|
|
2014-07-22 17:32:26 +02:00
|
|
|
QString prettyName() const override;
|
2015-04-10 17:46:42 +02:00
|
|
|
QString prettyDescription() const override;
|
2015-06-13 02:26:38 +02:00
|
|
|
QString prettyStatusMessage() const override;
|
2014-07-22 17:32:26 +02:00
|
|
|
Calamares::JobResult exec() override;
|
2020-04-07 11:36:40 +02:00
|
|
|
|
2014-07-22 17:32:26 +02:00
|
|
|
private:
|
|
|
|
QList< Device* > m_devices;
|
2014-07-23 18:16:55 +02:00
|
|
|
QString m_bootLoaderPath;
|
2014-07-22 17:32:26 +02:00
|
|
|
|
2020-02-27 13:49:02 +01:00
|
|
|
QVariantList createPartitionList() const;
|
2015-04-10 17:46:42 +02:00
|
|
|
QVariant createBootLoaderMap() const;
|
2014-07-22 17:32:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FILLGLOBALSTORAGEJOB_H */
|