Commit 1d6550cb authored by Laurent Montel's avatar Laurent Montel 😁

We need to parse setting

parent 8f9f67d5
......@@ -93,8 +93,15 @@ void GrammalecteGenerateConfigOptionJob::slotFinished(int exitCode, QProcess::Ex
if (exitStatus != 0 || exitCode != 0) {
qDebug() << " ERROR :!!!!!!!!!!!!!!!!!!!!";
} else {
parseResult();
//TODO fixit !
Q_EMIT finished(QStringList() << mResult);
Q_EMIT finished({});
}
deleteLater();
}
void GrammalecteGenerateConfigOptionJob::parseResult()
{
}
......@@ -22,12 +22,20 @@
#include <QObject>
#include <QProcess>
#include <QVector>
#include "libgrammalect_private_export.h"
class LIBGRAMMALECTPRIVATE_TESTS_EXPORT GrammalecteGenerateConfigOptionJob : public QObject
{
Q_OBJECT
public:
struct Option
{
QString optionName;
QString description;
};
explicit GrammalecteGenerateConfigOptionJob(QObject *parent = nullptr);
~GrammalecteGenerateConfigOptionJob();
......@@ -42,15 +50,16 @@ public:
Q_SIGNALS:
void error();
void finished(const QStringList &result);
void finished(const QVector<GrammalecteGenerateConfigOptionJob::Option> &result);
private:
void receivedStandardOutput();
void slotFinished(int exitCode, QProcess::ExitStatus exitStatus);
void parseResult();
QString mResult;
QString mPythonPath;
QString mGrammarlecteCliPath;
QProcess *mProcess = nullptr;
};
Q_DECLARE_TYPEINFO(GrammalecteGenerateConfigOptionJob::Option, Q_MOVABLE_TYPE);
#endif // GRAMMALECTEGENERATECONFIGOPTIONJOB_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment