-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpectrometerWorker.hpp
More file actions
53 lines (37 loc) · 1.09 KB
/
Copy pathSpectrometerWorker.hpp
File metadata and controls
53 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// SPDX-FileCopyrightText: 2026 Błażej Szczygieł <mumei6102@gmail.com>
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "Headers.hpp"
#include "Exposure.hpp"
struct SpdData;
class SpectrometerWorker : public QThread
{
Q_OBJECT
public:
static const QString sDateKey;
static const QString sDeviceKey;
static const QString sExposureKey;
public:
SpectrometerWorker(QObject *parent);
~SpectrometerWorker();
void begin();
virtual bool setParam(const QString &key, const QVariant &value) = 0;
virtual QString staticDataName() const = 0;
protected:
void setCurrentDate();
void emitNewExposureData();
void processSpd(const Data &spd);
Q_SIGNALS:
void newExposureData(const Exposure &exposure);
void newSpdData(const std::shared_ptr<SpdData> &spdData, QPrivateSignal);
void commandsFinished();
void errorMesssage(const QString &errStr);
protected:
QString m_deviceId;
QDateTime m_date;
double m_hintMinNm = 0.0;
double m_hintMaxNm = 0.0;
double m_minNm = 0.0;
double m_maxNm = 0.0;
Exposure m_exposure;
};