2017-09-05 11:06:21 +00:00
|
|
|
#ifndef OSUTIL_H
|
|
|
|
#define OSUTIL_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class OsUtil : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit OsUtil(QObject *parent = nullptr);
|
|
|
|
|
2017-11-01 13:49:11 +00:00
|
|
|
Q_INVOKABLE static QString pidToPath(quint32 pid, bool isKernelPath = false);
|
2017-09-11 11:17:27 +00:00
|
|
|
|
|
|
|
static bool createGlobalMutex(const char *name);
|
2017-11-01 13:49:11 +00:00
|
|
|
|
|
|
|
static quint32 lastErrorCode();
|
|
|
|
static QString lastErrorMessage(quint32 errorCode = lastErrorCode());
|
2017-09-05 11:06:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OSUTIL_H
|