#include "testmanager.h" #include "testmanager.moc" #include "pluginmanager.h" #include "plugin.h" #include #include #include #include using namespace Komposer; TestManager::TestManager( TQObject *tqparent ) : TQObject( tqparent ) { m_manager = new PluginManager( this ); connect( m_manager, TQT_SIGNAL(pluginLoaded(Plugin*)), TQT_SLOT(slotPluginLoaded(Plugin*)) ); connect( m_manager, TQT_SIGNAL(allPluginsLoaded()), TQT_SLOT(slotAllPluginsLoaded()) ); m_manager->loadAllPlugins(); TQValueList plugins = m_manager->availablePlugins(); kdDebug()<<"Number of available plugins is "<< plugins.count() <::iterator it = plugins.begin(); it != plugins.end(); ++it ) { KPluginInfo *i = ( *it ); kdDebug()<<"\tAvailable plugin "<< i->name() <<", comment = "<< i->comment() <shutdown(); tqApp->exit(); } void TestManager::slotPluginLoaded( Plugin *plugin ) { kdDebug()<<"A plugin "<< m_manager->pluginName( plugin ) << " has been loaded"<