File: ProcessListLinux.h

package info (click to toggle)
qnetstatview 1.5.8-2
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 452 kB
  • sloc: cpp: 1,380; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef PROCCESSLISTLINUX_H
#define PROCCESSLISTLINUX_H

#include <QString>
#include <QStringList>
#include <QMap>
#include "ProcessList.h"


class ProcessListLinux{
    public:
        ProcessListLinux();
        int initProccessList();
        sProccess getProc(QString inode);

    private:
        QStringList getSockets(QString pid);
        QString getProgram(QString pid);
        QString getCmdline(QString pid);

        QMap<QString,sProccess>  proclist;


};

#endif // PROCCESSLIST_H