diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-03-12 13:27:44 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-03-12 13:27:44 +0000 |
| commit | 765b3a9ba1a59ec3248c8948d4cf5a53f92b40d5 (patch) | |
| tree | 9c48a6dd775e9f055f7594d9004617a1372e5de3 /src/qmmpui/fileloader.h | |
| parent | 53693eaf4b75b5aa6767989a1e2d3ebfc2f443aa (diff) | |
| download | qmmp-765b3a9ba1a59ec3248c8948d4cf5a53f92b40d5.tar.gz qmmp-765b3a9ba1a59ec3248c8948d4cf5a53f92b40d5.tar.bz2 qmmp-765b3a9ba1a59ec3248c8948d4cf5a53f92b40d5.zip | |
file dialog plugin api documentation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@841 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/fileloader.h')
| -rw-r--r-- | src/qmmpui/fileloader.h | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/qmmpui/fileloader.h b/src/qmmpui/fileloader.h index 72ee07a90..c3031b2f7 100644 --- a/src/qmmpui/fileloader.h +++ b/src/qmmpui/fileloader.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006 by Ilya Kotov * + * Copyright (C) 2006-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -26,41 +26,51 @@ class PlayListItem; -/*! +/*! @brief File loader class. + * * This class represents fileloader object that * processes file list in separate thread and emits * \b newPlayListItem(PlayListItem*) signal for every newly * created media file. - @author Ilya Kotov <forkotov02@hotmail.ru> -*/ + * @author Ilya Kotov <forkotov02@hotmail.ru> + */ class FileLoader : public QThread { Q_OBJECT public: + /*! + * Constructs FileLoader object. + * @param parent QObject parent + */ FileLoader(QObject *parent = 0); - + /*! + * Object destructor. + */ ~FileLoader(); - virtual void run(); - /*! * Call this method when you want to notify the thread about finishing */ void finish(); - /*! * Sets filelist to load( directory to load will be cleaned ) */ void setFilesToLoad(const QStringList&); - /*! * Sets directory to load( filelist to load will be cleaned ) */ void setDirectoryToLoad(const QString&); signals: - void newPlayListItem(PlayListItem*); + /*! + * Emited when new playlist item is available. + * @param item Pointer of the new PlayListItem object. + */ + void newPlayListItem(PlayListItem *item); + protected: + virtual void run(); void addFiles(const QStringList &files); void addDirectory(const QString& s); + private: QStringList m_filters; QStringList m_files_to_load; |
