File indexing completed on 2024-04-21 04:57:28
0001 /* 0002 This file is part of KDE 0003 0004 SPDX-FileCopyrightText: 2000 Waldo Bastian <bastian@kde.org> 0005 SPDX-FileCopyrightText: 2008 David Faure <faure@kde.org> 0006 0007 SPDX-License-Identifier: MIT 0008 */ 0009 0010 #ifndef __filter_h__ 0011 #define __filter_h__ 0012 0013 #include <KIO/WorkerBase> 0014 0015 #include <QObject> 0016 0017 class KFilterBase; 0018 0019 class FilterProtocol : /*public QObject, */ public KIO::WorkerBase 0020 { 0021 // Q_OBJECT 0022 0023 public: 0024 FilterProtocol(const QByteArray &protocol, const QByteArray &pool, const QByteArray &app); 0025 0026 KIO::WorkerResult get(const QUrl &url) override; 0027 0028 private: 0029 const QString m_protocol; 0030 KFilterBase *filter; 0031 }; 0032 0033 #endif