From 5d2506e69713cd8fd6086fd574b79e9de5364a4c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 11 Aug 2014 22:08:26 +0200 Subject: SongFilter: new filter "modified-since" --- src/SongFilter.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/SongFilter.hxx') diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index ca7d7bd90..f51bd85c6 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -26,11 +26,13 @@ #include #include +#include /** * Limit the search to files within the given directory. */ #define LOCATE_TAG_BASE_TYPE (TAG_NUM_OF_ITEM_TYPES + 1) +#define LOCATE_TAG_MODIFIED_SINCE (TAG_NUM_OF_ITEM_TYPES + 2) #define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10 #define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20 @@ -51,9 +53,15 @@ public: std::string value; + /** + * For #LOCATE_TAG_MODIFIED_SINCE + */ + time_t time; + public: gcc_nonnull(3) Item(unsigned tag, const char *value, bool fold_case=false); + Item(unsigned tag, time_t time); Item(const Item &other) = delete; Item(Item &&) = default; -- cgit v1.2.3