calamares/src/modules/users/CreateUserJob.h
Adriaan de Groot 58f10739e1 [users] Show progress during the module
- add a status member so the different steps can show progress
  as the user is created and configured. The progress values
  are hard-coded guesses as to how much work is done for each step.
- while here, reduce the scope of the global storage variable
2020-10-14 15:21:10 +02:00

33 lines
727 B
C++

/* === This file is part of Calamares - <https://calamares.io> ===
*
* SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac <teo@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#ifndef CREATEUSERJOB_H
#define CREATEUSERJOB_H
#include "Job.h"
class Config;
class CreateUserJob : public Calamares::Job
{
Q_OBJECT
public:
CreateUserJob( const Config* config );
QString prettyName() const override;
QString prettyDescription() const override;
QString prettyStatusMessage() const override;
Calamares::JobResult exec() override;
private:
const Config* m_config;
QString m_status;
};
#endif /* CREATEUSERJOB_H */