aboutsummaryrefslogtreecommitdiff
path: root/plugins/Dmenu.hpp
blob: 84614cc3137240a1787d7905a77d17c0734261dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "Plugin.hpp"

namespace QuickMedia {
    class Dmenu : public Plugin {
    public:
        Dmenu();
        bool search_is_filter() override { return true; }
        bool search_suggestions_has_thumbnails() const override { return false; }
        bool search_results_has_thumbnails() const override { return false; }
        int get_search_delay() const override { return 0; }
        bool search_suggestion_is_search() const override { return true; }
        Page get_page_after_search() const override { return Page::EXIT; }
        PluginResult get_front_page(BodyItems &result_items) override;
        SearchResult search(const std::string &text, BodyItems &result_items) override;
    private:
        std::vector<std::string> stdin_data;
    };
}