Port the KGet plugin system to the KDE standard one.
[kdenetwork.git] / kget / transfer-plugins / bittorrent / bttransferfactory.h
blob5e77c53b3f07042dc59c27803b30341d6836ef8c
1 /* This file is part of the KDE project
3 Copyright (C) 2007 Lukas Appelhans <l.appelhans@gmx.de>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9 */
11 #ifndef BTTRANSFERFACTORY_H
12 #define BTTRANSFERFACTORY_H
14 #include "core/plugin/transferfactory.h"
15 #include "btsettingswidget.h"
17 class BTTransferFactory : public TransferFactory
19 Q_OBJECT
20 public:
21 BTTransferFactory(QObject *parent, const QVariantList &args);
22 ~BTTransferFactory();
24 Transfer * createTransfer(const KUrl &srcUrl, const KUrl &destUrl, TransferGroup * parent, Scheduler * scheduler, const QDomElement * e = 0);
26 TransferHandler * createTransferHandler(Transfer * transfer, Scheduler * scheduler);
28 QWidget * createDetailsWidget(TransferHandler * transfer);
30 const QList<KAction *> actions(TransferHandler * handler = 0);
32 QWidget * createSettingsWidget(KDialog * parent) { return new BTSettingsWidget(parent);}
34 QString displayName(){return "Bittorrent";}
37 #endif