aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Dmenu.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-11 21:35:37 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-13 13:13:01 +0200
commit77ed51898157d99112be7550471ec06e32344c9e (patch)
tree0645274d0f13b4fa6940d4054f74a070611a8ef0 /src/plugins/Dmenu.cpp
parentda89ec98fb34757f0c46dc8cb2dd87ae78d317ce (diff)
Refactor plugin into seperate pages
TODO: Readd 4chan login page, manganelo creators page, autocomplete
Diffstat (limited to 'src/plugins/Dmenu.cpp')
-rw-r--r--src/plugins/Dmenu.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/plugins/Dmenu.cpp b/src/plugins/Dmenu.cpp
deleted file mode 100644
index 9a8b5b8..0000000
--- a/src/plugins/Dmenu.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "../../plugins/Dmenu.hpp"
-#include <iostream>
-
-namespace QuickMedia {
- Dmenu::Dmenu() : Plugin("dmenu") {
- std::string line;
- while(std::getline(std::cin, line)) {
- stdin_data.push_back(std::move(line));
- }
- }
-
- PluginResult Dmenu::get_front_page(BodyItems &result_items) {
- for(const std::string &line_data : stdin_data) {
- result_items.push_back(BodyItem::create(line_data));
- }
- return PluginResult::OK;
- }
-
- SearchResult Dmenu::search(const std::string &text, BodyItems&) {
- std::cout << text << std::endl;
- return SearchResult::OK;
- }
-} \ No newline at end of file