KNewStuff
KNS3::Cache Class Reference
#include <cache.h>
Inheritance diagram for KNS3::Cache:

Public Slots | |
| void | registerChangedEntry (const KNS3::EntryInternal &entry) |
Public Member Functions | |
| ~Cache () | |
| void | insertRequest (const KNS3::Provider::SearchRequest &, const KNS3::EntryInternal::List &entries) |
| void | readRegistry () |
| EntryInternal::List | registryForProvider (const QString &providerId) |
| EntryInternal::List | requestFromCache (const KNS3::Provider::SearchRequest &) |
| void | writeRegistry () |
Static Public Member Functions | |
| static QSharedPointer< Cache > | getCache (const QString &appName) |
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
Returns an instance of a shared cache for appName That way it is made sure, that there do not exist different instances of cache, with different contents.
- Parameters:
-
appName The file name of the registry - this is usually the application name, it will be stored in "apps/knewstuff3/appname.knsregistry"
| void Cache::insertRequest | ( | const KNS3::Provider::SearchRequest & | request, |
| const KNS3::EntryInternal::List & | entries | ||
| ) |
| void Cache::readRegistry | ( | ) |
| void Cache::registerChangedEntry | ( | const KNS3::EntryInternal & | entry | ) | [slot] |
| EntryInternal::List Cache::registryForProvider | ( | const QString & | providerId | ) |
| EntryInternal::List Cache::requestFromCache | ( | const KNS3::Provider::SearchRequest & | request | ) |
| void Cache::writeRegistry | ( | ) |
The documentation for this class was generated from the following files:
KDE 4.6 API Reference