2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2018-08-02 13:54:36 +02:00
|
|
|
|
|
|
|
#ifndef MPD_MODIFIED_SINCE_SONG_FILTER_HXX
|
|
|
|
#define MPD_MODIFIED_SINCE_SONG_FILTER_HXX
|
|
|
|
|
|
|
|
#include "ISongFilter.hxx"
|
|
|
|
|
|
|
|
#include <chrono>
|
|
|
|
|
|
|
|
class ModifiedSinceSongFilter final : public ISongFilter {
|
|
|
|
std::chrono::system_clock::time_point value;
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ModifiedSinceSongFilter(std::chrono::system_clock::time_point _value) noexcept
|
|
|
|
:value(_value) {}
|
|
|
|
|
|
|
|
ISongFilterPtr Clone() const noexcept override {
|
|
|
|
return std::make_unique<ModifiedSinceSongFilter>(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string ToExpression() const noexcept override;
|
|
|
|
bool Match(const LightSong &song) const noexcept override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|