24 #ifndef TDERESOURCES_FACTORY_H
25 #define TDERESOURCES_FACTORY_H
30 #include <tdeconfig.h>
31 #include <klibloader.h>
35 #include "configwidget.h"
69 static Factory *
self(
const TQString& resourceFamily );
80 ConfigWidget *configWidget(
const TQString& type, TQWidget *parent = 0 );
90 Resource *resource(
const TQString& type,
const TDEConfig *config );
95 TQStringList typeNames()
const;
100 TQString typeName(
const TQString &type )
const;
105 TQString typeDescription(
const TQString &type )
const;
108 Factory(
const TQString& resourceFamily );
111 static TQDict<Factory> *mSelves;
113 TQString mResourceFamily;
114 TQMap<TQString, KService::Ptr> mTypeMap;
Class for loading resource plugins.
This class provides a resource which is managed in a general way.