Comms refactor (prerequisite of libproxmark work) (#371)

* Refactor the comms code only from PR#346, without comms_globals.h.
* OSX: Add note for example serial port
This commit is contained in:
Michael Farrell 2017-10-27 06:54:27 +11:00 committed by pwpiwi
commit afdcb8c159
19 changed files with 540 additions and 334 deletions

View file

@ -21,6 +21,7 @@
#include <QPainter>
#include <QtGui>
#include "uart.h"
#include "ui/ui_overlays.h"
/**
* @brief The actual plot, black area were we paint the graph
@ -91,13 +92,14 @@ class ProxWidget : public QWidget
class WorkerThread : public QThread {
Q_OBJECT;
public:
WorkerThread(char*, char*, bool);
WorkerThread(char*, char*, bool, serial_port*);
~WorkerThread();
void run();
private:
char *script_cmds_file = NULL;
char *script_cmd = NULL;
bool usb_present;
serial_port *sp = NULL;
};
class ProxGuiQT : public QObject