1 #ifndef VIDEO_SCANNER_H
2 #define VIDEO_SCANNER_H
11 #include <QStringList>
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};