summaryrefslogtreecommitdiff
path: root/qpsxserial.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-07-24 22:33:24 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2017-07-24 22:33:24 +0200
commit011e7b092a9d17f534ca2963dc25a25a1f145fe5 (patch)
tree4823e3470254e1525c28a7931f39864d9181f30e /qpsxserial.h
parent453da65223ee4fcda2e8247f41b7950ed50be6ea (diff)
downloadqpsxserial-011e7b092a9d17f534ca2963dc25a25a1f145fe5.tar.gz
* Header data was being sent too quickly to PSX. Some sleep instructions have been placed to avoid this.
+ Provisional "stdout" dialog, still TODO.
Diffstat (limited to 'qpsxserial.h')
-rw-r--r--qpsxserial.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/qpsxserial.h b/qpsxserial.h
index 2728ce3..4349f5b 100644
--- a/qpsxserial.h
+++ b/qpsxserial.h
@@ -9,6 +9,7 @@
#include <QThread>
#include <QTime>
#include <QWinTaskbarButton>
+#include "ui_stdout_dialog.h"
namespace Ui {
class QPSXSerial;
@@ -27,18 +28,19 @@ private:
void sendData(QByteArray data, QString fileName);
void sendDataSize(quint32 size);
- Ui::QPSXSerial *ui;
- QString inputExe;
- QString selectedPort;
- QString selectedFolder;
- QSerialPort serial;
- bool ack;
- bool exe_sent;
- QTimer* init_timer;
- bool write_ready;
- bool byte_sent_received;
- QByteArray last_packet_sent;
- QTimer* lost_packet_timer;
+ Ui::QPSXSerial *ui;
+ Ui::Stdout_Console *stdout_ui;
+ QString inputExe;
+ QString selectedPort;
+ QString selectedFolder;
+ QSerialPort serial;
+ bool ack;
+ bool exe_sent;
+ QTimer* init_timer;
+ bool write_ready;
+ bool byte_sent_received;
+ QByteArray last_packet_sent;
+ QTimer* lost_packet_timer;
private slots:
void onLoadFileBtnReleased(void);
@@ -49,6 +51,7 @@ private slots:
void onReadyRead(void);
void connectToPSXTimeout(void);
void onPacketLost(void);
+ void onStdOutButtonReleased(void);
};
#endif // QPSXSERIAL_H