mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
27 lines
384 B
C
27 lines
384 B
C
|
#pragma once
|
||
|
|
||
|
#include <QByteArray>
|
||
|
#include <QString>
|
||
|
|
||
|
// Python includes
|
||
|
// collide of qt slots macro
|
||
|
#undef slots
|
||
|
#include "Python.h"
|
||
|
#define slots
|
||
|
|
||
|
class Logger;
|
||
|
|
||
|
class PythonProgram
|
||
|
{
|
||
|
public:
|
||
|
PythonProgram(const QString & name, Logger * log);
|
||
|
~PythonProgram();
|
||
|
|
||
|
void execute(const QByteArray &python_code);
|
||
|
|
||
|
private:
|
||
|
QString _name;
|
||
|
Logger* _log;
|
||
|
PyThreadState* _tstate;
|
||
|
};
|