mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
DocsUpdater в отдельный поток
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
#include "tools.h"
|
||||
|
||||
|
||||
DocsUpdater::DocsUpdater(UpdateController* updateController, QWidget *parentWidget):
|
||||
DocsUpdater::DocsUpdater(UpdateController* updateController, QObject *parent):
|
||||
QObject(parent),
|
||||
updateController(updateController),
|
||||
parentWidget(parentWidget),
|
||||
flagStop(false)
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ DocsUpdater::~DocsUpdater()
|
||||
|
||||
}
|
||||
|
||||
bool DocsUpdater::update()
|
||||
bool DocsUpdater::slot_update()
|
||||
{
|
||||
QMutexLocker locker(&mtxAccess);
|
||||
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
#ifndef DOCSUPDATER_H
|
||||
#define DOCSUPDATER_H
|
||||
|
||||
#include <QObject>
|
||||
#include "updatecontroller.h"
|
||||
#include "module.h"
|
||||
|
||||
|
||||
class DocsUpdater
|
||||
class DocsUpdater : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DocsUpdater(UpdateController* updateController, QWidget *parentWidget);
|
||||
DocsUpdater(UpdateController* updateController, QObject *parent = nullptr);
|
||||
~DocsUpdater();
|
||||
|
||||
bool update();
|
||||
public slots:
|
||||
bool slot_update();
|
||||
|
||||
private:
|
||||
void domElementParserAMM(QDomElement element, Module* moduleParent);
|
||||
@@ -21,7 +25,6 @@ private:
|
||||
|
||||
private:
|
||||
UpdateController* updateController;
|
||||
QWidget *parentWidget;
|
||||
QMutex mtxAccess;
|
||||
bool flagStop;
|
||||
QList<Module*> listAllModulesAMM; //?
|
||||
|
||||
Reference in New Issue
Block a user