ImagingTools Core SDK
Main Page
Related Pages
Topics
Namespaces
Classes
Examples
ImtCore
Include
imtlog
CWorkerBase.h
1
// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2
#pragma once
3
4
5
// Qt includes
6
#include <QtCore/QThread>
7
#include <QtCore/QMutex>
8
9
10
namespace
imtlog
11
{
12
13
14
class
CWorkerBase:
public
QThread
15
{
16
Q_OBJECT
17
public
:
18
CWorkerBase();
19
20
void
Start();
21
22
private
Q_SLOTS:
23
void
OnFinished();
24
25
private
:
26
enum
ThreadState
27
{
28
TS_IDLE = 0,
29
TS_RUNNING,
30
TS_PENDING
31
};
32
33
ThreadState m_state;
34
QMutex m_stateMutex;
35
};
36
37
38
}
// namespace imtlog
39
40
Generated by
1.9.8