From 24af8da3f8942c200ba0058341a66a888224aa3c Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 1 Nov 2010 17:54:27 +0000 Subject: changed playlist api, prepare for shortcut editor implementation, fixed direcory scan order (Closes issue 207) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1970 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/fileloader.h | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'src/qmmpui/fileloader.h') diff --git a/src/qmmpui/fileloader.h b/src/qmmpui/fileloader.h index 466606ccb..7b3ad8862 100644 --- a/src/qmmpui/fileloader.h +++ b/src/qmmpui/fileloader.h @@ -22,6 +22,7 @@ #include #include +#include #include class PlayListItem; @@ -49,17 +50,22 @@ public: */ ~FileLoader(); /*! - * Call this method when you want to notify the thread about finishing + * Sets files to load */ void finish(); /*! - * Sets filelist to load( directory to load will be cleaned ) + * Sets file to load */ - void setFilesToLoad(const QStringList&); + void loadFile(const QString &path); /*! - * Sets directory to load( filelist to load will be cleaned ) + * Sets files to load */ - void setDirectoryToLoad(const QString&); + void loadFiles(const QStringList &paths); + /*! + * Sets directory to load + */ + void loadDirectory(const QString &path); + signals: /*! * Emitted when new playlist item is available. @@ -69,13 +75,13 @@ signals: protected: virtual void run(); - void addFiles(const QStringList &files); - void addDirectory(const QString& s); + void addFile(const QString &path); + void addDirectory(const QString &s); private: QStringList m_filters; - QStringList m_files_to_load; - QString m_directory; + QQueue m_files; + QQueue m_directories; bool m_finished; }; -- cgit v1.2.3-13-gbd6f