mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 18:52:19 +00:00
Adding files
This commit is contained in:
parent
f80f4b52df
commit
89519fccde
36
ActivityDrawerTh_HorNet.cpp
Executable file
36
ActivityDrawerTh_HorNet.cpp
Executable file
@ -0,0 +1,36 @@
|
||||
#include "ActivityDrawerTh_HorNet.h"
|
||||
#include "STh.h"
|
||||
|
||||
void ActivityDrawerTh_HorNet::doEmitDrawActivityLine()
|
||||
{
|
||||
emit adtHN->sDrawActivityLine();
|
||||
};
|
||||
void ActivityDrawerTh_HorNet::doEmitDrawGrid()
|
||||
{
|
||||
emit adtHN->sDrawGrid();
|
||||
};
|
||||
|
||||
void makeActLine(int val)
|
||||
{
|
||||
if(actLst.size() < 50) actLst.push_back(val);
|
||||
else
|
||||
{
|
||||
actLst.pop_front();
|
||||
actLst.push_back(val);
|
||||
};
|
||||
};
|
||||
void ActivityDrawerTh_HorNet::run()
|
||||
{
|
||||
adtHN->doEmitDrawGrid();
|
||||
int maxAct = Activity + 1;
|
||||
while(true)
|
||||
{
|
||||
if(maxAct < Activity) maxAct = Activity;
|
||||
int nm = maxAct-=5;
|
||||
makeActLine(((float)Activity/(nm != 0 ? nm : 1)) * 10);
|
||||
stt->doEmitionSetActivityValue(QString::number(Activity) + "b");
|
||||
Activity = 0;
|
||||
adtHN->doEmitDrawActivityLine();
|
||||
msleep(130);
|
||||
};
|
||||
};
|
21
ActivityDrawerTh_HorNet.h
Executable file
21
ActivityDrawerTh_HorNet.h
Executable file
@ -0,0 +1,21 @@
|
||||
#ifndef ACTIVITYDRAWERTH_HORNET_H
|
||||
#define ACTIVITYDRAWERTH_HORNET_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
|
||||
class ActivityDrawerTh_HorNet : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public: signals: void sDrawActivityLine();
|
||||
public: signals: void sDrawGrid();
|
||||
|
||||
public:
|
||||
static void doEmitDrawActivityLine();
|
||||
static void doEmitDrawGrid();
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
extern ActivityDrawerTh_HorNet *adtHN;
|
||||
#endif // ACTIVITYDRAWERTH_HORNET_H
|
17
CheckKey_Th.h
Executable file
17
CheckKey_Th.h
Executable file
@ -0,0 +1,17 @@
|
||||
#ifndef CHECKKEY_TH_H
|
||||
#define CHECKKEY_TH_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
extern int emitIfOK;
|
||||
class CheckKey_Th : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
|
||||
extern CheckKey_Th *chKTh;
|
||||
#endif // CHECKKEY_TH_H
|
28
CheckProxy_Th.h
Executable file
28
CheckProxy_Th.h
Executable file
@ -0,0 +1,28 @@
|
||||
#ifndef CHECKPROXY_TH_H
|
||||
#define CHECKPROXY_TH_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
|
||||
class CheckProxy_Th : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public: signals: void changeRedIRCData(QString);
|
||||
public: signals: void changeGreenIRCData(QString);
|
||||
public: signals: void changeYellowIRCData(QString);
|
||||
public: signals: void changeRawIRCDataInc(QString);
|
||||
public: signals: void changeRawIRCDataOut(QString);
|
||||
|
||||
public:
|
||||
void doEmitChangeRedIRCData(QString str);
|
||||
void doEmitChangeGreenIRCData(QString str);
|
||||
void doEmitChangeYellowIRCData(QString str);
|
||||
void doEmitChangeRawIRCDataOut(QString str);
|
||||
void doEmitChangeRawIRCDataInc(QString str);
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
extern CheckProxy_Th *chPTh;
|
||||
#endif // CHECKPROXY_TH_H
|
23
DrawerTh_GridQoSScanner.cpp
Executable file
23
DrawerTh_GridQoSScanner.cpp
Executable file
@ -0,0 +1,23 @@
|
||||
#include "DrawerTh_GridQoSScanner.h"
|
||||
#include "STh.h"
|
||||
|
||||
void DrawerTh_GridQoSScanner::doEmitAddLine()
|
||||
{
|
||||
emit dtGridQoS->sAddLine();
|
||||
};
|
||||
|
||||
void DrawerTh_GridQoSScanner::run()
|
||||
{
|
||||
while(QoSScanFlag)
|
||||
{
|
||||
if(stt->isRunning() == true)
|
||||
{
|
||||
if(widgetIsHidden == false && tray->isVisible() == false)
|
||||
{
|
||||
++QoSStep;
|
||||
emit dtGridQoS->doEmitAddLine();
|
||||
};
|
||||
};
|
||||
msleep(2000);
|
||||
};
|
||||
};
|
42
DrawerTh_HorNet.cpp
Executable file
42
DrawerTh_HorNet.cpp
Executable file
@ -0,0 +1,42 @@
|
||||
#include "DrawerTh_HorNet.h"
|
||||
|
||||
void DrawerTh_HorNet::run()
|
||||
{
|
||||
qsrand (QDateTime::currentMSecsSinceEpoch());
|
||||
int factor = 0;
|
||||
|
||||
int gWidth = ui->graphicLog->width();
|
||||
int gHeight = ui->graphicLog->height();
|
||||
|
||||
dtHN->doEmitionAddDelimLines();
|
||||
|
||||
while(ME2ScanFlag)
|
||||
{
|
||||
if(widgetIsHidden == false && tray->isVisible() == false)
|
||||
{
|
||||
++factor > 9 ? factor = 0 : NULL;
|
||||
dtHN->doEmitionDrawGrid();
|
||||
|
||||
for(int i = 0; i < gHeight; i += 10)
|
||||
{
|
||||
QApplication::processEvents();
|
||||
dtHN->doEmitionAddLine(0, i + factor, gWidth, i + factor);
|
||||
QApplication::processEvents();
|
||||
};
|
||||
};
|
||||
msleep(200);
|
||||
};
|
||||
};
|
||||
|
||||
void DrawerTh_HorNet::doEmitionDrawGrid()
|
||||
{
|
||||
emit dtHN->sDrawGrid();
|
||||
};
|
||||
void DrawerTh_HorNet::doEmitionAddLine(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
emit dtHN->sAddLine(x1, y1, x2, y2);
|
||||
};
|
||||
void DrawerTh_HorNet::doEmitionAddDelimLines()
|
||||
{
|
||||
emit dtHN->sAddDelimLines();
|
||||
};
|
26
DrawerTh_HorNet.h
Executable file
26
DrawerTh_HorNet.h
Executable file
@ -0,0 +1,26 @@
|
||||
#ifndef DRAWERTH_HORNET_H
|
||||
#define DRAWERTH_HORNET_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
|
||||
class DrawerTh_HorNet : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static void doEmitionDrawGrid();
|
||||
static void doEmitionAddLine(int x1, int y1, int x2, int y2);
|
||||
static void doEmitionAddDelimLines();
|
||||
|
||||
public: signals: void sAddDelimLines();
|
||||
public: signals: void sAddLine(int, int, int, int);
|
||||
public: signals: void sDrawGrid();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
|
||||
extern DrawerTh_HorNet *dtHN;
|
||||
#endif // DRAWERTH_HORNET_H
|
148
DrawerTh_ME2Scanner.cpp
Executable file
148
DrawerTh_ME2Scanner.cpp
Executable file
@ -0,0 +1,148 @@
|
||||
#include "DrawerTh_ME2Scanner.h"
|
||||
#include "STh.h"
|
||||
|
||||
void DrawerTh_ME2Scanner::doEmitDrawTextPlacers()
|
||||
{
|
||||
emit dtME2->sDrawTextPlacers();
|
||||
};
|
||||
|
||||
void DrawerTh_ME2Scanner::doEmitionAddPolyLine()
|
||||
{
|
||||
emit dtME2->sAddPolyLine();
|
||||
};
|
||||
void MakePolygonLine(int gWidth)
|
||||
{
|
||||
vect.clear();
|
||||
int x = 0;
|
||||
int tx = 0;
|
||||
int xtx = 0;
|
||||
QPointF qp(0, 20);
|
||||
vect.append(qp);
|
||||
int fact1 = 0,
|
||||
fact2 = 0,
|
||||
fact3 = 0,
|
||||
fact4 = 0,
|
||||
fact5 = 0,
|
||||
fact6 = 0,
|
||||
fact7 = 0;
|
||||
|
||||
bool state = stt->isRunning();
|
||||
for(int i = 1; i < 130; ++i)
|
||||
{
|
||||
x = qrand() % 4 + 2 + i;
|
||||
xtx = x + tx;
|
||||
if(xtx > 1 && xtx < 31)
|
||||
{
|
||||
qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - AnomC1*2 - fact1 : 20);
|
||||
if(AnomC1 > 0)
|
||||
{
|
||||
if(xtx < 16 ) fact1+=2;
|
||||
else fact1-=2;
|
||||
};
|
||||
}
|
||||
|
||||
if(xtx > 34 && xtx < 72)
|
||||
{
|
||||
qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - WF*2 - fact2 : 20);
|
||||
|
||||
if(WF > 0)
|
||||
{
|
||||
if(xtx < 52 ) fact2+=2;
|
||||
else fact2-=2;
|
||||
};
|
||||
}
|
||||
|
||||
if(xtx > 74 && xtx < 112)
|
||||
{
|
||||
qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - BA*2 - fact3 : 20);
|
||||
|
||||
if(BA > 0)
|
||||
{
|
||||
if(xtx < 92 ) fact3+=2;
|
||||
else fact3-=2;
|
||||
};
|
||||
}
|
||||
|
||||
if(xtx > 114 && xtx < 152)
|
||||
{
|
||||
qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - Susp*2 - fact4 : 20);
|
||||
|
||||
if(Susp > 0)
|
||||
{
|
||||
if(xtx < 132 ) fact4+=2;
|
||||
else fact4-=2;
|
||||
};
|
||||
}
|
||||
|
||||
if(xtx > 154 && xtx < 192)
|
||||
{
|
||||
qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - Overl*2 - fact5 : 20);
|
||||
|
||||
if(Overl > 0)
|
||||
{
|
||||
if(xtx < 172 ) fact5+=2;
|
||||
else fact5-=2;
|
||||
};
|
||||
}
|
||||
|
||||
if(xtx > 194 && xtx < 232)
|
||||
{
|
||||
qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - Lowl*2 - fact6 : 20);
|
||||
|
||||
if(Lowl > 0)
|
||||
{
|
||||
if(xtx < 212 ) fact6+=2;
|
||||
else fact6-=2;
|
||||
};
|
||||
}
|
||||
|
||||
if(xtx > 234 && xtx < 269)
|
||||
{
|
||||
qp = QPointF(xtx, state ? qrand() % 3 - 3 + 20 - Alive*2 - fact7 : 20);
|
||||
|
||||
if(Alive > 0)
|
||||
{
|
||||
if(xtx < 252 ) fact7+=2;
|
||||
else fact7-=2;
|
||||
};
|
||||
};
|
||||
|
||||
vect.append(qp);
|
||||
tx = x;
|
||||
};
|
||||
AnomC1 = 0;
|
||||
WF = 0;
|
||||
BA = 0;
|
||||
Filt = 0;
|
||||
Overl = 0;
|
||||
Lowl = 0;
|
||||
Alive = 0;
|
||||
Susp = 0;
|
||||
vect.append(QPointF(gWidth, 20));
|
||||
};
|
||||
void DrawerTh_ME2Scanner::run()
|
||||
{
|
||||
int gWidth = ui->graphicLog->width();
|
||||
dtME2->doEmitDrawTextPlacers();
|
||||
while(ME2ScanFlag)
|
||||
{
|
||||
if(widgetIsHidden == false && tray->isVisible() == false)
|
||||
{
|
||||
MakePolygonLine(gWidth);
|
||||
dtME2->doEmitionAddPolyLine();
|
||||
}
|
||||
else
|
||||
{
|
||||
msleep(1000);
|
||||
AnomC1 = 0;
|
||||
WF = 0;
|
||||
BA = 0;
|
||||
Filt = 0;
|
||||
Overl = 0;
|
||||
Lowl = 0;
|
||||
Alive = 0;
|
||||
Susp = 0;
|
||||
};
|
||||
msleep(150);
|
||||
};
|
||||
};
|
23
DrawerTh_ME2Scanner.h
Executable file
23
DrawerTh_ME2Scanner.h
Executable file
@ -0,0 +1,23 @@
|
||||
#ifndef DRAWERTH_ME2SCANNER_H
|
||||
#define DRAWERTH_ME2SCANNER_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
|
||||
class DrawerTh_ME2Scanner : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static void doEmitionAddPolyLine();
|
||||
static void doEmitDrawTextPlacers();
|
||||
|
||||
public: signals: void sAddPolyLine();
|
||||
public: signals: void sDrawTextPlacers();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
extern DrawerTh_ME2Scanner *dtME2;
|
||||
#endif // DRAWERTH_ME2SCANNER_H
|
61
DrawerTh_QoSScanner.cpp
Executable file
61
DrawerTh_QoSScanner.cpp
Executable file
@ -0,0 +1,61 @@
|
||||
#pragma once
|
||||
#include "DrawerTh_QoSScanner.h"
|
||||
#include "STh.h"
|
||||
|
||||
void DrawerTh_QoSScanner::run()
|
||||
{
|
||||
while(QoSScanFlag)
|
||||
{
|
||||
tMax = 0;
|
||||
|
||||
if(stt->isRunning() == true && widgetIsHidden == false && tray->isVisible() == false && QOSWait == false)
|
||||
{
|
||||
lstOfLabels.clear();
|
||||
lstOfLabels.append(Alive);
|
||||
lstOfLabels.append(AnomC1);
|
||||
lstOfLabels.append(WF);
|
||||
lstOfLabels.append(Susp);
|
||||
lstOfLabels.append(Lowl);
|
||||
lstOfLabels.append((int)BA);
|
||||
lstOfLabels.append(Overl);
|
||||
lstOfLabels.append(ssh);
|
||||
|
||||
QList<int> lstOfLabelsCopy = lstOfLabels;
|
||||
qSort(lstOfLabelsCopy.begin(), lstOfLabelsCopy.end(), qGreater<float>());
|
||||
int curVal = lstOfLabelsCopy[0];
|
||||
if(curVal > MaxDataVal) MaxDataVal = curVal;
|
||||
if(curVal > tMax) tMax = curVal;
|
||||
|
||||
dtQoS->doEmitionAddLine();
|
||||
}
|
||||
else
|
||||
{
|
||||
msleep(500);
|
||||
AnomC1 = 0;
|
||||
WF = 0;
|
||||
BA = 0;
|
||||
Filt = 0;
|
||||
Overl = 0;
|
||||
Lowl = 0;
|
||||
Alive = 0;
|
||||
Susp = 0;
|
||||
ssh = 0;
|
||||
};
|
||||
|
||||
AnomC1 = 0;
|
||||
WF = 0;
|
||||
BA = 0;
|
||||
Filt = 0;
|
||||
Overl = 0;
|
||||
Lowl = 0;
|
||||
Alive = 0;
|
||||
Susp = 0;
|
||||
ssh = 0;
|
||||
msleep(2000);
|
||||
};
|
||||
};
|
||||
|
||||
void DrawerTh_QoSScanner::doEmitionAddLine()
|
||||
{
|
||||
emit dtQoS->sAddLine();
|
||||
};
|
22
DrawerTh_QoSScanner.h
Executable file
22
DrawerTh_QoSScanner.h
Executable file
@ -0,0 +1,22 @@
|
||||
#ifndef DRAWERTH_QOSSCANNER_H
|
||||
#define DRAWERTH_QOSSCANNER_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
|
||||
class DrawerTh_QoSScanner : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static void doEmitionAddLine();
|
||||
|
||||
public: signals: void sAddLine();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
|
||||
extern DrawerTh_QoSScanner *dtQoS;
|
||||
#endif // DRAWERTH_QOSSCANNER_H
|
134
DrawerTh_VoiceScanner.cpp
Executable file
134
DrawerTh_VoiceScanner.cpp
Executable file
@ -0,0 +1,134 @@
|
||||
#include "DrawerTh_VoiceScanner.h"
|
||||
|
||||
void DrawerTh_VoiceScanner::doEmitAddLine()
|
||||
{
|
||||
emit vsTh->sAddLine();
|
||||
};
|
||||
void DrawerTh_VoiceScanner::doEmitDrawGrid()
|
||||
{
|
||||
emit vsTh->sDrawGrid();
|
||||
};
|
||||
void DrawerTh_VoiceScanner::doEmitDrawTextPlacers()
|
||||
{
|
||||
emit vsTh->sDrawTextPlacers();
|
||||
};
|
||||
|
||||
void makeVoiceLine(int Al, int An, int Bd, int Sp, int Lo, int var, int Ovl, int WF, int SSH)
|
||||
{
|
||||
if(vAlivLst.size() < 140)
|
||||
{
|
||||
if(Al > 0) vAlivLst.push_back((Al + 1)*10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vAlivLst.pop_front();
|
||||
if(Al > 0) vAlivLst.push_back((Al + 1)*10);
|
||||
};
|
||||
|
||||
if(vAnomLst.size() < 140)
|
||||
{
|
||||
if(An > 0) vAnomLst.push_back((An + 1)*10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vAnomLst.pop_front();
|
||||
if(An > 0) vAnomLst.push_back((An + 1)*10);
|
||||
};
|
||||
|
||||
if(vWFLst.size() < 140)
|
||||
{
|
||||
if(Bd > 0) vWFLst.push_back((Bd + 1)*10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vWFLst.pop_front();
|
||||
if(Bd > 0) vWFLst.push_back((Bd + 1)*10);
|
||||
};
|
||||
|
||||
if(vSuspLst.size() < 140)
|
||||
{
|
||||
if(Sp > 0) vSuspLst.push_back((Sp + 1)*10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vSuspLst.pop_front();
|
||||
if(Sp > 0) vSuspLst.push_back((Sp + 1)*10);
|
||||
};
|
||||
|
||||
if(vLowlLst.size() < 140)
|
||||
{
|
||||
if(Lo > 0) vLowlLst.push_back((Lo + 1)*10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vLowlLst.pop_front();
|
||||
if(Lo > 0) vLowlLst.push_back((Lo + 1)*10);
|
||||
};
|
||||
|
||||
if(vLowlLst.size() < 140)
|
||||
{
|
||||
if(var > 0) vBALst.push_back((var + 1)*10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vBALst.pop_front();
|
||||
if(var > 0) vBALst.push_back((var + 1)*10);
|
||||
};
|
||||
|
||||
if(vOvrlLst.size() < 140)
|
||||
{
|
||||
if(Ovl > 0) vOvrlLst.push_back((Ovl + 1)*10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vOvrlLst.pop_front();
|
||||
if(Ovl > 0) vOvrlLst.push_back((Ovl + 1)*10);
|
||||
};
|
||||
|
||||
if(vSSHLst.size() < 140)
|
||||
{
|
||||
if(SSH > 0) vSSHLst.push_back((SSH + 1)*10);
|
||||
}
|
||||
else
|
||||
{
|
||||
vSSHLst.pop_front();
|
||||
if(SSH > 0) vSSHLst.push_back((SSH + 1)*10);
|
||||
};
|
||||
};
|
||||
void DrawerTh_VoiceScanner::run()
|
||||
{
|
||||
vsTh->doEmitDrawGrid();
|
||||
vsTh->doEmitDrawTextPlacers();
|
||||
while(VoiceScanFlag)
|
||||
{
|
||||
if(widgetIsHidden == false && tray->isVisible() == false)
|
||||
{
|
||||
makeVoiceLine(Alive, AnomC1, WF, Susp, Lowl, BA, Overl, WF, ssh);
|
||||
Alive = 0;
|
||||
AnomC1 = 0;
|
||||
WF = 0;
|
||||
Filt = 0;
|
||||
Lowl = 0;
|
||||
BA = 0;
|
||||
Overl = 0;
|
||||
Susp = 0;
|
||||
ssh = 0;
|
||||
|
||||
vsTh->doEmitAddLine();
|
||||
msleep(150);
|
||||
}
|
||||
else
|
||||
{
|
||||
msleep(500);
|
||||
Alive = 0;
|
||||
AnomC1 = 0;
|
||||
WF = 0;
|
||||
Filt = 0;
|
||||
Lowl = 0;
|
||||
BA = 0;
|
||||
Overl = 0;
|
||||
Susp = 0;
|
||||
ssh = 0;
|
||||
};
|
||||
};
|
||||
};
|
24
DrawerTh_VoiceScanner.h
Executable file
24
DrawerTh_VoiceScanner.h
Executable file
@ -0,0 +1,24 @@
|
||||
#ifndef DRAWERTH_VOICESCANNER_H
|
||||
#define DRAWERTH_VOICESCANNER_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
|
||||
class DrawerTh_VoiceScanner : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
public: signals: void sAddLine();
|
||||
public: signals: void sDrawGrid();
|
||||
public: signals: void sDrawTextPlacers();
|
||||
public:
|
||||
void doEmitAddLine();
|
||||
void doEmitDrawGrid();
|
||||
void doEmitDrawTextPlacers();
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
extern DrawerTh_VoiceScanner *vsTh;
|
||||
#endif // DRAWERTH_VOICESCANNER_H
|
24
IRCPinger_Th.h
Executable file
24
IRCPinger_Th.h
Executable file
@ -0,0 +1,24 @@
|
||||
#ifndef IRCPINGER_TH_H
|
||||
#define IRCPINGER_TH_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
extern int iWantToConnect;
|
||||
|
||||
class IRCPinger_Th : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static void doEmitChangeRedIRCData(QString str);
|
||||
static void doEmitRestartIRC();
|
||||
|
||||
public: signals: void changeRedIRCData(QString);
|
||||
public: signals: void RestartIRC();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
extern IRCPinger_Th *ircPTh;
|
||||
#endif // IRCPINGER_TH_H
|
16
irc_nmblinker.cpp
Executable file
16
irc_nmblinker.cpp
Executable file
@ -0,0 +1,16 @@
|
||||
#include "irc_nmblinker.h"
|
||||
#include "nesca_3.h"
|
||||
|
||||
void IRC_NMBlinker::doEmitBlinkMessage()
|
||||
{
|
||||
emit irc_nmb->sBlinkMessage();
|
||||
};
|
||||
|
||||
void IRC_NMBlinker::run()
|
||||
{
|
||||
while(widgetIsHidden == false && disableBlink == false && tray->isVisible() == false)
|
||||
{
|
||||
irc_nmb->doEmitBlinkMessage();
|
||||
msleep(500);
|
||||
};
|
||||
};
|
20
irc_nmblinker.h
Executable file
20
irc_nmblinker.h
Executable file
@ -0,0 +1,20 @@
|
||||
#ifndef IRC_NMBLINKER_H
|
||||
#define IRC_NMBLINKER_H
|
||||
|
||||
#include "nesca_3.h"
|
||||
|
||||
class IRC_NMBlinker : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static void doEmitBlinkMessage();
|
||||
|
||||
public: signals: void sBlinkMessage();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
extern IRC_NMBlinker *irc_nmb;
|
||||
|
||||
#endif // IRC_NMBLINKER_H
|
26
login.txt
Executable file
26
login.txt
Executable file
@ -0,0 +1,26 @@
|
||||
admin
|
||||
root
|
||||
123123
|
||||
123456
|
||||
12345
|
||||
|
||||
|
||||
cisco
|
||||
meinsm
|
||||
monitor
|
||||
test
|
||||
ftp
|
||||
1234
|
||||
administrator
|
||||
qwerty
|
||||
recovery
|
||||
Polycom
|
||||
system
|
||||
naadmin
|
||||
telecom
|
||||
dreambox
|
||||
master
|
||||
Admin
|
||||
Root
|
||||
guest
|
||||
backup
|
43
msgcheckerthread.cpp
Executable file
43
msgcheckerthread.cpp
Executable file
@ -0,0 +1,43 @@
|
||||
#include "msgcheckerthread.h"
|
||||
|
||||
void MSGCheckerThread::doEmitionShowNewMsg(QString str)
|
||||
{
|
||||
emit mct->showNewMsg(str);
|
||||
};
|
||||
|
||||
void _getNewMsg()
|
||||
{
|
||||
Connector con;
|
||||
conSTR CSTR;
|
||||
CSTR.lowerBuff = NULL;
|
||||
CSTR.size = 0;
|
||||
char request[256] = {0};
|
||||
strcpy(request, "GET /mailbox?key=");
|
||||
strncat(request, trcPersKey, 32);
|
||||
strcat(request, " HTTP/1.1\r\nHost: nesca.d3w.org\r\nX-Nescav3: True\r\n\r\n");
|
||||
con._EstablishConnection("nesca.d3w.org", 80, request, &CSTR, 1);
|
||||
|
||||
char *ptr1 = NULL;
|
||||
if(CSTR.lowerBuff != NULL)
|
||||
{
|
||||
if(strstr(CSTR.lowerBuff, "\r\n\r\n") != NULL && strstr(CSTR.lowerBuff, "HTTP/1.1 404 Not Found") == NULL && strstr(CSTR.lowerBuff, "HTTP/1.1 502 Bad Gateway") == NULL && strstr(CSTR.lowerBuff, "HTTP/1.1 400 Bad Request") == NULL && strstr(CSTR.lowerBuff, "\r\n\r\nEmpty") == NULL)
|
||||
{
|
||||
ptr1 = strstr(CSTR.lowerBuff, "\r\n\r\n");
|
||||
if(strlen(ptr1 + 4) != 0)
|
||||
{
|
||||
mct->doEmitionShowNewMsg(QString(ptr1 + 4));
|
||||
};
|
||||
};
|
||||
delete []CSTR.lowerBuff;
|
||||
CSTR.lowerBuff = NULL;
|
||||
};
|
||||
};
|
||||
|
||||
void MSGCheckerThread::run()
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
Sleep(60000);
|
||||
_getNewMsg();
|
||||
};
|
||||
};
|
20
msgcheckerthread.h
Executable file
20
msgcheckerthread.h
Executable file
@ -0,0 +1,20 @@
|
||||
#ifndef MSGCHECKERTHREAD_H
|
||||
#define MSGCHECKERTHREAD_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
|
||||
class MSGCheckerThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static void doEmitionShowNewMsg(QString str);
|
||||
public: signals: void showNewMsg(QString);
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
extern MSGCheckerThread *mct;
|
||||
|
||||
#endif // MSGCHECKERTHREAD_H
|
6
nesca_3.qrc
Executable file
6
nesca_3.qrc
Executable file
@ -0,0 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/nesca_3">
|
||||
<file>Eurostile.ttf</file>
|
||||
<file>Z:/nesca.ico</file>
|
||||
</qresource>
|
||||
</RCC>
|
48
oIRC_Th.h
Executable file
48
oIRC_Th.h
Executable file
@ -0,0 +1,48 @@
|
||||
#ifndef OIRC_TH_H
|
||||
#define OIRC_TH_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
#include "irc_nmblinker.h"
|
||||
#include "IRCPinger_Th.h"
|
||||
|
||||
class oIRC_Th : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
void doEmitUnhidePopup(QString, QString);
|
||||
void doEmitChangeIRCData(bool, bool, int, QString, QString);
|
||||
void doEmitChangeRedIRCData(QString);
|
||||
void doEmitChangeGreenIRCData(QString);
|
||||
void doEmitChangeYellowIRCData(QString);
|
||||
void doEmitChangeRawIRCDataInc(QString);
|
||||
void doEmitChangeRawIRCDataOut(QString);
|
||||
void doEmitSetNick(QString);
|
||||
void doEmitAddNick(QString);
|
||||
void doEmitClearNickList();
|
||||
void doEmitIRCOfflined();
|
||||
void doEmitionPlayDckingSound();
|
||||
void doEmitGetTopic(QString str);
|
||||
|
||||
public: signals: void sUnhidePopup(QString, QString);
|
||||
public: signals: void changeIRCData(bool, bool, int, QString, QString);
|
||||
public: signals: void changeRedIRCData(QString);
|
||||
public: signals: void changeGreenIRCData(QString);
|
||||
public: signals: void changeYellowIRCData(QString);
|
||||
public: signals: void changeRawIRCDataInc(QString);
|
||||
public: signals: void changeRawIRCDataOut(QString);
|
||||
public: signals: void setNick(QString);
|
||||
public: signals: void AddNick(QString);
|
||||
public: signals: void ClearNickList();
|
||||
public: signals: void IRCOfflined();
|
||||
public: signals: void notifyPlay();
|
||||
public: signals: void getTopic(QString);
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
|
||||
extern oIRC_Th *ircTh;
|
||||
#endif // OIRC_TH_H
|
24
piestat.cpp
Executable file
24
piestat.cpp
Executable file
@ -0,0 +1,24 @@
|
||||
#include "piestat.h"
|
||||
|
||||
void PieStat::doEmitUpdatePie()
|
||||
{
|
||||
emit psTh->sUpdatePie();
|
||||
};
|
||||
|
||||
void PieStat::run()
|
||||
{
|
||||
while(PieStatFlag)
|
||||
{
|
||||
psTh->doEmitUpdatePie();
|
||||
AnomC1 = 0;
|
||||
WF = 0;
|
||||
BA = 0;
|
||||
Filt = 0;
|
||||
Overl = 0;
|
||||
Lowl = 0;
|
||||
Alive = 0;
|
||||
Susp = 0;
|
||||
ssh = 0;
|
||||
msleep(500);
|
||||
};
|
||||
};
|
22
piestat.h
Executable file
22
piestat.h
Executable file
@ -0,0 +1,22 @@
|
||||
#ifndef PIESTAT_H
|
||||
#define PIESTAT_H
|
||||
|
||||
#pragma once
|
||||
#include "nesca_3.h"
|
||||
#include "resource.h"
|
||||
|
||||
class PieStat : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
public: signals: void sUpdatePie();
|
||||
|
||||
public:
|
||||
void doEmitUpdatePie();
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
extern PieStat *psTh;
|
||||
|
||||
#endif // PIESTAT_H
|
32
vercheckerthread.cpp
Executable file
32
vercheckerthread.cpp
Executable file
@ -0,0 +1,32 @@
|
||||
#include "vercheckerthread.h"
|
||||
|
||||
void _checkVer()
|
||||
{
|
||||
Connector con;
|
||||
conSTR CSTR;
|
||||
CSTR.lowerBuff = NULL;
|
||||
CSTR.size = 0;
|
||||
con._EstablishConnection("nesca.d3w.org", 80, "GET /version HTTP/1.1\r\nHost: nesca.d3w.org\r\nX-Nescav3: True\r\n\r\n", &CSTR, 1);
|
||||
|
||||
char *ptr1 = NULL;
|
||||
if(CSTR.lowerBuff != NULL)
|
||||
{
|
||||
if(strstr(CSTR.lowerBuff, "\r\n\r\n") != 0)
|
||||
{
|
||||
ptr1 = strstr(CSTR.lowerBuff, "\r\n\r\n");
|
||||
if(strcmp(gVER, ptr1 + 4) != 0)
|
||||
{
|
||||
stt->doEmitionShowRedVersion();
|
||||
};
|
||||
};
|
||||
delete []CSTR.lowerBuff;
|
||||
CSTR.lowerBuff = NULL;
|
||||
};
|
||||
|
||||
vct->terminate();
|
||||
};
|
||||
|
||||
void VerCheckerThread::run()
|
||||
{
|
||||
_checkVer();
|
||||
};
|
19
vercheckerthread.h
Executable file
19
vercheckerthread.h
Executable file
@ -0,0 +1,19 @@
|
||||
#ifndef VERCHECKERTHREAD_H
|
||||
#define VERCHECKERTHREAD_H
|
||||
|
||||
#pragma once
|
||||
#include "STh.h"
|
||||
#include "resource.h"
|
||||
|
||||
class VerCheckerThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
protected:
|
||||
void run();
|
||||
};
|
||||
|
||||
extern VerCheckerThread *vct;
|
||||
#endif // VERCHECKERTHREAD_H
|
3
wflogin.txt
Executable file
3
wflogin.txt
Executable file
@ -0,0 +1,3 @@
|
||||
[FAIL]
|
||||
admin
|
||||
root
|
10
wfpass.txt
Executable file
10
wfpass.txt
Executable file
@ -0,0 +1,10 @@
|
||||
[FAIL]
|
||||
admin
|
||||
root
|
||||
pass
|
||||
password
|
||||
toor
|
||||
123123
|
||||
123456
|
||||
12345
|
||||
qwerty
|
Loading…
Reference in New Issue
Block a user