diff data/fileio/PlaylistFileReader.h @ 401:d030801113b6

* Add ability to load playlists from a FileSource (used by runner)
author Chris Cannam
date Mon, 07 Apr 2008 16:55:21 +0000
parents c022976d18e8
children 5746c559af15
line wrap: on
line diff
--- a/data/fileio/PlaylistFileReader.h	Thu Apr 03 08:30:25 2008 +0000
+++ b/data/fileio/PlaylistFileReader.h	Mon Apr 07 16:55:21 2008 +0000
@@ -16,6 +16,8 @@
 #ifndef _PLAYLIST_FILE_READER_H_
 #define _PLAYLIST_FILE_READER_H_
 
+#include "FileSource.h"
+
 #include <QString>
 
 #include <vector>
@@ -29,6 +31,7 @@
     typedef std::vector<QString> Playlist;
 
     PlaylistFileReader(QString path);
+    PlaylistFileReader(FileSource source);
     virtual ~PlaylistFileReader();
 
     virtual bool isOK() const;
@@ -38,6 +41,9 @@
     static void getSupportedExtensions(std::set<QString> &extensions);
 
 protected:
+    void init();
+
+    FileSource m_source;
     QFile *m_file;
     QString m_error;
 };