calamares/src/modules/partition/jobs/FillGlobalStorageJob.h

48 lines
1.3 KiB
C
Raw Normal View History

/* === 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
*
* Calamares is Free Software: see the License-Identifier above.
2014-07-22 17:32:26 +02:00
*
*/
#ifndef FILLGLOBALSTORAGEJOB_H
#define FILLGLOBALSTORAGEJOB_H
#include "Job.h"
2014-07-22 17:32:26 +02:00
#include <QList>
#include <QVariantList>
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:
FillGlobalStorageJob( QList< Device* > devices, const QString& bootLoaderPath );
2014-07-22 17:32:26 +02:00
QString prettyName() const override;
QString prettyDescription() const override;
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;
QString m_bootLoaderPath;
2014-07-22 17:32:26 +02:00
QVariantList createPartitionList() const;
QVariant createBootLoaderMap() const;
2014-07-22 17:32:26 +02:00
};
#endif /* FILLGLOBALSTORAGEJOB_H */