nesca/STh.h

67 lines
2.0 KiB
C
Raw Normal View History

2015-02-24 14:00:19 +00:00
#ifndef STH_H
#define STH_H
#pragma once
#include "nesca_3.h"
#include "externFunctions.h"
#include "MainStarter.h"
2015-02-24 14:00:19 +00:00
extern int tMax;
class STh : public QThread
{
Q_OBJECT
private:
QString target = "";
QString ports = "";
2015-02-24 14:00:19 +00:00
public:
void setMode(short mode);
void setTarget(QString target);
void setPorts(QString ports);
2015-02-24 14:00:19 +00:00
static void doEmitionDataSaved(bool status);
static void doEmitionStartScanIP();
static void doEmitionStartScanDNS();
static void doEmitionStartScanImport();
static void doEmitionAddIncData(QString ip, QString str);
2015-03-10 20:09:05 +00:00
static void doEmitionAddOutData(QString str);
2015-02-24 14:00:19 +00:00
static void doEmition_BAGreenData(QString str);
2015-04-03 14:36:22 +00:00
static void doEmition_BARedData(QString str);
2015-02-24 14:00:19 +00:00
static void doEmitionFoundData(QString str);
static void doEmitionRedFoundData(QString str);
static void doEmitionGreenFoundData(QString);
static void doEmitionYellowFoundData(QString);
2015-04-03 14:36:22 +00:00
static void doEmitionChangeStatus(QString);
static void doEmitionKillSttThread();
2015-02-24 14:00:19 +00:00
static void doEmitionBAData(QString str);
static void doEmitionDebugFoundData(QString);
static void doEmitionShowRedVersion();
2015-04-03 14:36:22 +00:00
static void doEmitionUpdateArc(unsigned long gTargets);
2015-02-24 14:00:19 +00:00
signals:
public: signals: void showRedVersion();
public: signals: void startScanIP();
public: signals: void startScanDNS();
public: signals: void startScanImport();
public: signals: void signalDataSaved(bool);
public: signals: void changeGreenBAData(QString);
public: signals: void changeRedBAData(QString);
public: signals: void changeBAData(QString);
public: signals: void changeFoundData(QString);
public: signals: void changeRedFoundData(QString);
public: signals: void changeGreenFoundData(QString);
public: signals: void changeYellowFoundData(QString);
public: signals: void changeDebugFoundData(QString);
public: signals: void changeStatus(QString);
public: signals: void killSttThread();
public: signals: void sIncData(QString, QString);
2015-03-10 20:09:05 +00:00
public: signals: void sOutData(QString);
2015-04-03 14:36:22 +00:00
public: signals: void signalUpdateArc(unsigned long);
2015-02-24 14:00:19 +00:00
protected:
void run();
};
extern STh *stt;
#endif // STH_H