Canorus  0.0
swigpython.h
Go to the documentation of this file.
1 
8 #ifdef USE_PYTHON
9 #ifndef SWIGPYTHON_H_
10 #define SWIGPYTHON_H_
11 
12 #include <Python.h>
13 
14 #include <QString>
15 #include <QList>
16 
17 
18 
19 class CASwigPython {
20  public:
21  enum CAClassType {
22  // Qt objects
23  String,
24 
25  // Canorus objects
26  Document,
27  Sheet,
28  Resource,
29  Context,
30  Voice,
31  MusElement,
32  PlayableLength,
33 
34  // Console
35  PyConsoleInterface,
36 
37  // Plugins
38  Plugin
39  };
40 
41  static void init();
42  static PyObject *callFunction(QString fileName, QString function, QList<PyObject*> args, bool autoReload = false);
43  static void *callPycli(void*);
44  static PyObject *toPythonObject(void *object, CAClassType type); // defined in scripting/canoruspython.i
45 
46  static PyThreadState *mainThreadState, *pycliThreadState;
47 };
48 
49 #endif /*SWIGPYTHON_H_*/
50 #endif
NULL
#define NULL
Definition: glib.h:121
swigpython.h
canorus.h
QThread