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.
11 #ifndef BTTRANSFERFACTORY_H
12 #define BTTRANSFERFACTORY_H
14 #include "core/plugin/transferfactory.h"
15 #include "btsettingswidget.h"
17 class BTTransferFactory
: public TransferFactory
21 BTTransferFactory(QObject
*parent
, const QVariantList
&args
);
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";}