[libcalamares] finish() is a private implementation detail for the job queue

This commit is contained in:
Adriaan de Groot 2020-08-20 22:28:52 +02:00
parent 3ae4ccf402
commit 2b86d2481c

View File

@ -50,20 +50,25 @@ public:
* of the module.
*/
void enqueue( int moduleWeight, const JobList& jobs );
/** @brief Starts all the jobs that are enqueued.
*
* After this, isRunning() returns @c true until
* finished() is emitted.
*/
void start();
bool isRunning() const { return !m_finished; }
public slots:
void finish();
signals:
void queueChanged( const JobList& jobs );
void progress( qreal percent, const QString& prettyName );
void finished();
void failed( const QString& message, const QString& details );
private:
void finish();
static JobQueue* s_instance;
JobThread* m_thread;