Skip to content
Snippets Groups Projects
Select Git revision
  • 2e07c28db0bea95530b4287209badcf8d44bdc93
  • development default protected
  • 3.2.x-stable
  • prepare
  • 6b369dc5
  • 3.1.x-stable
  • 3.0.x-stable
  • 2.4.x-stable
  • v3.2.61
  • v3.2.60
  • v3.2.59
  • v3.2.54
  • v3.2.53
  • v3.2.52
  • v3.2.51
  • v3.2.48
  • v3.2.45
  • v3.2.44.3
  • v3.2.44
  • v3.2.40
  • v3.2.13
  • v3.2.9
  • v3.2.8
  • v3.2.7
  • v3.2.6
  • v3.2.5
  • v3.2.4
  • v3.2.3
28 results

PartitionCoreModule.cpp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    PartitionCoreModule.cpp 18.78 KiB
    /* === This file is part of Calamares - <https://github.com/calamares> ===
     *
     *   Copyright 2014, Aurélien Gâteau <agateau@kde.org>
     *   Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
     *   Copyright 2017, Adriaan de Groot <groot@kde.org>
     *
     *   Calamares 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 3 of the License, or
     *   (at your option) any later version.
     *
     *   Calamares 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 Calamares. If not, see <http://www.gnu.org/licenses/>.
     */
    
    #include "core/PartitionCoreModule.h"
    
    #include "core/BootLoaderModel.h"
    #include "core/ColorUtils.h"
    #include "core/DeviceList.h"
    #include "core/DeviceModel.h"
    #include "core/PartitionInfo.h"
    #include "core/PartitionIterator.h"
    #include "core/PartitionModel.h"
    #include "core/KPMHelpers.h"
    #include "core/PartUtils.h"
    #include "jobs/ClearMountsJob.h"
    #include "jobs/ClearTempMountsJob.h"
    #include "jobs/CreatePartitionJob.h"
    #include "jobs/CreatePartitionTableJob.h"
    #include "jobs/DeletePartitionJob.h"
    #include "jobs/FillGlobalStorageJob.h"
    #include "jobs/FormatPartitionJob.h"
    #include "jobs/ResizePartitionJob.h"
    #include "jobs/SetPartitionFlagsJob.h"
    
    #include "Typedefs.h"
    #include "utils/Logger.h"
    
    // KPMcore
    #include <kpmcore/core/device.h>
    #include <kpmcore/core/partition.h>
    #include <kpmcore/backend/corebackend.h>
    #include <kpmcore/backend/corebackendmanager.h>
    #include <kpmcore/fs/filesystemfactory.h>
    
    // Qt
    #include <QStandardItemModel>
    #include <QDir>
    #include <QProcess>
    #include <QFutureWatcher>
    #include <QtConcurrent/QtConcurrent>
    
    //- DeviceInfo ---------------------------------------------
    PartitionCoreModule::DeviceInfo::DeviceInfo( Device* _device )
        : device( _device )
        , partitionModel( new PartitionModel )
        , immutableDevice( new Device( *_device ) )
    {}
    
    PartitionCoreModule::DeviceInfo::~DeviceInfo()
    {
    }