diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-11-01 17:54:27 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-11-01 17:54:27 +0000 |
| commit | 24af8da3f8942c200ba0058341a66a888224aa3c (patch) | |
| tree | c01647eef52405ff06ed13e6d151b75cddde3834 /src/qmmpui/fileloader.h | |
| parent | 15d744d752d16aa5621c98cd2de2d6ce3f6e6f46 (diff) | |
| download | qmmp-24af8da3f8942c200ba0058341a66a888224aa3c.tar.gz qmmp-24af8da3f8942c200ba0058341a66a888224aa3c.tar.bz2 qmmp-24af8da3f8942c200ba0058341a66a888224aa3c.zip | |
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
Diffstat (limited to 'src/qmmpui/fileloader.h')
| -rw-r--r-- | src/qmmpui/fileloader.h | 24 |
1 files changed, 15 insertions, 9 deletions
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 <QObject> #include <QDir> +#include <QQueue> #include <QThread> 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 <QString> m_files; + QQueue <QString> m_directories; bool m_finished; }; |
