calamares/src/modules/users/SetHostNameJob.h

37 lines
1.0 KiB
C
Raw Normal View History

2014-10-21 18:59:02 +02:00
/*
* Copyright (C) 2014 Rohan Garg <rohan@kde.org>
*
2014-10-21 18:59:02 +02:00
* This program 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.
*
2014-10-21 18:59:02 +02:00
* This program 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.
*
2014-10-21 18:59:02 +02:00
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
2014-10-21 18:59:02 +02:00
*/
#ifndef SETHOSTNAMEJOB_CPP_H
#define SETHOSTNAMEJOB_CPP_H
#include <Job.h>
class SetHostNameJob : public Calamares::Job
{
Q_OBJECT
2014-10-21 18:59:02 +02:00
public:
SetHostNameJob( const QString& hostname );
2014-10-21 18:59:02 +02:00
QString prettyName() const override;
Calamares::JobResult exec() override;
private:
const QString m_hostname;
2014-10-21 18:59:02 +02:00
};
#endif // SETHOSTNAMEJOB_CPP_H