mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-24 14:45:41 +00:00
25 lines
436 B
C
25 lines
436 B
C
|
#pragma once
|
||
|
#include <QtCore/QThread>
|
||
|
#include <QtNetwork/QTcpSocket>
|
||
|
|
||
|
class GDBConnection : public QThread
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
GDBConnection(QObject *parent, int descriptor);
|
||
|
|
||
|
public Q_SLOTS:
|
||
|
void gotDisconnected();
|
||
|
void receivedData();
|
||
|
void onEmulationPaused(bool paused);
|
||
|
|
||
|
private:
|
||
|
void writePacket(std::string_view data);
|
||
|
|
||
|
int m_descriptor;
|
||
|
QTcpSocket m_socket;
|
||
|
std::string m_readBuffer;
|
||
|
bool m_seen_resume;
|
||
|
};
|