|
|
|
@ -12,16 +12,12 @@
|
|
|
|
|
|
|
|
|
|
#include "UsersQmlViewStep.h"
|
|
|
|
|
|
|
|
|
|
#include "SetHostNameJob.h"
|
|
|
|
|
#include "SetPasswordJob.h"
|
|
|
|
|
|
|
|
|
|
#include "GlobalStorage.h"
|
|
|
|
|
#include "JobQueue.h"
|
|
|
|
|
#include "utils/Logger.h"
|
|
|
|
|
#include "utils/NamedEnum.h"
|
|
|
|
|
#include "utils/Variant.h"
|
|
|
|
|
|
|
|
|
|
#include "GlobalStorage.h"
|
|
|
|
|
#include "JobQueue.h"
|
|
|
|
|
|
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DEFINITION( UsersQmlViewStepFactory, registerPlugin< UsersQmlViewStep >(); )
|
|
|
|
|
|
|
|
|
|
UsersQmlViewStep::UsersQmlViewStep( QObject* parent )
|
|
|
|
@ -43,59 +39,41 @@ bool
|
|
|
|
|
UsersQmlViewStep::isNextEnabled() const
|
|
|
|
|
{
|
|
|
|
|
return m_config->isReady();
|
|
|
|
|
//return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
UsersQmlViewStep::isBackEnabled() const
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
UsersQmlViewStep::isAtBeginning() const
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
UsersQmlViewStep::isAtEnd() const
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QList< Calamares::job_ptr >
|
|
|
|
|
Calamares::JobList
|
|
|
|
|
UsersQmlViewStep::jobs() const
|
|
|
|
|
{
|
|
|
|
|
return m_jobs;
|
|
|
|
|
return m_config->createJobs();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
UsersQmlViewStep::onActivate()
|
|
|
|
|
{
|
|
|
|
|
//m_config->onActivate();
|
|
|
|
|
//QmlViewStep::onActivate();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
UsersQmlViewStep::onLeave()
|
|
|
|
|
{
|
|
|
|
|
m_jobs = m_config->createJobs();
|
|
|
|
|
m_config->finalizeGlobalStorage();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
UsersQmlViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|
|
|
|
{
|
|
|
|
|
m_config->setConfigurationMap( configurationMap );
|
|
|
|
|
|
|
|
|
|
Calamares::QmlViewStep::setConfigurationMap( configurationMap ); // call parent implementation last
|
|
|
|
|
setContextProperty( "Users", m_config );
|
|
|
|
|
}
|
|
|
|
|