Duckstation/src/duckstation-qt/gdbconnection.h

29 lines
605 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com> and contributors.
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
2020-12-17 17:32:29 +00:00
#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();
void onEmulationResumed();
2020-12-17 17:32:29 +00:00
private:
void writePacket(std::string_view data);
int m_descriptor;
QTcpSocket m_socket;
std::string m_readBuffer;
bool m_seen_resume;
};