Kpmcore

partitiontable.cpp File Reference
#include "core/partitiontable.h"
#include "core/partition.h"
#include "core/device.h"
#include "core/diskdevice.h"
#include "core/lvmdevice.h"
#include "core/partitionalignment.h"
#include "fs/filesystem.h"
#include "fs/filesystemfactory.h"
#include "util/globallog.h"
#include <utility>
#include <KLocalizedString>
#include <QDebug>
#include <QTextStream>
Include dependency graph for partitiontable.cpp:

Go to the source code of this file.

Functions

PartitioncreateUnallocated (const Device &device, PartitionNode &parent, qint64 start, qint64 end)
 
QTextStreamoperator<< (QTextStream &stream, const PartitionTable &ptable)
 

Variables

struct {
   bool   canHaveExtended
 
   bool   isReadOnly
 
   quint32   maxPrimaries
 
   const QLatin1String   name
 
   PartitionTable::TableType   type
 
tableTypes []
 

Function Documentation

Partition* createUnallocated ( const Device device,
PartitionNode parent,
qint64  start,
qint64  end 
)

Creates a new unallocated Partition on the given Device.

Parameters
devicethe Device to create the new Partition on
parentthe parent PartitionNode for the new Partition
startthe new Partition's start sector
endthe new Partition's end sector
Returns
pointer to the newly created Partition object or nullptr if the Partition could not be created

Definition at line 319 of file partitiontable.cpp.

Variable Documentation

bool canHaveExtended

does partition table type support extended partitions

Definition at line 463 of file partitiontable.cpp.

bool isReadOnly

does KDE Partition Manager support this only in read only mode

Definition at line 464 of file partitiontable.cpp.

quint32 maxPrimaries

max numbers of primary partitions supported

Definition at line 462 of file partitiontable.cpp.

const QLatin1String name

name of partition table type

Definition at line 461 of file partitiontable.cpp.

struct { ... } tableTypes[]
Initial value:
= {
{ QLatin1String("aix"), 4, false, true, PartitionTable::TableType::aix },
{ QLatin1String("bsd"), 8, false, true, PartitionTable::TableType::bsd },
{ QLatin1String("dasd"), 1, false, true, PartitionTable::TableType::dasd },
{ QLatin1String("msdos"), 4, true, false, PartitionTable::TableType::msdos },
{ QLatin1String("msdos"), 4, true, false, PartitionTable::TableType::msdos_sectorbased },
{ QLatin1String("dos"), 4, true, false, PartitionTable::TableType::msdos_sectorbased },
{ QLatin1String("dvh"), 16, true, true, PartitionTable::TableType::dvh },
{ QLatin1String("gpt"), 128, false, false, PartitionTable::TableType::gpt },
{ QLatin1String("loop"), 1, false, true, PartitionTable::TableType::loop },
{ QLatin1String("mac"), 0xffff, false, true, PartitionTable::TableType::mac },
{ QLatin1String("pc98"), 16, false, true, PartitionTable::TableType::pc98 },
{ QLatin1String("amiga"), 128, false, true, PartitionTable::TableType::amiga },
{ QLatin1String("sun"), 8, false, true, PartitionTable::TableType::sun },
{ QLatin1String("vmd"), 0xffff, false, false, PartitionTable::TableType::vmd },
{ QLatin1String("none"), 1, false, false, PartitionTable::TableType::none },
}
PartitionTable::TableType type

enum type

Definition at line 465 of file partitiontable.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Jan 25 2022 23:10:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.