mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-08-27 11:40:03 +00:00
![Mike Fleetwood](/assets/img/avatar_default.png)
Absolute minimum implementation of a PartitionLUKS class which can be constructed, polymorphically copied and destroyed. Contains an "encrypted" member of type Partition to represent the encrypted file system within the LUKS format. Create PartitionLUKS objects instead of base Partition objects when a LUKS formatted partition is found. Only the base Partition object member values have been populated, and the "encrypted" member remains blank at this point. Bug 760080 - Implement read-only LUKS support
41 lines
1 KiB
C++
41 lines
1 KiB
C++
/* Copyright (C) 2015 Mike Fleetwood
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
|
|
#ifndef GPARTED_PARTITIONLUKS_H
|
|
#define GPARTED_PARTITIONLUKS_H
|
|
|
|
#include "../include/Partition.h"
|
|
#include "../include/Utils.h"
|
|
|
|
namespace GParted
|
|
{
|
|
|
|
class PartitionLUKS : public Partition
|
|
{
|
|
public:
|
|
PartitionLUKS();
|
|
virtual ~PartitionLUKS();
|
|
virtual PartitionLUKS * clone() const;
|
|
|
|
private:
|
|
Partition encrypted;
|
|
};
|
|
|
|
}//GParted
|
|
|
|
#endif /* GPARTED_PARTITIONLUKS_H */
|