mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Working on the Settings tab: start the importer/wizard
This commit is contained in:
parent
cfe66abbc5
commit
21c406316f
12 changed files with 342 additions and 109 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <QStringList>
|
||||
#include <QString>
|
||||
#include <QProcess>
|
||||
|
||||
namespace Process
|
||||
{
|
||||
|
@ -10,13 +11,32 @@ namespace Process
|
|||
{
|
||||
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);
|
||||
ProcessInvoker(QWidget *parent = 0);
|
||||
~ProcessInvoker();
|
||||
|
||||
// void setProcessName(const QString &name);
|
||||
// void setProcessArguments(const QStringList &arguments);
|
||||
|
||||
QProcess* getProcess();
|
||||
// QString getProcessName();
|
||||
// QStringList getProcessArguments();
|
||||
|
||||
// inline bool startProcess(bool detached = false) { return startProcess(mName, mArguments, detached); }
|
||||
inline bool startProcess(const QString &name, bool detached = false) { return startProcess(name, QStringList(), detached); }
|
||||
bool startProcess(const QString &name, const QStringList &arguments, bool detached = false);
|
||||
|
||||
private:
|
||||
QProcess *mProcess;
|
||||
|
||||
QString mName;
|
||||
QStringList mArguments;
|
||||
|
||||
private slots:
|
||||
void processError(QProcess::ProcessError error);
|
||||
void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue