#include <qtsignalbridge.h>
Signals | |
| void | registerChanged () |
| Register has changed. | |
| void | memoryChanged (uint32_t address, int32_t value) |
| Memory has changed. | |
| void | errorMessage (ErrorCode error) |
| Error has occured. | |
| void | readInputRequested () |
| There is a request for input from the user. | |
| void | outputAvailable (int32_t value) |
| There is output available. | |
| void | interpreterReset () |
| Interpreter has been reset. | |
| void | programStart () |
| A pseudo-assembler program has started successfully. | |
| void | programEnd () |
| A pseudo-assembler program has ended. | |
| void | lineInterpreted (uint32_t address) |
| A certain instruction has been interpreted. | |
Public Member Functions | |
| QtSignalBridge (QObject *parent) | |
| Constructor. | |
Static Public Member Functions | |
| static void | cb_registerChanged (void *obj) |
| Register changed callback. | |
| static void | cb_memoryChanged (void *obj, uint32_t address, int32_t value) |
| Memory changed callback. | |
| static void | cb_errorMessage (void *obj, ErrorCode error) |
| Error message callback. | |
| static void | cb_readInputRequested (void *obj) |
| Read input request callback. | |
| static void | cb_outputAvailable (void *obj, int32_t value) |
| Output available callback. | |
| static void | cb_interpreterReset (void *obj) |
| Interpreter reset callback. | |
| static void | cb_programStart (void *obj) |
| Program start callback. | |
| static void | cb_programEnd (void *obj) |
| Program end callback. | |
| static void | cb_lineInterpreted (void *obj, uint32_t address) |
| Line interpreted callback. | |
This way the Qt frontend can be written in Qt completely, without having to rely on C callbacks aside from this class.
| QtSignalBridge::QtSignalBridge | ( | QObject * | parent | ) |
Constructor.
| parent | Parent object |
| void QtSignalBridge::cb_registerChanged | ( | void * | obj | ) | [static] |
Register changed callback.
This callback function is called when the register has changed.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface |
| void QtSignalBridge::cb_memoryChanged | ( | void * | obj, | |
| uint32_t | address, | |||
| int32_t | value | |||
| ) | [static] |
Memory changed callback.
This callback function is called when the memory has changed.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface | |
| address | Virtual address that has changed | |
| value | New value in the virtual address |
| void QtSignalBridge::cb_errorMessage | ( | void * | obj, | |
| ErrorCode | error | |||
| ) | [static] |
Error message callback.
This callback function is called when an error has occured.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface | |
| error | Error code of the error that has occured |
| void QtSignalBridge::cb_readInputRequested | ( | void * | obj | ) | [static] |
Read input request callback.
This callback function is called when input is requested from the user.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface |
| void QtSignalBridge::cb_outputAvailable | ( | void * | obj, | |
| int32_t | value | |||
| ) | [static] |
Output available callback.
This callback function is called when output is available.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface | |
| value | Outputted value |
| void QtSignalBridge::cb_interpreterReset | ( | void * | obj | ) | [static] |
Interpreter reset callback.
This callback function is called when the interpreter has been reset.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface |
| void QtSignalBridge::cb_programStart | ( | void * | obj | ) | [static] |
Program start callback.
This callback function is called when a pseudo-assembler program has started successfully.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface |
| void QtSignalBridge::cb_programEnd | ( | void * | obj | ) | [static] |
Program end callback.
This callback function is called when a pseudo-assembler program has ended.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface |
| void QtSignalBridge::cb_lineInterpreted | ( | void * | obj, | |
| uint32_t | address | |||
| ) | [static] |
Line interpreted callback.
This callback function is called when a certain instruction has been interpreted.
| obj | Instantiated QtSignalBridge object that should be a child object of the main graphical user interface | |
| address | Virtual address of the instruction that has been interpreted |
| void QtSignalBridge::memoryChanged | ( | uint32_t | address, | |
| int32_t | value | |||
| ) | [signal] |
Memory has changed.
| address | Virtual address that has changed | |
| value | New value in the virtual address |
| void QtSignalBridge::errorMessage | ( | ErrorCode | error | ) | [signal] |
Error has occured.
| error | Error code of the error that has occured |
| void QtSignalBridge::outputAvailable | ( | int32_t | value | ) | [signal] |
There is output available.
| value | Outputted value |
| void QtSignalBridge::lineInterpreted | ( | uint32_t | address | ) | [signal] |
A certain instruction has been interpreted.
| address | Virtual address of the instruction that has been interpreted |
1.5.6