mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 19:02:53 +00:00
46 lines
1.2 KiB
C++
46 lines
1.2 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 "mirrorsearchtransferdatasource.h"
|
|
#include "mirrors.h"
|
|
#include <kdebug.h>
|
|
|
|
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<KUrl>&)));
|
|
}
|
|
|
|
void MirrorSearchTransferDataSource::stop()
|
|
{
|
|
kDebug(5001);
|
|
}
|
|
|
|
void MirrorSearchTransferDataSource::addSegments(const QPair<KIO::fileoffset_t, KIO::fileoffset_t> &segmentSize, const QPair<int, int> &segmentRange)
|
|
{
|
|
Q_UNUSED(segmentSize)
|
|
Q_UNUSED(segmentRange)
|
|
kDebug(5001);
|
|
}
|
|
|
|
void MirrorSearchTransferDataSource::slotSearchUrls(QList<KUrl>& Urls)
|
|
{
|
|
emit data(Urls);
|
|
}
|
|
|
|
#include "moc_mirrorsearchtransferdatasource.cpp"
|