21 #ifndef IMPORTFOLDERTHREAD_H 22 #define IMPORTFOLDERTHREAD_H 26 #include "ImportCache.h" 27 #include "Utils/Pimpl.h" 43 void sig_progress(
int);
46 explicit CachingThread(
const QStringList& file_list,
const QString& library_path, QObject *parent=
nullptr);
49 Library::ImportCachePtr cache()
const;
51 bool is_cancelled()
const;
54 QStringList temporary_files()
const;
59 void update_progress();
60 void scan_dir(
const QString& dir);
61 bool scan_rar(
const QString& rar);
62 bool scan_zip(
const QString& zip);
63 bool scan_tgz(
const QString& tgz);
64 void add_file(
const QString& filename,
const QString& relative_dir=QString());
67 QString create_temp_dir();
69 bool scan_archive(
const QString& temp_dir,
const QString& binary,
const QStringList& args);
73 #endif // IMPORTFOLDERTHREAD_H The ImportCache class.
Definition: ImportCache.h:32
The CachingThread class.
Definition: CachingThread.h:36
An interface class needed when implementing a library plugin.
Definition: CachingThread.h:29