File indexing completed on 2024-04-28 04:57:31
0001 /* This file is part of the KDE project 0002 0003 Copyright (C) 2004 Dario Massarin <nekkar@libero.it> 0004 0005 This program is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU General Public 0007 License as published by the Free Software Foundation; either 0008 version 2 of the License, or (at your option) any later version. 0009 */ 0010 0011 #ifndef KIO_FACTORY_H 0012 #define KIO_FACTORY_H 0013 0014 #include "core/plugin/transferfactory.h" 0015 #include "kget_macro.h" 0016 class Transfer; 0017 class TransferGroup; 0018 class Scheduler; 0019 0020 class TransferKioFactory : public TransferFactory 0021 { 0022 Q_OBJECT 0023 public: 0024 TransferKioFactory(QObject *parent, const QVariantList &args); 0025 ~TransferKioFactory() override; 0026 0027 public Q_SLOTS: 0028 Transfer *createTransfer(const QUrl &srcUrl, const QUrl &destUrl, TransferGroup *parent, Scheduler *scheduler, const QDomElement *e = nullptr) override; 0029 0030 QString displayName() const override 0031 { 0032 return "HTTP(s) / FTP(s)"; 0033 } 0034 0035 bool isSupported(const QUrl &url) const override; 0036 QStringList addsProtocols() const override; 0037 }; 0038 0039 #endif