TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicsongsmanagerthread.cpp
Go to the documentation of this file.
2 #include "musicfileutils.h"
3 #include "musicformats.h"
4 
6  : TTKAbstractThread(parent)
7 {
8 
9 }
10 
12 {
13  setFindFilePath(QStringList(path));
14 }
15 
16 void MusicSongsManagerThread::setFindFilePath(const QStringList &path)
17 {
18  m_path = path;
19 }
20 
22 {
23  QStringList list;
24  for(const QString &path : qAsConst(m_path))
25  {
26  if(m_running)
27  {
29  }
30  }
32  Q_EMIT searchFilePathChanged(list);
33 }
static QStringList supportMusicInputFilterFormats()
void setFindFilePath(const QString &path)
#define qAsConst
Definition: ttkqtglobal.h:53
The class of the ttk abstract thread.
void searchFilePathChanged(const QStringList &name)
MusicSongsManagerThread(QObject *parent=nullptr)
TTK_MODULE_EXPORT QStringList fileListByPath(const QString &dpath, const QStringList &filter={}, bool recursively=true)
virtual void run() overridefinal