fort/src/ui/util/osutil.h

22 lines
428 B
C
Raw Normal View History

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);
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