22 lines
405 B
C++
22 lines
405 B
C++
#ifndef LOADING_WORKER_H
|
|
#define LOADING_WORKER_H
|
|
|
|
#include "loading.h"
|
|
#include <qobject.h>
|
|
class LoadingWorker : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit LoadingWorker (Loading *loading, QObject *parent = nullptr);
|
|
~LoadingWorker();
|
|
private:
|
|
Loading *loading;
|
|
public slots:
|
|
void process();
|
|
signals:
|
|
void finished();
|
|
void progress(int value);
|
|
};
|
|
|
|
#endif // LOADING_WORKER_H
|