mirror of
https://github.com/oguzhaninan/Stacer.git
synced 2026-05-19 05:45:38 -04:00
17 lines
461 B
C++
17 lines
461 B
C++
#ifndef COMMAND_UTIL_H
|
|
#define COMMAND_UTIL_H
|
|
|
|
#include <QStringList>
|
|
|
|
#include "stacer-core_global.h"
|
|
|
|
class STACERCORESHARED_EXPORT CommandUtil
|
|
{
|
|
public:
|
|
static QString sudoExec(const QString &cmd, QStringList args = QStringList(), QByteArray data = QByteArray());
|
|
static QString exec(const QString &cmd, QStringList args = QStringList(), QByteArray data = QByteArray());
|
|
static bool isExecutable(const QString &cmd);
|
|
};
|
|
|
|
#endif // COMMAND_UTIL_H
|