[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu Mar 11 16:11:11 CET 2004


CVS commit by staikos: 

add debugging info, commented out


  M +10 -2     kstdatasource.cpp   1.17


--- kdeextragear-2/kst/kst/kstdatasource.cpp  #1.16:1.17
@@ -48,6 +48,8 @@ namespace KST {
         KstDataSource *(*sym)(const QString&, const QString&) = (KstDataSource*(*)(const QString&, const QString&))symbol("create");
         if (sym) {
+          //kdDebug() << "Trying to create " << filename << " type=" << type << " with " << service->property("Name").toString() << endl;
           KstDataSource *ds = (sym)(filename, type);
           ds->_source = service->property("Name").toString();
+          //kdDebug() << (ds ? "SUCCESS" : "FAILED") << endl;
           return ds;
         }
@@ -59,5 +61,8 @@ namespace KST {
         bool (*sym)(const QString&) = (bool(*)(const QString&))symbol("understands");
         if (sym) {
-          return (sym)(filename);
+          //kdDebug() << "Checking if " << service->property("Name").toString() << " understands " << filename << endl;
+          bool rc = (sym)(filename);
+          //kdDebug() << "result: " << rc << endl;
+          return rc;
         }
 
@@ -68,5 +73,8 @@ namespace KST {
         QStringList (*sym)() = (QStringList(*)())symbol("provides");
         if (sym) {
-          return ((sym)()).contains(type);
+          //kdDebug() << "Checking if " << service->property("Name").toString() << " provides " << type << endl;
+          bool rc = ((sym)()).contains(type);
+          //kdDebug() << "result: " << rc << endl;
+          return rc;
         }
 





More information about the Kst mailing list