Auto reformatted the base, ref #470
This commit is contained in:
@@ -22,40 +22,42 @@
|
||||
#include <functional>
|
||||
|
||||
#include "services/scanner/ScannerStats.hpp"
|
||||
|
||||
#include "IScanStep.hpp"
|
||||
#include "ScannerSettings.hpp"
|
||||
|
||||
namespace lms::db
|
||||
{
|
||||
class Db;
|
||||
class Db;
|
||||
}
|
||||
|
||||
namespace lms::scanner
|
||||
{
|
||||
class ScanStepBase : public IScanStep
|
||||
{
|
||||
public:
|
||||
static inline const std::filesystem::path excludeDirFileName {".lmsignore"};
|
||||
using ProgressCallback = std::function<void(const ScanStepStats& stats)>;
|
||||
class ScanStepBase : public IScanStep
|
||||
{
|
||||
public:
|
||||
static inline const std::filesystem::path excludeDirFileName{ ".lmsignore" };
|
||||
using ProgressCallback = std::function<void(const ScanStepStats& stats)>;
|
||||
|
||||
struct InitParams
|
||||
{
|
||||
const ScannerSettings& settings;
|
||||
ProgressCallback progressCallback;
|
||||
bool& abortScan;
|
||||
db::Db& db;
|
||||
};
|
||||
ScanStepBase(InitParams& initParams)
|
||||
: _settings {initParams.settings}
|
||||
, _progressCallback {initParams.progressCallback}
|
||||
, _abortScan {initParams.abortScan}
|
||||
, _db {initParams.db}
|
||||
{}
|
||||
struct InitParams
|
||||
{
|
||||
const ScannerSettings& settings;
|
||||
ProgressCallback progressCallback;
|
||||
bool& abortScan;
|
||||
db::Db& db;
|
||||
};
|
||||
ScanStepBase(InitParams& initParams)
|
||||
: _settings{ initParams.settings }
|
||||
, _progressCallback{ initParams.progressCallback }
|
||||
, _abortScan{ initParams.abortScan }
|
||||
, _db{ initParams.db }
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
const ScannerSettings& _settings;
|
||||
ProgressCallback _progressCallback;
|
||||
bool& _abortScan;
|
||||
db::Db& _db;
|
||||
};
|
||||
}
|
||||
protected:
|
||||
const ScannerSettings& _settings;
|
||||
ProgressCallback _progressCallback;
|
||||
bool& _abortScan;
|
||||
db::Db& _db;
|
||||
};
|
||||
} // namespace lms::scanner
|
||||
|
||||
Reference in New Issue
Block a user