-
Notifications
You must be signed in to change notification settings - Fork 15
/
mthread_calculate.h
54 lines (44 loc) · 1.48 KB
/
mthread_calculate.h
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
54
/* mthread_calculate.h - header text to Coil64 - Radio frequency inductor and choke calculator
Copyright (C) 2019 Kustarev V.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses
*/
#ifndef MTHREAD_CALCULATE_H
#define MTHREAD_CALCULATE_H
#include <QThread>
#include <QMetaType>
#include "resolves.h"
#include "resolve_q.h"
#include "resolve_srf_cs.h"
class MThread_calculate : public QThread
{
Q_OBJECT
public:
explicit MThread_calculate(int _coilForm, int _tab, double _arg1, double _arg2, double _arg3, double _arg4,
double _arg5, double _arg6, double _arg7, double _arg8, Material _mt = Cu);
void run();
signals:
void sendResult(_CoilResult);
private:
int coilForm;
int tab;
double arg1;
double arg2;
double arg3;
double arg4;
double arg5;
double arg6;
double arg7;
double arg8;
Material mt;
};
Q_DECLARE_METATYPE(_CoilResult)
#endif // MTHREAD_CALCULATE_H