#ifndef FILESAVER_H #define FILESAVER_H #include #include #include "pagedata.h" #include "filedata.h" #include "sqlitedbservice.h" #include "common.h" class FileSaver { private: SqliteDbService *dbService; QStringList excludedPaths = Common::excludedPaths(); public: FileSaver(SqliteDbService &dbService); SaveFileResult addFile(QString path); SaveFileResult updateFile(QString path); SaveFileResult saveFile(const QFileInfo &fileInfo); int processFiles(const QVector paths, std::function saverFunc, bool keepGoing, bool verbose); int addFiles(const QVector paths, bool keepGoing, bool verbose); int updateFiles(const QVector paths, bool keepGoing, bool verbose); }; #endif // FILESAVER_H