Add optional prettyDescription to Job.

This commit is contained in:
Teo Mrnjavac 2015-04-09 15:03:47 +02:00
parent 1ede4a319d
commit d45d436161
2 changed files with 10 additions and 2 deletions

View File

@ -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
@ -87,4 +87,11 @@ Job::~Job()
{}
QString
Job::prettyDescription() const
{
return QString();
}
} // namespace Calamares

View File

@ -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
@ -64,6 +64,7 @@ public:
virtual ~Job();
virtual QString prettyName() const = 0;
virtual QString prettyDescription() const;
virtual JobResult exec() = 0;
signals:
void progress( qreal percent );