1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
/* This file is part of the KDE project
Copyright (C) 2004 Dario Massarin <nekkar@libero.it>
Copyright (C) 2009 Lukas Appelhans <l.appelhans@gmx.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
*/
#include "transferfactory.h"
#include "kget.h"
#include <kmenu.h>
#include <klocale.h>
#include <kdebug.h>
TransferFactory::TransferFactory(QObject *parent, const QVariantList &args)
: KGetPlugin(parent, args)
{
}
Transfer * TransferFactory::createTransfer(const KUrl &srcUrl, const KUrl &destUrl,
TransferGroup * parent,
Scheduler * scheduler,
const QDomElement * n)
{
Q_UNUSED(srcUrl)
Q_UNUSED(destUrl)
Q_UNUSED(parent)
Q_UNUSED(scheduler)
Q_UNUSED(n)
return 0;
}
TransferHandler * TransferFactory::createTransferHandler(Transfer * transfer, Scheduler * scheduler)
{
return new TransferHandler(transfer, scheduler);
}
QWidget * TransferFactory::createDetailsWidget(TransferHandler * transfer)
{
Q_UNUSED(transfer)
return 0;
}
KDialog * TransferFactory::createNewTransferDialog(const KUrl &srcUrl, const QString &suggestedFileName, TransferGroupHandler * defaultGroup)
{
Q_UNUSED(srcUrl)
Q_UNUSED(suggestedFileName)
Q_UNUSED(defaultGroup)
return 0;
}
const QList<KAction *> TransferFactory::actions(TransferHandler *handler)
{
Q_UNUSED(handler)
return QList<KAction *>();
}
TransferDataSource * TransferFactory::createTransferDataSource(const KUrl &srcUrl, const QDomElement &type, QObject *parent)
{
Q_UNUSED(srcUrl)
Q_UNUSED(type)
Q_UNUSED(parent)
return 0;
}
bool TransferFactory::isSupported(const KUrl &url) const
{
Q_UNUSED(url)
return false;
}
QStringList TransferFactory::addsProtocols() const
{
return QStringList();
}
|