[Kst] kdeextragear-2/kst/kst/datasources/dirfile

George Staikos staikos at kde.org
Fri Apr 15 05:16:47 CEST 2005


CVS commit by staikos: 

implement reset() for dirfile


  M +8 -1      dirfile.cpp   1.18
  M +2 -0      dirfile.h   1.9


--- kdeextragear-2/kst/kst/datasources/dirfile/dirfile.cpp  #1.17:1.18
@@ -33,9 +33,16 @@ DirFileSource::~DirFileSource() {
 
 
+bool DirFileSource::reset() {
+  _fieldList.clear();
+  init();
+  return true;
+}
+
+
 bool DirFileSource::init() {
   int err = 0;
 
   _frameCount = 0;
-  struct FormatType *ft = GetFormat(_filename.latin1(), &err);
+  FormatType *ft = GetFormat(_filename.latin1(), &err);
 
   if (err == GD_E_OK) {

--- kdeextragear-2/kst/kst/datasources/dirfile/dirfile.h  #1.8:1.9
@@ -46,4 +46,6 @@ class DirFileSource : public KstDataSour
     bool isEmpty() const;
 
+    bool reset();
+
   private:
     int _frameCount;




More information about the Kst mailing list