mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
New GlobalStorage map. With Python API support.
This commit is contained in:
parent
4c88603872
commit
0753e6ccde
8 changed files with 295 additions and 7 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue