root/src/systemutils.h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SYSTEMUTILS_H
#define SYSTEMUTILS_H

#include <QString>
#include <QProcess>

class SystemUtils
{
public:
    SystemUtils();
    static QString fileMime(const QString filepath);
    static int setProcessPriority(QProcess& process, int nice);

    static bool commandExists(QString command);
private:
    static void removeNewline(char *buffer);
};

#endif // SYSTEMUTILS_H