mirror of https://github.com/cutefishos/core
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
488 B
C
28 lines
488 B
C
|
5 years ago
|
#ifndef PROCESSMANAGER_H
|
||
|
|
#define PROCESSMANAGER_H
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <QProcess>
|
||
|
|
#include <QMap>
|
||
|
|
|
||
|
|
class ProcessManager : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit ProcessManager(QObject *parent = nullptr);
|
||
|
|
~ProcessManager();
|
||
|
|
|
||
|
|
void start();
|
||
|
|
void logout();
|
||
|
|
|
||
|
|
void loadSystemProcess();
|
||
|
|
void loadAutoStartProcess();
|
||
|
|
|
||
|
|
private:
|
||
|
|
QMap<QString, QProcess *> m_systemProcess;
|
||
|
|
QMap<QString, QProcess *> m_autoStartProcess;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // PROCESSMANAGER_H
|