[Kst] branches/work/kst/portto4/kst/src/libkst

Adam Treat treat at kde.org
Thu Feb 15 23:17:38 CET 2007


SVN commit 633968 by treat:

* KServiceType::offers() -> KServiceTypeTrader::self()->query()


 M  +2 -1      kstdatasource.cpp  


--- branches/work/kst/portto4/kst/src/libkst/kstdatasource.cpp #633967:633968
@@ -24,6 +24,7 @@
 #include <klibloader.h>
 #include <klocale.h>
 #include <kservicetype.h>
+#include <kservicetypetrader.h>
 
 #include <q3deepcopy.h>
 #include <qfile.h>
@@ -107,7 +108,7 @@
 
   KstDebug::self()->log(i18n("Scanning for data-source plugins."));
 
-  KService::List sl = KServiceType::offers("Kst Data Source");
+  KService::List sl = KServiceTypeTrader::self()->query("Kst Data Source");
   for (KService::List::ConstIterator it = sl.begin(); it != sl.end(); ++it) {
     for (KST::PluginInfoList::ConstIterator i2 = pluginInfo.begin(); i2 != pluginInfo.end(); ++i2) {
       if ((*i2)->service == *it) {


More information about the Kst mailing list