| 1 | #ifndef PROCESSLIST_H |
| 2 | #define PROCESSLIST_H |
| 3 | |
| 4 | #include <QString> |
| 5 | #include <QStringList> |
| 6 | #include <QTime> |
| 7 | |
| 8 | |
| 9 | struct sProccess { |
| 10 | QString pid; |
| 11 | QStringList sockets; |
| 12 | QString program; |
| 13 | QString cmdline; |
| 14 | }; |
| 15 | |
| 16 | struct sNetStat { |
| 17 | QString prot; |
| 18 | QString local_address; |
| 19 | QString rem_address; |
| 20 | QString stat; |
| 21 | sProccess process; |
| 22 | int operation; |
| 23 | QTime timeEvent; |
| 24 | }; |
| 25 | |
| 26 | |
| 27 | |
| 28 | class ProcessList{ |
| 29 | public: |
| 30 | ProcessList(); |
| 31 | static void killProcess(QString pid); |
| 32 | static void closeConnection(QString from, QString to); |
| 33 | }; |
| 34 | |
| 35 | #endif // PROCESSLIST_H |