[Kst] kdeextragear-2/kst

George Staikos staikos at kde.org
Fri Oct 17 08:40:46 CEST 2003


CVS commit by staikos: 

let's query the opposite way


  M +2 -2      devel-docs/KstPlugins   1.2
  M +2 -2      kst/kstdatasource.cpp   1.3


--- kdeextragear-2/kst/devel-docs/KstPlugins  #1.1:1.2
@@ -48,6 +48,6 @@
 bool understands_<libname>(const QString& filename);
 
-// Does this plugin provide this data source type?
-bool provides_<libname>(const QString& type);
+// Which types of data does this plugin provide a data source for?
+QStringList provides_<libname>();
 }
 

--- kdeextragear-2/kst/kst/kstdatasource.cpp  #1.2:1.3
@@ -59,7 +59,7 @@ namespace KST {
 
       bool provides(const QString& type) const {
-        bool (*sym)(const QString&) = (bool(*)(const QString&))symbol("provides");
+        QStringList (*sym)() = (QStringList(*)())symbol("provides");
         if (sym) {
-          return (sym)(type);
+          return ((sym)()).contains(type);
         }
 




More information about the Kst mailing list