make compiled in python extension initialization more flexable
[mussa.git] / qui / threading / ThreadManager.hpp
1 #ifndef THREADMANAGER_HPP_
2 #define THREADMANAGER_HPP_
3
4 #include "qui/threading/GuiProxy.hpp"
5
6 #include <QThread>
7
8 class InterpreterThread;
9 class ThreadManager
10 {
11 public:
12   //! make a python interpreter
13   InterpreterThread *create_interpreter();
14   static GuiProxy *get_gui_proxy();
15 private:
16   ThreadManager();
17   friend ThreadManager& ThreadManagerFactory();
18 };
19
20 ThreadManager& ThreadManagerFactory();
21 #endif /*THREADMANAGER_HPP_*/