source: calamares/trunk/fuentes/src/modules/partition/jobs/FillGlobalStorageJob.h @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 1.7 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014, Aurélien Gâteau <agateau@kde.org>
4 *   Copyright 2015, Teo Mrnjavac <teo@kde.org>
5 *
6 *   Calamares is free software: you can redistribute it and/or modify
7 *   it under the terms of the GNU General Public License as published by
8 *   the Free Software Foundation, either version 3 of the License, or
9 *   (at your option) any later version.
10 *
11 *   Calamares is distributed in the hope that it will be useful,
12 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 *   GNU General Public License for more details.
15 *
16 *   You should have received a copy of the GNU General Public License
17 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef FILLGLOBALSTORAGEJOB_H
21#define FILLGLOBALSTORAGEJOB_H
22
23#include <Job.h>
24
25// Qt
26#include <QList>
27
28class Device;
29class Partition;
30
31/**
32 * This job does not touch devices. It inserts in GlobalStorage the
33 * partition-related keys (see hacking/GlobalStorage.md)
34 *
35 * Inserting the keys after partitioning makes it possible to access
36 * information such as the partition path or the UUID.
37 */
38class FillGlobalStorageJob : public Calamares::Job
39{
40    Q_OBJECT
41public:
42    FillGlobalStorageJob( QList< Device* > devices, const QString& bootLoaderPath );
43    QString prettyName() const override;
44    QString prettyDescription() const override;
45    QString prettyStatusMessage() const override;
46    Calamares::JobResult exec() override;
47private:
48    QList< Device* > m_devices;
49    QString m_bootLoaderPath;
50
51    QVariant createPartitionList() const;
52    QVariant createBootLoaderMap() const;
53};
54
55#endif /* FILLGLOBALSTORAGEJOB_H */
Note: See TracBrowser for help on using the repository browser.