kresources
manager.h
static Factory * self(const QString &resourceFamily)
Returns the global resource factory.
Definition: factory.cpp:68
QStringList resourceTypeNames() const
Returns a list of the names of all available resource types.
Definition: manager.h:362
QStringList typeNames() const
Returns a list of all available resource types.
Definition: factory.cpp:148
void setActive(Resource *resource, bool active)
Set active state of resource.
Definition: manager.h:328
QStringList resourceTypeDescriptions() const
Return list of descriptions of all available resource types.
Definition: manager.h:370
void removeObserver(ManagerObserver< T > *observer)
Remove Observer for resource changes from manager.
Definition: manager.h:400
T * createResource(const QString &type)
Creates a new resource of type type with default settings.
Definition: manager.h:354
ActiveIterator activeEnd()
Return Iterator indicating end of active resource list.
Definition: manager.h:228
void change(T *resource)
Call this to notify manager about changes of the configuration of the given resource.
Definition: manager.h:302
Iterator for iterations over all resources managed by a manager.
Definition: manager.h:88
void readConfig(KConfig *cfg=0)
Recreate Resource objects from configuration file.
Definition: manager.h:263
Iterator for iterations over only active resources managed by a manager.
Definition: manager.h:157
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
This class provides a resource which is managed in a general way.
Definition: resource.h:75
This file is part of the KDE resource framework and defines the Factory class.
void writeConfig(KConfig *cfg=0)
Write configuration of Resource objects to configuration file.
Definition: manager.h:272
QStringList resourceNames() const
Returns a list of the names of the resources managed by the Manager for this family.
Definition: manager.h:339
QString typeName(const QString &type) const
Returns the name for a special type.
Definition: factory.cpp:183
Definition: managerimpl.h:41
void addObserver(ManagerObserver< T > *observer)
Add observer for resource changes to manager.
Definition: manager.h:391
This class provides a manager for resources of a specified family.
Definition: manager.h:82
QString typeDescription(const QString &type) const
Returns the description for a special type.
Definition: factory.cpp:193
Definition: manager.h:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:19 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 23:00:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.