nesca/DrawerTh_QoSScanner.cpp

58 lines
1.1 KiB
C++
Raw Normal View History

2015-02-24 14:00:19 +00:00
#include "DrawerTh_QoSScanner.h"
#include "STh.h"
#include "externData.h"
void DrawerTh_QoSScanner::run()
{
while(QoSScanFlag)
2015-03-10 14:35:50 +00:00
{
2015-02-24 14:00:19 +00:00
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);
2015-03-10 14:35:50 +00:00
lstOfLabels.append(BA);
2015-02-24 14:00:19 +00:00
lstOfLabels.append(Overl);
lstOfLabels.append(ssh);
QList<int> lstOfLabelsCopy = lstOfLabels;
2015-03-10 14:35:50 +00:00
qSort(lstOfLabelsCopy.begin(), lstOfLabelsCopy.end(), qGreater<float>());
if(lstOfLabelsCopy[0] > MaxDataVal) MaxDataVal = lstOfLabelsCopy[0];
2015-02-24 14:00:19 +00:00
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);
};
2015-03-10 14:35:50 +00:00
}
2015-02-24 14:00:19 +00:00
void DrawerTh_QoSScanner::doEmitionAddLine()
{
emit dtQoS->sAddLine();
2015-03-10 14:35:50 +00:00
}