30#include <qmmp/trackinfo.h>
31#include "playlisttrack.h"
45class FileLoader :
public QThread
53 FileLoader(QObject *parent =
nullptr);
57 void add(
const QString &path);
61 void add(
const QStringList &paths);
62 void addPlayList(
const QString &fmt,
const QByteArray &data);
64 void insert(PlayListTrack *before,
const QString &path);
65 void insert(PlayListTrack *before,
const QStringList &paths);
79 void newTracksToInsert(PlayListTrack *before, QList<PlayListTrack *> tracks);
83 QList<PlayListTrack*> processFile(
const QString &path, QStringList *ignoredPaths =
nullptr);
84 void insertPlayList(
const QString &fmt,
const QByteArray &contents, PlayListTrack *before);
85 void insertPlayList(
const QString &path, PlayListTrack *before);
86 void addDirectory(
const QString &s, PlayListTrack *before =
nullptr);
87 bool checkRestrictFilters(
const QFileInfo &info);
88 bool checkExcludeFilters(
const QFileInfo &info);
89 void removeIgnoredTracks(QList<PlayListTrack *> *tracks, QSet<QString> *ignoredPaths);
93 PlayListTrack *before;
94 QString playListFormat;
95 QByteArray playListContent;
97 QQueue <LoaderTask> m_tasks;
98 QStringList m_filters;
99 QmmpUiSettings *m_settings;
100 bool m_finished =
false;
101 bool m_readMetaDataForPlayLists =
false;
102 TrackInfo::Parts m_parts = TrackInfo::Parts();
The PlayListItem class provides an item for use with the PlayListModel class.
Definition playlistitem.h:33
The QmmpUiSettings class provides access to global libqmmpui library settings.
Definition qmmpuisettings.h:36