KNewStuff
cache.cpp
53 const QString path = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/knewstuff3/");
163 qCDebug(KNEWSTUFFCORE) << "Loading KNS2 registry of files for the component: " << m_kns2ComponentName;
167 const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("knewstuff2-entries.registry"), QStandardPaths::LocateDirectory);
169 qCDebug(KNEWSTUFFCORE) << QStringLiteral(" + Load from directory '") + (*it) + QStringLiteral("'.");
175 qCDebug(KNEWSTUFFCORE) << QStringLiteral(" Load from file '") + filepath + QStringLiteral("'.");
220 e.setHomepage(QUrl(QString(QLatin1String("http://opendesktop.org/content/show.php?content=") + e.uniqueId())));
282 doc.appendChild(doc.createProcessingInstruction(QStringLiteral("xml"), QStringLiteral("version=\"1.0\" encoding=\"UTF-8\"")));
316 void Cache::insertRequest(const KNSCore::Provider::SearchRequest &request, const KNSCore::EntryInternal::List &entries)
325 qCDebug(KNEWSTUFFCORE) << request.hashForRequest() << " add: " << entries.size() << " keys: " << d->requestCache.keys();
361 KNSCore::EntryInternal KNSCore::Cache::entryFromInstalledFile(const QString& installedFile) const
QDomProcessingInstruction createProcessingInstruction(const QString &target, const QString &data)
QString writableLocation(QStandardPaths::StandardLocation type)
QStringList locateAll(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options)
QDomNode appendChild(const QDomNode &newChild)
QString toString(int indent) const const
Contains the core functionality for handling interaction with NewStuff providers. ...
Definition: atticaprovider.cpp:27
int size() const const
bool remove(const QString &fileName)
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
ReadOnly
QDomElement documentElement() const const
bool exists() const const
void timeout()
bool exists() const const
void append(const T &value)
QString fromUtf8(const char *str, int size)
QStringList installedFiles() const
Retrieve the locally installed files.
Definition: entryinternal.cpp:391
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
bool setEntryXML(QXmlStreamReader &reader)
set the xml for the entry parses the xml and sets the private members accordingly used to deserialize...
Definition: entryinternal.cpp:466
void setSource(Source source)
The source of this entry can be Cache, Registry or Online -.
Definition: entryinternal.cpp:371
void fileChanged(const QString &path)
GenericDataLocation
void setStatus(KNS3::Entry::Status status)
Sets the entry's status.
Definition: entryinternal.cpp:381
Files
QList::iterator end()
bool exists() const const
StartElement
KIOFILEWIDGETS_EXPORT QString dir(const QString &fileClass)
QByteArray fromBase64(const QByteArray &base64, QByteArray::Base64Options options)
QDomElement firstChildElement(const QString &tagName) const const
typedef ConstIterator
QString tagName() const const
void setHomepage(const QUrl &page)
Set a link to a website containing information about this entry.
Definition: entryinternal.cpp:173
QDomElement createElement(const QString &tagName)
void clear()
KNS3::Entry::Status status() const
Retrieves the entry's status.
Definition: entryinternal.cpp:376
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QCA_EXPORT void setProperty(const QString &name, const QVariant &value)
QString providerId() const
The id of the provider this entry belongs to.
Definition: entryinternal.cpp:138
LocateDirectory
QList::iterator begin()
void destroyed(QObject *obj)
bool mkpath(const QString &dirPath) const const
QByteArray toByteArray(int indent) const const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
singleShot
KStandardDirs * dirs()
QCA_EXPORT QString appName()
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.