kget
bttransferfactory.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 00003 Copyright (C) 2007 Lukas Appelhans <l.appelhans@gmx.de> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 */ 00010 00011 #ifndef BTTRANSFERFACTORY_H 00012 #define BTTRANSFERFACTORY_H 00013 00014 #include "core/plugin/transferfactory.h" 00015 #include "btsettingswidget.h" 00016 00017 class BTTransferFactory : public QObject, public TransferFactory 00018 { 00019 Q_OBJECT 00020 public: 00021 BTTransferFactory(); 00022 ~BTTransferFactory(); 00023 00024 Transfer * createTransfer(const KUrl &srcUrl, const KUrl &destUrl, TransferGroup * parent, Scheduler * scheduler, const QDomElement * e = 0 ); 00025 00026 TransferHandler * createTransferHandler(Transfer * transfer, Scheduler * scheduler); 00027 00028 QWidget * createDetailsWidget( TransferHandler * transfer ); 00029 00030 const QList<KAction *> actions(); 00031 00032 QWidget * createSettingsWidget(KDialog * parent) { return new BTSettingsWidget(parent);} 00033 00034 QString displayName(){return "Bittorrent";} 00035 }; 00036 00037 #endif
KDE 4.0 API Reference