itom
Loading...
Searching...
No Matches
pythonLogger.h
1#ifndef PYTHON_LOG_H
2#define PYTHON_LOG_H
3
4
5#include "common/itomLog.h"
6#include "common/typeDefs.h"
7
8#include <qobject.h>
9#include <qpointer.h>
10#include <qtimer.h>
11
12
13namespace ito {
14
15
23class PythonLogger : public QObject
24{
25 Q_OBJECT
26
27public:
29
36 void init();
37
38private:
39 QString m_receiveStreamBuffer;
40 QTimer m_receiveStreamBufferTimer;
41 QPointer<Logger> m_logger;
42
43 void processStreamBuffer();
44
45private slots:
46 void receiveStream(QString text, ito::tStreamMessageType msgType);
47};
48
49
50} // namespace ito
51
52
53#endif // PYTHON_LOG_H
Copies python errors to the logger.
Definition pythonLogger.h:24
void init()
initializes the PythonLogger
Definition pythonLogger.cpp:15
Definition apiFunctionsGraph.cpp:40
tStreamMessageType
Definition typeDefs.h:77