2013-09-01 18:36:43 +02:00
|
|
|
#ifndef PYTHONRUNNER_H
|
|
|
|
|
#define PYTHONRUNNER_H
|
|
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
#include <QObject>
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <dllimport.h>
|
|
|
|
|
#include <imoinfo.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class IPythonRunner {
|
|
|
|
|
public:
|
|
|
|
|
virtual QObject *instantiate(const QString &pluginName) = 0;
|
|
|
|
|
virtual bool isPythonInstalled() const = 0;
|
|
|
|
|
virtual bool isPythonVersionSupported() const = 0;
|
|
|
|
|
};
|
|
|
|
|
|
2013-09-05 21:04:20 +02:00
|
|
|
|
|
|
|
|
#ifdef PYTHONRUNNER_LIBRARY
|
|
|
|
|
#define PYDLLEXPORT Q_DECL_EXPORT
|
|
|
|
|
#else // PYTHONRUNNER_LIBRARY
|
|
|
|
|
#define PYDLLEXPORT Q_DECL_IMPORT
|
|
|
|
|
#endif // PYTHONRUNNER_LIBRARY
|
|
|
|
|
|
2014-01-29 21:06:55 +01:00
|
|
|
extern "C" PYDLLEXPORT IPythonRunner *CreatePythonRunner(MOBase::IOrganizer *moInfo, const QString &pythonDir);
|
2013-09-05 21:04:20 +02:00
|
|
|
|
2013-09-01 18:36:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PYTHONRUNNER_H
|