#include "testmanager.h" #include "testmanager.moc" #include "pluginmanager.h" #include "plugin.h" #include #include #include #include using namespace Komposer; TestManager::TestManager( TQObject *parent ) : TQObject( parent ) { m_manager = new PluginManager( this ); connect( m_manager, TQ_SIGNAL(pluginLoaded(Plugin*)), TQ_SLOT(slotPluginLoaded(Plugin*)) ); connect( m_manager, TQ_SIGNAL(allPluginsLoaded()), TQ_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"<