13#include <QCoreApplication>
30 void doScan(
const QStringList &dirs);
41 bool m_cancel {
false};
48 QList<int>dels) : QEvent(kEventType),
49 m_additions(
std::move(adds)), m_moved(
std::move(movs)),
50 m_deleted(
std::move(dels)) {}
69 void SetDirs(QStringList dirs);
70 void SetHosts(
const QStringList &hosts);
75 void ResetCounts() { m_addList.clear(); m_movList.clear(); m_delList.clear(); };
85 using PurgeList = std::vector<std::pair<int, QString> >;
88 void removeOrphans(
unsigned int id,
const QString &
filename);
92 bool buildFileList(
const QString &directory,
93 const QStringList &imageExtensions,
97 QString messsage = QString());
99 QObject *m_parent {
nullptr};
101 bool m_listUnknown {
false};
102 bool m_removeAll {
false};
103 bool m_keepAll {
false};
104 bool m_hasGUI {
false};
115 bool m_dbDataChanged {
false};
This is a wrapper around QThread that does several additional things.
VideoScanChanges(QList< int > adds, QList< int > movs, QList< int >dels)
static const Type kEventType
~VideoScanChanges() override=default
std::vector< std::pair< int, QString > > PurgeList
bool getDataChanged() const
std::map< QString, CheckStruct > FileCheckList
Q_DECLARE_TR_FUNCTIONS(VideoScannerThread)
QStringList GetOfflineSGHosts(void)
void SetProgressDialog(MythUIProgressDialog *dialog)
QStringList m_offlineSGHosts
QStringList m_liveSGHosts
QStringList m_directories
void run(const QString &name, Class *object, void(Class::*fn)())
META_PUBLIC bool RemoteGetActiveBackends(QStringList *list)
return list of backends currently connected to the master