355a4f9b8d
module builds, installs and runs, connections are not working yet. UserQmlViewstep.cpp/h are from PR https://github.com/calamares/calamares/pull/1356 sections are commented out to make the module build, but help is needed to get those 2 files corrected. config names used in usersq.qml are guessed from users/Config.cpp debug window shows correct entries in GS, and under the module tab, usersq.conf is read as should too. Running shows most config used in users.qml are not registered/wrong, many entries like: qrc:/usersq.qml:228:13: Unable to assign [undefined] to bool It is understood not all needed from the users module has moved to Config.cpp yet, but doing the PR now, since it runs, doesn't crash cala and help is needed to further implement.
73 lines
2.0 KiB
C++
73 lines
2.0 KiB
C++
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
|
*
|
|
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
|
* Copyright 2017, Adriaan de Groot <groot@kde.org>
|
|
* Copyright 2020, Camilo Higuita <milo.h@aol.com>
|
|
*
|
|
* Calamares 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.
|
|
*
|
|
* Calamares 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef USERSQMLVIEWSTEP_H
|
|
#define USERSQMLVIEWSTEP_H
|
|
|
|
#include <QObject>
|
|
//#include "SetHostNameJob.h"
|
|
|
|
#include <utils/PluginFactory.h>
|
|
#include <viewpages/QmlViewStep.h>
|
|
|
|
#include <DllMacro.h>
|
|
|
|
#include <QVariant>
|
|
#include "Config.h"
|
|
|
|
class PLUGINDLLEXPORT UsersQmlViewStep : public Calamares::QmlViewStep
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit UsersQmlViewStep( QObject* parent = nullptr );
|
|
|
|
QString prettyName() const override;
|
|
|
|
bool isNextEnabled() const override;
|
|
bool isBackEnabled() const override;
|
|
|
|
bool isAtBeginning() const override;
|
|
bool isAtEnd() const override;
|
|
|
|
QList< Calamares::job_ptr > jobs() const override;
|
|
|
|
void onActivate() override;
|
|
void onLeave() override;
|
|
|
|
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
|
|
|
QObject * getConfig() override
|
|
{
|
|
return m_config;
|
|
}
|
|
|
|
private:
|
|
Config *m_config;
|
|
QList< Calamares::job_ptr > m_jobs;
|
|
|
|
QStringList m_defaultGroups;
|
|
//SetHostNameJob::Actions m_actions;
|
|
};
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( UsersQmlViewStepFactory )
|
|
|
|
#endif // USERSQMLVIEWSTEP_H
|