File indexing completed on 2024-04-28 04:57:33
0001 /* This file is part of the KDE project 0002 0003 Copyright (C) 2008 Manolo Valdes <nolis71cu@gmail.com> 0004 0005 This program is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU General Public 0007 License as published by the Free Software Foundation; either 0008 version 2 of the License, or (at your option) any later version. 0009 */ 0010 0011 #ifndef MIRRORSEARCHTRANSFERDATASOURCE_H 0012 #define MIRRORSEARCHTRANSFERDATASOURCE_H 0013 0014 #include "core/transferdatasource.h" 0015 0016 #include <kio/job.h> 0017 0018 class MirrorSearchTransferDataSource : public TransferDataSource 0019 { 0020 Q_OBJECT 0021 public: 0022 MirrorSearchTransferDataSource(const QUrl &srcUrl, QObject *parent); 0023 0024 void start() override; 0025 void stop() override; 0026 void addSegments(const QPair<KIO::fileoffset_t, KIO::fileoffset_t> &segmentSize, const QPair<int, int> &segmentRange) override; 0027 0028 private Q_SLOTS: 0029 void slotSearchUrls(QList<QUrl> &Urls); 0030 0031 private: 0032 QString m_filename; 0033 }; 0034 0035 #endif