Imported existing sources
This commit is contained in:
1 parent
eb1c3bf259
commit
cd9bfb8ffe
56 files changed
+3694
No files matched your search
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <QHash>
|
||||
#include <QDate>
|
||||
#include <QtGlobal>
|
||||
#include <QMetaType>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using Host = QString;
|
||||
using Process = QString;
|
||||
using Filename = QString;
|
||||
struct Logfile {
|
||||
QString filename;
|
||||
QString filepath;
|
||||
qint64 filesize;
|
||||
bool gzipCompressed;
|
||||
};
|
||||
using ScanResult = QHash<Host, QHash<Process, QHash<QDate, Logfile> > >;
|
||||
Q_DECLARE_METATYPE(ScanResult)
|
||||
|
||||
inline bool scanResultEmpty(const ScanResult &result)
|
||||
{
|
||||
return result.isEmpty() || std::all_of(result.constBegin(), result.constEnd(), [](const auto &host){
|
||||
return host.isEmpty() || std::all_of(host.constBegin(), host.constEnd(), [](const auto &process){
|
||||
return process.isEmpty();
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user