kresources
manager.h
QStringList typeNames() const
Returns a list of all available resource types.
Definition factory.cpp:148
QString typeDescription(const QString &type) const
Returns the description for a special type.
Definition factory.cpp:193
QString typeName(const QString &type) const
Returns the name for a special type.
Definition factory.cpp:183
Resource * resource(const QString &type, const KConfigGroup &group)
Returns a pointer to a resource object or a null pointer if resource type doesn't exist.
Definition factory.cpp:245
static Factory * self(const QString &resourceFamily)
Returns the global resource factory.
Definition factory.cpp:68
Definition managerimpl.h:42
Definition manager.h:61
Iterator for iterations over only active resources managed by a manager.
Definition manager.h:158
Iterator for iterations over all resources managed by a manager.
Definition manager.h:89
This class provides a manager for resources of a specified family.
Definition manager.h:83
void removeObserver(ManagerObserver< T > *observer)
Remove Observer for resource changes from manager.
Definition manager.h:400
QStringList resourceNames() const
Returns a list of the names of the resources managed by the Manager for this family.
Definition manager.h:339
void setActive(Resource *resource, bool active)
Set active state of resource.
Definition manager.h:328
void writeConfig(KConfig *cfg=0)
Write configuration of Resource objects to configuration file.
Definition manager.h:272
void addObserver(ManagerObserver< T > *observer)
Add observer for resource changes to manager.
Definition manager.h:391
QStringList resourceTypeDescriptions() const
Return list of descriptions of all available resource types.
Definition manager.h:370
void readConfig(KConfig *cfg=0)
Recreate Resource objects from configuration file.
Definition manager.h:263
ActiveIterator activeEnd()
Return Iterator indicating end of active resource list.
Definition manager.h:228
T * createResource(const QString &type)
Creates a new resource of type type with default settings.
Definition manager.h:354
void change(T *resource)
Call this to notify manager about changes of the configuration of the given resource.
Definition manager.h:302
QStringList resourceTypeNames() const
Returns a list of the names of all available resource types.
Definition manager.h:362
This class provides a resource which is managed in a general way.
Definition resource.h:76
This file is part of the KDE resource framework and defines the Factory class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.