source: calamares/trunk/fuentes/src/modules/partition/core/PartitionActions.h @ 7538

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

sync with github

File size: 2.0 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014-2016, Teo Mrnjavac <teo@kde.org>
4 *
5 *   Calamares is free software: you can redistribute it and/or modify
6 *   it under the terms of the GNU General Public License as published by
7 *   the Free Software Foundation, either version 3 of the License, or
8 *   (at your option) any later version.
9 *
10 *   Calamares is distributed in the hope that it will be useful,
11 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 *   GNU General Public License for more details.
14 *
15 *   You should have received a copy of the GNU General Public License
16 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef PARTITIONACTIONS_H
20#define PARTITIONACTIONS_H
21
22#include <QString>
23
24class PartitionCoreModule;
25class Device;
26class Partition;
27
28namespace PartitionActions
29{
30
31/**
32 * @brief doAutopartition sets up an autopartitioning operation on the given Device.
33 * @param core a pointer to the PartitionCoreModule instance.
34 * @param dev the device to wipe.
35 * @param luksPassphrase the passphrase for LUKS encryption (optional, default is empty).
36 */
37void doAutopartition( PartitionCoreModule* core,
38                      Device* dev,
39                      const QString& luksPassphrase = QString() );
40
41/**
42 * @brief doReplacePartition sets up replace-partitioning with the given partition.
43 * @param core a pointer to the PartitionCoreModule instance.
44 * @param dev a pointer to the Device on which to replace a partition.
45 * @param partition a pointer to the Partition to be replaced.
46 * @param luksPassphrase the passphrase for LUKS encryption (optional, default is empty).
47 * @note this function also takes care of requesting PCM to delete the partition.
48 */
49void doReplacePartition( PartitionCoreModule* core,
50                         Device* dev,
51                         Partition* partition,
52                         const QString& luksPassphrase = QString() );
53}
54
55#endif // PARTITIONACTIONS_H
Note: See TracBrowser for help on using the repository browser.