blob: f38aa90c26e8698d413e7ec8f8afd414ac19b0e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef NEWSBOAT_RSSIGNORES_H_
#define NEWSBOAT_RSSIGNORES_H_
#include <string>
#include <vector>
#include "configactionhandler.h"
#include "matcher.h"
#include "rssitem.h"
namespace newsboat {
typedef std::pair<std::string, std::shared_ptr<Matcher>> FeedUrlExprPair;
class RssIgnores : public ConfigActionHandler {
public:
RssIgnores() {}
~RssIgnores() override {}
void handle_action(const std::string& action,
const std::vector<std::string>& params) override;
void dump_config(std::vector<std::string>& config_output) const override;
bool matches(RssItem* item);
bool matches_lastmodified(const std::string& url);
bool matches_resetunread(const std::string& url);
private:
std::vector<FeedUrlExprPair> ignores;
std::vector<std::string> ignores_lastmodified;
std::vector<std::string> resetflag;
static const std::string REGEX_PREFIX;
};
} // namespace newsboat
#endif /* NEWSBOAT_RSSIGNORES_H_ */
|