Add clearJobs to PCM
This commit is contained in:
parent
b7f2d5d9d3
commit
8a50685c75
@ -1,6 +1,7 @@
|
||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||
*
|
||||
* Copyright 2014, Aurélien Gâteau <agateau@kde.org>
|
||||
* Copyright 2014, Teo Mrnjavac <teo@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
|
||||
@ -384,6 +385,17 @@ PartitionCoreModule::revert()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
PartitionCoreModule::clearJobs()
|
||||
{
|
||||
foreach ( DeviceInfo* deviceInfo, m_deviceInfos )
|
||||
{
|
||||
deviceInfo->forgetChanges();
|
||||
}
|
||||
updateIsDirty();
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
PartitionCoreModule::isDirty()
|
||||
{
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||
*
|
||||
* Copyright 2014, Aurélien Gâteau <agateau@kde.org>
|
||||
* Copyright 2014, Teo Mrnjavac <teo@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
|
||||
@ -86,6 +87,8 @@ public:
|
||||
|
||||
void revert();
|
||||
|
||||
void clearJobs();
|
||||
|
||||
bool isDirty();
|
||||
|
||||
/**
|
||||
@ -101,6 +104,8 @@ public:
|
||||
*/
|
||||
QList< SummaryInfo > createSummaryInfo() const;
|
||||
|
||||
void dumpQueue() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void hasRootMountPointChanged( bool value );
|
||||
void isDirtyChanged( bool value );
|
||||
@ -134,8 +139,6 @@ private:
|
||||
void updateHasRootMountPoint();
|
||||
void updateIsDirty();
|
||||
|
||||
void dumpQueue() const;
|
||||
|
||||
DeviceInfo* infoForDevice( Device* ) const;
|
||||
|
||||
Partition* findPartitionByMountPoint( const QString& mountPoint ) const;
|
||||
|
Loading…
Reference in New Issue
Block a user