Add optional Python jobs support to libcalamares.

This commit is contained in:
Teo Mrnjavac 2014-07-16 16:07:32 +02:00
parent 754ef7dbbc
commit b924aeef2b
7 changed files with 311 additions and 1 deletions

View file

@ -20,6 +20,11 @@
#include "Job.h"
#include "CalamaresConfig.h"
#ifdef WITH_PYTHON
#include "PythonJobHelper.h"
#endif
#include <QThread>
namespace Calamares
@ -32,6 +37,9 @@ public:
: QThread( queue )
, m_queue( queue )
{
#ifdef WITH_PYTHON
new PythonJobHelper( this );
#endif
}
void setJobs( const QList< Calamares::job_ptr >& jobs )