20 #ifndef KCMODULECONTAINER_H
21 #define KCMODULECONTAINER_H
23 #include <tqvaluelist.h>
25 #include <tqstringlist.h>
27 #include <tdecmodule.h>
28 #include <tdecmoduleloader.h>
87 TDECModuleContainer( TQWidget *parent,
const char* name,
const TQString& mods = TQString() );
96 void addModule(
const TQString& module );
131 typedef TQValueList<TDECModuleProxy*> ModuleList;
149 void tabSwitched( TQWidget * module );
167 class TDECModuleContainerPrivate;
168 TDECModuleContainerPrivate *d;
188 #define KCMODULECONTAINER( modules, factoryName ) \
191 TDECModule *create_## factoryName(TQWidget *parent, const char *name) \
193 return new TDECModuleContainer( parent, name, TQString( modules ) ); \
196 bool test_## factoryName() \
198 TQStringList modList = TQStringList::split( ",", TQString(modules).remove( " " )); \
199 for ( TQStringList::Iterator it = modList.begin(); it != modList.end(); ++it ) \
200 if ( TDECModuleLoader::testModule( *it ) ) \
206 #endif // KCMODULECONTAINER_H