Add prettyStatusMessage to Clear* and Check* partitioning jobs.
This commit is contained in:
parent
eae237211f
commit
3855998fe5
@ -34,6 +34,14 @@ CheckFileSystemJob::prettyName() const
|
||||
return tr( "Checking file system on partition %1." ).arg( path );
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
CheckFileSystemJob::prettyStatusMessage() const
|
||||
{
|
||||
return prettyName();
|
||||
}
|
||||
|
||||
|
||||
Calamares::JobResult
|
||||
CheckFileSystemJob::exec()
|
||||
{
|
||||
|
@ -31,6 +31,7 @@ public:
|
||||
CheckFileSystemJob( Partition* partition );
|
||||
|
||||
QString prettyName() const override;
|
||||
QString prettyStatusMessage() const override;
|
||||
Calamares::JobResult exec() override;
|
||||
};
|
||||
|
||||
|
@ -44,6 +44,14 @@ ClearMountsJob::prettyName() const
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
ClearMountsJob::prettyStatusMessage() const
|
||||
{
|
||||
return tr( "Clearing mounts for partitioning operations on %1." )
|
||||
.arg( m_device->deviceNode() );
|
||||
}
|
||||
|
||||
|
||||
Calamares::JobResult
|
||||
ClearMountsJob::exec()
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||
*
|
||||
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
||||
* Copyright 2014-2015, 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
|
||||
@ -33,6 +33,7 @@ class ClearMountsJob : public Calamares::Job
|
||||
public:
|
||||
explicit ClearMountsJob( Device* device );
|
||||
QString prettyName() const override;
|
||||
QString prettyStatusMessage() const override;
|
||||
Calamares::JobResult exec() override;
|
||||
private:
|
||||
QString tryUmount( const QString& partPath );
|
||||
|
@ -39,6 +39,13 @@ ClearTempMountsJob::prettyName() const
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
ClearTempMountsJob::prettyStatusMessage() const
|
||||
{
|
||||
return tr( "Clearing all temporary mounts." );
|
||||
}
|
||||
|
||||
|
||||
Calamares::JobResult
|
||||
ClearTempMountsJob::exec()
|
||||
{
|
||||
|
@ -33,6 +33,7 @@ class ClearTempMountsJob : public Calamares::Job
|
||||
public:
|
||||
explicit ClearTempMountsJob();
|
||||
QString prettyName() const override;
|
||||
QString prettyStatusMessage() const override;
|
||||
Calamares::JobResult exec() override;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user