Make it possible to "resize" (aka delete + create for now) existing partitions

This commit is contained in:
Aurélien Gâteau 2014-08-04 18:16:05 +02:00
parent df790986ae
commit 3d40527d29
4 changed files with 87 additions and 18 deletions

View file

@ -18,11 +18,16 @@
#ifndef PMUTILS_H
#define PMUTILS_H
// CalaPM
#include <fs/filesystem.h>
// Qt
#include <QList>
class Device;
class Partition;
class PartitionNode;
class PartitionRole;
namespace PMUtils
{
@ -33,6 +38,8 @@ bool isPartitionNew( Partition* );
Partition* findPartitionByMountPoint( const QList< Device* >& devices, const QString& mountPoint );
Partition* createNewPartition( PartitionNode* parent, const Device& device, const PartitionRole& role, FileSystem::Type fsType, qint64 firstSector, qint64 lastSector );
}
#endif /* PMUTILS_H */