33 emit
log(QString::fromStdString(outmsg));
38 std::lock_guard<std::mutex> locker(
mutex);
53 std::lock_guard<std::mutex> locker(
mutex);
63 std::lock_guard<std::mutex> locker(
mutex);
73 std::lock_guard<std::mutex> locker(
mutex);
84 std::lock_guard<std::mutex> locker(
mutex);
92 quint64 sizeOfFiles = std::accumulate(files.begin(), files.end(), 0, [](quint64 total,
const QString& file) {
93 return total + QFile(file).size();
100 std::lock_guard<std::mutex> locker(
mutex);
110 return v + QFile(QString::fromStdString(fs.filename())).size();
116 std::lock_guard<std::mutex> locker(
mutex);
125 std::lock_guard<std::mutex> locker(
mutex);
A class containing error data for one error.
Wrapper for error messages, provided by reportErr()
Importing project settings.
std::list< FileSettings > fileSettings
quint64 mMaxProgress
Max progress.
QStringList mFiles
List of files to check.
void clearFiles()
Clear files to check.
unsigned long mTotalFiles
Total number of files.
FileSettings getNextFileSettings()
void error(const ErrorItem &item)
Signal of a new error.
quint64 mProgress
Current progress.
void setProject(const ImportProject &prj)
QString getNextFile()
Get next unprocessed file.
void debugError(const ErrorItem &item)
Signal of a debug error.
void reportErr(const ErrorMessage &msg) override
Information about found errors and warnings is directed here.
void log(const QString &logline)
Signal of a new log message.
void fileChecked(const QString &file)
Slot threads use to signal this class that a specific file is checked.
unsigned long mFilesChecked
Current number of files checked.
std::list< FileSettings > mFileSettings
void progress(int value, const QString &description)
Progress signal.
void reportOut(const std::string &outmsg, Color c=Color::Reset) override
ErrorLogger methods.
void setFiles(const QStringList &files)
Set list of files to check.
int getFileCount() const
Get the number of files to check.