Warning, file /network/kio-gopher/kio_gopher.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * SPDX-FileCopyrightText: 2003-2008 Albert Astals Cid <aacid@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __kio_gopher_h__ 0008 #define __kio_gopher_h__ 0009 0010 #include <kiconloader.h> 0011 #include <kio/tcpworkerbase.h> 0012 0013 class gopher : public KIO::TCPWorkerBase 0014 { 0015 public: 0016 gopher(const QByteArray &pool_socket, const QByteArray &app_socket); 0017 0018 KIO::WorkerResult get(const QUrl &url) override; 0019 0020 private: 0021 void processDirectory(QByteArray *received, const QString &host, const QString &path); 0022 void processDirectoryLine(const QByteArray &data, QByteArray &show, QByteArray &info); 0023 QByteArray parsePort(QByteArray *received); 0024 void findLine(QByteArray *received, int *i, int *remove); 0025 void handleSearch(const QString &host, const QString &path, int port); 0026 void addIcon(const QString &type, const QByteArray &url, QByteArray &show); 0027 0028 KIconLoader m_iconLoader; 0029 }; 0030 0031 #endif