KNewStuff
13class KNSCore::CachePrivate
16 QSharedPointer<Cache2> cache2;
19using namespace KNSCore;
21Cache::Cache(
const QString &appName)
23 , d(new CachePrivate({Cache2::getCache(appName)}))
29 return QSharedPointer<Cache>(
new Cache(appName));
32Cache::~Cache() =
default;
34void Cache::readRegistry()
36 d->cache2->readRegistry();
39Entry::List Cache::registryForProvider(
const QString &providerId)
41 return d->cache2->registryForProvider(providerId);
44Entry::List Cache::registry()
const
46 return d->cache2->registry();
49void Cache::writeRegistry()
51 d->cache2->writeRegistry();
54void Cache::registerChangedEntry(
const KNSCore::Entry &entry)
56 d->cache2->registerChangedEntry(entry);
59void Cache::insertRequest(
const KNSCore::Provider::SearchRequest &request,
const KNSCore::Entry::List &entries)
61 d->cache2->insertRequest(KNSCompat::searchRequestFromLegacy(request), entries);
64Entry::List Cache::requestFromCache(
const KNSCore::Provider::SearchRequest &request)
66 return d->cache2->requestFromCache(KNSCompat::searchRequestFromLegacy(request));
69void KNSCore::Cache::removeDeletedEntries()
71 d->cache2->removeDeletedEntries();
74KNSCore::Entry KNSCore::Cache::entryFromInstalledFile(
const QString &installedFile)
const
76 return d->cache2->entryFromInstalledFile(installedFile);
79#include "moc_cache.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:44 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.