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

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

sync with github

File size: 1.6 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2016, Teo Mrnjavac <teo@kde.org>
4 *
5 *   Based on the SetPartFlagsJob class from KDE Partition Manager,
6 *   Copyright 2008, 2010, Volker Lanz <vl@fidra.de>
7 *
8 *   Calamares is free software: you can redistribute it and/or modify
9 *   it under the terms of the GNU General Public License as published by
10 *   the Free Software Foundation, either version 3 of the License, or
11 *   (at your option) any later version.
12 *
13 *   Calamares is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef SETPARTITIONFLAGSJOB_H
23#define SETPARTITIONFLAGSJOB_H
24
25#include <jobs/PartitionJob.h>
26
27#include <kpmcore/core/partitiontable.h>
28
29class Device;
30class Partition;
31
32/**
33 * This job changes the flags on an existing partition.
34 */
35class SetPartFlagsJob : public PartitionJob
36{
37    Q_OBJECT
38public:
39    SetPartFlagsJob( Device* device, Partition* partition, PartitionTable::Flags flags );
40    QString prettyName() const override;
41    QString prettyDescription() const override;
42    QString prettyStatusMessage() const override;
43    Calamares::JobResult exec() override;
44
45    Device* device() const;
46
47private:
48    Device* m_device;
49    PartitionTable::Flags m_flags;
50};
51
52#endif // SETPARTITIONFLAGSJOB_H
Note: See TracBrowser for help on using the repository browser.