mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-01-22 02:18:42 -05:00
28 lines
648 B
C++
28 lines
648 B
C++
#ifndef ROBOTSBLOCKEDRESULTOVERRIDE_H
|
|
#define ROBOTSBLOCKEDRESULTOVERRIDE_H
|
|
|
|
#include "LanguageResultOverride.h"
|
|
#include <atomic>
|
|
|
|
|
|
class RobotsBlockedResultOverride : public LanguageResultOverride {
|
|
public:
|
|
RobotsBlockedResultOverride();
|
|
|
|
bool init();
|
|
|
|
static void reload(int /*fd*/, void *state);
|
|
static void reload(void *state);
|
|
|
|
std::string getTitle(const std::string &lang, const Url &url) const override;
|
|
std::string getSummary(const std::string &lang, const Url &url) const override;
|
|
|
|
private:
|
|
std::atomic_bool m_loading;
|
|
};
|
|
|
|
extern RobotsBlockedResultOverride g_robotsBlockedResultOverride;
|
|
|
|
|
|
#endif //ROBOTSBLOCKEDRESULTOVERRIDE_H
|