File indexing completed on 2024-05-05 04:59:19
0001 /* 0002 This file is part of the KDE project 0003 Copyright (C) 2011 Ernesto Rodriguez Ortiz <eortiz@uci.cu> 0004 0005 This program is free software: you can redistribute it and/or modify 0006 it under the terms of the GNU General Public License as published by 0007 the Free Software Foundation, either version 3 of the License, or 0008 (at your option) any later version. 0009 0010 This program is distributed in the hope that it will be useful, 0011 but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 GNU General Public License for more details. 0014 0015 You should have received a copy of the GNU General Public License 0016 along with this program. If not, see <http://www.gnu.org/licenses/>. 0017 0018 */ 0019 0020 #ifndef MMSTRANSFERFACTORY_H 0021 #define MMSTRANSFERFACTORY_H 0022 0023 #include "core/plugin/transferfactory.h" 0024 #include "core/transferhandler.h" 0025 0026 class Transfer; 0027 class TransferGroup; 0028 class Scheduler; 0029 0030 class MmsTransferFactory : public TransferFactory 0031 { 0032 Q_OBJECT 0033 public: 0034 MmsTransferFactory(QObject *parent, const QVariantList &args); 0035 ~MmsTransferFactory() override; 0036 0037 Transfer *createTransfer(const QUrl &srcUrl, const QUrl &destUrl, TransferGroup *parent, Scheduler *scheduler, const QDomElement *e = nullptr) override; 0038 0039 TransferHandler *createTransferHandler(Transfer *transfer, Scheduler *scheduler) override 0040 { 0041 return new TransferHandler(transfer, scheduler); 0042 } 0043 QWidget *createDetailsWidget(TransferHandler *transfer) override; 0044 0045 const QList<QAction *> actions(TransferHandler *handler = nullptr) override; 0046 0047 bool isSupported(const QUrl &url) const override; 0048 0049 QString displayName() const override 0050 { 0051 return "mms"; 0052 } 0053 }; 0054 0055 #endif