]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxguiqt.h
Don't try to display the GUI when running in textmode (#387)
[proxmark3-svn] / client / proxguiqt.h
index aa3b5b355e55ee03caeca0f4c84bc377b5a7d244..8a3b8cfccf5d813ea431b29bb012e2e2e5de004e 100644 (file)
@@ -11,6 +11,9 @@
 #ifndef PROXGUI_QT
 #define PROXGUI_QT
 
+#include <stdint.h>
+#include <string.h>
+
 #include <QApplication>
 #include <QPushButton>
 #include <QObject>
@@ -35,6 +38,7 @@ private:
        int xCoordOf(int i, QRect r );
        int yCoordOf(int v, QRect r, int maxVal);
        int valueOf_yCoord(int y, QRect r, int maxVal);
+       void setMaxAndStart(int *buffer, int len, QRect plotRect);
        QColor getColor(int graphNum);
 public:
        Plot(QWidget *parent = 0);
@@ -114,4 +118,17 @@ class ProxGuiQT : public QObject
                void HideGraphWindowSignal(void);
                void ExitSignal(void);
 };
+
+
+class WorkerThread : public QThread {
+       Q_OBJECT;
+public:
+       WorkerThread(char*, bool);
+       ~WorkerThread();
+       void run();
+private:
+       char *script_cmds_file = NULL;
+       bool usb_present;
+};
+
 #endif // PROXGUI_QT
Impressum, Datenschutz