kget
checksumsearchtransferdatasource.cpp
Go to the documentation of this file.
42 void ChecksumSearchController::registerSearch(ChecksumSearchTransferDataSource *search, const KUrl &baseUrl)
62 const KUrl dest = KUrl(KStandardDirs::locateLocal("appdata", "checksumsearch/") + QString::number(files++));
77 connect(job, SIGNAL(entries(KIO::Job*,KIO::UDSEntryList)), this, SLOT(slotEntries(KIO::Job*,KIO::UDSEntryList)));
85 void ChecksumSearchController::unregisterSearch(ChecksumSearchTransferDataSource *search, const KUrl &baseUrl)
133 kDebug(5001) << "Error while getting baseurl:" << baseUrl << job->error() << job->errorString();
147 ChecksumSearchTransferDataSource::ChecksumSearchTransferDataSource(const KUrl &srcUrl, QObject *parent)
183 const ChecksumSearch::UrlChangeMode mode = static_cast<ChecksumSearch::UrlChangeMode>(modes.at(i));
207 void ChecksumSearchTransferDataSource::addSegments(const QPair<KIO::fileoffset_t, KIO::fileoffset_t> &segmentSize, const QPair<int, int> &segmentRange)
static KUrl createUrl(const KUrl &src, const QString &change, UrlChangeMode mode)
Returns a modified url according to the parameters.
Definition: checksumsearch.cpp:166
void addSegments(const QPair< KIO::fileoffset_t, KIO::fileoffset_t > &segmentSize, const QPair< int, int > &segmentRange)
Adds multiple continuous segments that should be downloaded by this TransferDataSource.
Definition: checksumsearchtransferdatasource.cpp:207
void start()
Definition: checksumsearchtransferdatasource.cpp:157
static QStringList searchStrings()
Get List of the available search engines.
Definition: checksumsearchsettings.h:30
ChecksumSearchController(QObject *parent=0)
Definition: checksumsearchtransferdatasource.cpp:33
UrlChangeMode
Used to define in whiche way the url should be changed to try and find Checksums. ...
Definition: checksumsearch.h:40
ChecksumSearchTransferDataSource(const KUrl &srcUrl, QObject *parent)
Definition: checksumsearchtransferdatasource.cpp:147
This Class is an interface for inter-plugins data change.
Definition: transferdatasource.h:26
~ChecksumSearchController()
Definition: checksumsearchtransferdatasource.cpp:38
static QStringList checksumTypeList()
Get List of the available search engine URLs.
Definition: checksumsearchsettings.h:68
static QList< int > urlChangeModeList()
Get List of the available search engine URLs.
Definition: checksumsearchsettings.h:49
Definition: checksumsearch.h:28
void data(KIO::fileoffset_t offset, const QByteArray &data, bool &worked)
Returns data in the forms of chucks.
void stop()
Definition: checksumsearchtransferdatasource.cpp:202
void registerSearch(ChecksumSearchTransferDataSource *search, const KUrl &baseUrl)
Registers a search, downloads baseUrl if that has not be downloaded and then calls gotBaseUrl for any...
Definition: checksumsearchtransferdatasource.cpp:42
ChecksumSearchController downloads the baseUrl of files one want to get checksums for e...
Definition: checksumsearchtransferdatasource.h:35
static ChecksumSearchSettings * self()
Definition: checksumsearchsettings.cpp:17
virtual ~ChecksumSearchTransferDataSource()
Definition: checksumsearchtransferdatasource.cpp:152
void unregisterSearch(ChecksumSearchTransferDataSource *search, const KUrl &baseUrl=KUrl())
Unregisters a search, do that e.g.
Definition: checksumsearchtransferdatasource.cpp:85
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.