kget
metalinker.h
Go to the documentation of this file.
58 void setData(const QDateTime &dateTime, const QTime &timeZoneOffset = QTime(), bool negativeOffset = false);
324 QString xmlns; //the xmlns value is ignored when saving, instead the data format described in the specification is always used
332 static const uint MAX_URL_PRIORITY; //maximum pirority a Metalink 4.0 Url or Metaurl can have, not to be mixed up with the highest priority
414 static void addProperty(QList<QPair<QUrl, Nepomuk2::Variant> > *data, const QByteArray &uriBa, const QString &value);
415 static void addProperty(QList<QPair<QUrl, Nepomuk2::Variant> > *data, const QUrl &uri, const QString &value);
static bool load(const KUrl &destination, Metalink *metalink)
Loads destination into metalink.
Definition: metalinker.cpp:1232
Definition: metalinker.h:120
bool operator<(const HttpLinkHeader &) const
Definition: metalinker.cpp:1472
This class contains a url and the name, it can be used to e.g.
Definition: metalinker.h:76
QString name
Optional the name of a file that should be get of that metaurl.
Definition: metalinker.h:151
Definition: metalinker.h:419
void setData(const QDateTime &dateTime, const QTime &timeZoneOffset=QTime(), bool negativeOffset=false)
Definition: metalinker.cpp:75
static const QString KGET_DESCRIPTION
Definition: metalinker.h:331
QMultiMap< QString, QString > * getHeaderInfo()
Definition: metalinker.cpp:1461
Definition: metalinker.h:156
HttpLinkHeader(const QString &headerLine)
Definition: metalinker.cpp:1466
QHash< QString, QString > signatures
Definition: metalinker.h:236
bool operator<(const Url &other) const
"smaller" urls are less important than larger, larger urls should be preffered
Definition: metalinker.cpp:353
Definition: metalinker.h:239
void setMetalink(const Metalink &metalink)
Definition: metalinker.cpp:785
uint priority
the priority of the urls, 1 is highest priority, 999999 lowest default is 0 as in not set and thus is...
Definition: metalinker.h:180
bool isValidNameAttribute() const
Controls if the name attribute is valid, i.e.
Definition: metalinker.cpp:605
static bool save(const KUrl &destination, Metalink *metalink)
Saves metalink to destination.
Definition: metalinker.cpp:1296
void clear()
Return all Nepomuk-properties that can be extracted of Files only Files is being looked at...
Definition: metalinker.cpp:682
bool operator<(const Metaurl &other) const
"smaller" urls are less important than larger, larger urls should be preffered
Definition: metalinker.cpp:304
Definition: metalinker.h:299
void parseHeaderLine(const QString &)
Loads information from a header value into metalink header structure.
Definition: metalinker.cpp:1477
static const uint MAX_URL_PRIORITY
Definition: metalinker.h:332
Files, File and Metadata contain this Metadata not as member and only for compatibility.
Definition: metalinker.h:93
Definition: metalinker.h:275
uint priority
the priority of the urls, 1 is highest priority, 999999 lowest default is 0 as in not set and thus is...
Definition: metalinker.h:146
bool isMetalinkHttp()
Definition: metalinker.cpp:1399
Definition: metalinker.h:206
~MetalinkHttpParser()
Definition: metalinker.cpp:1340
bool isValid() const
checks if the minimum requirements of a metalink are met
Definition: metalinker.cpp:687
Definition: metalinker.h:478
Metalink version 3.0 2nd ed Used only for loading and saving, uses itself Metalink internally...
Definition: metalinker.h:340
Definition: metalinker.h:50
Definition: metalinker.h:190
This class can handle the loading and saving of metalinks on the filesystem.
Definition: metalinker.h:382
Definition: metalinker.h:224
MetalinkHttpParser(const KUrl &Url)
Definition: metalinker.h:423
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.