QtSignalBridge Class Reference

QtSignalBridge converts the C function callbacks by the PASM library to native Qt signals. More...

#include <qtsignalbridge.h>

List of all members.

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.


Detailed Description

QtSignalBridge converts the C function callbacks by the PASM library to native Qt signals.

This way the Qt frontend can be written in Qt completely, without having to rely on C callbacks aside from this class.


Constructor & Destructor Documentation

QtSignalBridge::QtSignalBridge ( QObject *  parent  ) 

Constructor.

Parameters:
parent Parent object


Member Function Documentation

void QtSignalBridge::cb_registerChanged ( void *  obj  )  [static]

Register changed callback.

This callback function is called when the register has changed.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
address Virtual address that has changed
value New value in the virtual address

void QtSignalBridge::errorMessage ( ErrorCode  error  )  [signal]

Error has occured.

Parameters:
error Error code of the error that has occured

void QtSignalBridge::outputAvailable ( int32_t  value  )  [signal]

There is output available.

Parameters:
value Outputted value

void QtSignalBridge::lineInterpreted ( uint32_t  address  )  [signal]

A certain instruction has been interpreted.

Parameters:
address Virtual address of the instruction that has been interpreted


The documentation for this class was generated from the following files:

Generated on Thu Jun 11 02:07:45 2009 for QPasm by  doxygen 1.5.6