Changeset View
Changeset View
Standalone View
Standalone View
src/backends/python/pythonserver.h
- This file was copied to src/backends/julia/juliavariablemodel.h.
Show All 32 Lines | 32 | public: | |||
---|---|---|---|---|---|
33 | explicit PythonServer(QObject* parent = nullptr); | 33 | explicit PythonServer(QObject* parent = nullptr); | ||
34 | 34 | | |||
35 | public Q_SLOTS: | 35 | public Q_SLOTS: | ||
36 | Q_SCRIPTABLE void login(); | 36 | Q_SCRIPTABLE void login(); | ||
37 | Q_SCRIPTABLE void setFilePath(const QString& path); | 37 | Q_SCRIPTABLE void setFilePath(const QString& path); | ||
38 | Q_SCRIPTABLE void runPythonCommand(const QString& command) const; | 38 | Q_SCRIPTABLE void runPythonCommand(const QString& command) const; | ||
39 | Q_SCRIPTABLE QString getOutput() const; | 39 | Q_SCRIPTABLE QString getOutput() const; | ||
40 | Q_SCRIPTABLE QString getError() const; | 40 | Q_SCRIPTABLE QString getError() const; | ||
41 | Q_SCRIPTABLE QString variables(bool parseValue) const; | ||||
41 | 42 | | |||
42 | private: | 43 | private: | ||
43 | PyObject* m_pModule; | 44 | PyObject* m_pModule; | ||
44 | QString filePath; | 45 | QString filePath; | ||
45 | }; | 46 | }; | ||
46 | 47 | | |||
47 | #endif | 48 | #endif |