mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 17:45:35 +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
|