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
QString providerId() const
The id of the provider this entry belongs to.
Definition: entryinternal.cpp:144
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
QStringList findDirs(const char *type, const QString &reldir) const
#define K_GLOBAL_STATIC(TYPE, NAME)
KStandardDirs * dirs()
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)
used to keep track of a search
Definition: knewstuff3/core/provider.h:64
void setSource(Source source)
The source of this entry can be Cache, Registry or Online -.
Definition: entryinternal.cpp:362
Definition: knewstuff3/entry.h:61
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
QString dir(const QString &fileClass)
void registerChangedEntry(const KNS3::EntryInternal &entry)
Definition: cache.cpp:228
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: entryinternal.h:65
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
Definition: knewstuff3/entry.h:62
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 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:50:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.