From b06c4341d822324835c96ad927c06056ee3f0936 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Sat, 25 Jan 2025 20:22:09 +0100 Subject: [PATCH] update documentation Signed-off-by: iTrooz --- launcher/ui/pages/instance/McClient.cpp | 1 - launcher/ui/pages/instance/McClient.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/ui/pages/instance/McClient.cpp b/launcher/ui/pages/instance/McClient.cpp index 3ed6a7665..cae345d4c 100644 --- a/launcher/ui/pages/instance/McClient.cpp +++ b/launcher/ui/pages/instance/McClient.cpp @@ -46,7 +46,6 @@ void McClient::sendRequest() { writePacketToSocket(data); // send status packet } -// Accumulate data until we have a full response, then call parseResponse() once void McClient::readRawResponse() { if (m_responseReadState == 2) { return; diff --git a/launcher/ui/pages/instance/McClient.h b/launcher/ui/pages/instance/McClient.h index 11983eaa8..59834dfb7 100644 --- a/launcher/ui/pages/instance/McClient.h +++ b/launcher/ui/pages/instance/McClient.h @@ -24,9 +24,11 @@ class McClient : public QObject { public: explicit McClient(QObject *parent, QString domain, QString ip, short port); + //! Read status data of the server, and calls the succeeded() signal with the parsed JSON data void getStatusData(); private: void sendRequest(); + //! Accumulate data until we have a full response, then call parseResponse() once void readRawResponse(); void parseResponse();