Initial commit
This commit is contained in:
31
EraseThread.h
Normal file
31
EraseThread.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*****************************************************************************
|
||||
** EraseThread.h - Header file of thread responsible for process of
|
||||
** FLASH and RAM erase
|
||||
** Author: Kraku
|
||||
*****************************************************************************/
|
||||
#ifndef _ERASETHREAD_H_
|
||||
#define _ERASETHREAD_H_
|
||||
#include <QThread>
|
||||
#include "AbstractPort.h"
|
||||
#include "Logic.h"
|
||||
|
||||
class EraseThread:public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
char mem; /* memory type for erase */
|
||||
char mbc; /* Memory Bank Controler type */
|
||||
char par;
|
||||
char dap;
|
||||
bool end; /* end of thread marker */
|
||||
AbstractPort *port;
|
||||
/* main point of thread */
|
||||
virtual void run ();
|
||||
public slots:
|
||||
void canceled (void) { end = TRUE; }
|
||||
signals:
|
||||
void set_progress (int ile, int max);
|
||||
void error (int err);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user