forked from nspire-emus/firebird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emuthread.h
45 lines (35 loc) · 921 Bytes
/
emuthread.h
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
#ifndef EMUTHREAD_H
#define EMUTHREAD_H
#include <QThread>
class EmuThread : public QThread
{
Q_OBJECT
public:
explicit EmuThread(QObject *parent = 0);
void doStuff();
void throttleTimerWait();
volatile bool paused = false;
std::string boot1 = "", flash = "";
unsigned int port_gdb = 0, port_rdbg = 0;
signals:
void exited(int retcode);
void serialChar(char c);
void debugStr(QString str);
void speedChanged(double value);
void statusMsg(QString str);
void usblinkChanged(bool state);
void turboModeChanged(bool state);
void debuggerEntered(bool state);
public slots:
virtual void run() override;
void setTurboMode(bool state);
void toggleTurbo();
void enterDebugger();
void setPaused(bool paused);
bool stop();
void reset();
private:
bool enter_debugger = false;
};
extern EmuThread *emu_thread;
#endif // EMUTHREAD_H