From 75ec461eeaa851cb5c53f4cfffc434e3e529ed1d Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Mon, 22 Jun 2020 21:10:04 +0200 Subject: Restructures the project source and cleans up a bit --- src/gopherclient.hpp | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 src/gopherclient.hpp (limited to 'src/gopherclient.hpp') diff --git a/src/gopherclient.hpp b/src/gopherclient.hpp deleted file mode 100644 index 888ebd8..0000000 --- a/src/gopherclient.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef GOPHERCLIENT_HPP -#define GOPHERCLIENT_HPP - -#include -#include -#include - -#include "protocolhandler.hpp" - -class GopherClient : public ProtocolHandler -{ - Q_OBJECT -public: - explicit GopherClient(QObject *parent = nullptr); - - ~GopherClient() override; - - bool supportsScheme(QString const & scheme) const override; - - bool startRequest(QUrl const & url, RequestOptions options) override; - - bool isInProgress() const override; - - bool cancelRequest() override; - -private: // slots - void on_connected(); - void on_readRead(); - void on_finished(); - void on_socketError(QAbstractSocket::SocketError errorCode); - - -private: - QTcpSocket socket; - QByteArray body; - QUrl requested_url; - bool was_cancelled; - QString mime; - bool is_processing_binary; -}; - -#endif // GOPHERCLIENT_HPP -- cgit v1.2.3