diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-16 22:01:59 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-16 22:01:59 +0200 |
| commit | a3f3e3933c4a2522e233917a6795c6e9d677e65c (patch) | |
| tree | 6e1bd483bbd5e8ca6fee4566e544de48bfa754a6 /src/fingerclient.cpp | |
| parent | bc18d9356828f1ae40d3b4ce5432b30ca13cfc15 (diff) | |
| download | kristall-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/fingerclient.cpp')
| -rw-r--r-- | src/fingerclient.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fingerclient.cpp b/src/fingerclient.cpp index 8d0ea60..433e63b 100644 --- a/src/fingerclient.cpp +++ b/src/fingerclient.cpp @@ -1,7 +1,7 @@ #include "fingerclient.hpp" #include "ioutil.hpp" -FingerClient::FingerClient(QObject *parent) : QObject(parent) +FingerClient::FingerClient() : ProtocolHandler(nullptr) { connect(&socket, &QTcpSocket::connected, this, &FingerClient::on_connected); connect(&socket, &QTcpSocket::readyRead, this, &FingerClient::on_readRead); @@ -13,6 +13,11 @@ FingerClient::~FingerClient() } +bool FingerClient::supportsScheme(const QString &scheme) const +{ + return (scheme == "finger"); +} + bool FingerClient::startRequest(const QUrl &url) { if(isInProgress()) |
