source: calamares/trunk/fuentes/src/modules/dracutlukscfg/DracutLuksCfgJob.h @ 7538

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

sync with github

File size: 1.8 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2016, Kevin Kofler <kevin.kofler@chello.at>
4 *   Copyright 2017, Adriaan de Groot <groot@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 DRACUTLUKSCFGJOB_H
21#define DRACUTLUKSCFGJOB_H
22
23#include <QObject>
24#include <QVariantMap>
25
26#include <CppJob.h>
27
28#include <utils/PluginFactory.h>
29
30#include <PluginDllMacro.h>
31
32class PLUGINDLLEXPORT DracutLuksCfgJob : public Calamares::CppJob
33{
34    Q_OBJECT
35
36public:
37    explicit DracutLuksCfgJob( QObject* parent = nullptr );
38    virtual ~DracutLuksCfgJob() override;
39
40    QString prettyName() const override;
41
42    Calamares::JobResult exec() override;
43
44private:
45    static const QLatin1Literal CONFIG_FILE;
46    static const char *CONFIG_FILE_HEADER;
47    static const char *CONFIG_FILE_CRYPTTAB_KEYFILE_LINE;
48    static const char *CONFIG_FILE_CRYPTTAB_LINE;
49    static const QLatin1Literal CONFIG_FILE_SWAPLINE;
50
51    static QString rootMountPoint();
52    static QVariantList partitions();
53    static bool isRootEncrypted();
54    static bool hasUnencryptedSeparateBoot();
55    static QString swapOuterUuid();
56};
57
58CALAMARES_PLUGIN_FACTORY_DECLARATION( DracutLuksCfgJobFactory )
59
60#endif // DRACUTLUKSCFGJOB_H
Note: See TracBrowser for help on using the repository browser.