aboutsummaryrefslogtreecommitdiff
path: root/src/gopherclient.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-16 22:01:59 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-16 22:01:59 +0200
commita3f3e3933c4a2522e233917a6795c6e9d677e65c (patch)
tree6e1bd483bbd5e8ca6fee4566e544de48bfa754a6 /src/gopherclient.cpp
parentbc18d9356828f1ae40d3b4ce5432b30ca13cfc15 (diff)
downloadkristall-a3f3e3933c4a2522e233917a6795c6e9d677e65c.tar.gz
Refactoring: Changes internal structure of requests and unifies a lot of code. Now all errors are handled the same.
Diffstat (limited to 'src/gopherclient.cpp')
-rw-r--r--src/gopherclient.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gopherclient.cpp b/src/gopherclient.cpp
index 74359c6..6b19b02 100644
--- a/src/gopherclient.cpp
+++ b/src/gopherclient.cpp
@@ -1,7 +1,7 @@
#include "gopherclient.hpp"
#include "ioutil.hpp"
-GopherClient::GopherClient(QObject *parent) : QObject(parent)
+GopherClient::GopherClient(QObject *parent) : ProtocolHandler(parent)
{
connect(&socket, &QTcpSocket::connected, this, &GopherClient::on_connected);
connect(&socket, &QTcpSocket::readyRead, this, &GopherClient::on_readRead);
@@ -13,6 +13,11 @@ GopherClient::~GopherClient()
}
+bool GopherClient::supportsScheme(const QString &scheme) const
+{
+ return (scheme == "gopher");
+}
+
bool GopherClient::startRequest(const QUrl &url)
{
if(isInProgress())