kget
checksumsearch.cpp
Go to the documentation of this file.
30 const QStringList ChecksumSearch::URLCHANGEMODES = (QStringList() << i18n("Append") << i18n("Replace file") << i18n("Replace file-ending"));
32 ChecksumSearch::ChecksumSearch(const QList<KUrl> &srcs, const QString &fileName, const QStringList &types, QObject *parent)
144 //only create a download here if type was specified, otherwise parseDownloadEmpty has to handle this
166 KUrl ChecksumSearch::createUrl(const KUrl &src, const QString &change, ChecksumSearch::UrlChangeMode mode)
static KUrl createUrl(const KUrl &src, const QString &change, UrlChangeMode mode)
Returns a modified url according to the parameters.
Definition: checksumsearch.cpp:166
void clear()
Replaces the file of the Url with QString –> "http://test.com/aFile.zip"; "MD5SUMS" "http://test...
Definition: checksumsearch.h:44
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
UrlChangeMode
Used to define in whiche way the url should be changed to try and find Checksums. ...
Definition: checksumsearch.h:40
static int diggestLength(const QString &type)
Returns the diggest length of type.
Definition: verifier.cpp:239
static QStringList supportedVerficationTypes()
Returns the supported verification types.
Definition: verifier.cpp:216
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void clear()
Definition: checksumsearch.h:42
void data(QString type, QString checksum)
bool isEmpty() const
bool isEmpty() const
void deleteLater()
ChecksumSearch(const QList< KUrl > &srcs, const QString &fileName, const QStringList &types, QObject *parent=0)
Definition: checksumsearch.cpp:32
QByteArray & append(char ch)
QString toLower() const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
T takeFirst()
QString left(int n) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Appends the QString to the Url –> "http://test.com/aFile.zip"; ".md5" "http://test.com/aFile.zip.md5".
Definition: checksumsearch.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.