aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-15 17:12:40 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-15 17:12:40 +0200
commit7760e319cbfea444792b4bc627f04bfbe286bbdf (patch)
tree0d46f7c62e43f94f73d6e7da488c2c238d011488 /plugins
parent7068f9cf6298c46bd6d84b93173e44ca283492b8 (diff)
Remove pleroma
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Pleroma.hpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/plugins/Pleroma.hpp b/plugins/Pleroma.hpp
deleted file mode 100644
index c2518e2..0000000
--- a/plugins/Pleroma.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#pragma once
-
-#include "Page.hpp"
-
-namespace QuickMedia {
- class Pleroma {
- public:
- // Either get all home posts or only the new ones if we have already fetched posts once. TODO: Cache
- PluginResult get_home_posts(BodyItems &results, const std::string &max_id = "");
- private:
- std::string auth_token = "";
- std::string instance = "";
- };
-
- class PleromaHomePage : public LazyFetchPage {
- public:
- PleromaHomePage(Program *program, std::shared_ptr<Pleroma> pleroma) : LazyFetchPage(program), pleroma(pleroma) {}
- const char* get_title() const override { return "Home"; }
- PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override {
- return PluginResult::ERR;
- }
- PluginResult lazy_fetch(BodyItems &result_items) override;
- PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
- private:
- std::shared_ptr<Pleroma> pleroma;
- int current_page = 0;
- std::string last_item_id;
- };
-} \ No newline at end of file