You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#ifndef DATAMANAGERTHREAD_H
|
|
|
|
|
|
#define DATAMANAGERTHREAD_H
|
|
|
|
|
|
#include <QThread>
|
|
|
|
|
|
#include "datamanagerbase.h"
|
|
|
|
|
|
|
|
|
|
|
|
class DataManagerThread : public QThread
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
public:
|
|
|
|
|
|
DataManagerThread();
|
|
|
|
|
|
void setManager(DataManagerBase* m){manager = m;}
|
|
|
|
|
|
int startManager();
|
|
|
|
|
|
void run() override;
|
|
|
|
|
|
|
|
|
|
|
|
void exitThread(){isExit = true;}
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
void managerFinished();
|
|
|
|
|
|
private:
|
|
|
|
|
|
bool isExit;
|
|
|
|
|
|
bool toManager;
|
|
|
|
|
|
DataManagerBase* manager;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // DATAMANAGERTHREAD_H
|