Files
modorganizer-plugin_python/src/runner/pythonrunner.h
T
Tannin b33293e49a - bugfix: elevation dialog didn't offer a "yes" option
- bugfix: python plugins crashed the application when trying to create a nexus bridge
- bugfix: python plugins couldn't register for failed requests correctly
2014-01-29 21:06:55 +01:00

30 lines
670 B
C++

#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;
};
#ifdef PYTHONRUNNER_LIBRARY
#define PYDLLEXPORT Q_DECL_EXPORT
#else // PYTHONRUNNER_LIBRARY
#define PYDLLEXPORT Q_DECL_IMPORT
#endif // PYTHONRUNNER_LIBRARY
extern "C" PYDLLEXPORT IPythonRunner *CreatePythonRunner(MOBase::IOrganizer *moInfo, const QString &pythonDir);
#endif // PYTHONRUNNER_H