| 1 | #ifndef PROCCESSLISTLINUX_H |
| 2 | #define PROCCESSLISTLINUX_H |
| 3 | |
| 4 | #include <QString> |
| 5 | #include <QStringList> |
| 6 | #include <QMap> |
| 7 | #include "ProcessList.h" |
| 8 | |
| 9 | |
| 10 | class ProcessListLinux{ |
| 11 | public: |
| 12 | ProcessListLinux(); |
| 13 | int initProccessList(); |
| 14 | sProccess getProc(QString inode); |
| 15 | |
| 16 | private: |
| 17 | QStringList getSockets(QString pid); |
| 18 | QString getProgram(QString pid); |
| 19 | QString getCmdline(QString pid); |
| 20 | |
| 21 | QMap<QString,sProccess> proclist; |
| 22 | |
| 23 | |
| 24 | }; |
| 25 | |
| 26 | #endif // PROCCESSLIST_H |