From kde-commits Wed May 31 23:02:50 2006 From: Jan Hambrecht Date: Wed, 31 May 2006 23:02:50 +0000 To: kde-commits Subject: koffice/karbon Message-Id: <1149116570.757971.8184.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=114911659222034 SVN commit 547145 by jaham: port loading of tools but leave it disabled for now M +7 -7 karbon_factory.cc --- trunk/koffice/karbon/karbon_factory.cc #547144:547145 @@ -24,7 +24,7 @@ #include #include #include -//#include +#include #include #include @@ -49,22 +49,22 @@ KarbonToolRegistry::instance(); // Load plugins - - // Disabled untill ported to KDE4 - /*KTrader::OfferList offers = KTrader::self() -> query(QString::fromLatin1("Karbon/CoreModule"), + /* TODO enable it when we are in better shape (already ported to kde4) + KService::List offers = KServiceTypeTrader::self() -> query(QString::fromLatin1("Karbon/CoreModule"), QString::fromLatin1("Type == 'Service'")); - KTrader::OfferList::ConstIterator iter; + KService::List::ConstIterator iter; for(iter = offers.begin(); iter != offers.end(); ++iter) { KService::Ptr service = *iter; int errCode = 0; KParts::Plugin* plugin = - KParts::ComponentFactory::createInstanceFromService ( service, this, 0, QStringList(), &errCode); + KParts::ComponentFactory::createInstanceFromService ( service, this, QStringList(), &errCode); if ( plugin ) kDebug() << "found plugin " << service -> property("Name").toString() << "\n"; - }*/ + } + */ } KarbonFactory::~KarbonFactory()