KNewStuff
cache.cpp
Go to the documentation of this file.
153 e.setHomepage(QString(QLatin1String("http://opendesktop.org/content/show.php?content=") + e.uniqueId()));
210 doc.appendChild(doc.createProcessingInstruction( "xml", "version=\"1.0\" encoding=\"UTF-8\"" ));
233 void Cache::insertRequest(const KNS3::Provider::SearchRequest& request, const KNS3::EntryInternal::List& entries)
237 kDebug() << request.hashForRequest() << " add: " << entries.size() << " keys: " << requestCache.keys();
EntryInternal::List requestFromCache(const KNS3::Provider::SearchRequest &)
Definition: cache.cpp:240
Definition: cache.h:30
QDomProcessingInstruction createProcessingInstruction(const QString &target, const QString &data)
QString providerId() const
The id of the provider this entry belongs to.
Definition: entryinternal.cpp:144
QDomNode appendChild(const QDomNode &newChild)
void setProviderId(const QString &id)
Definition: entryinternal.cpp:149
EntryInternal::List registryForProvider(const QString &providerId)
All entries that have been installed by a certain provider.
Definition: cache.cpp:187
QString toString(int indent) const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QStringList findDirs(const char *type, const QString &reldir) const
#define K_GLOBAL_STATIC(TYPE, NAME)
KStandardDirs * dirs()
bool remove(const QString &fileName)
QDomElement nextSiblingElement(const QString &tagName) const
QDomElement documentElement() const
bool setEntryXML(const QDomElement &xmldata)
set the xml for the entry parses the xml and sets the private members accordingly used to deserialize...
Definition: entryinternal.cpp:417
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
int size() const
used to keep track of a search
Definition: knewstuff3/core/provider.h:64
void append(const T &value)
QString fromUtf8(const char *str, int size)
void setSource(Source source)
The source of this entry can be Cache, Registry or Online -.
Definition: entryinternal.cpp:362
Definition: knewstuff3/entry.h:61
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
static QSharedPointer< Cache > getCache(const QString &appName)
Returns an instance of a shared cache for appName That way it is made sure, that there do not exist d...
Definition: cache.cpp:41
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
iterator end()
virtual void close()
bool isNull() const
QString dir(const QString &fileClass)
QByteArray fromBase64(const QByteArray &base64)
void registerChangedEntry(const KNS3::EntryInternal &entry)
Definition: cache.cpp:228
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
QDomElement firstChildElement(const QString &tagName) const
typedef ConstIterator
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString tagName() const
Definition: entryinternal.h:65
QDomElement createElement(const QString &tagName)
void setStatus(Entry::Status status)
Returns the checksum for the entry.
Definition: entryinternal.cpp:372
QString hashForRequest() const
Definition: knewstuff3/core/provider.cpp:33
void insertRequest(const KNS3::Provider::SearchRequest &, const KNS3::EntryInternal::List &entries)
Definition: cache.cpp:233
iterator begin()
Definition: knewstuff3/entry.h:62
QByteArray toByteArray(int indent) const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25: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:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.