#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = nullptr); ~MainWindow(); private slots: void applyButton(); void readPCSocketData(); void setLogBCIData(const bool log); void clearLog(); void pushTac1(); void pushTac2(); void pushTac3(); void pushTac4(); void pushTac5(); void pushTac6(); private: Ui::MainWindow *ui; int PCIP_1, PCIP_2, PCIP_3, PCIP_4; QHostAddress PCIP_full; quint16 PCPort; int FeatherIP_1, FeatherIP_2, FeatherIP_3, FeatherIP_4; QHostAddress FeatherIP_full; quint16 FeatherPort; void log(QString logtext); QString getCurrentTime(); void setupSignalsAndSlots(); QString buildPCIP(); QString buildFeatherIP(); QString stylesheet_tac_marked, stylesheet_tac_unmarked; QString lastBufferStr; QUdpSocket *udpSocket_PC, *udpSocket_Feather; void markDirectionTactile(const QString direction); void bindPC(); void setupFeather(); bool logBCIData; bool checkPort(const quint16 port); }; #endif // MAINWINDOW_H