kde-extraapps/kget/transfer-plugins/checksumsearch/checksumsearchfactory.cpp
Ivailo Monev a6eaf629e1 kget: remove redundant debug area codes
already defaulting to it by defining KDE_DEFAULT_DEBUG_AREA

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-21 02:47:50 +03:00

38 lines
1 KiB
C++

/* This file is part of the KDE project
Copyright (C) 2008 Manolo Valdes <nolis71cu@gmail.com>
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 "checksumsearchfactory.h"
#include "checksumsearchtransferdatasource.h"
#include "core/scheduler.h"
#include "core/transfergroup.h"
#include <QtXml/qdom.h>
#include <kdebug.h>
KGET_EXPORT_PLUGIN( ChecksumSearchFactory )
ChecksumSearchFactory::ChecksumSearchFactory(QObject *parent, const QVariantList &args)
: TransferFactory(parent, args)
{
}
ChecksumSearchFactory::~ChecksumSearchFactory()
{
}
TransferDataSource *ChecksumSearchFactory::createTransferDataSource(const KUrl &srcUrl, const QDomElement &type, QObject *parent)
{
if (type.attribute("type") == "checksumsearch") {
return new ChecksumSearchTransferDataSource(srcUrl, parent);
}
return 0;
}