-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLuaThread.h
More file actions
56 lines (33 loc) · 830 Bytes
/
LuaThread.h
File metadata and controls
56 lines (33 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef LUATHREAD_H
#define LUATHREAD_H
#include <QObject>
class LuaThread : public QObject
{
Q_OBJECT
struct pi_State;
friend class pi_State;
public:
LuaThread( QObject* parent = 0 );
~LuaThread( void );
bool wait( unsigned s = 10000 );
void terminate( void );
bool isRunning( void );
protected:
void thread( void );
signals:
void started( void );
void stopped( void );
void fromStdOut( QString const& txt );
void currentLine( int n );
public slots:
void start( void );
void stop( void );
void setSearchDirs( QString const& dir );
void setSearchDirs( QStringList const& dirs );
void setScript( QString const& text );
private slots:
void pipe_rx( void );
private:
pi_State *m_state;
};
#endif // LUATHREAD_H