2014-06-30 18:08:13 +02:00
|
|
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
|
|
|
*
|
|
|
|
* Copyright 2014, Aurélien Gâteau <agateau@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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CREATEPARTITIONJOB_H
|
|
|
|
#define CREATEPARTITIONJOB_H
|
|
|
|
|
|
|
|
#include <Job.h>
|
|
|
|
|
|
|
|
class Device;
|
|
|
|
class Partition;
|
|
|
|
class FileSystem;
|
|
|
|
|
|
|
|
class CreatePartitionJob : public Calamares::Job
|
|
|
|
{
|
2014-07-02 15:49:35 +02:00
|
|
|
Q_OBJECT
|
2014-06-30 18:08:13 +02:00
|
|
|
public:
|
2014-07-04 17:58:32 +02:00
|
|
|
CreatePartitionJob( Device* device, Partition* partition );
|
2014-07-10 12:06:23 +02:00
|
|
|
QString prettyName() const override;
|
2014-07-08 19:20:04 +02:00
|
|
|
Calamares::JobResult exec() override;
|
2014-06-30 18:08:13 +02:00
|
|
|
|
2014-07-01 17:09:39 +02:00
|
|
|
void updatePreview();
|
2014-06-30 18:08:13 +02:00
|
|
|
Device* device() const
|
|
|
|
{
|
|
|
|
return m_device;
|
|
|
|
}
|
|
|
|
|
2014-07-02 15:49:35 +02:00
|
|
|
Partition* partition() const
|
|
|
|
{
|
|
|
|
return m_partition;
|
|
|
|
}
|
|
|
|
|
2014-06-30 18:08:13 +02:00
|
|
|
private:
|
|
|
|
Device* m_device;
|
2014-07-01 17:09:39 +02:00
|
|
|
Partition* m_partition;
|
2014-06-30 18:08:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* CREATEPARTITIONJOB_H */
|