#ifndef CNETSTAT_H #define CNETSTAT_H #include #include #include #include #include #include #include "ProcessList.h" #if defined(Q_OS_LINUX) || defined(Q_OS_UNIX) #include "ProcessListLinux.h" #endif #if defined(Q_OS_WIN) #include "ProcessListWindows.h" #endif class cNetStat : public QThread { Q_OBJECT public: cNetStat(); QVector getNetStat(); void run(); private: QString convAddress(QString address, QString ipv); QVector getTable(); void writeLog(QString str); QVector save_netstat; signals: void endReadStat(QVector); }; #endif // CNETSTAT_H