mirror of
https://github.com/oguzhaninan/Stacer.git
synced 2025-12-23 23:18:31 -05:00
31 lines
498 B
C++
31 lines
498 B
C++
#ifndef PROCESS_INFO_H
|
|
#define PROCESS_INFO_H
|
|
|
|
#include <QObject>
|
|
#include <QDebug>
|
|
|
|
#include <Utils/file_util.h>
|
|
#include <Utils/command_util.h>
|
|
#include "process.h"
|
|
|
|
#define PROC_PID_CMD "/proc/%1/comm"
|
|
|
|
#include "stacer-core_global.h"
|
|
|
|
class STACERCORESHARED_EXPORT ProcessInfo : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ProcessInfo();
|
|
QList<Process> getProcessList() const;
|
|
|
|
public slots:
|
|
void updateProcesses();
|
|
|
|
private:
|
|
QList<Process> processList;
|
|
};
|
|
|
|
#endif // PROCESS_INFO_H
|