New GlobalStorage map. With Python API support.

This commit is contained in:
Teo Mrnjavac 2014-07-21 17:08:06 +02:00
parent 4c88603872
commit 0753e6ccde
8 changed files with 295 additions and 7 deletions

View file

@ -19,6 +19,7 @@
#include "JobQueue.h"
#include "Job.h"
#include "GlobalStorage.h"
#include "CalamaresConfig.h"
#ifdef WITH_PYTHON
@ -98,15 +99,29 @@ JobQueue::instance()
}
GlobalStorage*
JobQueue::globalStorage() const
{
return m_storage;
}
JobQueue::JobQueue( QObject* parent )
: QObject( parent )
, m_thread( new JobThread( this ) )
, m_storage( new GlobalStorage() )
{
Q_ASSERT( !s_instance );
s_instance = this;
}
JobQueue::~JobQueue()
{
delete m_storage;
}
void
JobQueue::start()
{