aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-06-22 21:50:48 +0200
committerdec05eba <dec05eba@protonmail.com>2020-06-22 21:50:48 +0200
commit99915ba9ec15a5018be4e7793c1482a032c3ca14 (patch)
tree02faeaa99e7e99dded6b8cd99b2cc3d96ac4414b /plugins
parentf8cf25f3ecd2b312c3a88b9bb67451a86e511c4a (diff)
Support installation resources path
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Fourchan.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Fourchan.hpp b/plugins/Fourchan.hpp
index 33c6579..c9d649f 100644
--- a/plugins/Fourchan.hpp
+++ b/plugins/Fourchan.hpp
@@ -6,9 +6,11 @@
#include <condition_variable>
namespace QuickMedia {
+ class Program;
+
class Fourchan : public ImageBoard {
public:
- Fourchan();
+ Fourchan(const std::string &resources_root);
~Fourchan() override;
PluginResult get_front_page(BodyItems &result_items) override;
SearchResult search(const std::string &url, BodyItems &result_items) override;
@@ -40,5 +42,6 @@ namespace QuickMedia {
bool thread_list_cached = false;
bool running = true;
std::vector<std::string> cached_media_urls;
+ std::string resources_root;
};
} \ No newline at end of file