diff data/fileio/QuickTimeFileReader.h @ 316:3a6725f285d6

* Make RemoteFile far more pervasive, and use it for local files as well so that we can handle both transparently. Make it shallow copy with reference counting, so it can be used by value without having to worry about the cache file lifetime. Use RemoteFile for MainWindow file-open functions, etc
author Chris Cannam
date Thu, 18 Oct 2007 15:31:20 +0000
parents c022976d18e8
children c324d410b096
line wrap: on
line diff
--- a/data/fileio/QuickTimeFileReader.h	Thu Oct 18 10:24:26 2007 +0000
+++ b/data/fileio/QuickTimeFileReader.h	Thu Oct 18 15:31:20 2007 +0000
@@ -37,7 +37,7 @@
         DecodeThreaded // decode in a background thread after construction
     };
 
-    QuickTimeFileReader(QString path,
+    QuickTimeFileReader(RemoteFile source,
                         DecodeMode decodeMode,
                         CacheMode cacheMode,
                         size_t targetRate = 0);
@@ -47,6 +47,9 @@
     virtual QString getTitle() const { return m_title; }
     
     static void getSupportedExtensions(std::set<QString> &extensions);
+    static bool supportsExtension(QString ext);
+    static bool supportsContentType(QString type);
+    static bool supports(RemoteFile &source);
 
     virtual int getDecodeCompletion() const { return m_completion; }
 
@@ -55,6 +58,7 @@
     }
 
 protected:
+    RemoteFile m_source;
     QString m_path;
     QString m_error;
     QString m_title;