forked from pantyusha/nesca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
STh.cpp
90 lines (86 loc) · 1.77 KB
/
STh.cpp
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#include "STh.h"
#include "MainStarter.h"
//BA TablelistView
void STh::doEmitionChangeBARow(int index, QString loginPass, QString percentage)
{
emit stt->signalChangeBARow(index, loginPass, percentage);
}
void STh::doEmitionShowRedVersion()
{
emit stt->showRedVersion();
}
void STh::doEmitionStartScanIP()
{
emit stt->startScanIP();
}
void STh::doEmitionStartScanDNS()
{
emit stt->startScanDNS();
}
void STh::doEmitionStartScanImport()
{
emit stt->startScanImport();
}
void STh::doEmitionAddIncData(QString(ip), QString str)
{
emit stt->sIncData(ip, str);
}
void STh::doEmitionAddOutData( QString str)
{
emit stt->sOutData(str);
}
void STh::doEmitionFoundData(QString str)
{
emit stt->changeFoundData(str);
}
void STh::doEmitionRedFoundData(QString str)
{
emit stt->changeRedFoundData(str);
}
void STh::doEmitionGreenFoundData(QString str)
{
emit stt->changeGreenFoundData(str);
}
void STh::doEmitionFoundDataCustom(QString str, QString color)
{
emit stt->foundDataCustom(str, color);
}
void STh::doEmitionYellowFoundData(QString str)
{
emit stt->changeYellowFoundData(str);
}
void STh::doEmitionDebugFoundData(QString str)
{
emit stt->changeDebugFoundData(str);
}
void STh::doEmitionKillSttThread()
{
emit stt->killSttThread();
}
void STh::doEmitionDataSaved(bool status)
{
emit stt->signalDataSaved(status);
}
void STh::doEmitionUpdateArc(unsigned long gTargets)
{
emit stt->signalUpdateArc(gTargets);
}
void STh::doEmitionBlockButton(bool value)
{
emit stt->signalBlockButton(value);
}
void STh::setMode(short mode) {
gMode = mode;
}
void STh::setTarget(QString target) {
this->target = target;
}
void STh::setPorts(QString ports) {
this->ports = ports;
}
void STh::run()
{
MainStarter ms;
ms.start(this->target.toLocal8Bit().data(),
this->ports.toLocal8Bit().data());
}