mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
24 lines
538 B
C++
24 lines
538 B
C++
#ifndef PROCESSINVOKER_HPP
|
|
#define PROCESSINVOKER_HPP
|
|
|
|
#include <QStringList>
|
|
#include <QString>
|
|
|
|
namespace Process
|
|
{
|
|
class ProcessInvoker : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
ProcessInvoker();
|
|
~ProcessInvoker();
|
|
|
|
public:
|
|
|
|
inline static bool startProcess(const QString &name, bool detached = false) { return startProcess(name, QStringList(), detached); }
|
|
bool static startProcess(const QString &name, const QStringList &arguments, bool detached = false);
|
|
};
|
|
}
|
|
|
|
#endif // PROCESSINVOKER_HPP
|