File: ProcessList.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 (35 lines) | stat: -rw-r--r-- 614 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
27
28
29
30
31
32
33
34
35
#ifndef PROCESSLIST_H
#define PROCESSLIST_H

#include <QString>
#include <QStringList>
#include <QTime>


struct sProccess {
    QString pid;
    QStringList sockets;
    QString program;
    QString cmdline;
};

struct sNetStat {
    QString prot;
    QString local_address;
    QString rem_address;
    QString stat;
    sProccess process;
    int operation;
    QTime timeEvent;
};



class ProcessList{
    public:
        ProcessList();
        static void killProcess(QString pid);
        static void closeConnection(QString from, QString to);
};

#endif // PROCESSLIST_H