/* This file is part of the KDE project Copyright (C) 2008 Manolo Valdes 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 "mirrorsearchtransferdatasource.h" #include "mirrors.h" #include MirrorSearchTransferDataSource::MirrorSearchTransferDataSource(const KUrl &srcUrl, QObject *parent) : TransferDataSource(srcUrl, parent) { m_filename = m_sourceUrl.fileName(); kDebug(5001) << m_filename; } void MirrorSearchTransferDataSource::start() { kDebug(5001); if(!m_filename.isEmpty()) MirrorSearch (m_filename, this, SLOT(slotSearchUrls(QList&))); } void MirrorSearchTransferDataSource::stop() { kDebug(5001); } void MirrorSearchTransferDataSource::addSegments(const QPair &segmentSize, const QPair &segmentRange) { Q_UNUSED(segmentSize) Q_UNUSED(segmentRange) kDebug(5001); } void MirrorSearchTransferDataSource::slotSearchUrls(QList& Urls) { emit data(Urls); } #include "moc_mirrorsearchtransferdatasource.cpp"