/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2000 Matthias Hoelzer-Kluepfel SPDX-FileCopyrightText: 2001 Stephan Kulow SPDX-FileCopyrightText: 2003 Cornelius Schumacher SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef __help_h__ #define __help_h__ #include #include #include #include #include class HelpProtocol : public KIO::WorkerBase { public: HelpProtocol(bool ghelp, const QByteArray &pool, const QByteArray &app); ~HelpProtocol() override { } KIO::WorkerResult get(const QUrl &url) override; KIO::WorkerResult mimetype(const QUrl &url) override; private: QString langLookup(const QString &fname); void emitFile(const QUrl &url); KIO::WorkerResult get_file(const QString &path); QString lookupFile(const QString &fname, const QString &query, bool &redirect); void sendError(const QString &t); QString mParsed; bool mGhelp; }; #endif