diff layer/Layer.h @ 583:4c484636d5ec

Record and show any error that occurs during layer processing (e.g. spectrogram layer runs out of disc space for feature files)
author Chris Cannam
date Thu, 14 Apr 2011 15:21:21 +0100
parents 2e8194a30f40
children 7ebd5a21d74f 5b72899d692b
line wrap: on
line diff
--- a/layer/Layer.h	Thu Apr 07 15:20:12 2011 +0100
+++ b/layer/Layer.h	Thu Apr 14 15:21:21 2011 +0100
@@ -339,6 +339,13 @@
      */
     virtual int getCompletion(View *) const { return 100; }
 
+    /**
+     * Return an error string if any errors have occurred while
+     * loading or processing data for the given view.  Return the
+     * empty string if no error has occurred.
+     */
+    virtual QString getError(View *) const { return ""; }
+
     virtual void setObjectName(const QString &name);
 
     /**