2015-02-24 14:00:19 +00:00
|
|
|
#include "STh.h"
|
2015-04-14 11:58:33 +00:00
|
|
|
#include "externData.h"
|
2015-02-24 14:00:19 +00:00
|
|
|
|
|
|
|
void STh::doEmitionShowRedVersion()
|
|
|
|
{
|
|
|
|
emit stt->showRedVersion();
|
2015-04-03 14:36:22 +00:00
|
|
|
}
|
2015-02-24 14:00:19 +00:00
|
|
|
void STh::doEmitionStartScanIP()
|
|
|
|
{
|
|
|
|
emit stt->startScanIP();
|
2015-04-03 14:36:22 +00:00
|
|
|
}
|
2015-02-24 14:00:19 +00:00
|
|
|
void STh::doEmitionStartScanDNS()
|
|
|
|
{
|
|
|
|
emit stt->startScanDNS();
|
2015-04-03 14:36:22 +00:00
|
|
|
}
|
2015-02-24 14:00:19 +00:00
|
|
|
void STh::doEmitionStartScanImport()
|
|
|
|
{
|
|
|
|
emit stt->startScanImport();
|
2015-04-03 14:36:22 +00:00
|
|
|
}
|
2015-02-24 14:00:19 +00:00
|
|
|
void STh::doEmitionAddIncData(QString(ip), QString str)
|
|
|
|
{
|
|
|
|
emit stt->sIncData(ip, str);
|
2015-04-03 14:36:22 +00:00
|
|
|
}
|
2015-03-10 20:09:05 +00:00
|
|
|
void STh::doEmitionAddOutData( QString str)
|
2015-02-24 14:00:19 +00:00
|
|
|
{
|
2015-03-10 20:09:05 +00:00
|
|
|
emit stt->sOutData(str);
|
2015-02-24 14:00:19 +00:00
|
|
|
}
|
|
|
|
void STh::doEmitionFoundData(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeFoundData(str);
|
|
|
|
}
|
|
|
|
void STh::doEmitionBAData(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeBAData(str);
|
|
|
|
}
|
|
|
|
void STh::doEmition_BARedData(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeRedBAData(str);
|
2015-04-03 14:36:22 +00:00
|
|
|
}
|
2015-02-24 14:00:19 +00:00
|
|
|
void STh::doEmition_BAGreenData(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeGreenBAData(str);
|
|
|
|
}
|
|
|
|
void STh::doEmitionRedFoundData(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeRedFoundData(str);
|
|
|
|
}
|
|
|
|
void STh::doEmitionGreenFoundData(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeGreenFoundData(str);
|
|
|
|
}
|
|
|
|
void STh::doEmitionYellowFoundData(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeYellowFoundData(str);
|
|
|
|
}
|
|
|
|
void STh::doEmitionDebugFoundData(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeDebugFoundData(str);
|
|
|
|
}
|
|
|
|
void STh::doEmitionChangeStatus(QString str)
|
|
|
|
{
|
|
|
|
emit stt->changeStatus(str);
|
|
|
|
}
|
|
|
|
void STh::doEmitionKillSttThread()
|
|
|
|
{
|
|
|
|
emit stt->killSttThread();
|
2015-04-03 14:36:22 +00:00
|
|
|
}
|
2015-02-24 14:00:19 +00:00
|
|
|
void STh::doEmitionDataSaved(bool status)
|
|
|
|
{
|
2015-04-03 14:36:22 +00:00
|
|
|
emit stt->signalDataSaved(status);
|
|
|
|
}
|
|
|
|
void STh::doEmitionUpdateArc(unsigned long gTargets)
|
|
|
|
{
|
|
|
|
emit stt->signalUpdateArc(gTargets);
|
|
|
|
}
|
|
|
|
|
2015-04-14 11:58:33 +00:00
|
|
|
void STh::setMode(short mode) {
|
|
|
|
gMode = mode;
|
|
|
|
}
|
|
|
|
void STh::setTarget(QString target) {
|
|
|
|
this->target = target;
|
|
|
|
}
|
|
|
|
void STh::setPorts(QString ports) {
|
|
|
|
this->ports = ports;
|
|
|
|
}
|
2015-02-24 14:00:19 +00:00
|
|
|
void STh::run()
|
|
|
|
{
|
2015-04-14 11:58:33 +00:00
|
|
|
MainStarter ms(gMode,
|
|
|
|
this->target.toLocal8Bit().data(),
|
|
|
|
this->ports.toLocal8Bit().data()
|
|
|
|
);
|
|
|
|
ms.start();
|
2015-04-03 14:36:22 +00:00
|
|
|
}
|