Merge branch 'master' into wip/install-step2

This commit is contained in:
Aurélien Gâteau 2014-07-08 15:50:03 +02:00
commit 57d89175dc
9 changed files with 39 additions and 2 deletions

View File

@ -22,6 +22,7 @@
#include <QObject>
#include "../UiDllMacro.h"
#include "Typedefs.h"
namespace Calamares
{
@ -46,6 +47,8 @@ public:
virtual bool isAtBeginning() const = 0;
virtual bool isAtEnd() const = 0;
virtual QList< Calamares::job_ptr > jobs() const = 0;
signals:
void nextStatusChanged( bool status );
void done();

View File

@ -81,3 +81,10 @@ GreetingViewStep::isAtEnd() const
return true;
}
QList< Calamares::job_ptr >
GreetingViewStep::jobs() const
{
return QList< Calamares::job_ptr >();
}

View File

@ -49,6 +49,8 @@ public:
bool isAtBeginning() const override;
bool isAtEnd() const override;
QList< Calamares::job_ptr > jobs() const override;
private:
GreetingPage* m_widget;
};

View File

@ -85,3 +85,10 @@ KeyboardViewStep::isAtEnd() const
{
return true;
}
QList< Calamares::job_ptr >
KeyboardViewStep::jobs() const
{
return QList< Calamares::job_ptr >();
}

View File

@ -49,6 +49,8 @@ public:
bool isAtBeginning() const override;
bool isAtEnd() const override;
QList< Calamares::job_ptr > jobs() const override;
private:
KeyboardPage* m_widget;
bool m_nextEnabled;

View File

@ -142,3 +142,10 @@ LocaleViewStep::isAtEnd() const
{
return true;
}
QList< Calamares::job_ptr >
LocaleViewStep::jobs() const
{
return QList< Calamares::job_ptr >();
}

View File

@ -51,6 +51,8 @@ public:
bool isAtBeginning() const override;
bool isAtEnd() const override;
QList< Calamares::job_ptr > jobs() const override;
private:
QWidget* m_widget;
QFutureWatcher< void > m_initWatcher;

View File

@ -20,7 +20,6 @@
#include <PartitionPage.h>
#include <PartitionCoreModule.h>
#include <JobQueue.h>
PartitionViewStep::PartitionViewStep( QObject* parent )
: Calamares::ViewStep( parent )
@ -49,7 +48,6 @@ PartitionViewStep::widget()
void
PartitionViewStep::next()
{
Calamares::JobQueue::instance()->enqueue( m_core->jobs() );
emit done();
}
@ -78,3 +76,10 @@ PartitionViewStep::isAtEnd() const
{
return true;
}
QList< Calamares::job_ptr >
PartitionViewStep::jobs() const
{
return m_core->jobs();
}

View File

@ -48,6 +48,8 @@ public:
bool isAtBeginning() const override;
bool isAtEnd() const override;
QList< Calamares::job_ptr > jobs() const override;
private:
PartitionCoreModule* m_core;
PartitionPage* m_widget;